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>');
}
