
function embedSwf(id, w, h, file, fv ) {


/*2010-11-22 ants mod*/

function GetFileName(file_url) {
	file_url = file_url.substring(file_url.lastIndexOf("/")+1,file_url.length);
	return file_url;
}

//document.write(GetFileName(location.href));

if(GetFileName(location.href) == "b02.html") {
	file = file.replace("EWRITERPLUS/SWF/carlineup_b02.swf","EWRITERPLUS/SWF/carlineup_b01.swf?id=2");
//	document.write(file);

}


if(GetFileName(location.href) == "b01.html" || GetFileName(location.href) == "b02.html") {
	h = h + 280;
}

if(GetFileName(location.href) == "" | GetFileName(location.href) == "index.html") {
var uacheck = new RegExp('iPhone|iPod|iPad|Android', 'i');
if(uacheck.test(navigator.userAgent)){
	location.href='/smt/';
}
}


	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0" width="' + w + '" height="' + h + '" id="' + id + '" align="middle">');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' + file + '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="scale" value="noscale" />');
	document.write('<param name="salign" value="lt" />');
	document.write('<param name="bgcolor" value="#ffffff" />');
	document.write('<param name="FlashVars" value="' + fv + '" />');
	document.write('<embed src="' + file + '" quality="high" scale="noscale" salign="lt" bgcolor="#ffffff" width="' + w + '" height="' + h + '" name="' + id + '" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="https://www.macromedia.com/go/getflashplayer"');
	document.write('FlashVars="' + fv + '" />');
	document.write('</object>');
}


