YAHOO.util.Event.onContentReady("skipamenu",function(){var oMenuBar=new YAHOO.widget.MenuBar("skipamenu",{autosubmenudisplay:true,hidedelay:750,lazyload:true});var aSubmenuData=[{id:"mEvents",itemdata:[{text:"Antique Shows",url:"/events.jsp"},{text:"Craft Shows",url:"/events.jsp"},{text:"Concerts",url:"/events.jsp"},{text:"Sports",url:"/events.jsp"},{text:"Yard Sales",url:"/yardsale/index.jsp"},{text:"Search",url:"/events.jsp"}]},{id:"mAttractions",itemdata:[{text:"Amusements",url:"/amusements/index.jsp"},{text:"Gardens",url:"/gardens/index.jsp"},{text:"Museums",url:"/museums/index.jsp"},{text:"Parks",url:"/parks/index.jsp"},{text:"Search",url:"/index.jsp"}]},{id:"mLodging",itemdata:[{text:"Hotels",url:"/lodging/index.jsp"},{text:"Inns",url:"/lodging/index.jsp"},{text:"Resorts",url:"/lodging/index.jsp"},{text:"Bed & Breakfast",url:"/lodging/index.jsp"}]},{id:"mSpecials",itemdata:[{text:"Coupons",url:"/specials/coupons.html"},{text:"Discounts",url:"/specials/discounts.html"},{text:"Tips",url:"/specials/tips.html"},{text:"Ideas",url:"/specials/ideas.html"}]}];var ua=YAHOO.env.ua,oAnim;function onSubmenuBeforeShow(p_sType,p_sArgs){var oBody,oElement,oShadow,oUL;if(this.parent){oElement=this.element;oShadow=oElement.lastChild;oShadow.style.height="0px";if(oAnim&&oAnim.isAnimated()){oAnim.stop();oAnim=null}oBody=this.body;if(this.parent&&!(this.parent instanceof YAHOO.widget.MenuBarItem)){if(ua.gecko||ua.opera){oBody.style.width=oBody.clientWidth+"px"}if(ua.ie==7){oElement.style.width=oElement.clientWidth+"px"}}oBody.style.overflow="hidden";oUL=oBody.getElementsByTagName("ul")[0];oUL.style.marginTop=("-"+oUL.offsetHeight+"px")}}function onTween(p_sType,p_aArgs,p_oShadow){if(this.cfg.getProperty("iframe")){this.syncIframe()}if(p_oShadow){p_oShadow.style.height=this.element.offsetHeight+"px"}}function onAnimationComplete(p_sType,p_aArgs,p_oShadow){var oBody=this.body,oUL=oBody.getElementsByTagName("ul")[0];if(p_oShadow){p_oShadow.style.height=this.element.offsetHeight+"px"}oUL.style.marginTop="";oBody.style.overflow="";if(this.parent&&!(this.parent instanceof YAHOO.widget.MenuBarItem)){if(ua.gecko||ua.opera){oBody.style.width=""}if(ua.ie==7){this.element.style.width=""}}}function onSubmenuShow(p_sType,p_sArgs){var oElement,oShadow,oUL;if(this.parent){oElement=this.element;oShadow=oElement.lastChild;oUL=this.body.getElementsByTagName("ul")[0];oAnim=new YAHOO.util.Anim(oUL,{marginTop:{to:0}},.5,YAHOO.util.Easing.easeOut);oAnim.onStart.subscribe(function(){oShadow.style.height="100%"});oAnim.animate();if(YAHOO.env.ua.ie){oShadow.style.height=oElement.offsetHeight+"px";oAnim.onTween.subscribe(onTween,oShadow,this)}oAnim.onComplete.subscribe(onAnimationComplete,oShadow,this)}}oMenuBar.subscribe("beforeRender",function(){var nSubmenus=aSubmenuData.length,i,j;if(this.getRoot()==this){for(i=2,j=0;j<nSubmenus;i++,j++){this.getItem(i).cfg.setProperty("submenu",aSubmenuData[j])}}});oMenuBar.subscribe("beforeShow",onSubmenuBeforeShow);oMenuBar.subscribe("show",onSubmenuShow);oMenuBar.render()});
