function verScroll(dir, spd, loop) 
{
loop = true;
direction = "up";
speed = 1; //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); // --This is the start position--
var upr = 17;  // upper limiter  -4 --- Increasing this value allows top of txt to scroll DOWN farther.
var lwr = -260;   // lower limiter -200.  Increasing this valuelets bottom of txt to scroll UP farther.


if (loop == true) 
{							        
	if (direction == "dn")
	{
		if (y_pos > lwr)	 
		{				               
		page.top = (y_pos - (speed));
		} 
	} 												 
	
	if (direction == "up" )
	{	
		if (y_pos < upr) 
			{ 		   												
			page.top = (y_pos + (speed));   
			} 
			else 
			{ 									
				if (direction == "top") 
				{        									
				page.top = 10; 
	      }
	   	}
		}
		
		
    scrolltimer = setTimeout("verScroll(direction,speed)", 1);
 }
}

function stopScroll() 
{
loop = false;
clearTimeout(scrolltimer);
}

