function PageDate()
{
	currentDate = new Date()
	with (currentDate)
          {
		day=getDay()
		month=getMonth()+1
		this.document.write('<font color="#ff6600">'+getFullYear()+'年'+month+'月'+getDate()+'日')
	}
	if (day==1){document.write(' 星期一')}
	if (day==2){document.write(' 星期二')}
	if (day==3){document.write(' 星期三')}
	if (day==4){document.write(' 星期四')}
	if (day==5){document.write(' 星期五')}
	if (day==6){document.write(' 星期六')}
	if (day==0){document.write(' 星期日')}
        document.write("</font>")
	
}

PageDate()



lastScrollY=0; 
function heartBeat(){ 
var diffY; 
if (document.documentElement && document.documentElement.scrollTop) 
diffY = document.documentElement.scrollTop; 
else if (document.body) 
diffY = document.body.scrollTop 
else 
{/*Netscape stuff*/} 
percent=.1*(diffY-lastScrollY); 
if(percent>0)percent=Math.ceil(percent); 
else percent=Math.floor(percent); 
document.getElementById("lovexin12").style.top=parseInt(document.getElementById 
("lovexin12").style.top)+percent+"px"; 
document.getElementById("lovexin14").style.top=parseInt(document.getElementById 
("lovexin12").style.top)+percent+"px"; 
lastScrollY=lastScrollY+percent; 
} 
n=window.screen.width; //屏幕分辨率的宽 
divw = 128;//广告宽度 
divw2 = 128;//广告宽度 
body = 1003;//页面宽度 
myleft1=(n-1024)/2+2; 
myleft2=(n-1024)/2+body; 
if (n>1024) 
{ 
myleft3 = myleft1 -(divw/2) - 10 
myleft4 = myleft2 -(divw/2) + 15 
suspendcode12="<DIV id=\"lovexin12\" style=left:"+myleft3+"px;POSITION:absolute;TOP:120px;><img src=images/close.jpg onClick=javascript:window.hide() width=128 height=14 border=0 vspace=0 alt=关闭对联广告><img src=images/ad.jpg width=128 height=373 border=0></div>" 
suspendcode14="<DIV id=\"lovexin14\" style=left:"+myleft4+"px;POSITION:absolute;TOP:120px;><img src=images/close.jpg onClick=javascript:window.hide() width=128 height=14 border=0 vspace=0 alt=关闭对联广告><img src=images/ad.jpg width=128 height=373 border=0></div>" 
} 
else 
{ 
myleft2 = myleft2 - divw2; 
suspendcode12="<DIV id=\"lovexin12\" style=left:"+myleft1+"px;POSITION:absolute;TOP:120px;><img src=images/close.jpg onClick=javascript:window.hide() width=128 height=14 border=0 vspace=0 alt=关闭对联广告><img src=images/ad.jpg width=128 height=373 border=0></div>" 
suspendcode14="<DIV id=\"lovexin14\" style=left:"+myleft2+"px;POSITION:absolute;TOP:120px;><img src=images/close.jpg onClick=javascript:window.hide() width=128 height=14 border=0 vspace=0 alt=关闭对联广告><img src=images/ad.jpg width=128 height=373 border=0></div>" 
} 
document.write(suspendcode12); 
document.write(suspendcode14); 
window.setInterval("heartBeat()",1);
function hide()  
{   
lovexin12.style.visibility="hidden"; 
lovexin14.style.visibility="hidden";
}
