var speed=1 
iens6=document.all||document.getElementById
ns4=document.layers

var scrollDirection
if (iens6){
	document.write('</div></div>')
	var crossobj=document.getElementById? document.getElementById("contentrob") : document.all.contentrob
	var contentrobheight=crossobj.offsetHeight
}
else if (ns4){
	var crossobj=document.nscontainerrob.document.nscontentrob
	var contentrobheight=crossobj.clip.height
}
function movedown(){
	if (window.moveupvar)        clearTimeout(moveupvar)
   	stopscroll()
   if (iens6&&parseInt(crossobj.style.top)>=(contentrobheight*(-1)))
   	crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
   else if (ns4&&crossobj.top>=(contentrobheight*(-1)))
   	crossobj.top-=speed
   else
   	movetop()
      movedownvar=setTimeout("movedown()",50)
      scrollDirection = "down"
}  
function mouseover(){
	mouseover="stop"
}
function moveup(){
	if (window.movedownvar) clearTimeout(movedownvar)
		stopscroll()
	if (iens6&&parseInt(crossobj.style.top)<=160) //if (iens6&&parseInt(crossobj.style.top)<=0)
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
	else if (ns4&&crossobj.top<=160)//else if (ns4&&crossobj.top<=0)
		crossobj.top+=speed
	else
		movebottom()
		moveupvar=setTimeout("moveup()",10)
		scrollDirection = "up"
}
function stopscroll(){
	if (window.moveupvar) clearTimeout(moveupvar)
	if (window.movedownvar) clearTimeout(movedownvar)
}
function movetop(){
	stopscroll()
	if (iens6)
		crossobj.style.top=200+"px" //crossobj.style.top=0+"px"
	else if (ns4)
		crossobj.top=200 //crossobj.top=0
}
function movebottom(){
	stopscroll()
	if (iens6)
		crossobj.style.top=-contentrobheight+"px"
	else if (ns4)
		crossobj.top=-contentrobheight
}
function resumescroll(){
	if (scrollDirection == "up")
		moveup()
	else 
	   movedown()
}
function getcontentrob_height(){
	if (iens6)
		contentrobheight=crossobj.offsetHeight
	else if (ns4)
		document.nscontainerrob.document.nscontentrob.visibility="show"
}
window.onload=getcontentrob_height
movedown();