/*
 *  updated at 2008-10-13 10:38:31 by zqm @ 对联分开时关闭也分开
 * 
 */
if(ADM_INCLUDED!==1){
	
	var _SoAD_E=isIE=(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length)?0:1,_S1,_S2,_S3,_S4,_S5,_S6,_S7,_S8,_A=_B=_X=_Y=0,_C,_D,_E,_F,_G,_H,_V,_W,_I=(isIE)?1:0.75,_J=(isIE)?"px":"pt",_SoAD_h=_K="<script type='text/javascript'",_SoAD_t=_L="</script>",_SoAD_Load=_N=false,_SoAD_S=_SoAD_R=_O=_P=new Array(),_SoAD_N="ADAREA",_SoAD_d=_M=(document.compatMode=="CSS1Compat")?document.documentElement:document.body,_R="http://images.sohu.com/cs/jsfile/img/",_S=_R+"bg.jpg",_T=_R+"r2.jpg",_U=_R+"r1.jpg";	
    var _TFTright, _TFLright, _TFTleft, _TFLleft;// 触发式悬停漂浮
	function IsBig(){
		return (_M.clientWidth-cWidth)>240;
		
	}
	function IsPan(){
		return (screen.width-cWidth)>240;
		
	}
	function IsDe(a){
		return !(typeof(a)=="undefined");
		
	}
	function GetID(a){
		if(document.getElementById&&document.getElementById(a)){
			return document.getElementById(a);
			
		}else {
			if(document.all&&document.all(a)){
				return document.all(a);
				
			}else {
				if(document.layers&&document.layers[a]){
					return document.layers[a];
					
				}
			}
		}
	}
	function _SoAD_Paraminit(){
		switch(document.compatMode){
			case "BackCompat":_M=document.body;
			break;
			case "CSS1Compat":_M=document.documentElement;
			break;
			default:_M=document.body;
			
		}
	}
	function _SoAD_init(){
		if(!_M){
			_SoAD_Paraminit();
			
		}if(_N){
			return ;
			
		}
		_N=!_N;
		_O.sort(function (a,b){
			return (a.p>b.p)?1:((a.p==b.p)?0:-1);
		});//order by priority
		DoSchedule();
		
	}
	function _SoAD_exec(o){
		if(eval("typeof("+o.t+"_main)")=="function"){
			eval(o.t+"_main(o)");
			
		}
	}
	function AddSchedule(o){
		if(o&&o instanceof ADM){
			switch(o.t){
				case "FULL":case "POPUNDER":case "BEITOU":
					if(o.src.length>0){
						_O.push(o);					
					}
					break;
				case "FLOAT":case "BOOKTURN":case "TFLOAT":
					if(o.src||o.src2){
						_O.push(o);
					}
					break;
				case "LIUMEITI":
					if(o.src){
					_O.push(o);
					}
					break;
				case "COUPLET":
					if(o.src.length>0||o.src2.length>0){
					_O.push(o);
					}
					break;
				default:_O.push(o);
			}
		}
		if(!isIE){
			document.write(_K+">function _"+o.id+"_DoFSCommand(command,args){_SoAD_DoFSCommand(command,args);}"+_L);
			
		}
		if(!isIE&&!IsPan()){
			document.write(_K+">function _"+o.id+"TG_DoFSCommand(command,args){_SoAD_DoFSCommand(command,args);}"+_L);
			
		}
		if(!isIE&&IsDe(o.src2)){
			document.write(_K+">function _"+o.id+"2_DoFSCommand(command,args){_SoAD_DoFSCommand(command,args);}"+_L);
			
		}
		if(!isIE&&IsDe(o.src2)&&!IsPan()){
			document.write(_K+">function _"+o.id+"2TG_DoFSCommand(command,args){_SoAD_DoFSCommand(command,args);}"+_L);
			
		}
	}
	function ADM(a,b){
		this.t=a;//type
		this.p=b;//priority
		this.s=0;//stop
		this.style="position:absolute;";
		this.id=a;//default id
		this.id2=a+"2";// default id2
		
	}
	function DoSchedule(){
		var p=-1;
		for(var i=0;i<_O.length;i++){
			switch(_O[i].s){
				case 0:
					if(p==-1){
						p=_O[i].p;
					}
					if(p==_O[i].p){
						_O[i].s=1;
						_SoAD_exec(_O[i]);
						break; 					
					}
				case 1:
					setTimeout("DoSchedule()",300);
				return ;
				default:
			}
		}
	}
	function WriteAd(s){
		var a=document.createElement("div");
		with(GetID(_SoAD_N)){
			if(isIE){
				insertAdjacentElement("afterBegin",a);
				
			}else {
				appendChild(a);
				
			}
		}a.innerHTML=s;
		a=null;
		
	}
	function _SoAD_Media(o,i,a,w,h,u,m){
		var s;
		if(/\.(swf)/i.test(a)){
			if(isIE){
				s="<object id='"+((o.noDiv)?"":"_")+i+"' width='"+w+"' height='"+h+"'"+((o.noDiv)?"style="+o.style:"");
				s+=" classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' ";
				s+="codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=";
				s+=IsDe(o.ver)?o.ver:"7,0,0,0";
				s+="'><param name='movie' value='"+a+"'>";
				if(IsDe(o.wmode)){
					s+="<param name='wmode' value='"+o.wmode+"'>";
					
				}if(IsDe(o.loop)){
					s+="<param name='loop' value='"+o.loop+"'>";
					
				}
				var arr=[];
				s+="<param name='quality' value='autohigh' LiveConnect='true'>";
				if (IsDe(m) && m!="" || u!="" ) {
					s+="<param name='flashvars' value='";
					if (u!="") {
						arr.push("clickthru="+u+"&gourl="+u);
					}
					if (IsDe(m) && m!="") {
						arr.push("src="+m);
					}
					s+=arr.join('&') + "'>";
				}
				s+="<param name='allowScriptAccess' value='always'></object>";
				
			}else {
				s="<embed id='"+((o.noDiv)?"":"_")+i+"' name='_"+i+"' "+((o.noDiv)?"style="+o.style:"")+"src='"+a+"'"+" quality='autohigh'  allowScriptAccess='always'";
				s+="' width='"+w+"' height='"+h+"' ";
				if(IsDe(o.wmode)){
					s+=" wmode='"+o.wmode+"'";
					
				}if(IsDe(o.loop)){
					s+=" loop='"+o.loop+"'";
					
				}
				var arr=[];
				if (IsDe(m) && m!="" || u!="" ) {
					s+=" flashvars='";
					if (u!="") {
						arr.push("clickthru="+u+"&gourl="+u);
					}
					if (IsDe(m) && m!="") {
						arr.push("src="+m);
					}
					s+=arr.join('&') + "'";
				}				
				s+=" type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash' swLiveConnect='true'></embed>";
			}
		}else {
			if(/\.(jpe?g|png|gif)$/i.test(a)){
				if(u!=""){
					s="<a href='"+((u==null)?"":u)+"' target='_blank'><img src='"+a+"' border='0' width='"+w+"' height='"+h+"'></a>";
					
				}else {
					s="<img src='"+a+"' border='0' width='"+w+"' height='"+h+"'>";
					
				}
			}
		}return s;
		
	}
	function ADM_Check(o,a,e){
		
		var n,v;
		var f=IsDe(e)?e:((o.CookieHour)?o.CookieHour:24);		
		var b=IsDe(a)?a:((o.CookieNum)?o.CookieNum:Number.MAX_VALUE);		
		var c=IsDe(a)?"_"+o.id:o.id;		
		n=(o.CookieName)?(c+o.CookieName):c;		
		v=(o.CookieDomain)?new ADCookie(document,n,f,"/",o.CookieDomain):new ADCookie(document,n,f);		
		v.load();		
		if(v.w==null){
			
			v.w=0;			
			
		}
		v.w++;		
		if(v.w<=b){
			
			v.store();			
			return false;			
			
		}
		return true;		
		
	}
	function _SoAD_DoFSCommand(a,b){
		var c=null;
		if(a&&(eval("typeof(_SoAD_"+a+")")!="function")){
			return ;
			
		}if(_SoAD_DoFSCommand.caller){
			c=_SoAD_DoFSCommand.caller.toString ();
			c=c.substring(9,c.indexOf("(")).replace("_DoFSCommand","");
			
		}if(c=="anonymous"){
			c=b;
			
		}if(!c&&isIE){
			return ;
			
		}if(a=="quit"){
			return ;
			
		}if(a&&a!=""&&eval("typeof(_SoAD_"+a+")")=="function"){
			eval("_SoAD_"+a+"('"+b+"')");
			
		}else {
			_SoAD_hide(c);
			
		}
	}
	function isOver(a){
		for(var b=0;b<_O.length;b++){
			if(_O[b].id==a){
				_O[b].s=2;
				return ;
				
			}
		}
	}
	function _SoAD_hide(a){
		
		if(!GetID(a)){
			return ;
			
		}
		GetID(a).style.display="none";		
		if(a=="fullscreenad"){
			if(!isIE){
				GetID(a).style.display="none";
				
			}a="FULL";
			
		}
		for(var b=0;b<_O.length;b++){
			if(_O[b].id==a){
				
				if(IsDe(_O[b].ret)){
					
					clearTimeout(_O[b].ret);					
					
				}
				_O[b].s=2;
				return ;
				
			}
			
		}
		
	}
	function _SoAD_quit(a){
		if(!GetID(a)){
			return ;
			
		}
	}
	function _SoAD_show(a){
		if(!GetID(a)){
			return ;
		}if(a=="FLOAT"&&!IsPan()&&_A==0&&(GetID(a+"TG")!=null)){
			GetID(a+"TG").style.display="block";
			_E=setTimeout("_SoAD_hide('"+a+"');_A=1;",8000);
			
		}if(a=="FLOAT2"&&!IsPan()&&_B==0&&(GetID(a+"TG")!=null)){
			GetID(a+"TG").style.display="block";
			_F=setTimeout("_SoAD_hide('"+a+"');_A=1;",8000);
			
		}if(a=="COUPLET"&&!IsPan()&&_X==0&&(GetID(a+"TG")!=null)){
			GetID(a+"TG").style.display="block";
			_V=setTimeout("_SoAD_hide('"+a+"');_X = 1;",15000);
			
		}if(a=="COUPLET2"&&!IsPan()&&_Y==0&&(GetID(a+"TG")!=null)){
			GetID(a+"TG").style.display="block";
			_W=setTimeout("_SoAD_hide('"+a+"');_Y = 1;",15000);
			
		}if(a=="COUPLET2" && GetID('COUPLET1')) {
			var b =	'COUPLET1';
			if (GetID(b+"TG")) {
				GetID(b+"TG").style.display="block";
			}
			_V=setTimeout("_SoAD_hide('"+b+"');_X = 1;",15000);
			if (GetID(b)) {
				GetID(b).style.display="block";
			}
		}
		GetID(a).style.display="block";
		
		// wangwei add
		if(a=="COUPLET" && GetID("DUILIAN")){
			_SoAD_show1("DUILIAN");
		}		
		if(a=="COUPLET2" && GetID("DUILIAN2")){
			_SoAD_show1("DUILIAN2");
		}	
	}
	function _SoAD_show1(a){
		if(a=="DUILIAN"&&!IsPan()&&_X==0&&(GetID(a+"TG")!=null)){
			GetID(a+"TG").style.display="block";
			_V=setTimeout("_SoAD_hide('"+a+"');_X = 1;",15000);
			
		}if(a=="DUILIAN2"&&!IsPan()&&_Y==0&&(GetID(a+"TG")!=null)){
			GetID(a+"TG").style.display="block";
			_W=setTimeout("_SoAD_hide('"+a+"');_Y = 1;",15000);
			
		}
		GetID(a).style.display="block";
	
	}

	function _SoAD_play(a){
		if(GetID(a)){
			GetID("_"+a).Play();
			
		}
	}
	function _SoAD_replay(a){
		if(!GetID(a)){
			return ;
			
		}
		if(a.indexOf(a)!=-1){
			for(var i=0;i<_O.length;i++){
				if(_O[i].id==a){
					var p,l;
					p=_M.scrollTop+_O[i].top;
					l=_M.scrollLeft+_O[i].left;
					if(_O[i].position=="absolute"){
						p=_O[i].top;
						l=_O[i].left;
						
					}
					p=parseInt(p);
					l=parseInt(l);
					p=parseInt(_I*p)+_J;
					l=parseInt(_I*l)+_J;
					if(IsDe(_O[i].ret)){
						clearTimeout(_O[i].ret);
						
					}if(_O[i].timeout!="MAX"){
						if(IsDe(_O[i].control)){
							_O[i].ret=setTimeout(_O[i].op,IsDe(_O[i].timeout)?parseInt(_O[i].timeout):8000);
							
						}else {
							_O[i].ret=setTimeout("_SoAD_hide('"+a+"')",IsDe(_O[i].timeout)?parseInt(_O[i].timeout):8000);
							
						}
					}if(isIE){
						GetID(a).innerHTML=_O[i].code;
						
					}
				}
			}
		}
		p=parseInt(p);
		l=parseInt(l);
		if(p){
			GetID(a).style.top=parseInt(_I*(p)) + _J;
			
		}
		if(l){
			GetID(a).style.left=parseInt(_I*(l)) + _J;
			
		}
		GetID("_"+a).style.display="block";
		GetID(a).style.display="block";
		
	}
	function _SoAD_FSCommand(I){
		if(isIE){
			return _K+" for='_"+I+"' event='FSCommand(command,args)'>var _s"+I+"='_"+I+"';_SoAD_DoFSCommand(command,((args&&args!=''&&eval(\"typeof(_SoAD_\"+command+\")\")==\"function\")?args:_s"+I+"));"+_L;
			
		}return "";
		
	}
	function FLOAT2_DoFSCommand(a,b){
		_SoAD_DoFSCommand(a,b);
		
	}
	function BOOKTURN2_DoFSCommand(c,a){
		_SoAD_DoFSCommand(c,a);
		
	}
	function FULL_main(o){
		if(ADM_Check(o)){
			o.s=2;
			return ;
		}
		var a=false;
		o.width=IsDe(o.width)?o.width:cWidth;
		o.height=IsDe(o.height)?o.height:480;
		o.insight=IsDe(o.insight)?o.insight:false;
		o.delay=IsDe(o.delay)?o.delay:0;
		if(o.StartTime.length==o.EndTime.length&&o.EndTime.length==o.src.length&&o.src.length==o.href.length){
			for(var i=0;i<o.src.length;i++){
				var s,e,n;
				s=new Date(o.StartTime[i]);
				e=new Date(o.EndTime[i]);
				n=new Date();
				if((s<=e)&&(n<e)&&(n>=s)){
					var b=GetID("FULL");
					if (b==null) {b = document.createElement('div');b.style.width=cWidth+'px';b.style.display='none';b.id='FULL';document.body.insertBefore(b,document.body.firstChild);}
					if(b!=null){
						if(o.insight){
							self.scroll(0,0);
							
						}b.style.display="block";
						o.src=o.src[i];
						o.href=o.href[i];
						b.innerHTML="<div id="+o.id+">"+_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href)+"</div>";
						a=!a;
						setTimeout("_SoAD_hide('FULL')",IsDe(o.timeout)?o.timeout:7000);
						return ;
						
					}else {
						o.s=2;
						return ;
						
					}
				}
			}if(!a){
				_SoAD_hide("FULL");
				
			}
		}
	}
	//function FULL_main(o){
	//    if(ADM_Check(o)){o.s=2;return;}
	//    var a=false;
	//    o.width=IsDe(o.width)?o.width:cWidth;
	//    o.height=IsDe(o.height)?o.height:480;
	//    o.insight=IsDe(o.insight)?o.insight:false;
	//    o.delay=IsDe(o.delay)?o.delay:0;
	//	var s,e,n;
	//	s=new Date(o.StartTime);
	//	e=new Date(o.EndTime);
	//	n=new Date();
	//	if((s<=e)&&(n<e)&&(n>=s)){
	//		var b=GetID(o.div);
	//		if(b!=null){
	//			if(o.insight){
	//				self.scroll(0,0);
	//			}
	//			b.style.display="block";
	//			o.style="";
	//			b.innerHTML=_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href);
	//			a=!a;
	//			setTimeout("_SoAD_hide('"+o.div+"')",IsDe(o.timeout)?o.timeout:7000);
	//			return;
	//		} else{
	//			o.s=2;return;
	//		}
	//		if(!a){
	//			_SoAD_hide(o.div);
	//		}
	//	}
	//}
	
	function POP_STRUCT(o){
		var i,h,l,t;
		o.delay=IsDe(o.delay)?o.delay:0;
		setTimeout("isOver('"+o.id+"')",o.delay);
		i=(o.superad)?(screen.width-9):((IsDe(o.width)?o.width:350)-4);
		h=(o.superad)?(screen.height-56):((IsDe(o.height)?o.height:250)-4);
		l=screen.width+10;
		t=screen.height+10;
		return window.open("about:blank","","toolbar=no,location=no,directories=no,status=no,menubar=no,scrollbars=no,width="+i+",height="+h+",top="+t+",left="+l);
		
	}
	function POP_WINDOW(o){
		var a="<html><head><meta http-equiv='content-type' content='text/html; charset=gb2312'><title>";
		a+=(o.title)?o.title:((o.superad)?("FOCUS.cn \u80cc\u6295\u5e7f\u544a"):("FOCUS.cn "+o.t+" Ad"));
		a+="</title>";
		a+=_K+">";
		a+=_L;
		a+="</head><body scroll=no style='margin:0;border:none'>";
		a+="<iframe id='iFrame' ";
		a+=" marginwidth=0 marginheight=0 hspace=0 vspace=0 frameborder=0 scrolling=no width=100% height=100% src='"+o.src+"'>wait</iframe>";
		a+="</body></html>";
		return a;
		
	}
	function POPUNDER_main(o){
		if(ADM_Check(o)){
			o.s=2;
			return ;
			
		}
		var i=getSrcIdx(o.id,o.turns);
		o.src=o.src[i];
		if(IsDe(o.src)){
			var a=POP_STRUCT(o);
			if(a){
				if(isIE){
					a.blur();
					
				}else {
					a.opener.focus();
					
				}
				a.moveTo((IsDe(o.left)?o.left:0),(IsDe(o.top)?o.top:0));
				a.document.write(POP_WINDOW(o));
				
			}
		}else {
			o.s=2;
		}
	}
	function BEITOU_main(o){
		o.superad=true;
		POPUNDER_main(o);
		
	}
	function FLOAT_main(o){
		if (!(/IE 6\.0/.test(navigator.userAgent)) && o.fixed) {
			o.style = 'position:fixed;';
		}
		if(ADM_Check(o)){
			o.s=2;
			return ;
			
		}var a=false,b=false;
		for(var i=0;i<_O.length;i++){
			switch(_O[i].t){
				case "BOOKTURN":a=!a;
				break;
				case "COUPLET":b=!b;
				break;
				default:break;
				
			}
		}if(!o.href){
			o.href="";
			
		}if(!o.href2){
			o.href2="";
			
		}o.wmode="opaque";
		o.wmode2="opaque";
		tmp=(a&&b)?0:20;
		o.width=IsDe(o.width)?o.width:100;
		o.height=IsDe(o.height)?o.height:100;
		o.top=IsDe(o.top)?o.top-_M.clientHeight:(-tmp-o.width-20);
		o.width2=IsDe(o.width2)?o.width2:100;
		o.height2=IsDe(o.height2)?o.height2:100;
		o.top2=IsDe(o.top2)?o.top2-_M.clientHeight:(-tmp-o.height2-20);
		o.delay=IsDe(o.delay)?o.delay:0;
		var d="",e="",f="",g="";
		if(o.replay){
			var c=o.replay.split(";");
			if(c.length>1){
				d=c[0].split(":")[0];
				e=c[0].split(":")[1];
				f=c[1].split(":")[0];
				g=c[1].split(":")[1];
				
			}else {
				d=c[0].split(":")[0];
				e=c[0].split(":")[1];
				f=c[0].split(":")[0];
				g=c[0].split(":")[1];
				
			}
		}if(!IsPan()&&IsDe(o.tag)){
			o.tag=(o.tag!="")?o.tag:(d=="LEFT"?_U:_T);
			
		}if(!IsPan()&&IsDe(o.tag2)){
			o.tag2=(o.tag2!="")?o.tag2:(d=="RIGHT"?_U:_T);
			
		}o.framestyle=(o.framestyle)?o.framestyle:o.style;
		o.framestyle2=(o.framestyle2)?o.framestyle2:o.style;
		o.txtButton=IsDe(o.txtButton)?o.txtButton:true;
		o.txtButton2=IsDe(o.txtButton2)?o.txtButton2:true;
		var s="";
		if(o.src&&o.src!=""){
			if(o.txtButton){
				s+=TxtShow(o,o.id,o.src,o.width,o.height,o.href,o.framestyle,"left",d,"float_replay('"+e+"','"+o.id+"','"+d+"')","close_float('"+o.id+"')");
				
			}else {
				s+="<div style=\""+o.framestyle+"z-index:10;\" id="+o.id+">"+_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href)+"</div>";
				
			}if(!IsPan()&&IsDe(o.tag)){
				if(d!="LEFT"){
					_E=setTimeout("_SoAD_hide('"+o.id+"');_A=1;",8000);
					
				}o.wmode="transparent";
				if(d=="LEFT"){
					s1="float_replay('"+e+"','"+o.id+"','"+d+"')";
					
				}else {
					s1="_SoAD_show('"+o.id+"');clearTimeout(_G);_A=2;";
					
				}s+="<div onclick=\"javascript:"+s1+"\" style=\""+o.framestyle+"z-index:0;\" id="+o.id+"TG>"+_SoAD_Media(o,o.id+"TG",o.tag,20,o.height,"")+"</div>";
				o.wmode=null;
				
			}
		}if(o.src2&&o.src2!=""){
			if(o.txtButton2){
				s+=TxtShow(o,o.id2,o.src2,o.width2,o.height2,o.href2,o.framestyle2,"right",f,"float_replay('"+g+"','"+o.id2+"','"+f+"')","close_float('"+o.id2+"')");
				
			}else {
				s+="<div style=\""+o.framestyle2+"z-index:10;\" id="+o.id2+">"+_SoAD_Media(o,o.id2,o.src2,o.width2,o.height2,o.href2)+"</div>";
				
			}if(!IsPan()&&IsDe(o.tag2)){
				if(f!="RIGHT"){
					_F=setTimeout("_SoAD_hide('"+o.id2+"');_B=1;",8000);
					
				}o.wmode="transparent";
				if(f=="RIGHT"){
					s1="float_replay('"+g+"','"+o.id2+"','"+f+"')";
					
				}else {
					s1="_SoAD_show('"+o.id2+"');clearTimeout(_H);_B=2;";
					
				}s+="<div onclick=\"javascript:"+s1+"\" style=\""+o.framestyle2+"z-index:0;\" id="+o.id2+"TG>"+_SoAD_Media(o,o.id2+"TG",o.tag2,20,o.height2,"")+"</div>";
				o.wmode=null;
				
			}
		}if(!o.txtButton){
			s+=_SoAD_FSCommand(o.id);
			
		}if(!o.txtButton2){
			s+=_SoAD_FSCommand(o.id2);
			
		}if(s!=""){
			WriteAd(s);
			if(!IsPan()&&o.src&&IsDe(o.tag)){
				AttachEvent(GetID(o.id+"TG"),"mouseover",function (){
					_G=setTimeout("if(_A!=2){_SoAD_show('"+o.id+"');_A=2;}",3000);
					
				});
				
			}if(!IsPan()&&o.src2&&IsDe(o.tag2)){
				AttachEvent(GetID(o.id2+"TG"),"mouseover",function (){
					_H=setTimeout("if(_B!=2){_SoAD_show('"+o.id2+"');_B=2;}",3000);
					
				});
				
			}
			_S1=GetID(o.id);
			_S2=GetID(o.id2);
			_S3=GetID(o.id+"TG");
			_S4=GetID(o.id2+"TG");
			if (!(/IE 6\.0/.test(navigator.userAgent)) && o.fixed == true ) {
				window.setTimeout("FLOAT_position("+o.top+","+(IsDe(o.left)?o.left:0)+","+o.top2+","+(IsDe(o.left2)?o.left2:-o.width2)+","+o.width+")",400);
			}
			else {
				window.setInterval("FLOAT_position("+o.top+","+(IsDe(o.left)?o.left:0)+","+o.top2+","+(IsDe(o.left2)?o.left2:-o.width2)+","+o.width+")",400);
			}
		}
		setTimeout("isOver('"+o.id+"')",o.delay);
		
	}
	function close_float(a){
		if(a=="FLOAT"){
			clearTimeout(_E);
			clearTimeout(_G);
			_A=3;
			
		}if(a=="FLOAT2"){
			clearTimeout(_F);
			clearTimeout(_H);
			_B=3;
			
		}_SoAD_hide(a);
		
	}
	function float_replay(a,b,c){
		_SoAD_hide(b);
		_SoAD_replay(a);
		if(!IsPan()&&(GetID(b+"TG")!=null)){
			_SoAD_hide(b+"TG");
			if(c=="LEFT"){
				clearTimeout(_G);
				clearTimeout(_E);
				_A=0;
				
			}if(c=="RIGHT"){
				clearTimeout(_H);
				clearTimeout(_F);
				_B=0;
				
			}
		}
	}window.onscroll=scroll;	
	function scroll(){
		if(_S1!=null){
			if(!IsPan()&&(_A==1)){
				if(_M.scrollTop>120){
					_S1.style.display="block";
					
				}else {
					_S1.style.display="none";
					
				}
			}
		}if(_S2!=null){
			if(!IsPan()&&(_B==1)){
				if(_M.scrollTop>120){
					_S2.style.display="block";
					
				}else {
					_S2.style.display="none";
					
				}
			}
		}
	}
	function FLOAT_position(a,b,c,d,e){
		var f=parseInt((_M.clientWidth-cWidth-20)/2),g=(IsBig())?(f-e):b,_c=(IsBig())?-f:d;
		if(_S1!=null){
			_S1.style.top=parseInt(_I*(_M.scrollTop+_M.clientHeight+a))+_J;
			_S1.style.left=parseInt(_I*(_M.scrollLeft+g))+_J;
			
		}if(_S2!=null){
			_S2.style.top=parseInt(_I*(_M.scrollTop+_M.clientHeight+c))+_J;
			_S2.style.left=parseInt(_I*(_M.scrollLeft+_M.clientWidth+_c))+_J;
			
		}if(_S3!=null){
			_S3.style.top=parseInt(_I*(_M.scrollTop+_M.clientHeight+a))+_J;
			_S3.style.left=parseInt(_I*(_M.scrollLeft+g))+_J;
			
		}if(_S4!=null){
			_S4.style.top=parseInt(_I*(_M.scrollTop+_M.clientHeight+c))+_J;
			_S4.style.left=parseInt(_I*(_M.scrollLeft+_M.clientWidth+_c+80))+_J;
			
		}
	}
	function LIUMEITI_main(o){
		o.timeout=IsDe(o.timeout)?o.timeout:8000;
		o.delay=IsDe(o.delay)?o.delay:0;
		o.txtButton=IsDe(o.txtButton)?o.txtButton:true;
		o.op="_SoAD_hide('"+o.id+"');";
		if(o.control){
			var a,b,c,d,e,f;
			a=o.control.split(";");
			b=a[0].split(":")[0];
			c=a[0].split(":")[1];
			d=a[1].split(":")[0];
			e=a[1].split(":")[1];
			if(a[1].split(":").length<3){
				o.op="_SoAD_DoFSCommand('"+b+"','"+c+"'); _SoAD_DoFSCommand('"+d+"','"+e+"');";
				
			}else {
				f=a[1].split(":")[2];
				o.op="_SoAD_DoFSCommand('"+b+"','"+c+"'); _SoAD_DoFSCommand('"+d+"','"+e+"'),_SoAD_DoFSCommand('"+d+"','"+f+"')";
				
			}if(o.timeout!="MAX"){
				o.ret=setTimeout(o.op,o.timeout);
				
			}else {
				setTimeout("isOver('"+o.id+"')",o.delay);
				
			}
		}o.width=IsDe(o.width)?o.width:200;
		o.height=IsDe(o.height)?o.height:150;
		o.top=IsDe(o.top)?o.top:(_M.clientHeight-o.height)/2;
		o.left=IsDe(o.left)?_M.clientWidth/2+o.left:(_M.clientWidth-o.width)/2;
		if(ADM_Check(o)){
			o.s=2;
			o.style+="display:none;";
			var s="";
			if(o.txtButton){
				s=TxtShow(o,o.id,o.src,o.width,o.height,o.href,o.style,"right","","",o.op);
				
			}else {
				o.code=_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href);
				s=(o.noDiv)?o.code:"<div "+((o.style)?" style="+o.style:"")+" id="+o.id+">"+o.code+"</div>";
				s+=_SoAD_FSCommand(o.id);
				
			}WriteAd(s);
			if(o.control){
				if(a[1].split(":").length<3){
					_SoAD_show(e);
					
				}else {
					_SoAD_show(e);
					_SoAD_show(f);
					
				}
			}return ;
			
		}if(o.src&&o.src!=""){
			if(o.position=="absolute"){
				o.style+="top:"+parseInt(_I*o.top)+_J;
				o.style+=";left:"+parseInt(_I*o.left)+_J;
				
			}else {
				o.style+="top:"+parseInt(_I*(_M.scrollTop+o.top))+_J;
				o.style+=";left:"+parseInt(_I*(_M.scrollLeft+o.left))+_J;
				
			}_P[_P.length]="onresizeADLMT('"+o.id+"',"+o.left+")";
			if(o.txtButton){
				s=TxtShow(o,o.id,o.src,o.width,o.height,o.href,o.style,"right","","",o.op);
				
			}else {
				o.code=_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href);
				s=(o.noDiv)?o.code:"<div "+((o.style)?" style="+o.style:"")+" id="+o.id+">"+o.code+"</div>";
				s+=_SoAD_FSCommand(o.id);
				
			}WriteAd(s);
			if(!o.control){
				if(o.timeout!="MAX"){
					o.ret=setTimeout("_SoAD_hide('"+o.id+"')",o.timeout);
					
				}else {
					setTimeout("isOver('"+o.id+"')",o.delay);
					
				}
			}
		}if(o.isfloat&&GetID(o.id)){
			window.setInterval("LMT_FLOAT('"+o.id+"',"+o.top+","+o.left+")",400);
			
		}
	}
	function onresizeADLMT(a,b){
		var c=GetID(a);
		if(c){
			c.style.left=_I*(_M.scrollLeft+((b<0)?_M.clientWidth:0)+b)+_J;
			
		}
	}
	function LMT_FLOAT(i,a,b){
		with(GetID(i)){
			style.top=parseInt(_I*(_M.scrollTop+a))+_J;
			style.left=parseInt(_I*(_M.scrollLeft+b))+_J;
			
		}
	}
	function BOOKTURN_main(o){
		if(ADM_Check(o)){
			o.s=2;
			return ;
			
		}if(!IsPan()&&IsDe(o.tag)){
			o.src2=o.tag;
			o.width2=IsDe(o.tagw)?IsDe(o.tagw):20;
			o.height2=IsDe(o.tagw)?IsDe(o.tagw):100;
			
		}if(!o.loop){
			o.loop=false;
			
		}if(!o.loop2){
			o.loop2=true;
			
		}o.width=IsDe(o.width)?o.width:350;
		o.height=IsDe(o.height)?o.height:250;
		o.top=IsDe(o.top)?o.top:0;
		var a=parseInt((_M.clientWidth-cWidth-240)/2);
		o.left=IsDe(o.left)?o.left:-o.width;
		o.tl=(IsBig())?(-o.width-a):o.left;
		o.width2=IsDe(o.width2)?o.width2:80;
		o.height2=IsDe(o.height2)?o.height2:80;
		o.top2=IsDe(o.top2)?o.top2:0;
		o.left2=IsDe(o.left2)?o.left2:-o.width2;
		o.tr=(IsBig())?(-o.width2-a):o.left2;
		o.insight=IsDe(o.insight)?o.insight:false;
		o.delay=IsDe(o.delay)?o.delay:0;
		var s="",c=(ADM_Check(o,1,1));
		if(o.src){
			o.style+="z-index:10000;";			
			//if ( o.delay >0 ){
			setTimeout("_SoAD_www();isOver('"+o.id+"')",o.delay);
			o.style+="visibility:hidden;";
			/*add by zqm at 2008.07.23*/
			//	}
			//else {
			//	if(c){setTimeout("isOver('"+o.id+"')",o.delay);o.style+="visibility:hidden;";}
			//}
			o.style+="border-width:0px;";			
			o.style+="top:"+parseInt(_I*o.top)+_J;
			o.style+=";left:"+parseInt(_I*(_M.scrollLeft+((o.tl<0)?_M.clientWidth:0)+o.tl))+_J;
			s="<div "+((o.style)?" style=\""+o.style:"")+"\" id="+o.id+">"+_SoAD_Media(o,o.id,o.src,o.width,o.height,"")+"</div>";
			s+=_SoAD_FSCommand(o.id);
			if(!c){
				if(isIE){
					b=GetID("type");
					if(b!=null){
						b.style.visibility="hidden";
						
					}
				}setTimeout("_SoAD_dfasd()",IsDe(o.timeout)?o.timeout:8000);
				
			}_P[_P.length]="onresizeADTurn('"+o.id+"',"+o.left+","+o.width+")";
			
		}else {
			c=true;
			
		}if(o.src2){
			o.wmode=(o.wmode2)?o.wmode2:"";
			if(o.style.lastIndexOf("z-index:10000;")>0){
				o.style=o.style.substring(0,o.style.lastIndexOf("z-index:10000;"));
				
			}if(!c){
				o.style+="visibility:hidden;";
				
			}o.style+="z-index:11;";
			o.style+="top:"+parseInt(_I*o.top2)+_J;
			o.style+=";left:"+parseInt(_I*(_M.scrollLeft+((o.tr<0)?_M.clientWidth:0)+o.tr))+_J;
			o.loop=o.loop2;
			o.style+=";border-width:0px;";			
			s+="<div "+((o.style)?" style=\""+o.style:"")+"\" id="+o.id2+">"+_SoAD_Media(o,o.id2,o.src2,o.width2,o.height2,"")+"</div>";
			_P[_P.length]="onresizeADTurn('"+o.id2+"',"+o.left2+","+o.width2+")";
			s+=_SoAD_FSCommand(o.id2);
			
		}if(o.insight&&!c){
			self.scroll(0,0);
			
		}WriteAd(s);
		if(!(o.src&&o.src2)){
			o.s=2;
			
		}
	}
	function onresizeADTurn(a,b,c){
		var e,f,g;
		e=GetID(a);
		f=parseInt((_M.clientWidth-cWidth-240)/2);
		g=((IsBig())?-f-c:b);
		if(e){
			e.style.left=_I*(_M.scrollLeft+((g<0)?_M.clientWidth:0)+g)+_J;
			
		}
	}
	function _SoAD_www(){
		var b=GetID("BOOKTURN");
		GetID("BOOKTURN2").style.visibility="hidden";
		if(b!=null){
			b.style.visibility="visible";
			b.style.display="block";
			GetID("_BOOKTURN").Play();
			
		}if(isIE){
			b=GetID("type");
			if(b!=null){
				b.style.visibility="hidden";
				
			}
		}
	}
	function _SoAD_dfasd(){
		isOver("BOOKTURN");
		GetID("BOOKTURN").style.visibility="hidden";
		var b=GetID("BOOKTURN2");
		if(b!=null){
			b.style.visibility="visible";
			b.style.display="block";
			GetID("_BOOKTURN2").Play();
			
		}if(isIE){
			b=GetID("type");
			if(b!=null){
				b.style.visibility="visible";
				
			}
		}
	}
	//function COUPLET_main(o){if(((isIE)&&(screen.width<1000))||((!isIE)&&(_M.scrollWidth<1000))){o.s=2;return;}if(ADM_Check(o)){o.s=2;return;}var a=false;for(var i=0;i<_O.length;i++){if(_O[i].t=="BOOKTURN"){a=!a;break;}}o.x=getSrcIdx(o.id,o.turns);o.src=o.src[o.x];o.tag=IsDe(o.tag)?o.tag[o.x]:"";o.href=IsDe(o.href)?o.href[o.x]:"";if(!IsDe(o.x)){o.x=getSrcIdx(o.id2,o.turns);}o.src2=o.src2[o.x];o.tag2=IsDe(o.tag2)?o.tag2[o.x]:"";o.href2=IsDe(o.href2)?o.href2[o.x]:"";var b=((a)?((_M.clientHeight-412>250)?250:_M.clientHeight-412):100);o.width=IsDe(o.width)?o.width:120;o.height=IsDe(o.height)?o.height:270;o.top=IsDe(o.top)?o.top:b;o.timeout=IsDe(o.timeout)?o.timeout:8000;o.timeout2=IsDe(o.timeout2)?o.timeout2:8000;var c=parseInt((_M.clientWidth-cWidth)/2);o.left=(IsDe(o.left)?o.left:0);o.tl=(IsBig())?(c-o.width):o.left;o.width2=IsDe(o.width2)?o.width2:120;o.height2=IsDe(o.height2)?o.height2:270;o.top2=IsDe(o.top2)?o.top2:b;o.left2=(IsDe(o.left2)?o.left2:-o.width2);o.tr=(IsBig())?-c:o.left2;o.tagw=IsDe(o.tagw)?o.tagw:25;o.tagw2=IsDe(o.tagw2)?o.tagw2:25;o.delay=IsDe(o.delay)?o.delay:0;o.txtButton=IsDe(o.txtButton)?o.txtButton:true;o.txtButton2=IsDe(o.txtButton2)?o.txtButton2:true;var d,e,f,g;if(o.replay){var h=o.replay.split(";");if(h.length>1){d=h[0].split(":")[0];e=h[0].split(":")[1];f=h[1].split(":")[0];g=h[1].split(":")[1];}else{d=h[0].split(":")[0];e=h[0].split(":")[1];f=h[0].split(":")[0];g=h[0].split(":")[1];}}o.framestyle=(o.framestyle)?o.framestyle:o.style;o.framestyle2=(o.framestyle2)?o.framestyle2:o.style;var s="";if(o.src&&o.src!=""){if(!o.wmode){o.wmode="opaque";}style="top:"+parseInt(_I*o.top)+_J;style+=";left:"+parseInt(_I*o.tl)+_J;if(o.txtButton){s+=TxtShow(o,o.id,o.src,o.width,o.height,o.href,o.framestyle+style,"left",d,"couplet_replay('"+e+"');close_couplet('"+o.id+"')","close_couplet('"+o.id+"')");}else{s+="<div style=\""+o.framestyle+style+"\" id="+o.id+">"+_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href)+"</div>";}_P[_P.length]="onresizeADCP('"+o.id+"',"+o.left+","+o.width+",0)";if(!IsPan()&&IsDe(o.tag)&&(o.tag!="")){if(d!="LEFT"){_C=setTimeout("_SoAD_hide('"+o.id+"');",o.timeout);}o.wmode="transparent";s+="<div style=\""+o.framestyle+style+"\" id="+o.id+"TG>"+_SoAD_Media(o,o.id+"TG",o.tag,o.tagw,o.height,o.href)+"</div>";s+=_SoAD_FSCommand(o.id+"TG");o.wmode="opaque";_P[_P.length]="onresizeADCP('"+o.id+"TG',"+o.left+","+o.tagw+",0)";}}if(o.src2&&o.src2!=""){style="top:"+parseInt(_I*o.top2)+_J;style+=";left:"+parseInt(_I*(_M.scrollLeft+_M.clientWidth+o.tr))+_J;if(o.txtButton2){s+=TxtShow(o,o.id2,o.src2,o.width2,o.height2,o.href2,o.framestyle2+style,"right",f,"couplet_replay('"+g+"');close_couplet('"+o.id+"')","close_couplet('"+o.id+"')");}else{s+="<div style=\""+o.framestyle2+style+"\" id="+o.id2+">"+_SoAD_Media(o,o.id2,o.src2,o.width2,o.height2,o.href2)+"</div>";}_P[_P.length]="onresizeADCP('"+o.id2+"',"+o.left2+","+o.width2+",1)";if(!IsPan()&&IsDe(o.tag2)&&(o.tag2!="")){if(f!="RIGHT"){_D=setTimeout("_SoAD_hide('"+o.id2+"');",o.timeout2);}o.wmode="transparent";style=style.substring(0,style.lastIndexOf("left:"));style+=";left:"+parseInt(_I*(_M.scrollLeft+_M.clientWidth+o.tr+75))+_J;s+="<div style=\""+o.framestyle2+style+"\" id="+o.id2+"TG>"+_SoAD_Media(o,o.id2+"TG",o.tag2,o.tagw2,o.height2,o.href2)+"</div>";s+=_SoAD_FSCommand(o.id2+"TG");o.wmode="opaque";_P[_P.length]="onresizeADCP('"+o.id2+"TG',"+(o.left2+95)+","+o.tagw2+",1)";}}if(!o.txtButton){s+=_SoAD_FSCommand(o.id);}if(!o.txtButton2){s+=_SoAD_FSCommand(o.id2);}WriteAd(s);_S5=GetID(o.id);_S6=GetID(o.id2);_S7=GetID(o.id+"TG");_S8=GetID(o.id2+"TG");if(o.isfloat){window.setInterval("COUPLET_FLOAT("+o.top+","+o.left+","+o.top2+","+o.left2+","+o.width+")",400);}isOver(o.id);}
	function COUPLET_main(o){
		if(((isIE)&&(screen.width<1000))||((!isIE)&&(_M.scrollWidth<1000))){
			
			o.s=2;			
			return ;			
			
			
		}if(ADM_Check(o)){
			
			o.s=2;			
			return ;			
			
			
		}var a=false;		
		for(var i=0;i<_O.length;i++){
			
			if(_O[i].t=="BOOKTURN"){
				
				a=!a;				
				break;				
				
				
			}
			
		}
		o.tag_tpl = IsDe(o.tag_tpl) ? o.tag_tpl : "/common/flash/CoupletTag.swf";
		o.x=getSrcIdx(o.id,o.turns);		
		o.src=o.src[o.x];		
		o.tag=IsDe(o.tag)?o.tag[o.x]:"";		
		o.href=IsDe(o.href)?o.href[o.x]:"";		
		if(!IsDe(o.x)){
			
			o.x=getSrcIdx(o.id2,o.turns);			
			
			
		}o.src2=o.src2[o.x];		
		o.tag2=IsDe(o.tag2)?o.tag2[o.x]:"";		
		o.href2=IsDe(o.href2)?o.href2[o.x]:"";		
		var b=((a)?((_M.clientHeight-412>250)?250:_M.clientHeight-412):100);		
		o.width=IsDe(o.width)?o.width:120;		
		o.height=IsDe(o.height)?o.height:270;		
		o.top=IsDe(o.top)?o.top:b;		
		o.timeout=IsDe(o.timeout)?o.timeout:8000;		
		o.timeout2=IsDe(o.timeout2)?o.timeout2:8000;		
		var c=parseInt((_M.clientWidth-cWidth)/2);		
		o.left=(IsDe(o.left)?o.left:0);		
		o.tl=(IsBig())?(c-o.width):o.left;		
		o.width2=IsDe(o.width2)?o.width2:120;		
		o.height2=IsDe(o.height2)?o.height2:270;		
		o.top2=IsDe(o.top2)?o.top2:b;		
		o.left2=(IsDe(o.left2)?o.left2:-o.width2);		
		o.tr=(IsBig())?-c:o.left2;		
		o.tagw=IsDe(o.tagw)?o.tagw:25;		
		o.tagw2=IsDe(o.tagw2)?o.tagw2:25;		
		o.delay=IsDe(o.delay)?o.delay:0;		
		o.txtButton=IsDe(o.txtButton)?o.txtButton:true;		
		o.txtButton2=IsDe(o.txtButton2)?o.txtButton2:true;		
		var d,e,f,g;		
		if(o.replay){
			
			var h=o.replay.split(";");			
			if(h.length>1){
				
				d=h[0].split(":")[0];				
				e=h[0].split(":")[1];				
				f=h[1].split(":")[0];				
				g=h[1].split(":")[1];				
				
				
			}else {
				
				d=h[0].split(":")[0];				
				e=h[0].split(":")[1];				
				f=h[0].split(":")[0];				
				g=h[0].split(":")[1];				
				
				
			}
			
		}o.framestyle=(o.framestyle)?o.framestyle:o.style;		
		o.framestyle2=(o.framestyle2)?o.framestyle2:o.style;		
		var s="";		
		if(o.src&&o.src!=""){
			
			if(!o.wmode){
				
				o.wmode="opaque";				
				
				
			}style="top:"+parseInt(_I*o.top)+_J;			
			style+=";left:"+parseInt(_I*o.tl)+_J;			
			if(o.txtButton){
				
				s+=TxtShow(o,o.id,o.src,o.width,o.height,o.href,o.framestyle+style,"left",d,"couplet_replay('"+e+"');close_couplet('"+o.id+"')","close_couplet('"+o.id+"')");				
				
				
			}else {
				
				s+="<div style=\""+o.framestyle+style+"\" id="+o.id+">"+_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href)+"</div>";				
				
				
			}_P[_P.length]="onresizeADCP('"+o.id+"',"+o.left+","+o.width+",0)";			
			if(!IsPan()&&IsDe(o.tag)&&(o.tag!="")){
				
				if(d!="LEFT"){
					
					_C=setTimeout("_SoAD_hide('"+o.id+"');",o.timeout);					
					
					
				}o.wmode="transparent";				
				s+="<div style=\""+o.framestyle+style+"\" id="+o.id+"TG>"+_SoAD_Media(o,o.id+"TG",o.tag_tpl,o.tagw,o.height,o.href,o.tag)+"</div>";				
				s+=_SoAD_FSCommand(o.id+"TG");				
				o.wmode="opaque";				
				_P[_P.length]="onresizeADCP('"+o.id+"TG',"+o.left+","+o.tagw+",0)";				
				
				
			}
			
		}if(o.src2&&o.src2!=""){
			
			style="top:"+parseInt(_I*o.top2)+_J;			
			style+=";left:"+parseInt(_I*(_M.scrollLeft+_M.clientWidth+o.tr))+_J;			
			if(o.txtButton2){
				
				s+=TxtShow(o,o.id2,o.src2,o.width2,o.height2,o.href2,o.framestyle2+style,"right",f,"couplet_replay('"+g+"');close_couplet('"+o.id+"')","close_couplet('"+o.id+"')");				
				
				
			}else {
				
				s+="<div style=\""+o.framestyle2+style+"\" id="+o.id2+">"+_SoAD_Media(o,o.id2,o.src2,o.width2,o.height2,o.href2)+"</div>";				
				
				
			}_P[_P.length]="onresizeADCP('"+o.id2+"',"+o.left2+","+o.width2+",1)";			
			if(!IsPan()&&IsDe(o.tag2)&&(o.tag2!="")){
				
				if(f!="RIGHT"){
					
					_D=setTimeout("_SoAD_hide('"+o.id2+"');",o.timeout2);					
					
					
				}o.wmode="transparent";				
				style=style.substring(0,style.lastIndexOf("left:"));				
				style+=";left:"+parseInt(_I*(_M.scrollLeft+_M.clientWidth -25))+_J;				
				s+="<div style=\""+o.framestyle2+style+"\" id="+o.id2+"TG>"+_SoAD_Media(o,o.id2+"TG",o.tag_tpl,o.tagw2,o.height2,o.href2,o.tag2)+"</div>";				
				s+=_SoAD_FSCommand(o.id2+"TG");				
				o.wmode="opaque";				
				_P[_P.length]="onresizeADCP('"+o.id2+"TG',"+(o.left2+95)+","+o.tagw2+",1)";				
				
				
			}
			
		}if(!o.txtButton){
			
			s+=_SoAD_FSCommand(o.id);			
			
			
		}if(!o.txtButton2){
			
			s+=_SoAD_FSCommand(o.id2);			
			
			
		}WriteAd(s);		
		_S5=GetID(o.id);		
		_S6=GetID(o.id2);		
		_S7=GetID(o.id+"TG");		
		_S8=GetID(o.id2+"TG");		
		if(o.isfloat){
			
			window.setInterval("COUPLET_FLOAT("+o.top+","+o.left+","+o.top2+","+o.left2+","+o.width+")",400);			
			
			
		}isOver(o.id);		
		
		
	}
	
	
	function onresizeADCP(a,b,c,d){
      return false;
		var e,f,g;
		e=GetID(a);
		f=parseInt((_M.clientWidth-cWidth)/2);
		g=(d==0)?((IsBig())?(f-c):b):((IsBig())?-f:b);
		if(e){
			e.style.left=_I*(_M.scrollLeft+((g<0)?_M.clientWidth:0)+g)+_J;
			
		}
	}
	function TxtShow(o,a,b,c,d,e,f,g,h,i,j){
		var k="";
		if(h=="RIGHT"&&g=="right"){
			k="<a style='cursor:hand;border-bottom:1px solid #000000' onclick=\"javascript:"+i+";\"><font color=#000000>\u91cd\u64ad</font></a>|";
			
		}if(h=="LEFT"&&g=="left"){
			k="<a style='cursor:hand;border-bottom:1px solid #000000' onclick=\"javascript:"+i+";\"><font color=#000000>\u91cd\u64ad</font></a>|";
			
		}o.code="<table style='margin:0' border=0 cellpadding=0 cellspacing=0><tr><td height="+d+" valign=top align=left>";
		o.code+=_SoAD_Media(o,a,b,c,d,e);
		o.code+="</td></tr><tr><td background="+_S+" width="+c+" height=20 align="+g+">"+k;
		o.code+="<a style='cursor:hand;border-bottom:1px solid #000000' onclick=\"javascript:"+j+";\"><font color=#000000>\u5173\u95ed</font></a></td></tr></table>";
		return "<DIV id='"+a+"' style='"+f+";z-index:1'>"+o.code+"</DIV>";
		
	}
	function couplet_replay(a){
		_SoAD_replay(a);
		
	}
	function close_couplet(a){
		clearTimeout(_C);
		clearTimeout(_D);
		clearTimeout(_V);
		clearTimeout(_W);
		if(GetID(a)){
			_SoAD_hide(a);
			
		}if(GetID(a+"2")){
			_SoAD_hide(a+"2");
			
		}
	}
	function show_couplet(a){
		if(GetID(a)){
			_SoAD_show(a);
			
		}if(GetID(a+"2")){
			_SoAD_show(a+"2");
			
		}
		for (var i = 1; i < 10 ; i++) {
			var b = 'COUPLET' + i;
			if (GetID(b)) {
				_SoAD_show(b);
			}
		}
	}
	function COUPLET_FLOAT(a,b,c,d,e){
		var f,g,h;
		f=parseInt((_M.clientWidth-cWidth)/2);
		g=(IsBig())?(f-e):b;
		h=(IsBig())?-f:d;
		if(_S5!=null){
			_S5.style.top=parseInt(_I*(_M.scrollTop+a))+_J;
			_S5.style.left=parseInt(_I*(_M.scrollLeft+g))+_J;
			
		}if(_S6!=null){
			_S6.style.top=parseInt(_I*(_M.scrollTop+c))+_J;
			_S6.style.left=parseInt(_I*(_M.scrollLeft+_M.clientWidth+h))+_J;
			
		}if(_S7!=null){
			_S7.style.top=parseInt(_I*(_M.scrollTop+a))+_J;
			_S7.style.left=parseInt(_I*(_M.scrollLeft+g))+_J;
			
		}if(_S8!=null){
			_S8.style.top=parseInt(_I*(_M.scrollTop+c))+_J;
			_S8.style.left=parseInt(_I*(_M.scrollLeft+_M.clientWidth+h+95))+_J;
			
		}
	}


  function TFLOAT_main(o){
	 o.s=2;
     o.width=IsDe(o.width)?o.width:100;
     o.height=IsDe(o.height)?o.height:100;
     o.width2=IsDe(o.width2)?o.width2:200;
     o.height2=IsDe(o.height2)?o.height2:200;
     o.top=IsDe(o.top)?o.top:20;
     o.left=IsDe(o.left)?o.left:10;
     o.top2=IsDe(o.top2)?o.top2:o.top;
     o.left2=IsDe(o.left2)?o.left2:o.left;
     o.direction = o.direction == 'right' ? 'right' : 'left';
     o.id = IsDe(o.id)?o.id : 'TFloat'+o.direction;
     if (!IsDe(o.src)) return ;

     if (o.direction == 'left'){
          o.left1 = (_SoAD_d.clientWidth - cWidth)/2 - o.width - o.left;
          o.left2 = (_SoAD_d.clientWidth - cWidth)/2 - o.width - o.left2;
          if (o.left1 < 0  ) {
              o.left1 = o.left2 = 0;
          }
      }
      else {
          o.left1 = (_SoAD_d.clientWidth + cWidth)/2  + o.left;
          o.left2 = (_SoAD_d.clientWidth + cWidth)/2 + o.width - o.width2 +  o.left2;
          if (o.left1 > _SoAD_d.clientWidth - o.width ) {
              o.left1 = _SoAD_d.clientWidth - o.width ;
              o.left2 = _SoAD_d.clientWidth - o.width2;
          }
      }
      o.top1 = o.height  + o.top;
      o.top2 = o.height2 + o.top2;

      o.framestyle  ='position:absolute;display:none;'
      o.framestyle1 = 'position:relative;left:0;visibility:visible;'
      o.framestyle2 = 'display:none;position:relative;left:0';

      var s = '';
      s+="<div id=\""+o.id+"_out\" style=\""+o.framestyle+" z-index:10\">";
      s+="<div style=\""+o.framestyle1+"\" id=\""+o.id+"_small\">"+_SoAD_Media(o,o.id,o.src,o.width,o.height,o.href)+"</div>";
      s+="<div style=\""+o.framestyle2+"\" id=\""+o.id+"_large\">"+_SoAD_Media(o,o.id,o.src2,o.width2,o.height2,o.href2)+"</div>";
      s+="</div>";
      WriteAd(s);
      setTimeout(function(){showTFloat(o.id,o.left1,o.left2,o.top1,o.top2,o.direction)},100);
      eval("_TFT"+o.direction+"="+o.top1);
      eval("_TFL"+o.direction+"="+o.left1);
  }





  function showTFloat(id,left1,left2,top1,top2,direction) {
       var outfloatdiv = GetID(id+'_out'); 
       var bigfloatdiv = GetID(id+'_large'); 
       var smallfloatdiv = GetID(id+'_small'); 
       eval ("var ft = _TFT" + direction );
       eval ("var fl = _TFL" + direction );
      if (outfloatdiv){
          if (isIE){
              outfloatdiv.style.top = parseInt(_I*(_SoAD_d.scrollTop+_SoAD_d.offsetHeight - ft)) + _J ;
          } else {
              outfloatdiv.style.top = parseInt(_I*(window.innerHeight+window.pageYOffset - ft)) + _J ;
          }
          eval("outfloatdiv.style.left=parseInt(_I*(_TFL"+direction+")) + _J");
          outfloatdiv.style.display='block';
          AttachEvent(smallfloatdiv,'mouseover',function(){showTFloatLarge(id,left2,top2,direction)});
          AttachEvent(bigfloatdiv,'mouseout',function(){showTFloatSmall(id,left1,top1,direction)});
          TFloatMove(id,direction); 
      }
  }


  function showTFloatLarge(id,l,t,direction) {
       var bigfloatdiv = GetID(id+'_large'); 
       var smallfloatdiv = GetID(id+'_small'); 
       var outfloatdiv = GetID(id+'_out'); 
       eval ("_TFL" + direction + "="+l);
       eval ("_TFT"  + direction + "="+t);
       eval ("var ft = _TFT" + direction );
       eval ("var fl = _TFL" + direction );
      if (bigfloatdiv.style.display=='none') {
          bigfloatdiv.style.display='block';
          smallfloatdiv.style.display='none';
      }
      if (outfloatdiv){
          if (isIE){
              outfloatdiv.style.top = parseInt(_I*(_SoAD_d.scrollTop+_SoAD_d.offsetHeight - ft))+_J ;
          } else {
              outfloatdiv.style.top = parseInt(_I*(window.innerHeight+window.pageYOffset - ft))+_J;
          }
          outfloatdiv.style.left = parseInt(_I*(fl))+_J;
      }
  }

  function showTFloatSmall(id,l,t,direction) {
       var bigfloatdiv = GetID(id+'_large'); 
       var smallfloatdiv = GetID(id+'_small'); 
       var outfloatdiv = GetID(id+'_out'); 
       eval ("_TFL" + direction + "="+l);
       eval ("_TFT"  + direction + "="+t);
       eval ("var ft = _TFT" + direction );
       eval ("var fl = _TFL" + direction );
       if (bigfloatdiv.style.display=='block') {
          bigfloatdiv.style.display='none';
          smallfloatdiv.style.display='block';
       }
       if (outfloatdiv){
          if (isIE){
              outfloatdiv.style.top = parseInt(_I*(_SoAD_d.scrollTop+_SoAD_d.offsetHeight - ft))+_J;
          } else {
              outfloatdiv.style.top = parseInt(_I*(window.innerHeight+window.pageYOffset - ft))+_J;
          }
          outfloatdiv.style.left = parseInt(_I*(fl))+_J;
       }
  }


  function TFloatMove(id,direction){
      var outfloatdiv = GetID(id+'_out'); 
       eval ("var ft = _TFT" + direction );
       eval ("var fl = _TFL" + direction );
      if (outfloatdiv){
          if (isIE){
              outfloatdiv.style.top = parseInt(_I*(_SoAD_d.scrollTop+_SoAD_d.offsetHeight - ft)) + _J;
          } else {
              outfloatdiv.style.top = parseInt(_I*(window.innerHeight+window.pageYOffset - ft))+_J;
          }
          outfloatdiv.style.left = parseInt(_I*(fl))+_J;
          setTimeout(function(){TFloatMove(id,direction);},15);
      }
  }


	function getSrcIdx(a,b){
		var c=new ADCookie(document,a+"Index",24);
		c.load();
		c.x=(c.x==null)?parseInt(Math.random()*b):c.x;
		var d=parseInt(c.x);
		c.x++;
		c.x=(c.x>(b-1))?0:c.x;
		c.store();
		return d;
		
	}
	function AttachEvent(a,b,c){
		if(isIE){
			a.attachEvent("on"+b,c);
			
		}else {
			a.addEventListener(b,c,false);
			
		}
	}
	function DetachEvent(a,b,c){
		if(isIE){
			a.detachEvent("on"+b,c);
			
		}else {
			a.removeEventListener(b,c,false);
			
		}
	}
	document.write("<div id='"+_SoAD_N+"'></div>");
	window.onresize=function (){
		for(var i=0;i<_P.length;i++){
			eval(_P[i]);
			
		}
	};
	setTimeout("_SoAD_init()",2000);	
	
}
var ADM_INCLUDED=1;
