jQuery(document).ready(function($) {
	
	// Instead of stycky footer
	$('#main').css('min-height', $(window).height()-433 );
	var resizeTimer = null;
	$(window).bind('resize', function() {
	    if (resizeTimer) clearTimeout(resizeTimer);
	    resizeTimer = setTimeout(function(){
	  		$('#main').css('min-height', $(window).height()-433 );
		}, 100);
	});
	
	// Header hover
	$('#header h1 a')
		.addClass('fx')
		.fadeTo(0,0)
		.mouseenter(function() {
			$(this).stop();
			$(this).fadeTo(100,1);
		}).mouseleave(function() {
			$(this).fadeTo(500,0);
	});
	
	// Top menu hover
	if (!$.browser.msie) { // IE versions don't deserve this (the opacity changing screws up the text and PNG backgrounds)
		$('#header .menu li a').mouseenter(function(){
			$(this).parent().siblings().children().stop();
			$(this).parent().siblings().children().fadeTo(100, 0.4);
		}).mouseleave(function(){
			$(this).parent().siblings().children().stop();
			$(this).parent().siblings().children().fadeTo(500, 1);
		});
	}
	
});