//scroll script
/**************************************************************
Script made by Martial Boissonneault http://getElementById.com/
This script is provided free to the web development community.
**************************************************************/

timerID = null;
var active = 'scrollerContent';

function ChangePage(num){
    if(document.getElementById){
    obj[active].style.visibility = "hidden"
    active = num
    obj[active].style.top = 0;
    obj[active].style.visibility = "visible"
    }
}

function ScrollUp(speed){
    if(document.getElementById){
    if(parseInt(obj[active].style.top) < 0)
    obj[active].style.top = parseInt(obj[active].style.top) + speed + "px";
    timerID = setTimeout("ScrollUp("+speed+")",80)
    }
}

function ScrollDown(speed){
    if(document.getElementById){ 
		if(parseInt(obj[active].style.top) > document.getElementById('ContentScroll').offsetHeight - obj[active].offsetHeight) 
    obj[active].style.top = parseInt(obj[active].style.top) - speed + "px";
    timerID = setTimeout("ScrollDown("+speed+")",80)
    }
}

function ScrollStop(){
    if(document.getElementById){
    clearTimeout(timerID);
    }
}

function ScrollPageInit() {
    if(document.getElementById){
    obj = document.getElementById("scroller").getElementsByTagName("div");
    obj[active].style.visibility = "visible";
    obj[active].style.top = '0px'; 
    } 
}

onload=ScrollPageInit;

//end scroll script

<!--
function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}
//-->
