
$(document).ready(function(){
	$("img.social").mouseover(function() { 
		var src = $(this).attr("src").match(/[^\.]+/) + "-active.png";
    	$(this).attr("src", src);
	}).mouseout(function() {
		var src = $(this).attr("src").replace("-active", "");
		$(this).attr("src", src);
	});
	$(".pics").cycle({ 
		prev: '#left', 
		next: '#right', 
		fit: 0,
		timeout: 10000
	});
	$("div.menu a").click(function(e){
		e.preventDefault();
		var wwntg = $(this).attr("href");
		$(".container, .pics, #right, #left, div.social, div.text").animate({
			left: "-2500px"
		}, 600, function(){
			window.location = wwntg;
		});
	});
}); 

$(window).load(function(){
	$("div.loading").fadeOut();
	$(".container, div.social").animate({
		marginLeft:	"-400px"
	});
	$(".pics, .text").animate({
		marginLeft:	"-395px"
	});
	$("#right").animate({
		marginLeft:	"410px"
	});
	$("#left").animate({
		marginLeft:	"-467px"
	});
	
});

