/* Swelen SWFInject 1.1 */
function SWFInject(eID,src,id,w,h,vers,params,vars) {
	var wao=window.ActiveXObject,o='',prs='',atr='',fvrs='',ar=new Array(),hw='hockwave';
	this.div=document.getElementById(eID);td=this.div;
	this.Check=function(v){
		var f,nv=navigator,ok=false;
		if(wao){
			try{f=new ActiveXObject(("S"+hw+"Flash.S"+hw+"Flash."+v));ok=true;} catch(e){}
		}else{
			if(nv.plugins && nv.mimeTypes.length>0){f=nv.plugins["S"+hw+" Flash"];if(f && f.description.replace(/.*([1-9]\d*\.\d+).*/,"$1")>=v){ok=true;}}
		}
		return ok;
	}
	if(td && this.Check(vers)){
		for(var i in params){prs+='<param name="'+i+'" value="'+params[i]+'">';atr+=' '+i+'="'+params[i]+'"';}
		for(var i in vars){ar[ar.length]=i+"="+escape(vars[i]);}
		fvrs=ar.join('&');
		o ='<object'+((wao)?' id="'+id+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" data="'+src+'"':'')+' width="'+w+'" height="'+h+'">';
		o+='<param name="wmode" value="transparent"><param name="movie" value="'+src+'">'+prs+'<param name="flashvars" value="'+fvrs+'">';
		o+='<embed id="'+id+'" wmode="transparent" src="'+src+'" type="application/x-s'+hw+'-flash" width="'+w+'" height="'+h+'"'+atr+' flashvars="'+fvrs+'"></embed>';
		o+='</object>';
		td.innerHTML=o;
	}
	return this;
} 
