// JavaScript Document
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*/}
//alert(diffY);
percent=.1*(diffY-lastScrollY);
if(percent>0)percent=Math.ceil(percent);
else percent=Math.floor(percent);
document.getElementById("LeftAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
document.getElementById("RightAd").style.top=parseInt(document.getElementById("LeftAd").style.top)+percent+"px";
lastScrollY=lastScrollY+percent;
//alert(lastScrollY);
}
suspendcode12="<DIV id=LeftAd style='left:5px;POSITION:absolute;TOP:165px;'></div>"
suspendcode14="<DIV id=RightAd style='right:5px;POSITION:absolute;TOP:100px;'><table width='80' border='0' cellspacing='1' cellpadding='2' bgcolor='#c2d9e1'>  <tr><td height='28' nowrap bgcolor='#FFFFFF'>·<a href='trade.php'>行业文件公示&nbsp;</a></td></tr> <tr><td height='28' nowrap bgcolor='#FFFFFF'>·<a href='javascript:' onClick=\"window.open('insure.php','newwindow','width=550,height=460')\">家庭服务保险查询&nbsp;</a></td>  </tr>  <tr><td height='28' nowrap bgcolor='#FFFFFF'>·<a href='guestbook.php'>行业管理、建设意见&nbsp;</a></td> </tr>";
suspendcode14 += "<tr><td height='28' bgcolor='#FFFFFF'>·<a href='http://www.10109366.com/jiazheng/' title='家政栏目'>家政栏目&nbsp;</a></td></tr><tr>	<td height='28' bgcolor='#FFFFFF'>·<a href='http://www.10109366.com/baomu/' title='保姆栏目'>保姆栏目&nbsp;</a></td></tr></table>";
suspendcode14 += "<table width='128' border='0' cellspacing='0' cellpadding='0' style='border:1px solid #C2D9E1; border-top:none;'>  <tr><td height='28' nowrap bgcolor='#FFFFFF' onclick='showInput();' style='float:none; text-align:center; cursor:pointer; color:#F60;'>我要评价</td> </tr><tr id='cform' style='display:none;'><td height='28' nowrap bgcolor='#FFFFFF' style='float:none; text-align:center;'><form name='commentf' action='user/comment.php' method='post'><input type='text' size='15' name='order_num' value='请输入订单编号' onfocus=\"this.value=''\" /><br/><input type='submit' name='submit' value='进行评价' style='width:100px;' /></form></table>";
suspendcode14 += "</div>";
document.write(suspendcode12);
document.write(suspendcode14);
window.setInterval("heartBeat()",1);
function ClosedivLeft()
{
LeftAd.style.visibility="hidden";
}
function ClosedivRight()
{
RightAd.style.visibility="hidden";
}

function showInput()
{
	document.getElementById('cform').style.display = '';
}
