object_more="";
object_pmore="";
embed_more="";

if (typeof swf_movie 			=='undefined')  swf_movie="";
if (typeof swf_width 			=='undefined') 	swf_width=0;
if (typeof swf_height			=='undefined') 	swf_height=0;
if (typeof swf_alt_text			=='undefined') 	swf_alt_text="";
if (typeof swf_menu 			=='undefined') 	swf_menu=false;
if (typeof swf_bgcolor			!='undefined') 	swf_add_property("bgcolor", swf_bgcolor, "", true);
if (typeof swf_id 				!='undefined') 	swf_add_property("id", swf_id, "name", false);
if (typeof swf_play 			!='undefined') 	swf_add_property("play", swf_play, "", true);
if (typeof swf_loop 			!='undefined') 	swf_add_property("loop", swf_loop, "", true);
if (typeof swf_menu 			!='undefined') 	swf_add_property("menu", swf_menu, "", true);
if (typeof swf_quality 			!='undefined') 	swf_add_property("quality", swf_quality, "", true);
if (typeof swf_scale 			!='undefined') 	swf_add_property("scale", swf_scale, "", true);
if (typeof swf_wmode 			!='undefined') 	swf_add_property("wmode", swf_wmode, "", true);
if (typeof swf_align 			!='undefined') 	swf_add_property("align", swf_align, "", false);
if (typeof swf_salign 			!='undefined') 	swf_add_property("salign", swf_salign, "", true);
if (typeof swf_allowscriptaccess!='undefined') 	swf_add_property("allowScriptAccess", swf_allowscriptaccess, "", true);
if (typeof swf_vars 			!='undefined') 	swf_add_property("flashVars", swf_vars, "", true);
if (typeof swf_devicefont 		!='undefined') 	swf_add_property("devicefont", swf_devicefont, "", true);
if (typeof swf_swliveconnect	!='undefined') 	swf_add_property("swLiveConnect", swf_swliveconnec, "", truet);
if (typeof swf_base				!='undefined') 	swf_add_property("base", swf_base, "", true);

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" ');
document.write('width="'+ swf_width +'" height="'+ swf_height +'" '+ object_pmore +'>');
document.write('<param name="movie" value="'+ swf_movie +'" />'+ object_more);
document.write('<embed src="'+ swf_movie +'" width="'+ swf_width +'" height="'+ swf_height +'" '+ embed_more +' type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer">'+ swf_alt_text +'</embed></object>');

function swf_add_property(param, value, param_embed, is_param_object){
	if (is_param_object) object_more+='<param name="'+ param +'" value="'+ value +'" />';
	else object_pmore+=param+ '="'+ value +'" ';
	embed_more +=((param_embed!="")?param_embed:param)+ '="'+ value +'" ';
	}
