$(document).ready(function(){ 
      /*$('ul.sf-menu').sooperfish({
			dualColumn  : 9,
			tripleColumn  : 15,
			hoverClass  : 'sfHover',
			delay    : 500, 
			animationShow  : {height:'show',opacity:'show'},
			speedShow    : 750,
			easingShow      : 'easeOutOvershoot',
			animationHide  : {height:'hide',opacity:'hide'},
			speedHide    : 300,
			easingHide      : 'easeInOvershoot',
			autoArrows  : false
      });*/
	  
		
	
	$("#left_navigation ul li:nth-child(odd)").addClass("light");
    $("#left_navigation ul li:nth-child(even)").addClass("dark");
	
	$("ul.tabs").tabs("div.panes > div");
	
	if ($('body.landing').length) {
		$('hr').replaceWith('<img src="/images/css/page_div_shadow_narrow.gif" class="hr" />');
	} else {
		$('hr').replaceWith('<img src="/images/css/page_div_shadow.gif" class="hr" />');
	}
	
	 
	function addMega(){
	$(this).addClass("hovering");
	}
	
	function removeMega(){
	$(this).removeClass("hovering");
	}
	
	var megaConfig = {
		 interval: 0,
		 sensitivity: 1,
		 over: addMega,
		 timeout: 100,
		 out: removeMega
	};
	
	$("#nav li").hoverIntent(megaConfig)
	
	$('#nav li').each(function(){
		var maxHeight = 0;
		$(this).children('ul').each(function(){
			if (maxHeight < $(this).height()) {maxHeight = $(this).height()}
		});
		$(this).children('ul').each(function(){
			$(this).height(maxHeight);
		});
	});
	
	
}); 
