var topSelected=null;var hover_intent=null;var that=null;var allStop=false;var IE=/*@cc_on!@*/false;var defaultSubMenu=null;function hideBar(){if(defaultSubMenu!=null&&$("#topMenu ul:visible").filter(defaultSubMenu).length>0)
return;var numElements=$("#topMenu ul").length;if(!IE)
{$("#topMenu ul").fadeOut(null,function(){if(--numElements>0)
return;if(defaultSubMenu==null){return;}
else{$(defaultSubMenu).fadeIn(150);}});}
else
{$("#topMenu ul").hide();if(defaultSubMenu==null){return;}
else{$(defaultSubMenu).show();}}}
$(document).ready(function(){if(defaultSubMenu!=null){$("#topMenu ul:not("+defaultSubMenu+")").hide();}
else{$("#topMenu ul").hide();}
$("#nav li a").hover(function(){that=this;hover_intent=setTimeout(function(){if(allStop)
return;var subMenuId="#"+$(that).parent().attr("id").replace("nav_","tm_");var childMenu=$(subMenuId);if(childMenu.length<1)
{return;}
$("#nav li a").removeClass("active");$(that).addClass("active");$("#topMenu ul:not(#"+childMenu.attr('id')+")").hide();if(childMenu.is(":hidden")==true){if(IE)
{childMenu.show();}
else
{childMenu.fadeIn(150);}}},50);},function()
{try{clearTimeout(hover_intent);}
catch(e){};});$('#bgColor').click(hideBar);$('#topMenuContainer, #topMenu').click(function(e){e.stopPropagation();});});
