
if (window.innerWidth) {
	available_width = window.innerWidth;
} else if (document.body && document.body.offsetWidth) {
	available_width = document.body.offsetWidth;
} else {
	available_width = 1024;
}

posLeft = 0;
posTop = 0;
theWidth = 793;
theHeight = 262;
//alert(parseInt(flash.version));
if(parseInt(flash.version) >=8){
	lcPlayer = "echsPress_4_585.swf?xposition=" + xposition;
}else{
	lcPlayer = "echsPress_4_585_7.swf?xposition=" + xposition;
}

if (flash.installed) {
	var lcText = "";
	lcText+=('<div style="/*border:1px solid red;position:absolute;top:' + posTop + 'px;left:' + posLeft + 'px;*/ z-index:1000; width:' + theWidth + 'px; height:' + theHeight + 'px;">');
	lcText+=('	<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=4,0,0,0" width="' + theWidth + 'px" height="' + theHeight + 'px" align="middle">');
	lcText+=('	<param name="allowScriptAccess" value="sameDomain" />');
	lcText+=('	<param name="movie" value="'+lcPlayer+'" />');
	lcText+=('	<param name="quality" value="high" />');
	lcText+=('	<param name="scale" value="noScale" />');
	lcText+=('	<PARAM NAME="bgcolor" VALUE="#ffffff">');
	lcText+=('	<PARAM NAME="wmode" VALUE="transparent">');
	lcText+=('	<embed src="'+lcPlayer+'" bgcolor="#ffffff" wmode="transparent" scale="noScale" quality="high" width="' + theWidth + 'px" height="' + theHeight + 'px" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />');

	lcText+=('	</object>');
	lcText+=('</div>');		
	//alert(lcText);
	document.write(lcText);
}else{
	//document.write('<div style="position:absolute;top:' + posTop + 'px;left:' + posLeft + 'px;z-index:100; width:' + theWidth + 'px; height:' + theHeight + 'px;"">');
	//document.write('  <img src="public/pictures/konfu_stattflash.jpg" border="0">');
	//document.write('</div>');		
}
