var flashTargetVersion=8;
var flashVersion=0;
if(navigator.plugins&&navigator.mimeTypes.length)/*FF*/
{	var sfo = navigator.plugins["Shockwave Flash"];
	flashVersion=(sfo&&sfo.description)? parseInt(sfo.description.replace(/([a-z]|[A-Z]|\s)+/,'')):-1;
}
else/*IE*/
{	try
	{	var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");
		for (var i=8; axo!=null; i++)
		{	axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);
			flashVersion=i;
		}
	}catch(e){}
}

loadFlash=function(id,src,img,width,height,transparent)
{	var p=navigator.platform.toLowerCase();
	var code='';
	if((flashVersion*1)>=flashTargetVersion)
	{	code='<embed src="'+src+'" quality="high"  width="'+width+'" height="'+height+'"  wmode="'+transparent+'" swLiveConnect=true id="'+id+'" name="'+id+'" align="middle" allowScriptAccess="sameDomain" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" />';
		document.getElementById(id).innerHTML=code;
		obj('background').off();
	}
}
