function NavBarMenu(n,t){var o=this,s=100,h=500,r=0,c=0,i=0,u=0,myName=n,f=t,l=function(){r&&(window.clearTimeout(r),r=null)},a=function(){l();e();u&&(i=$(u).addClass("open"))},e=function(){if(i){if(i.attr("over")||i.find("[over=true]").length>0)return;i.removeClass("open");i.parents("[over!=true].open").removeClass("open")}if(i){var n=i.parents("[over=true]");i=n.length>0?$(n[0]):null}},v=function(){u=this;r=window.setTimeout(a,i?0:s)},y=function(){u=0;c=window.setTimeout(e,h)};$&&$.support.opacity&&$(document).ready(function(){eval(myName+".InitMenu();")}).click(o.CloseMenu);this.InitMenu=function(){navigator.msMaxTouchPoints||($(f+".openable").removeClass("openable").hover(v,y),$(f).hover(function(){$(this).attr("over","true")},function(){$(this).removeAttr("over")}))};this.ShowMap=function(n,t){var i=$("#"+t);n.populated||n.populating||(n.populating=!0,i.css({height:"200px",width:"100px"}),i.load("/script/content/Ajax/SiteMap.aspx",function(){n.populated=!0}),window.setTimeout(this.InitMenu,200),n.populated=!0,n.populating=!1);n.populated&&(this.InitMenu(),i.css("margin","0"),i.css("width","auto"),i.css("height","auto"))}}var navBarMenu=new NavBarMenu("navBarMenu",".navmenu li"),signinMenu=new NavBarMenu("signinMenu",".member-signin");