//开始图片显示----------------------------
//document.write('<DIV id=couplet_left style="Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute"><a href="http://www7.tianyaclub.com/admanager_new/adclickadd.asp?adid=1765" target=_blank><img src="http://advertisement.tianya.cn/2006/10/wulin/100290.gif" border=0></a><br><center><a href="#" onclick="CloseDiv()" class=aw>关闭</a></center></DIV>')
//document.write('<DIV id=couplet_right style="Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute"><a href="http://www7.tianyaclub.com/admanager_new/adclickadd.asp?adid=1765" target=_blank><img src="http://advertisement.tianya.cn/2006/10/wulin/100290.gif" border=0></a><br><center><a href="#" onclick="CloseDiv()" class=aw>关闭</a></center></DIV>')
//结束图片显示---------------------------

//开始flash显示*************************
document.write('<DIV id=couplet_left style="Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute"><EMBED id=sinadl  pluginspage=http://www.macromedia.com/go/getflashplayer src=../AD/sw.swf width=100 height=290 type=application/x-shockwave-flash wmode="opaque" quality="high"></EMBED> </DIV>')
document.write('<DIV id=couplet_right style="Z-INDEX: 1; VISIBILITY: hidden; POSITION: absolute"><EMBED id=sinadl  pluginspage=http://www.macromedia.com/go/getflashplayer src=../AD/veolia.swf width=100 height=290 type=application/x-shockwave-flash wmode="opaque" quality="high"></EMBED></DIV>')
//结束flash显示***************************

//开始控制flash关闭钮
document.write('<SCRIPT language=JavaScript event=FSCommand() for=sinadl>')
document.write('couplet_left.style.visibility="hidden";')
document.write('couplet_right.style.visibility="hidden";')
document.write('</SCRIPT>')
//结束控制flash关闭钮

document.ns = navigator.appName == "Microsoft Internet Explorer"
function CloseDiv(){
	couplet_left.style.display='none';
	couplet_right.style.display='none';
	//couplet_left.style.visibility='hidden';
	//couplet_right.style.visibility='hidden';

}

function doCouplet(){
	//if((document.body.offsetWidth>800) && document.ns){	
	couplet_left.style.visibility='visible';
	couplet_right.style.visibility='visible';	  
	  couplet_left.style.top=100;
	  couplet_left.style.left=5;
	  couplet_right.style.top=100;
	  couplet_right.style.right=5;
	//}
}

try{
	aryADSeq.push("doCouplet()");
}catch(e){
	doCouplet();
}	

function startAD(){
	try{
		clearTimeout(iAdTimerID);		
		var sFunAD = aryADSeq.shift();
		
		if (sFunAD != null){
			eval(sFunAD);
			iAdTimerID = setTimeout(startAD, 2000);		
		}	
	}catch(e){}	
}

try{

	var haveFullScreen = false;
	try{
		haveFullScreen = SYfullscreen;
	}catch(e){}
	
	if (haveFullScreen){
		iAdTimerID = setTimeout(startAD, 6000);
	}else{
		startAD();
	}
}catch(e){}

