// JavaScript Document


//check browser and if it is netscape lets change the position value so it is placed correclty
//this is here because Internet explorer does not like the position value, when you change window size the position is all messed up
function checkBrowser() {
	if(navigator.appName == "Microsoft Internet Explorer") {}
	else{document.getElementById("container").style.position="absolute";}
	
}
function checkBrowser2() {
	if(navigator.appName == "Microsoft Internet Explorer") {}
	else{document.getElementById("container").style.position="absolute";
	document.getElementById("container2").style.position="absolute";
	}
	
}


var speed=5


function movedown(){
	var crossobj=document.getElementById("content")
	contentheight=crossobj.offsetHeight
	if (parseInt(crossobj.style.top)>=(contentheight*(-1)+150))
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
		movedownvar=setTimeout("movedown()",20)
}



function moveup(){
	var crossobj=document.getElementById("content")
	contentheight=crossobj.offsetHeight
	if (parseInt(crossobj.style.top)<=0)
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
		moveupvar=setTimeout("moveup()",20)

}


function movedown2(){
	var crossobj=document.getElementById("content2")
	contentheight=crossobj.offsetHeight
	if (parseInt(crossobj.style.top)>=(contentheight*(-1)+150))
		crossobj.style.top=parseInt(crossobj.style.top)-speed+"px"
		movedownvar2=setTimeout("movedown2()",20)
}



function moveup2(){
	var crossobj=document.getElementById("content2")
	contentheight=crossobj.offsetHeight
	if (parseInt(crossobj.style.top)<=0)
		crossobj.style.top=parseInt(crossobj.style.top)+speed+"px"
		moveupvar2=setTimeout("moveup2()",20)

}

