//copyright by A&A_productions
function movedown(){
if (window.moveupvar) clearTimeout(moveupvar)
if (iens6&&parseInt(crossobj.style.top)>=(contentheight*(-1)+310))
crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
else if (ns4&&crossobj.top>=(contentheight*(-1)+310))
crossobj.top-=speed
movedownvar=setTimeout("movedown()",20);
}

function moveup(){
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()",20);
}

function moveupbottom(){
if (window.movedownbottomvar) clearTimeout(movedownbottomvar)
if (iens6&&parseInt(crossobj.style.bottom)>=(contentheight*(-1)+310))
crossobj.style.bottom=parseInt(crossobj.style.bottom)-speed+"px"
else if (ns4&&crossobj.bottom>=(contentheight*(-1)+310))
crossobj.bottom-=speed
moveupbottomvar=setTimeout("moveupbottom()",20)

}

function movedownbottom(){
if (window.moveupbottomvar) clearTimeout(moveupbottomvar)
if (iens6&&parseInt(crossobj.style.bottom)<=0)
crossobj.style.bottom=parseInt(crossobj.style.bottom)+speed+"px"
else if (ns4&&crossobj.bottom<=0)
crossobj.bottom+=speed
movedownbottomvar=setTimeout("movedownbottom()",20)
}

function moveright(){
if (window.moveleftvar) clearTimeout(moveleftvar)
if (iens6&&parseInt(crossobj.style.left)>=(contentwidth*(-1)+528))
crossobj.style.left=parseInt(crossobj.style.left)-speed+"px"
else if (ns4&&crossobj.left>=(contentwidth*(-1)+310))
crossobj.left-=speed
moverightvar=setTimeout("moveright()",20)
}

function moveleft(){
if (window.moverightvar) clearTimeout(moverightvar)
if (iens6&&parseInt(crossobj.style.left)<=0)
crossobj.style.left=parseInt(crossobj.style.left)+speed+"px"
else if (ns4&&crossobj.left<=0)
crossobj.left+=speed
moveleftvar=setTimeout("moveleft()",20)
}



function stopscroll(){
if (window.moveupvar) clearTimeout(moveupvar)
if (window.movedownvar) clearTimeout(movedownvar)
if (window.moveupbottomvar) clearTimeout(moveupbottomvar)
if (window.movedownbottomvar) clearTimeout(movedownbottomvar)
if (window.moverightvar) clearTimeout(moverightvar)
if (window.moveleftvar) clearTimeout(moveleftvar)
}

function getcontent_height(){
if (iens6)
contentheight=crossobj.offsetHeight
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}

function getcontent_width(){
if (iens6)
contentwidth=crossobj.offsetWidth
else if (ns4)
document.nscontainer.document.nscontent.visibility="show"
}