fo=function(nm,ls,hs,tp){this.gb(getCookie("bw"));this.sd(ls,hs);this.width=w;this.height=h;this.swf=this.ss(nm,tp);this.id="flashvideo";this.align="middle";this.ps=new Object();this.vs=new Object();this.ap('quality','high');}
fo.prototype.gb=function(bs){
	bw=bs;
	if(bw==null)
	location.replace("detect.html?"+location.href);
	setCookie("t","1");
	if(getCookie("t")==null||getCookie("bw")==null)
	bw=document.location.search.substring(1);
}
fo.prototype.sd=function(ls,hs){tmp=ls.split("x");lw=tmp[0];lh=tmp[1];tmp=hs.split("x");hw=tmp[0];hh=tmp[1];if(bw.search("high")!=-1){w=hw;h=hh;}else{w=lw;h=lh;}}
fo.prototype.ss=function(nm,tp){
	p="assets/flash/";
	if(tp=="swf")
	sn=p+nm+"_"+bw+".swf";
	else 
	sn=p+"fsplayer.swf?flv="+nm+"_"+bw+".flv";
	return sn;
}
fo.prototype.ap=function(nm,value){this.ps[nm]=value;}
fo.prototype.gps=function(){return this.ps;}
fo.prototype.gp=function(nm){return this.ps[nm];}
fo.prototype.av=function(nm,value){this.vs[nm]=value;}
fo.prototype.gv=function(nm){return this.vs[nm];}
fo.prototype.gvs=function(){return this.vs;}
fo.prototype.gpt=function(){var pt="";for(var param in this.gps()){pt+='<param nm="'+param+'" value="'+this.gp(param)+'" />';}if(pt==""){pt=null;}return pt;}
fo.prototype.gh=function(){var fh="";if(window.ActiveXObject&&navigator.userAgent.indexOf('Mac')==-1){fh+='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" align="'+this.align+'">';fh+='<param name="movie" value="'+this.swf+'" />';if(this.gpt()!=null){fh+=this.gpt();}
if(this.gvp()!=null){fh+='<param name="flashVars" value="'+this.gvp()+'" />';}fh+='</object>';}else{fh+='<embed type="application/x-shockwave-flash" src="'+this.swf+'" width="'+this.width+'" height="'+this.height+'" id="'+this.id+'" align="'+this.align+'"';for(var param in this.gps()){fh+=' '+param+'="'+this.gp(param)+'"';}
if(this.gvp()!=null){fh+=' flashVars="'+this.gvp()+'"';}fh+='></embed>';}return fh;}
fo.prototype.gvp=function(){var vp=new Array();for(var nm in this.gvs()){vp.push(nm+"="+this.gv(nm));}if(vp.length>0){return vp.join("&");}else{return null;}}
fo.prototype.write=function(elementId){if(elementId){document.getElementById(elementId).innerHTML=this.gh();}else{document.write(this.gh());}}
if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}