var yoyiisIE=(document.all)?true:false;
		var Sysie6 = {};
        var uaie6 = navigator.userAgent.toLowerCase();
        var sie6;
        (sie6 = uaie6.match(/msie ([\d.]+)/)) ? Sysie6.ie = sie6[1] : 0;
		var isSafa=/Safari/i.test(navigator.userAgent)?true:false;
		var isMoz=false;
		if(document.getBoxObjectFor){
			isMoz=/firefox\\\\\/2/i.test(navigator.userAgent)?true:false;
		}
		var _=function (sId){
			return "string"==typeof(sId)?document.getElementById(sId):sId;
		};
		var Bind=function (object,fun){
			var args=Array.prototype.slice.call(arguments).slice(2);	
			return function (){
				return fun.apply(object,args.concat(Array.prototype.slice.call(arguments)));
			}
		};
		function addEventHandler(oTarget,sEventType,fnHandler){
			if(oTarget.addEventListener){
				oTarget.addEventListener(sEventType,fnHandler,false);
			}else if(oTarget.attachEvent){
				oTarget.attachEvent("on"+sEventType,fnHandler);
			}else {
				oTarget["on"+sEventType]=fnHandler;
			}
		};
		var YoYiFocus=function (){
			this._C="http://d.yoyi.tv/amp/2010/08/20/50C21F19_0FC3_F556_0737_8C3A8BD37E5C.swf";	
			this._F="http://d.yoyi.tv/amp/2010/08/20/53E11B75_3FC5_268F_748D_48712ECF7AD6.swf";	
			this._G=null;	
			this._H=[[1,0],[0,0]];	
			this._I=null;	
			this._J=new Date((new Date()).getTime()+0*60000);	
			this._K=0;	
			this._L=5;	
			this._M=Math.floor(Math.random()*(101));
			this._N="";	
			this._O=1;	
			this.oClient_url="";	
			this._P=0;	
			this._Q=new Date();	
			this._Q.setHours(this._Q.getHours()+24);	
			this.isBound=false;
		};
		YoYiFocus.prototype={
			__A:function (elementId,url,sign){
				if(document.getElementById(elementId)){
					var str="";			
					if(yoyiisIE){
						str+='<OBJECT classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" WIDTH="100%" HEIGHT="100%"  ALIGN="" id="oflash">';				
						str+='<PARAM NAME="movie" VALUE="'+url+'"/>';				
						str+='<PARAM NAME="quality" VALUE="high"/>';				
						str+='<PARAM NAME="loop" VALUE="false"/>';				
						str+='<PARAM NAME="wmode" VALUE="transparent"/>';				
						str+='<PARAM NAME="allowscriptaccess" VALUE="always"/>';				
						str+='<PARAM NAME="flashvars" VALUE="jsFunName=yoyi_focus.GetFlashCommand"/>';				
						str+='</OBJECT>';				
						if(Sysie6.ie=="6.0"){
							str+='<iframe style="position:absolute;top:0;left:0;width:100%;height:100%;z-index:-1;filter:alpha(opacity=0);"></iframe>';
						}
					}else {
						str+='<EMBED NAME="videofm" src="'+url+'" flashvars="jsFunName=yoyi_focus.GetFlashCommand" swLiveConnect="true" quality="high" z-index="13000" loop="false" allowscriptaccess="always"  wmode="transparent" WIDTH="100%" HEIGHT="100%" ALIGN="" TYPE="application/x-shockwave-flash" PLUGINSPAGE="http://www.macromedia.com/go/getflashplayer"></EMBED>';
					}
					if(sign){
						if(this._L>this._M){
							var oiframe=document.createElement('iframe');					
							oiframe.style.width="0px";					
							oiframe.style.height="0px";
							oiframe.style.border="0px";						
							oiframe.id="yoiframe";					
							document.body.appendChild(oiframe);
						}
					}
					document.getElementById(elementId).innerHTML=str;	
				}
			},
			__B:function (){
				
				this._R.style.top=dou.scrollTop+dou.clientHeight-parseInt(this._R.offsetHeight,10)+"px";		
				this._R.style.left=dou.scrollLeft+dou.clientWidth-parseInt(this._R.offsetWidth,10)+"px";		
				
			},
			__C:function (){
				
				document.write("<img id='focus_log_img' style='width:0px;height:0px' />");		
				document.write("<img id='client_log_img' style='width:0px;height:0px'/>");		
				document.write("<div id='focus_maxdiv' style='width:"+330+"px;height:"+290+"px;z-index:9999999999;overflow:hidden;'></div>");		
				this._R=_("focus_maxdiv");		
				var oThis=this;		
				this._R.style.position=(!(Sysie6.ie=="6.0"))?"fixed":"absolute";		
				if(!(Sysie6.ie=="6.0")){
					window.setInterval(function (){
						oThis._R.style.right="0px";				
						oThis._R.style.top=dou.clientHeight-parseInt(oThis._R.offsetHeight,10)+"px";
					},
					10);
				}else {
					this._R.style.right="0px";			
					this._R.style.top=dou.clientHeight-parseInt(oThis._R.offsetHeight,10)+"px";			
					window.setInterval(oThis._fixMaxContainer,10);
				}
				
			},
			__D:function (){
				
				document.write("<div id='focus_mindiv' style='width:"+80+"px;height:"+80+"px;z-index:9999999999;overflow:hidden;'></div>");		
				this._S=_("focus_mindiv");		
				var oThis=this;		
				this.__A("focus_mindiv",this._F);		
				this._S.style.position=!(Sysie6.ie=="6.0")?"fixed":"absolute";		
				switch(this._H[0][0]){
					case 1:
					this._S.style.right=parseInt(this._H[0][1])+"px";			
					break;			
					case 0:
					this._S.style.left=parseInt(this._H[0][1])+"px";			
					break;			
					default:
					this._S.style.right="0px";
				}
				switch(this._H[1][0]){
					case 1:
					this._S.style.top=parseInt(this._H[1][1])+"px";			
					break;			
					case 0:
					this._S.style.bottom=parseInt(this._H[1][1])+"px";			
					break;			
					default:
					this._S.style.top="0px";
				}
				if(Sysie6.ie=="6.0"){
					window.setInterval(oThis._fixMinContainer,10);
				}
			},
			__E:function (sche,datatime){
				if(this._P<=this._O){
				    this._I = "http://amps.yoyi.com.cn/amp/PlayAd?aid=28AADDD5&mid=50C21F19_0FC3_F556_0737_8C3A8BD37E5C&aps="+sche+"&tsp="+ datatime;
					document.getElementById("focus_log_img").src=this._I;
				}
			},
			__K:function (datatime){
				this._G = "http://amps.yoyi.com.cn/amp/ClickAd?aid=28AADDD5&mid=50C21F19_0FC3_F556_0737_8C3A8BD37E5C&tsp="+datatime+"&turl=http%3A%2F%2F211.94.190.80%2Fhtml.ng%2Fparams.styles%3Dclickcmd%26adspec%3DFlash%26adtype%3Dpip%26affiliate%3DYo-focus%26campaignid%3D2648%26channel%3DF1%26log%3D0%3F";	
			},
			__F:function (){
				if(this._H[1][0]){
					this.StartPoint=parseInt(this._S.style.top,10);			
					this.EndPoint=dou.scrollTop+this._H[1][1];			
					if(this.StartPoint!=this.EndPoint){
						this.ScrollAmount=Math.abs(this.EndPoint-this.StartPoint);				
						this._S.style.top=parseInt(this._S.style.top,10)+((this.EndPoint<this.StartPoint)?-this.ScrollAmount:this.ScrollAmount)+"px";
					}
				}else {
					this._S.style.top=(dou.clientHeight+dou.scrollTop-this._S.offsetHeight-this._H[1][1])+"px";			
					if(this._H[0][0]==1){
						this._S.style.left=(dou.scrollLeft+dou.clientWidth-this._S.offsetWidth-this._H[0][1])+"px";
					}else {
						this._S.style.left=(dou.scrollLeft+this._H[0][1])+"px";
					}
				}	
			},
			__J:function (sUrl){
				this.r=document.documentElement;		
				this.f=document.createElement("FORM");		
				this.f.target="_blank";		
				this.f.method="post";		
				this.r.insertBefore(this.f,this.r.childNodes[0]);		
				var ranUrl="?a="+Math.ceil(Math.random()*100);		
				if(isSafa){
					this.f.action=sUrl+ranUrl;
				}else {
					this.f.action=sUrl;	
				}
				this.f.submit();
			},
			__G:function (){
				this._R.style.display="none";		
				this._R.innerHTML="";		
				this._S.style.display="block";
			},
			GetFlashCommand:function (command,params){
				
				var oThis=this;	
				if(!params){
					params={time:0}
				}
				if(!params.time){
					params.time=-1;
				}
				this.__K(params.time);
				switch(command.toLowerCase()){
					case "play":
					this.__E("play", params.time);			
					break;			
					case "replay":
					this.__E("replay", params.time);			
					window.setTimeout(function (){oThis.__E("0", params.time);},1000);			
					break;			
					case "pause":
					this.isBound=false;			
					this.__E("pause", params.time);			
					break;			
					case "open":
					this.__E("0", params.time);
					if(this.oClient_url!="")
					{
					_("client_log_img").src=this.oClient_url+"?"+new Date().getTime();	
					}	
					_('yoiframe').src=this._G;		
					break;			
					case "closesmall":
					this.__E("-2", params.time);			
					this._R.style.display="none";			
					this._S.style.display="none";			
					break;			
					case "repeat":
					this.__E("repeat", params.time);			
					this._P++;			
					if(isSafa){
						window.setTimeout(function (){
							oThis._S.style.display="none";					
							oThis._R.style.display="block";
						},
						10)
					}else {
						this._S.style.display="none";				
						this._R.style.display="block";
					}
					this.__A("focus_maxdiv",this._C);			
					break;			
					case "close":
					this.__E("-1", params.time);			
					if(isMoz||isSafa){
						window.setTimeout(function (){oThis.__G();},10)
					}else {
						this.__G();
					}
					break;			
					case "link":			
					this.__J(this._G);		
					break;			
					case "pos50":
					this.__E("50", params.time);			
					break;			
					case "pos100":
					this.__E("100", params.time);			
					isBound=true;			
					break;			
					case "autoclose":

					if(isMoz||isSafa){
						window.setTimeout(function (){oThis.__G();},10);
					}else {
						this.__G();
					}
					break;			
					case "share":
					this.__E("share", params.time);			
					this.__J("mailto:?subject=%B1%EA%CC%E2%A3%BA%CD%C6%BC%F6%BE%AB%C3%C0Flash&body=%C4%DA%C8%DD%A3%BA%C4%FA%B5%C4%BA%C3%D3%D1%CE%AA%C4%FA%CD%C6%BC%F6%C1%CB%D2%BB%B8%F6Flash%B6%CC%C6%AC%2C%C4%FA%BF%C9%D2%D4%B5%E3%BB%F7%C8%E7%CF%C2%B5%D8%D6%B7%D0%C0%C9%CD%3A"+window.location);			
					break;			
					case "download":
					this.__E("download", params.time);			
					this.__J(this._C);			
					break;
				}
			},
			__H:function (name,value,expires,domain){
				document.cookie=name+"="+escape(value)+((expires)?";expires="+expires.toGMTString():"")+((domain)?";domain="+domain:"");
			},
			__I:function (name){
				var arr=document.cookie.match(new RegExp("(^| )"+name+"=([^;]*)(;|$)"));		
				if(arr!=null)return unescape(arr[2]);		
				return null;
			},
			Init:function (){
				var oThis=this;		
				var _d=document.compatMode=="BackCompat"?dou=document.body:dou=document.documentElement;		
				if(Sysie6.ie=="6.0"){
					this._fixMaxContainer=Bind(this,
					function (){
						this.__B();
					});			
					this._fixMinContainer=Bind(this,
					function (){
						this.__F();
					})
				}
				this._N=(this._N=="")?"":("."+this._N);		
				var _T=this.__I("crazy_28AADDD5_cookie_time_sign");		
				var _U=0;		
				_U=this.__I("crazy_28AADDD5_cookie_count_sign");		
				if(_U==null){
					this.__H("crazy_28AADDD5_cookie_count_sign","1",this._Q,this._N);
				}else if(_T==null){
					_U=Number(_U)+1;			
					this.__H("crazy_28AADDD5_cookie_count_sign",_U,this._Q,this._N);
				}
				this.__D();		
				this._S.style.display="none";		
				this.__C();		
				if((this._K==0)&&(_T==null)){
					this.__A("focus_maxdiv",this._C,"theLinkSign");			
					this.__H("crazy_28AADDD5_cookie_time_sign","1",this._J,this._N);
				}else {
					if((_U<=this._K)&&(_T==null)){
						this.__A("focus_maxdiv",this._C,"theLinkSign");				
						this.__H("crazy_28AADDD5_cookie_time_sign","1",this._J,this._N);
					}else {
						this.__G();
					}
				}
			}
		};
		var yoyi_focus=new YoYiFocus();
		yoyi_focus.Init();