var ie=document.all
var dom=document.getElementById
var ns4=document.layers

var bouncelimit=16 //(must be divisible by 8)
var curtop
var direction="down"
var boxheight='100'

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
crossobj.top=scroll_top-120
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin(100)",100)
}

function dropin(){
scroll_top=(ie)? document.body.scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<+41)
crossobj.top=parseInt(crossobj.top)+30
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",10)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit
if (bouncelimit<0)
bouncelimit+=16
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function redo(){
bouncelimit=0
direction="up"
initbox()
}