// JavaScript Document
//specify speed of scroll (greater=faster)
var speed=5

iens6 = document.all||document.getElementById
firefox = document.getElementById && !document.all
 
var crossobj;
var contentwidth;
 
function movedown(a){

if (document.getElementById(a) != null )
{
crossobj=document.getElementById(a) 
if (iens6){
contentwidth=crossobj.offsetWidth 
}
if (firefox){
contentwidth=crossobj.offsetWidth + 537
}
}
if (iens6&&parseInt(crossobj.style.left)>=(contentwidth*(-1)+637))  /* IE Fix */
crossobj.style.left=parseInt(crossobj.style.left)-speed+"px"
movedownvar=setTimeout("movedown('a')",20)
}

function moveup(a){
if (document.getElementById(a) != null )
{
crossobj=document.getElementById(a) 
contentwidth=crossobj.offsetWidth
}
if (iens6&&parseInt(crossobj.style.left)<=0)
crossobj.style.left=parseInt(crossobj.style.left)+speed+"px"
moveupvar=setTimeout("moveup('a')",20)
}
