Cufon.replace('h1');

$(document).ready(function(){


$('#page-overlay').css("z-index", "9999");
	$.preloadCssImages();
});
$(window).load(function () {
	$('#page-overlay').fadeOut(500);
	
function displayPage() {
}
if(window.addEventListener) { 
    window.addEventListener( 
        "load", 
        displayPage, 
        false 
    ); 
}
if(window.addEventListener) { 
    window.addEventListener( 
        "unload", 
        displayPage, 
        false 
    ); 
}

$("a.dodo").click(function(event){
	event.preventDefault();
	linkLocation = this.href;
	$("#page-overlay").fadeIn(300);
	$("#content-wrapper").animate({"top": "-200"}, 300, redirectPage);  
				
	});

	function redirectPage() {
		window.location = linkLocation;
	}

$('.navigation-sibling').children().hover(function() {
	$(this).siblings().stop().fadeTo(250,0.2);
	}, function() {
	$(this).siblings().stop().fadeTo(350,1);
	});
});

/*
$(function() {
 	$('.first-one, .second-one, .third-one, .fourth-one').css("display", "none");
    $('.first-one, .second-one, .third-one, .fourth-one').fadeInOneByOne(); 
    }); 
 jQuery.fn.fadeInOneByOne = function() { 
    var $this = this, count = this.length; 
    fadeInElement(0); 

    function fadeInElement(i) { 
        var el = $this[i]; 
        jQuery(el).fadeIn(500, function() { 
            if (++i < count) 
                fadeInElement(i); 
        }); 
    }; 
}; 
*/
