<!-- 
var showad = true; 
var Toppx = 500; //上端位置 
var AdDivW = 200; //宽度 
var AdDivH = 100; //高度 
var PageWidth = 800; //页面多少宽度象素下正好不出现左右滚动条 
var MinScreenW = 1024; //显示广告的最小屏幕宽度象素 
var ClosebuttonHtml = '<div align="right" style="position: absolute;top:0px;right:0px;margin:2px;padding:2px;z- index:2000;"><a href="javascript:;" title="关闭" onclick="hidead()" style="color:#000000;text-decoration:none;font- size:8px;">×</a></div>' 
var AdContentHtml = '<div align="center" style="color:yellow;font-size:23pt;font-family:黑体;"><br><font size="3">盐城教育网 </font><br><br>祝<br>您<br>新<br>年<br>快<br>乐</div>'; 
var AdContentHtml = '<div align="center" ><A href="#"><img  border="0" height=100  width=200 src="http://www.yce.cn/jb.gif"></a></div>'; 
var AdContentHtml2 = '<div align="center" ><A href="http://www.duxiu.com/"><img border="0"  height=50  width=155 src="http://www.yce.cn/npic/2011/logo0408.jpg"></a></div>'; 
var AdContentHtml3 = '<div align="center" ><a href="http://www.yce.cn/ArticleShow1.asp?SpecialName=办学行为"><img height=85  width=130, border="0" src="http://www.yce.cn/01.jpg"></a></div>'; 
document.write ('<div id="Javascript.LeftDiv" style="position: absolute;border: 0px solid #336699;z- index:1000;width:'+'60'+'px;height:'+AdDivH+'px;top:-1000px;word-break:break- all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml+'</div></div>'); 
document.write ('<div id="Javascript.RightDiv" style="position: absolute;border: 0px solid #336699;z- index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break- all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml2+'</div></div>'); 
document.write ('<div id="Javascript.zyw" style="position: absolute;border: 0px solid #336699;z- index:1000;width:'+AdDivW+'px;height:'+AdDivH+'px;top:-1000px;word-break:break- all;display:none;">'+ClosebuttonHtml+'<div>'+AdContentHtml3+'</div></div>'); 
function scall(){ 
if(!showad){return;} 
if (window.screen.width<MinScreenW){ 

showad = false; 
document.getElementById("Javascript.LeftDiv").style.display="none"; 
document.getElementById("Javascript.RightDiv").style.display="none"; 
document.getElementById("Javascript.zyw").style.display="none"; 
return; 
} 
var Borderpx = ((window.screen.width-PageWidth)/2-AdDivW)/2; 

document.getElementById("Javascript.LeftDiv").style.display=""; 
document.getElementById("Javascript.LeftDiv").style.top=document.body.scrollTop+Toppx; 
document.getElementById("Javascript.LeftDiv").style.left=document.body.scrollLeft+Borderpx; 
document.getElementById("Javascript.LeftDiv").style.left=15; 
document.getElementById("Javascript.RightDiv").style.display=""; 
document.getElementById("Javascript.RightDiv").style.top=document.body.scrollTop+Toppx; 
document.getElementById("Javascript.RightDiv").style.left=document.body.scrollLeft+document.body.clientWidth- document.getElementById("Javascript.RightDiv").offsetWidth-Borderpx; 
document.getElementById("Javascript.RightDiv").style.left=document.body.scrollLeft+document.body.clientWidth- document.getElementById("Javascript.RightDiv").offsetWidth; 
document.getElementById("Javascript.zyw").style.display="none";
 document.getElementById("Javascript.zyw").style.top=document.body.scrollTop+Toppx+350; 
document.getElementById("Javascript.zyw").style.left=document.body.scrollLeft+document.body.clientWidth- document.getElementById("Javascript.RightDiv").offsetWidth-Borderpx; 
document.getElementById("Javascript.zyw").style.left=document.body.scrollLeft+document.body.clientWidth- document.getElementById("Javascript.RightDiv").offsetWidth-40; 

} 

function hidead() 
{ 
showad = false; 
document.getElementById("Javascript.LeftDiv").style.display="none"; 
document.getElementById("Javascript.RightDiv").style.display="none"; 
document.getElementById("Javascript.zyw").style.display="none"; 
} 
window.onscroll=scall; 
window.onresize=scall; 
window.onload=scall; 
//-->
