$(function()
{	
	if (!$.browser.msie) {	
		// this is the navigation trigger
		$("nav li a").not('.active').hover(
			function()
			{
				//$(this).addClass("hover");
				$(this).prev().stop().fadeTo(200, 0.9);
			},
			function()
			{
				$(this).prev().stop().fadeTo(200, 0.0);
			}
		);
	};
	
	
	$(".gallery a").hover(
		function()
		{
			$(this).find('.expand').fadeTo(200, 0.8);
		},
		function()
		{
			$(this).find('.expand').fadeTo(200, 0.0);
		}
	);
	
	$("#notions-content-wrapper").addClass('js');
	
});



function equalizeFooter() 
	{
		var currentWrapperHeight = $('#site').height();
		var currentFooterHeight = $('footer').height();
		//var currentDocHeight = currentWrapperHeight + currentFooterHeight;
		var currentWindowHeight = $(document).height();
		//alert("Window: "+currentWindowHeight + "\n\nBody: "+currentWrapperHeight);
		var diff = currentWindowHeight - currentWrapperHeight;
		if (diff > 0)
		{
			var newFooterHeight = currentFooterHeight + diff;
			$('footer').css('height', newFooterHeight+'px');
		}
};
		
		
