

<!-- Begin
function verScroll(dir, spd, loop) {
	loop = true;
	direction = "up";
	speed = 10;
	scrolltimer = null;
	
	if (document.layers) {
		var page = eval(document.contentLayer);
	} else {
		if (document.getElementById) {
			var page= eval("document.getElementById('contentLayer').style");
		} else {
			if (document.all) {
				var page = eval(document.all.contentLayer.style);
      		}
   		}
	}

	direction = dir;
	speed = parseInt(spd);
	var y_pos = parseInt(page.top);
	
	if (loop == true) {
		if (direction == "dn") {
			page.top = (y_pos - (speed));
		} else {
			if (direction == "up" && y_pos < 10) {
				page.top = (y_pos + (speed));
			} else {
				if (direction == "top") {
					page.top = 10;
      			}
   			}
		}
		scrolltimer = setTimeout("verScroll(direction,speed)", 1);
   	}
}

function stopScroll() {
	loop = false;
	clearTimeout(scrolltimer);
}
 function scroller() {

    //collect the variables
    scroller.docH = document.getElementById("content").offsetHeight;
    scroller.contH = document.getElementById("scrollContainer").offsetHeight;
    scroller.scrollAreaH = document.getElementById("scrollArea").offsetHeight;
      
    //calculate height of scroller and resize the scroller div
    //(however, we make sure that it isn't to small for long pages)
    scroller.scrollH = (scroller.contH * scroller.scrollAreaH) / scroller.docH;
    //if(scroller.scrollH < 15) scroller.scrollH = 15;
    document.getElementById("scroller").style.height = Math.round(scroller.scrollH) + "px";
    
    //what is the effective scroll distance once the scoller's height has been taken into account
    scroller.scrollDist = Math.round(scroller.scrollAreaH-scroller.scrollH);
    
    //make the scroller div draggable
    Drag.init(document.getElementById("scroller"),null,0,0,-1,scroller.scrollDist);
    
    //add ondrag function
    document.getElementById("scroller").onDrag = function (x,y) {
      var scrollY = parseInt(document.getElementById("scroller").style.top);
      var docY = 0 - (scrollY * (scroller.docH - scroller.contH) / scroller.scrollDist);
      document.getElementById("content").style.top = docY + "px";
    }
  }


function scroller1() {

    //collect the variables
    scroller1.docH = document.getElementById("content1").offsetHeight;
    scroller1.contH = document.getElementById("scrollContainer1").offsetHeight;
    scroller1.scrollAreaH = document.getElementById("scrollArea1").offsetHeight;
      
    //calculate height of scroller and resize the scroller div
    //(however, we make sure that it isn't to small for long pages)
    scroller1.scrollH = (scroller1.contH * scroller1.scrollAreaH) / scroller1.docH;
    //if(scroller.scrollH < 15) scroller.scrollH = 15;
    document.getElementById("scroller1").style.height = Math.round(scroller1.scrollH) + "px";
    
    //what is the effective scroll distance once the scoller's height has been taken into account
    scroller1.scrollDist = Math.round(scroller1.scrollAreaH-scroller1.scrollH);
    
    //make the scroller div draggable
    Drag.init(document.getElementById("scroller1"),null,0,0,-1,scroller1.scrollDist);
    
    //add ondrag function
    document.getElementById("scroller1").onDrag = function (x,y) {
      var scrollY = parseInt(document.getElementById("scroller1").style.top);
      var docY = 0 - (scrollY * (scroller1.docH - scroller1.contH) / scroller1.scrollDist);
      document.getElementById("content1").style.top = docY + "px";
    }
  }
function scroller2() {

    //collect the variables
    scroller2.docH = document.getElementById("content2").offsetHeight;
    scroller2.contH = document.getElementById("scrollContainer2").offsetHeight;
    scroller2.scrollAreaH = document.getElementById("scrollArea2").offsetHeight;
      
    //calculate height of scroller and resize the scroller div
    //(however, we make sure that it isn't to small for long pages)
    scroller2.scrollH = (scroller2.contH * scroller2.scrollAreaH) / scroller2.docH;
    //if(scroller.scrollH < 15) scroller.scrollH = 15;
    document.getElementById("scroller2").style.height = Math.round(scroller2.scrollH) + "px";
    
    //what is the effective scroll distance once the scoller's height has been taken into account
    scroller2.scrollDist = Math.round(scroller2.scrollAreaH-scroller2.scrollH);
    
    //make the scroller div draggable
    Drag.init(document.getElementById("scroller2"),null,0,0,-1,scroller2.scrollDist);
    
    //add ondrag function
    document.getElementById("scroller2").onDrag = function (x,y) {
      var scrollY = parseInt(document.getElementById("scroller2").style.top);
      var docY = 0 - (scrollY * (scroller2.docH - scroller2.contH) / scroller2.scrollDist);
      document.getElementById("content2").style.top = docY + "px";
    }
  }

  function scroller3() {

    //collect the variables
    scroller3.docH = document.getElementById("content3").offsetHeight;
    scroller3.contH = document.getElementById("scrollContainer3").offsetHeight;
    scroller3.scrollAreaH = document.getElementById("scrollArea3").offsetHeight;
      
    //calculate height of scroller and resize the scroller div
    //(however, we make sure that it isn't to small for long pages)
    scroller3.scrollH = (scroller3.contH * scroller3.scrollAreaH) / scroller3.docH;
    //if(scroller.scrollH < 15) scroller.scrollH = 15;
    document.getElementById("scroller3").style.height = Math.round(scroller3.scrollH) + "px";
    
    //what is the effective scroll distance once the scoller's height has been taken into account
    scroller3.scrollDist = Math.round(scroller3.scrollAreaH-scroller3.scrollH);
    
    //make the scroller div draggable
    Drag.init(document.getElementById("scroller3"),null,0,0,-1,scroller3.scrollDist);
    
    //add ondrag function
    document.getElementById("scroller3").onDrag = function (x,y) {
      var scrollY = parseInt(document.getElementById("scroller3").style.top);
      var docY = 0 - (scrollY * (scroller3.docH - scroller3.contH) / scroller3.scrollDist);
      document.getElementById("content3").style.top = docY + "px";
    }
  }



//  End -->


