$(document).ready(function() {
	
	$("body").css("display", "none");

    $("body").fadeIn(3000);
    
	$("a.transition").click(function(event){
		event.preventDefault();
		linkLocation = this.href;
		$("body").fadeOut(2000, redirectPage);		
	});
		
	function redirectPage() {
		window.location = linkLocation;
	}
	
	if (!$.browser.msie) {
		$('.begin').hover(
		function(){
			$(this).stop().fadeTo('slow',1);
		},
		function(){
			$(this).stop().fadeTo('slow',0.7);
		});
		
		$('.download').hover(
		function(){
			$(this).stop().fadeTo('slow',1);
		},
		function(){
			$(this).stop().fadeTo('slow',0.7);
		});
		
		$('.profile').hover(
		function(){
			$(this).stop().fadeTo('slow',1);
		},
		function(){
			$(this).stop().fadeTo('slow',0.7);
		});
		
	}
	
	 $("#menu-1").lavaLamp({
			fx: "backout",
			speed: 700,
			click: function(event, menuItem) {
				return true;
			}
		});
		
	$('.modal-link').click(function() {
		$("#modal").fadeIn(1000);
		$(".no-body").fadeIn(1000);
	})
	
	$('.modal-close').click(function() {
		$("#modal").fadeOut(1000);
		$(".no-body").fadeOut(1000);
	})

});

