var ie=document.all
var mnh=document.layers
var cln=document.layers? "" : "px"
var dom=document.getElementById
var dire="up"
var tmn=32
function wish(){
if (!dom&&!ie&&!mnh)
return
thas=(dom)?document.getElementById("popup").style : ie? document.all.popup : document.popup
scroll_top=(ie)? bodys().scrollTop : window.pageYOffset
thas.top=scroll_top-257+cln
thas.visibility=(dom||ie)? "visible" : "show"
dstart=setInterval("popup()",52)
}
function popup(){
scroll_top=(ie)? bodys().scrollTop : window.pageYOffset
if (parseInt(thas.top)<100+scroll_top)
thas.top=parseInt(thas.top)+50+cln
else{
clearInterval(dstart)
sstart=setInterval("bouncein()",52)
}
}
function bouncein(){
thas.top=parseInt(thas.top)-tmn+cln
if (tmn<0)
tmn+=8
tmn=tmn*-1
if (tmn==0){
clearInterval(sstart)
}
}
function cwindow(){
if (window.sstart) clearInterval(sstart)
thas.visibility="hidden"
}
function bodys(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}
window.onload=wish
