// Drop-in content box- By Dynamic Drive
// For full source code and more DHTML scripts, visit http://www.dynamicdrive.com
// This credit MUST stay intact for use

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"
var ydepth=150 //how deep in the window we must go - gmbpro 090308
var xleftst=350 //left offset starting point in the window - gmbpro 090308
var ystartpos=40 //top starting point in the window - gmbpro 090308
var ytopst=150 //top offset starting point in the window - gmbpro 090308
var bounceint=50 //bounce speed interval - gmbpro 090308
var bouncelimit=48 //(must be divisible by 8)
var direction="bottom" //what's this for???

function initbox(){
if (!dom&&!ie&&!ns4)
return
crossobj=(dom)?document.getElementById("dropin").style : ie? document.all.dropin : document.dropin
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
crossobj.left=xleftst+calunits
crossobj.top=scroll_top-ytopst+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",bounceint)
//quit=setInterval("dismissbox()",10000) //Can be automatically dismissed - gmbpro 090308
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<ydepth+scroll_top)
crossobj.top=parseInt(crossobj.top)+ystartpos+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",bounceint)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=8
bouncelimit=bouncelimit*-1
if (bouncelimit==0){
clearInterval(bouncestart)
}
}

function dismissbox(){
if (window.bouncestart) clearInterval(bouncestart)
crossobj.visibility="hidden"
}

function truebody(){
return (document.compatMode && document.compatMode!="BackCompat")? document.documentElement : document.body
}



function doPopup() {
	initbox();
}


//
//DROPPER END
