/* This little bit of java script handles the scrolling
of the main content elements inside their
container clipping div's */
var movement=5;  //pixels
var freq=50; //mili seconds
var scrollObj;
var containerObj;

function moveDown(obj){
    if(obj==1){scrollObj=mainScrollObj; containerObj=mainContainerObj;}
    if(obj==2){scrollObj=topScrollObj; containerObj=topContainerObj;}
    
    if (parseInt(scrollObj.style.top)>=(scrollObj.offsetHeight-containerObj.offsetHeight)*-1){
        scrollObj.style.top=(parseInt(scrollObj.style.top)-movement)+"px";
    } 
    moveDownVar=setTimeout("moveDown()",freq);
}

function moveUp(obj){ 
    if(obj==1) scrollObj=mainScrollObj;
    if(obj==2) scrollObj=topScrollObj;

    if (parseInt(scrollObj.style.top)<=0){ 
        scrollObj.style.top=(parseInt(scrollObj.style.top)+movement)+"px"; 
    }
    moveUpVar=setTimeout("moveUp()",freq); 
}