<!-- <![CDATA[

/*
Script made by Martial Boissonneault © 2001-2003 http://getElementById.com/
This script may be used and changed freely as long as this msg is intact
Visit http://getElementById.com/ for more free scripts and tutorials.
*/
// Courtesy of SimplytheBest.net - http://simplythebest.net/scripts/

timerID = null;
var active = 0;

   
function ScrollUp(speed, divxx){
    	if(document.getElementById)
      {
    		if (divxx == 'cont')
    		{
          if(parseInt(obj.style.top) < 0)
          {
      			obj.style.top = parseInt(obj.style.top) + speed + "px";
  		    }
      		timerID = setTimeout("ScrollUp("+speed+",'cont')",30);
      	}
      	else
      	{
          if(parseInt(objd.style.top) < 0)
          {
      			objd.style.top = parseInt(objd.style.top) + speed + "px";
  		    }
      		timerID = setTimeout("ScrollUp("+speed+",'text-div')",30);
        }
    	}
}

function ScrollDown(speed, divxx){
    	if(document.getElementById)
      {                        
    		if (divxx == 'cont')
    		{
          if(parseInt(obj.style.top) > document.getElementById('cont').offsetHeight - obj.offsetHeight){ 
      			obj.style.top = parseInt(obj.style.top) - speed + "px";
  		    }
          timerID = setTimeout("ScrollDown("+speed+",'cont')",30);
		    }
		    else 
		    {
          if(parseInt(objd.style.top) > document.getElementById('text-div').offsetHeight - objd.offsetHeight){ 
      			objd.style.top = parseInt(objd.style.top) - speed + "px";
  		    }
          timerID = setTimeout("ScrollDown("+speed+",'text-div')",30);
        }
    		
    	}
}

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

function ScrollPageInit(pos) {
    	if(document.getElementById){
    		obj = document.getElementById("page1_thumb");
    		obj.style.visibility = "visible";
    		//obj['page1'].style.top = -1* parseInt(70) +"px";	
			obj.style.top = pos;
    		
    		objd = document.getElementById("page1_text");
    		objd.style.visibility = "visible";
    		objd.style.top = 0;	
    	}	
}

function scrollActualPosition() {
    	if(document.getElementById){
    		obj = document.getElementById("page1_thumb");
    		obj.style.visibility = "visible";
			return obj.style.top;
		}
}
//]]> -->
