var menuwidth=480
var menuheight=25
var scrollspeed=6
var iedom=document.all||document.getElementById
var actualwidth=''
var cross_scroll, ns_scroll
var loaded=0

function begin(){
	if (iedom){
		cross_scroll=document.getElementById? document.getElementById("div1") : document.all.test2
		actualwidth=cross_scroll.offsetWidth
		if (document.getElementById )
		{
			document.getElementById ("parentdiv").style.height = cross_scroll.offsetHeight;
		}
	}
	else if (document.layers){

	}
	loaded=1
}

window.onload = begin;

function moveleft(){
	if (loaded==1){
		if (iedom&&parseInt(cross_scroll.style.left)>(menuwidth-actualwidth)){
			cross_scroll.style.left=parseInt(cross_scroll.style.left)-scrollspeed+"px"
		}
	else if (document.layers&&ns_scroll.left>(menuwidth-actualwidth))
		ns_scroll.left-=scrollspeed
	}
	left=setTimeout("moveleft()",50)
}

function moveright(){
	if (loaded){
		if (iedom&&parseInt(cross_scroll.style.left)<0)
			cross_scroll.style.left=parseInt(cross_scroll.style.left)+scrollspeed+"px"
		else if (document.layers&&ns_scroll.left<0)
			ns_scroll.left+=scrollspeed
		}
	right=setTimeout("moveright()",50)
}