	var id1,id2;

	function stopdiv()
	{
		window.clearTimeout(tOVal);
	}
	
	function startdiv()
	{
		tOVal=setTimeout("divscroll()",200);
	}
		
	function scrollup()
	{
		window.clearTimeout(id2);
		document.getElementById("bodytext").scrollTop+=4;
		id1=setTimeout("scrollup()",80);
		document.getElementById("inter").value="";
	}
	function scrolldown()
	{
		window.clearTimeout(id1);
		document.getElementById("bodytext").scrollTop-=4;
		id2=setTimeout("scrolldown()",60);
		document.getElementById("inter").value="";			
	}
	function divscrollup()
	{
			if(document.getElementById("inter").value!="up")
			{
				setTimeout("scrollup()",60);
			}
			document.getElementById("inter").value="up";
	}

	function divscrolldown()
	{

		if(document.getElementById("inter").value!="down")
		{
			setTimeout("scrolldown()",80);
		}
		document.getElementById("inter").value="down"
	}
	
	
	function stopdown()
	{
		window.clearTimeout(id2);
	}
	
	function stopup()
	{
		window.clearTimeout(id1);
	}
	
	function stopscroll()
	{
		scrl.scrollAmount = 0;
	}
	
	function startscroll()
	{
		scrl.scrollAmount = 3;
	}


function nr(uName, uState)
{
	//alert(uState);
	navRoll = true;
   if(navRoll)
   {
	//  alert(uName);
      document.images[uName].src = "images/"+uName+uState+".gif";
	  //alert(document.images[uName].src);
   }
}
function nr1(uName, uState)
{
	//alert(uState);
	navRoll = true;
   if(navRoll)
   {
	//  alert(uName);
      document.images[uName].src = "images/"+uName+uState+".jpg";
	  //alert(document.images[uName].src);
   }
   
}
function showsub(id)
{
   document.getElementById("s"+id).style.display = "block";
}
function hidesub(id)
{
   document.getElementById("s"+id).style.display = "none";
}