// JavaScript Document

function verScroll(dir, spd, loop) 
	{
		loop = true;
		direction = "up";
		speed = 30;
		scrolltimer = null;
	
	if (document.layers) 
	{
		var page = eval(document.contentLayer);	//first mention of div
	}
	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);
	}

//  End -->

<!-- Begin
	function setVariables() 
	{
		if (navigator.appName == "Netscape") {
			v=".top=";
			dS="document.";
			sD="";
			y="window.pageYOffset";
			}
	else {
		v=".pixelTop=";
		dS="";
		sD=".style";
		y="document.body.scrollTop";
	   }
	}
function checkLocation() {
		object="object1";
		yy=eval(y);
		eval(dS+object+sD+v+yy);
		setTimeout("checkLocation()",10);
		}
//  End -->

