var x = 0;
var dest = 0;
var distance = 0;
var step = 0;
var destination = 0;
<!--
function scrollit(destination) {
step = 7;
dest = destination;
if (x<dest) {
while (x<dest) {
step += (step / 2000);
x += step;
top.main.scroll(x,0);
} 
top.main.scroll(dest,0);
x = dest;
}
if (x > dest)  {
while (x>dest) {
step += (step / 2000);
if(x >= (0+step))
{
x -= step; 
top.main.scroll(x,0);
}
else { break;  }
} 
if(dest >= 0) { top.main.scroll(dest,0); }
x = dest;
}
if (x<1) {x=1}
if (x>5000) {x=5000}
} 
// stop hiding -->

