//var arr;
//arr = new Array("#1b8542", '#e4388f', '#c32327', '#343434', '#00ade9')
//var x;
//x = 0;

//$("h1 a").animate( { backgroundColor: arr[x] }, 250);

//x = x + 1;
//if (x >= arr.length) x = 0;

$(document).ready(function() {
	
	$("#details a.home-link").fadeTo(300 , 0.1);
	
	$(".wrap").animate({ 
        paddingLeft: "160px"
      }, 300 );

	$("a.kev").hover(function(){
		$("a.home-link").stop(true, true);
			$("h1 a").animate( { backgroundColor: "#1b8542" }, 250);
		},
		function(){
			$("h1 a").animate( { backgroundColor: "#1b8542" }, 250);
		}
	);
	
	$("a.ed").hover(function(){
		$("a.home-link").stop(true, true);
			$("h1 a").animate( { backgroundColor: "#00ade9" }, 250);
		},
		function(){
		  	$("h1 a").animate( { backgroundColor: "#00ade9" }, 250);
		}
	);
	
	$("a.hector").hover(function(){
		$("a.home-link").stop(true, true);
			$("h1 a").animate( { backgroundColor: "#e4388f" }, 250);
		},
		function(){
		  	$("h1 a").animate( { backgroundColor: "#e4388f" }, 250);
		}
	);
	
	$("a.mark").hover(function(){
		$("a.home-link").stop(true, true);
			$("h1 a").animate( { backgroundColor: "#c32327" }, 250);
		},
		function(){
		  	$("h1 a").animate( { backgroundColor: "#c32327" }, 250);
		}
	);
	
	$("a.nic").hover(function(){
		$("a.home-link").stop(true, true);
			$("h1 a").animate( { backgroundColor: "#343434" }, 250);
		},
		function(){
		  	$("h1 a").animate( { backgroundColor: "#343434" }, 250);
		}
	);
	
	$("#details a.home-link").hover(function(){
			$(this).fadeTo("fast", 1.0);
		},
		function(){
			$(this).fadeTo("fast", 0.1);
		}
	);
	
	$("span.iphone").hover(function(){
		$(this).css('backgroundPosition', '133px 0');
		},
		function(){
		$(this).css('backgroundPosition', '0 0');
	}
	);
	
});