$(document).ready(function(){		
	   var activeitem = $("#top_navigation >ul >li.active");
	   $(".nav_section").hover(function(){
											  $(this).stop().removeClass("active").addClass("hover");
											  $(".dd_container",this).stop().css("display","block");											  
											  
											  var ulHeight = $(this).find(".dd_container ul").height();
											  var ddInnerHeight = $(this).find(".dd_inner").height();											  
											  var maxHeight = (ulHeight > ddInnerHeight) ? ulHeight:ddInnerHeight;											  
											  
											  $(this).find(".dd_container ul").height(maxHeight);
											  $(this).find(".dd_inner").height(maxHeight);
											  $(this).find(".shadow_right").height(maxHeight+15);
											  $(this).find(".shadow_left").height(maxHeight+15);
											  }, 
										  function(){
											  if($(this).attr("id") == activeitem.attr("id"))
												  activeitem.stop().removeClass("hover").addClass("active");
											  else																		
													$(this).stop().removeClass("hover");
													
												$(".dd_container",this).stop().css("display","none");
											  });
	   $(".dd_container").hover(function(){
									$(this).parent().stop().removeClass("active").addClass("hover");
									$(this).stop().css("display","block");
									}, 
								function(){
									if($(this).parent().attr("id") == activeitem.attr("id"))
											activeitem.stop().removeClass("hover").addClass("active");
									else
											$(this).parent().stop().removeClass("hover");
									$(this).stop().css("display","none");
									});
									
		if(navigator.platform == "MacIntel")
		{
			$(".nav_link").css("padding-left","11px");
			$(".nav_link").css("padding-right","11px");			
		}
});