// JavaScript Document



var n = 0;
var currPos = 0;
var newPos = 1;
var scroller = ""; 
var initScroll = false;
var pause = false;
var speed = 1;

function startScroll(){

clearTimeout(initScroll);
if (newPos > currPos && !pause)
{
currPos = scroller.scrollTop;
n = n + 1.5;
scroller.scrollTop = n;
newPos = scroller.scrollTop;
setTimeout('startScroll()', 100); 
}
else if (newPos == currPos)
{
clearTimeout("startScroll()"); // 2 second delay until reset; 
}
}

function resetScroll(){

n = 0;
currPos = 0;
newPos = 1;
scroller.scrollTop = 0;
pause = true;
//initScroll = setTimeout('startScroll()');

}


function init(){

scroller = document.getElementById('expert');
scroller.scrollTop = 0;
initScroll = setTimeout('startScroll()', 400000); // 2 seconds before the scrolling begins;
 
scroller.onmouseover = function()
{
pause = true;
this.style.cursor = 'default'; 
}
scroller.onmouseout = function()
{
pause = false;
speed = 1;
} 
}

navigator.appName == "Microsoft Internet Explorer" ? attachEvent('onload', init, false) : addEventListener('load', init, false); 

