var speed=5
iens6=document.all||document.getElementById
ns4= document.layers
if (iens6)
{
		var crossobj=document.getElementById? document.getElementById("content") : document.all.content
		var contentheight=crossobj.offsetHeight
}
else 
if (ns4)
{
		var crossobj=document.nscontainer.document.nscontent
		var contentheight=crossobj.clip.height
}

function moveprev()
{	
		if(iens6 && crossobj.style.left == "0px")
		stopscroll();
		else
		{
			if (window.moveupvar) clearTimeout(moveupvar)
		
			if (iens6 && parseInt(crossobj.style.right) >= 0)
			{
					crossobj.style.left = parseInt(crossobj.style.left)+speed+"px";
			}
			else 
			{
					crossobj.style.left = parseInt(crossobj.style.left)+speed+"px";	
			}
			movedownvar=setTimeout("moveprev()",20)
		}
}

function movenext(scrlwidth)
{
	var scrlwidth=scrlwidth; 
		
		if(crossobj.style.left == scrlwidth){
			stopscroll();
		}else
		{ 
				if (window.movedownvar) clearTimeout(movedownvar)
				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
				//movedownvar=setTimeout("movenext()",20)
				movedownvar=setTimeout(function () {
				movenext(scrlwidth);
				}, 20);

		}
		
		//}
}


function stopscroll()
{
		if (window.moveupvar) clearTimeout(moveupvar)
		if (window.movedownvar) clearTimeout(movedownvar)
}

function movetop()
{
		stopscroll()
		if (iens6)
			crossobj.style.top=0+"px"
		else 
		if (ns4)
			crossobj.top=0
}

function MenuHighlight(obj,isShow) 
{
}
function getcontent_height()
{
		if (iens6)
			contentheight=crossobj.offsetHeight
		else 
		if (ns4)
			document.nscontainer.document.nscontent.visibility="show"
}
window.onload=getcontent_height