// update:2005/12@>>add Flash Player Detection Kit 


function flashEmbed(attribute){
		
	if (!attribute.menu) attribute.menu = "false";
	if (!attribute.quality) attribute.quality = "high";
	if (!attribute.loop) attribute.loop = "false";
	if (!attribute.bgcolor) attribute.bgcolor = "#ffffff";
	if (!attribute.align) attribute.align = "middle";
	if (!attribute.allowScriptAccess) attribute.allowScriptAccess = "always";
	if (!attribute.name) attribute.name = "movie1";

	var oeTags ='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000"'
	+ 'width="' + attribute.width + '" height="'+ attribute.height + '"'
	+ 'codebase="https://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab">'
	+ '<param name="movie" value="' + attribute.src + '">'
	+ '<param name="menu" value="' + attribute.menu + '">'
	+ '<param name="quality" value="' + attribute.quality + '">'
	+ '<param name="bgcolor" value="' + attribute.bgcolor + '">'
	+ '<param name="allowScriptAccess" value="' + attribute.allowScriptAccess + '">';
	
	if (attribute.wmode) oeTags += '<param name="wmode" value="' + attribute.wmode + '">';
	
	oeTags += '<embed src="' + attribute.src + '" menu="' + attribute.menu + '" quality="' + attribute.quality + '" bgcolor="' + attribute.bgcolor + '" '
	+ ' width="' + attribute.width + '" height="' + attribute.height + '" name="' + attribute.name + '" align="' + attribute.align + '"'
	+ ' play="true"'
	+ ' loop="' + attribute.loop + '"'
	+ ' quality="' + attribute.quality + '"';
	
	if (attribute.wmode) oeTags += ' wmode="' + attribute.wmode + '"';
	
	oeTags += ' allowScriptAccess="' + attribute.allowScriptAccess + '"'
	+ ' type="application/x-shockwave-flash"'
	+ ' pluginspage="https://www.macromedia.com/go/getflashplayer">'
	+ '<\/embed>'
	+ '<\/object>';

	document.write(oeTags);
	
}

// JavaScript Document