
//Manual Scroller- © Dynamic Drive 2001
//For full source code, visit http://www.dynamicdrive.com

//specify speed of scroll (greater=faster)
var speed=2
var btnUp = document.getElementById("imgUpArrow")
var btnDown = document.getElementById("imgDownArrow")

iens6=document.all||document.getElementById
ns4=document.layers

function movedown(click){
if (window.moveupvar) clearTimeout(moveupvar)
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+ 240))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+ 240))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",12)
if (click)
switchButtonVisibility()
}

function moveup(click){
if (window.movedownvar) clearTimeout(movedownvar)
if (iens6&&parseInt(crossobj.style.top)<=0)
crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
else if (ns4&&crossobj.top<=0)
crossobj.top+=speed
moveupvar=setTimeout("moveup()",12)
if (click)
switchButtonVisibility()
}

function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}

function stopscroll(){
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
}

function switchButtonVisibility(){
if (document.getElementById("hlUp").style.visibility == "visible"){
	document.getElementById("hlUp").style.visibility = "hidden"
	document.getElementById("hlDown").style.visibility = "visible"
	}
else{
	document.getElementById("hlUp").style.visibility = "visible"
	document.getElementById("hlDown").style.visibility = "hidden"
	}
}

