window.onload = ShowAnsMsg;
window.onresize = resizeAnsDiv;
//window.onerror = function(){}

var AnsdivTop,AnsdivLeft,AnsdivWidth,AnsdivHeight,docHeight,docWidth,AnsTimer,theI = 0;
function ShowAnsMsg()
{
 try{
 AnsdivTop = parseInt(document.getElementById("Ans").style.top,10)
 AnsdivLeft = parseInt(document.getElementById("Ans").style.left,10)
 AnsdivHeight = parseInt(document.getElementById("Ans").offsetHeight,10)
 AnsdivWidth = parseInt(document.getElementById("Ans").offsetWidth,10)
 docWidth = document.body.clientWidth;
 docHeight = document.body.clientHeight;
 document.getElementById("Ans").style.top = parseInt(document.body.scrollTop,10) + docHeight + 10;//  AnsdivHeight
 document.getElementById("Ans").style.left = parseInt(document.body.scrollLeft,10) + docWidth - AnsdivWidth
 document.getElementById("Ans").style.visibility="visible"
 AnsTimer = window.setInterval("moveAnsDiv()",10)
 }
 catch(e){}
}

function resizeAnsDiv()
{
 theI+=1
 if(theI>400) closeAnsDiv() 
 try{
 AnsdivHeight = parseInt(document.getElementById("Ans").offsetHeight,10)
 AnsdivWidth = parseInt(document.getElementById("Ans").offsetWidth,10)
 docWidth = document.body.clientWidth;
 docHeight = document.body.clientHeight;
 document.getElementById("Ans").style.top = docHeight - AnsdivHeight + parseInt(document.body.scrollTop,10)
 document.getElementById("Ans").style.left = docWidth - AnsdivWidth + parseInt(document.body.scrollLeft,10)
 }
 catch(e){}
}

function moveAnsDiv()
{
 try
 {
 if(parseInt(document.getElementById("Ans").style.top,10) <= (docHeight - AnsdivHeight + parseInt(document.body.scrollTop,10)))
 {
 window.clearInterval(AnsTimer)
 AnsTimer = window.setInterval("resizeAnsDiv()",1)
 }
 AnsdivTop = parseInt(document.getElementById("Ans").style.top,10)
 document.getElementById("Ans").style.top = AnsdivTop - 1
 }
 catch(e){}
}
function closeAnsDiv()
{
 document.getElementById('Ans').style.visibility='hidden';
 if(AnsTimer) window.clearInterval(AnsTimer)
}

document.write ("<DIV id=Ans style=\"BORDER-RIGHT: #455690 1px solid; BORDER-TOP: #a6b4cf 1px solid; Z-INDEX:99999; LEFT: 0px; VISIBILITY: hidden; BORDER-LEFT: #a6b4cf 1px solid; WIDTH: 200px; BORDER-BOTTOM: #455690 1px solid; POSITION: absolute; TOP: 0px; HEIGHT: 80px; BACKGROUND-COLOR: #02c4f4\">")
document.write ("<TABLE style=\"BORDER-TOP: #ffffff 1px solid; BORDER-LEFT: #ffffff 1px solid\" cellSpacing=0 cellPadding=0 width=\"100%\" bgColor=#D0F5FF border=0>")
document.write ("<TBODY>")
document.write ("<TR bgColor=#02C4F4>")
document.write ("<TD style=\"font-size: 12px; color: #0f2c8c\" width=80 height=24></TD>")
document.write ("<TD style=\"font-weight: normal; font-size: 14px; background-image: url('images/AnsTopBg.jpg'); color: #ffffff; padding-left: 4px; padding-top: 4px\" vAlign=center width=\"100%\"> 温馨提示：</TD>")
document.write ("<TD style=\"background-image: url('images/AnsTopBg.jpg'); padding-right: 2px; padding-top: 2px\" vAlign=center align=right width=19><span title=关闭 style=\"CURSOR: hand;color:white;font-size:14px;font-weight:bold;margin-right:4px;\" onclick=closeAnsDiv() >×</span></TD>")
document.write ("</TR>")
document.write ("<TR>")
document.write ("<TD style=\"background-image: url('images/AnsBg.jpg'); padding-right: 1px; padding-bottom: 1px\" colSpan=3 height=50>")
document.write ("<DIV ALIGN=\"CENTER\" style=\"BORDER-RIGHT: #b9c9ef 1px solid; BORDER-TOP: #728eb8 1px solid;  PADDING-BOTTOM: 13px;PADDING-TOP: 13px; FONT-SIZE: 13px;BORDER-LEFT: #728eb8 1px solid; WIDTH: 100%; COLOR: #FF0000;  BORDER-BOTTOM: #b9c9ef 1px solid; HEIGHT: 100%\">题问365开展有奖调查活动,<br>奖品丰厚<br><br>详情请<a href='http://feedback.tiwen365.com/getuser.jsp'>点击此处</a>")
document.write ("</TD>")
document.write ("</TR>")
document.write ("</TBODY>")
document.write ("</TABLE>")
document.write ("</DIV>")
