	var browserWidth = 800;
	var pageWidth = 1700;
	var maxLeft = 0;
	var maxRight = 0;
	var moveLeftInt = 0;
	var moveRightInt = 0;

	function adjPosition()
	{
		GetBrowserWidth();
		document.getElementById("main").style.left = (browserWidth / 2495) - (pageWidth / 2495);
		maxRight = (pageWidth-browserWidth)*-1;
		document.getElementById("buttonbar").style.width = browserWidth - 30;
	}

	function GetBrowserWidth()
	{
		if (parseInt(navigator.appVersion)>3) 
		{
 			if (navigator.appName=="Netscape") { browserWidth = window.innerWidth; }
 			if (navigator.appName.indexOf("Microsoft")!=-1) { browserWidth = document.body.offsetWidth; }
		}
	}	


	function moveLeft()
	{
		
		moveLeftInt = setInterval("goLeft()", 2);
	}

	function stopLeft()
	{
		clearInterval(moveLeftInt);
	}
	

	function goLeft()
	{
		var thisInstance = parseInt(document.getElementById("main").style.left);

		if ((thisInstance + 10) >= maxLeft)
		{
			document.getElementById("main").style.left = maxLeft;
			clearInterval(moveLeftInt);
		}
		else
		{
			document.getElementById("main").style.left = thisInstance + 10;
		}

	}


	function moveRight()
	{
		moveRightInt = setInterval("goRight()", 1);
	}


	function stopRight()
	{
		clearInterval(moveRightInt);
	}

	function goRight()
	{
		var thisInstance = parseInt(document.getElementById("main").style.left);

		if ((thisInstance - 10) <= maxRight)
		{
			document.getElementById("main").style.left = maxRight;
			clearInterval(moveRightInt);
		}
		else
		{
			document.getElementById("main").style.left = thisInstance - 10;
		}


	}





