var isIE = (document.getElementById && document.all)?true:false;
var isNS4 = (document.layers)?true:false;
var isNS6 = (document.getElementById && !document.all)?true:false;
  
function moveLayer(width)
{
	
   obj=(isIE)?document.all.div1:document.getElementById("div1");
  // alert(obj.height);
    if (document.layers)
	{
		if(obj.style.top==""){obj.style.top=0;}
		//alert(obj.style.top)
		if (parseInt(obj.style.top)<(0-(width)+6)){
		  obj.style.top = 0
		}else{
		  obj.style.top = parseInt(obj.style.top)-1
		}
	}else{
		if(obj.style.top==""){obj.style.top=0+"px";}
		//alert(obj.style.top)
		if (parseInt(obj.style.top)<(0-(width)+6)){
		  obj.style.top = 0+"px"
		}else{
		  obj.style.top = (parseInt(obj.style.top)-1)+"px"
		}
	}
  
  timer = setTimeout ("moveLayer("+width+");", 40); 
}
function stopScroller()
{
  clearTimeout(timer)  
}
function runScroller(ht){
  if(!isNS4){moveLayer(ht)}
}