

var message = '';

$(document).ready(function() {

	// set cssHelper	
	$('body').cssHelper();

	//ie doesn't support :last-child in css :(
	$("ul li:last-child").addClass("last");
	// set overlay position
	mainTop = 	$('#backgroundimage').position();
	if ( mainTop != null ) { $('.overlay').css({top:mainTop.top});}


	
	//ie6 doesn't support :hover on none a tags
	$(".lvl1").children("li").mouseover(function() {
		$(this).addClass("iehover");	
		$(".overlay").css('display','block');
		
			
	}).mouseout(function() {
		$(this).removeClass("iehover");	
		$(".overlay").css('display','none');
		
		if($('body').attr('class').indexOf('IE7') > -1)
		{	
			// total ie7 hack to fix the menu. WEIRD		
			$('#navigation').animate({opacity:0.99});
			$('#navigation').animate({opacity:1.0});
		}


	});			

	
});

