<!-- Original:  Riccardo Fuga (UFOtime Communication Inc.) -->

<!-- Begin
// Insert in html page <head> <script language="JavaScript1.2" src="./javaclass/category.js"></script> </head>
// Insert in body section:
// <div id="dropin" style="position:absolute;visibility:hidden;left:200px;top:100px;width:500px;height:300px;border-top: 1px solid #f0f0f0;border-left: 1px solid #f0f0f0;border-right: 1px solid #4e4e4e;border-bottom: 1px solid #4e4e4e;background-color: #f9f9f9;">

// <div align="right"><a href="#" onClick="dismissbox();return false"><img src="images/close.gif" border="0"></a></div>

// <span class="smText">
// - Pet<br>
// - Sport<br>
// - Computer<br>
// - Salute & Bellezza
// </span>

// </div>

var ie=document.all
var dom=document.getElementById
var ns4=document.layers
var calunits=document.layers? "" : "px"

var bouncelimit=10 //(must be divisible by 5)
var direction="up"

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.top=scroll_top-250+calunits
crossobj.visibility=(dom||ie)? "visible" : "show"
dropstart=setInterval("dropin()",50)
}

function dropin(){
scroll_top=(ie)? truebody().scrollTop : window.pageYOffset
if (parseInt(crossobj.top)<100+scroll_top)
crossobj.top=parseInt(crossobj.top)+40+calunits
else{
clearInterval(dropstart)
bouncestart=setInterval("bouncein()",50)
}
}

function bouncein(){
crossobj.top=parseInt(crossobj.top)-bouncelimit+calunits
if (bouncelimit<0)
bouncelimit+=5
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 redo(){
bouncelimit=10
direction="up"
initbox()
}

// End -->
