
function the_writeSwf(){

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" width="550" height="250" id="flashvr" align="center">'); 
document.write('<param name="allowScriptAccess" value="sameDomain" />');
document.write('<param name="movie" value="flashvr.swf?connect='+ Date.parse(timestamp) +'" />'); 
document.write('<param name="swLiveConnect" value="true" />');
document.write('<param name="bgcolor" value="#2B0E13" />');
document.write('<param name="wmode" value="transparent" />');
document.write('<embed src="flashvr.swf?connect='+ Date.parse(timestamp) +'" align="center" wmode="transparent" bgcolor="#2B0E13" width="400" height="200" id="flashvr" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" swLiveConnect="true" >');
document.write('</object>');
}


function writeSwf(swf_name, w, h){
	swf_path = swf_name;
	ch = swf_name.indexOf(".swf");
	if(ch == -1){
		swf_path = swf_name + ".swf";
	}else{
		swf_name = swf_name.slice(0, ch);
	}

document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="' + w + '" height="' + h + '" id="' + swf_name + '" align="middle">');
document.write('<param name="movie" value="' + swf_path + '">');
document.write('<param name="wmode" value="opaque" / >');
document.write('<embed src="' + swf_path + '" width="' + w + '" height="' + h + '" name="' + swf_name + '" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</object>');
}
function writeSwfCm(swf_name, w, h, no){
	swf_path = swf_name;
	ch = swf_name.indexOf(".swf");
	if(ch == -1){
		swf_path = swf_name + ".swf";
	}else{
		swf_name = swf_name.slice(0, ch);
	}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="' + w + '" height="' + h + '" id="' + swf_name + '" align="middle">');
document.write('<param name="movie" value="' + swf_path + '">');
document.write('<param name="flashvars" value="cm_num=' + no + '">');
document.write('<embed src="' + swf_path + '" width="' + w + '" height="' + h + '" flashvars="cm_num=' + no + '" name="' + swf_name + '" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</object>');
}

function writeSwfFV(swf_name, w, h, fv){
	swf_path = swf_name;
	ch = swf_name.indexOf(".swf");
	if(ch == -1){
		swf_path = swf_name + ".swf";
	}else{
		swf_name = swf_name.slice(0, ch);
	}
document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" width="' + w + '" height="' + h + '" id="' + swf_name + '" align="middle">');
document.write('<param name="movie" value="' + swf_path + '">');
document.write('<param name="flashvars" value="' + fv + '">');
document.write('<embed src="' + swf_path + '" width="' + w + '" height="' + h + '" flashvars="' + fv + '" name="' + swf_name + '" align="middle" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">');
document.write('</object>');
}
