var IE=0;
var OB = 0;
var y=0;
var prevy=0;
var hop = 0;
var scratch;
var workInterval = 0;
var scrollInterval = -2;
var uagent=navigator.userAgent;
if (uagent.indexOf("MSIE") > 0)
{
IE=1;
}
if (uagent.indexOf("Mozilla 4.04") > 0)
{
OB=1;
}
function goScroll()
{
if( OB )
{
return;
}
if( IE == 1 )
{
document.writeln( '
' );
} else {
document.writeln( '' );
}
document.writeln('
');
if( IE == 1 )
{
document.writeln( '
' );
} else {
document.writeln( '' );
}
document.writeln( '
' );
if( IE == 1 )
{
document.kontrols.sk.options[0].selectedIndex=3;
document.kontrols.sk.options[1].selectedIndex=1;
} else {
document.layers[0].document.kontrols.sk.options[0].selectedIndex=3;
}
hold();
return true;
}
function setSpeed() { if( document.all ) { return document.all.kontrols.sk.options[document.all.kontrols.sk.selectedIndex].value; } else { return document.layers[0].document.kontrols.sk.options[document.layers[0].document.kontrols.sk.selectedIndex].value; } }
function setScroll()
{
if( IE == 1 )
{
y = getY() + 1;
} else {
y = getY() + 3;
}
top.scroll(0,y);
holdwork();
return true;
}
function getY()
{
if( IE == 1 )
{
return document.body.scrollTop;
} else {
return top.pageYOffset;
}
}
function holdwork()
{
if( IE == 1 )
{
obj = document.all.floatScroll.style;
} else {
obj = document.floatScroll;
}
obj.top = getY();
}
function hold()
{
holdwork();
workInterval = setInterval( "holdwork()", 1000 );
}
function hide()
{
if( document.all )
{
document.all.floatScroll.style.visibility = "hidden";
} else {
document.floatScroll.visibility = "hide";
}
clearInterval( workInterval );
return false;
}
function pause()
{
if( setSpeed() == 0 )
{
return;
}
if( hop == 0 )
{
release();
} else {
haltit();
}
return true;
}
function haltit()
{
if( scrollInterval != -2 )
{
clearInterval( scrollInterval );
}
hop = 0;
if( document.all )
{
document.all.pause.value = " \/\\ ";
} else {
document.layers[0].document.kontrols.pause.value = " \/\\ ";
}
}
function release()
{
if( scrollInterval != -2)
{
clearInterval( scrollInterval );
}
hop = 1;
if( document.all )
{
document.all.pause.value = " [] ";
} else
{
document.layers[0].document.kontrols.pause.value = " [] ";
}
if( setSpeed() != 999 )
{
scrollInterval = setInterval( "setScroll()", setSpeed() );
}
}
//-->