	

	var speed=2;
	var toggle_factor=-1;
	
	ns4 = (document.layers)? true:false
	ie4 = (document.all)? true:false
	
	function stopscroll()
	{
		speed=0
	}
	
	function upscroll()
	{
		speed=2;
		toggle_factor=-1
	}
	
	function downscroll()
	{
	  speed=-2;
	  toggle_factor=1
	}


function init()
{

	var js_Xpos=500;
	var js_Ypos=400;
	var js_screen_height=screen.height;
	var js_screen_width=screen.width;
	
				if(js_screen_height >=768)
				{
					js_Xpos=610;
					
				}
	
	
				if (ns4) 
				{
					document.blockDiv.left=js_Xpos
					block = document.blockDiv.document.childDiv;
					layerlength=document.blockDiv.document.width
					
					layerheight=document.blockDiv.document.height;
					innerlayerlength=document.blockDiv.document.childDiv.document.width
					innerlayerheight=document.blockDiv.document.childDiv.document.height
					
				}	
					
                if (ie4) 
				{
					blockDiv.style.left=js_Xpos;
					block = childDiv.style;
					childDiv.style.ypos = 200;
					innerlayerlength=childDiv.style.offsetWidth ;
					innerlayerheight=190;
				}

				block.xpos = parseInt(block.left);
							
				slide()

}



function slide()
{


	if(toggle_factor<0)
	{
		
		if (block.ypos >= (-1)*innerlayerheight) 
		{
		
			block.ypos -= speed
			block.top = block.ypos
			setTimeout("slide()",100)
		}
		else
		{
		
			block.ypos=370;
			slide();
		}
					
					
					
	}
	
	else
	{
	
		if (block.ypos <= (1)*innerlayerheight) 
		{
		           
			block.ypos -= speed
			
			block.top = block.ypos
			setTimeout("slide()",100)
      	}
		else
		{
			block.ypos=-10;
			slide();
		}

	
	
	
	}				
					
					
}