 /**
 * JS PlugIn Detection
 * 
 * author  :	netTrek - Saban Uenlue ### $Author$
 * created :	09.03.2006
 * version :	1
 * 
 */


function embedSWF ( swf, swf_id, width, height, color )
{
	document.write('<div id="flashmovie" style="position:absolute; top:50%; left:50%; margin-left:-' +(width/2)+ 'px; margin-top:-' +(height/2)+ 'px; width:' +width+ 'px; height:' +height+ 'px; z-index:0 ">');
	document.write('<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" ');
	document.write('codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0" ');
	document.write('width="' +width+ '" ');	
	document.write('height="' +height+ '" ');	
	document.write('id="' +swf_id+ '" ');	
	document.write('name="' +swf_id+ '" > ');
	document.write('<param name="allowScriptAccess" value="sameDomain" />');
	document.write('<param name="movie" value="' +swf+ '" />');
	document.write('<param name="quality" value="high" />');
	document.write('<param name="bgcolor" value="' +color+ '" />');
	document.write('<embed src="' +swf+ '" ');
	document.write('quality="high" ');
	document.write('bgcolor="' +color+ '" ');
	document.write('width="' +width+ '" ');	
	document.write('height="' +height+ '" ');
	document.write('name="' +swf_id+ '" ');
	document.write('allowScriptAccess="sameDomain" ');
	document.write('type="application/x-shockwave-flash" ');
	document.write('pluginspage="http://www.macromedia.com/go/getflashplayer" />');
	document.write('</object>');
	document.write('</div>');
}

