// works in IE 8, check 7, discuss 6

function go(){
		document.getElementById('container').style.marginLeft = -250 + "px";
	}
	function tomasbreffitt(x){
		s = document.getElementById("container").style;
		l = parseInt (s.marginLeft);
		m = parseInt (s.marginLeft);
		switch (x){
			case "Main":
				y = -250;
				break;
			case "Web":
				y = -750;
				break;
			case "Design":
				y = -1250;
				break;
			case "Video":
				y = -1750;
				break;
			case "About":
				y = -2250;
				break;
			case "Contact":
				y = -2750;
				break;
			default:
				y = -250;
				break;		
		}
		mover();
	}
	function mover(){
		s = document.getElementById("container").style;
		l = parseInt (s.marginLeft);
		x = 10;
		z = 70;
		q = Math.abs(m-l);
		r = Math.abs(y-l);
		//alert(q);
		if (r < 250){
			z = Math.ceil(r*0.1);
		}
		if(q < 250){
			z = (Math.ceil(q*0.1)) + 1;
		}
		if (r == 0){
		 z = 0;
		}
		if(l > y){
			s.marginLeft = (l-z) + "px";
			setTimeout("mover()" , x);
		}
		if(l < y){
			s.marginLeft = (l+z) + "px";
			setTimeout("mover()" , x);
		}
	}
