/** * UberMenu JavaScript minified * @author Chris Mavricos, SevenSpark http://sevenspark.com * @version 2.4.0.0 */ var $ujq=jQuery,uberMenuWarning=!1;"undefined"!=typeof uberMenuSettings&&"on"==uberMenuSettings.noconflict?$ujq=jQuery.noConflict():uberMenuWarning=!0; jQuery(document).ready(function(b){uberMenuSettings.removeConflicts="on"==uberMenuSettings.removeConflicts?!0:!1;uberMenuSettings.noconflict="on"==uberMenuSettings.noconflict?!0:!1;uberMenuSettings.autoAlign="on"==uberMenuSettings.autoAlign?!0:!1;uberMenuSettings.fullWidthSubs="on"==uberMenuSettings.fullWidthSubs?!0:!1;uberMenuSettings.androidClick="on"==uberMenuSettings.androidClick?!0:!1;uberMenuSettings.windowsClick="on"==uberMenuSettings.windowsClick?!0:!1;uberMenuSettings.iOScloseButton="on"== uberMenuSettings.iOScloseButton?!0:!1;uberMenuSettings.loadGoogleMaps="on"==uberMenuSettings.loadGoogleMaps?!0:!1;uberMenuSettings.repositionOnLoad="on"==uberMenuSettings.repositionOnLoad?!0:!1;uberMenuSettings.hoverInterval=parseInt(uberMenuSettings.hoverInterval);uberMenuSettings.hoverTimeout=parseInt(uberMenuSettings.hoverTimeout);uberMenuSettings.speed=parseInt(uberMenuSettings.speed);uberMenuWarning&&uberMenuSettings.noconflict&&"undefined"!=typeof console&&console.log("[UberMenu Notice] Not running in noConflict mode. Are you using a caching plugin? If so, you need to load the UberMenu scripts in the footer."); var d=navigator.userAgent.toLowerCase();uberMenuSettings.androidClick&&d.match(/(android)/)&&(uberMenuSettings.trigger="click");uberMenuSettings.windowsClick&&window.navigator.msMaxTouchPoints&&(uberMenuSettings.trigger="click");d.match(/(iphone|ipod|ipad)/)&&(uberMenuSettings.trigger="hover");d=b("#megaMenu");if(0!==d.size()){d.uberMenu(uberMenuSettings);d.data("uberMenu");"undefined"!==typeof google&&"undefined"!==typeof google.maps&&"undefined"!==typeof google.maps.LatLng&&b(".spark-map-canvas").each(function(){var d= b(this),a=d.attr("data-zoom")?parseInt(d.attr("data-zoom")):8,l=d.attr("data-lat")?new google.maps.LatLng(d.attr("data-lat"),d.attr("data-lng")):new google.maps.LatLng(40.7143528,-74.0059731),f=new google.maps.Map(this,{zoom:a,mapTypeId:google.maps.MapTypeId.ROADMAP,center:l});d.attr("data-address")?(new google.maps.Geocoder).geocode({address:d.attr("data-address")},function(b,a){a==google.maps.GeocoderStatus.OK&&(f.setCenter(b[0].geometry.location),l=b[0].geometry.location,new google.maps.Marker({map:f, position:b[0].geometry.location,title:d.attr("data-mapTitle")}))}):new google.maps.Marker({map:f,position:l,title:d.attr("data-mapTitle")});var m=b(this).parents("li.ss-nav-menu-item-depth-0"),h=function(){google.maps.event.trigger(f,"resize");f.setCenter(l);m.off("ubermenuopen",h)};m.on("ubermenuopen",h)});uberMenuSettings.repositionOnLoad&&jQuery(window).load(function(){uberMenu_redrawSubmenus()});var n=d.find("ul.megaMenu");b("#megaMenuToggle").click(function(){n.slideToggle(function(){n.css("overflow", "visible");n.toggleClass("megaMenuToggleOpen")})})}}); (function(b){b.uberMenu=function(d,n){var q={speed:300,trigger:"hover",orientation:"horizontal",transition:"slide",hoverInterval:100,hoverTimeout:400,removeConflicts:!0,autoAlign:!1,fullWidthSubs:!1,onOpen:function(){}},a=this;a.settings={};var l=function(e,c){a.menuEdge="vertical"==a.settings.orientation?a.$megaMenu.find("> ul.megaMenu").offset().top:a.$megaMenu.find("> ul.megaMenu").offset().left;var g=a.$megaMenu.find("> ul.megaMenu").outerWidth(),d=a.$megaMenu.find("> ul.megaMenu").outerHeight(); e.each(function(){var e=b(this),h=e.hasClass("megaHover"),e=e.find("> ul.sub-menu-1");if(c&&a.settings.autoAlign){var f=e.find("li.ss-nav-menu-item-depth-1:not(.ss-sidebar)"),l=0;e.css("left","-999em").show();f.each(function(){b(this).width()>l&&(l=b(this).width())});f.width(l);e.css("left","")}switch(a.settings.orientation){case "horizontal":if(b(this).hasClass("ss-nav-menu-mega-alignCenter")&&!b(this).hasClass("ss-nav-menu-mega-fullWidth")){var k=b(this).outerWidth(),f=e.outerWidth(),k=b(this).offset().left+ k/2-(a.menuEdge+f/2),k=0g&&(k=g-f);e.css({left:k})}break;case "vertical":if(b(this).hasClass("ss-nav-menu-mega-alignCenter")){var k=b(this).outerHeight(),f=e.outerHeight(),k=b(this).offset().top+k/2-(a.menuEdge+f/2),m=0d&&(k=d-f);e.css({top:m})}}h||e.hide()})},f=function(e){var c=b(e);p(c);c.addClass("megaHover wpmega-expanded");e=c.find("ul.sub-menu-1");switch(a.settings.transition){case "slide":e.stop(!0,!0).slideDown(a.settings.speed,"swing",function(){c.trigger("ubermenuopen")}); break;case "fade":e.stop(!0,!0).fadeIn(a.settings.speed,"swing",function(){c.trigger("ubermenuopen")});break;case "none":e.show(),c.trigger("ubermenuopen")}},m=function(e){var c=b(e);if(c.has("ul.sub-menu")){c.hasClass("ss-nav-menu-reg")?p(c):c.siblings().each(function(){h(this,!0)});c.addClass("megaHover");var g=c.find("> ul.sub-menu");switch(a.settings.transition){case "slide":g.stop(!0,!0).slideDown(a.settings.speed,"swing",function(){c.trigger("ubermenuopen");g.css("overflow","visible")});break; case "fade":g.stop(!0,!0).fadeIn(a.settings.speed,"swing",function(){c.trigger("ubermenuopen")});break;case "none":g.show(),c.trigger("ubermenuopen")}}},h=function(e,c){var g=b(e),d=g.find("> ul.sub-menu");if(c)d.hide(),g.removeClass("megaHover").removeClass("wpmega-expanded");else if(0 ul.megaMenu > li");null!=b&&(c=c.not(b));c.removeClass("megaHover").removeClass("wpmega-expanded").find("> ul.sub-menu").hide()};a.openMega=function(b){f(b)}; a.openFlyout=function(b){m(b)};a.close=function(b,a){a||(a=!1);h(b,a)};a.redrawSubmenus=function(){var b=a.$megaMenu.find("ul.megaMenu > li.ss-nav-menu-mega.mega-with-sub");a.settings.fullWidthSubs||l(b,!0)};(function(){a.settings=b.extend({},q,n);a.el=d;a.$megaMenu=b(d);a.$megaMenu.hasClass("wpmega-noconflict")&&a.$megaMenu.find("ul, ul li.menu-item, ul li.menu-item > a").removeAttr("style").unbind().off();a.$megaMenu.removeClass("megaMenu-nojs").addClass("megaMenu-withjs");b("#megaMenu li.ss-nav-menu-reg li:has(> ul)").addClass("megaReg-with-sub"); var e=a.$megaMenu.find("ul.megaMenu > li.ss-nav-menu-mega.mega-with-sub");a.settings.fullWidthSubs?e.find("> ul.sub-menu-1").hide():(l(e,!0),b(window).resize(function(){l(e,!1)}));switch(a.settings.trigger){case "click":e.find("> a, > span.um-anchoremulator").click(function(a){var c=b(this).parent("li");a.preventDefault();if(c.hasClass("wpmega-expanded")){if(b(this).is("a")){var d=b(this).attr("href");""!==d&&"#"!==d&&"uber-close"!=a.target.className&&(window.location=d)}c.removeClass("wpmega-expanded"); h(c.get(0),!1)}else c.addClass("wpmega-expanded"),f(c.get(0))});b(document).click(function(b){p()});a.$megaMenu.click(function(b){b.stopPropagation()});break;case "hoverIntent":e.hoverIntent({over:function(){f(this)},out:function(a){"object"===typeof a&&b(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")||h(this,!1)},timeout:a.settings.hoverTimeout,interval:a.settings.hoverInterval,sensitivity:2});break;case "hover":e.hover(function(){f(this)}, function(a){"object"===typeof a&&b(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")||h(this)})}var c=a.$megaMenu.find("ul.megaMenu > li.ss-nav-menu-reg.mega-with-sub, li.ss-nav-menu-reg li.megaReg-with-sub");c.find("ul.sub-menu").hide();switch(a.settings.trigger){case "click":c.find("> a, > span.um-anchoremulator").click(function(a){var c=b(this).parent("li");a.preventDefault();a.stopPropagation();if(c.hasClass("wpmega-expanded")){if(b(this).is("a")){var d= b(this).attr("href");""!==d&&"#"!==d&&"uber-close"!=a.target.className&&(window.location=d)}c.removeClass("wpmega-expanded");h(c.get(0))}else c.addClass("wpmega-expanded"),m(c.get(0))});break;case "hoverIntent":c.hoverIntent({over:function(){m(this)},out:function(a){"object"===typeof a&&b(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")||h(this,!1)},timeout:a.settings.hoverTimeout,interval:a.settings.hoverInterval,sensitivity:2});break;case "hover":c.hover(function(){m(this)}, function(){h(this)})}window.navigator.msMaxTouchPoints&&uberMenuSettings.windowsClick&&(e.hover(function(){f(this)},function(a){"object"===typeof a&&b(a.fromElement).is("#megaMenu form, #megaMenu input, #megaMenu select, #megaMenu textarea, #megaMenu label")||h(this)}),c.hover(function(){m(this)},function(){h(this)}));c=navigator.userAgent.toLowerCase().match(/(iphone|ipod|ipad)/);uberMenuSettings.iOScloseButton&&(jQuery.uber_mobile||c)&&(b('×').appendTo("#megaMenu li.mega-with-sub > a, #megaMenu li.mega-with-sub > span.um-anchoremulator"), a.$megaMenu.on("click",".uber-close",function(a){a.preventDefault();a.stopPropagation();"open"==b(this).attr("data-uber-status")?(h(b(this).parents("li.mega-with-sub")[0],!0),b(this).html("↓").attr("data-uber-status","closed")):(f(b(this).parents("li.mega-with-sub")[0]),b(this).html("×").attr("data-uber-status","open"));b(this).show();return!1}),a.$megaMenu.find("ul.megaMenu > li.mega-with-sub").hover(function(a){a.preventDefault();b(this).find(".uber-close").html("×").attr("data-uber-status", "open").show()},function(a){a.preventDefault();b(this).find(".uber-close").hide()}))})()};b.fn.uberMenu=function(d){return this.each(function(){if(void 0==b(this).data("uberMenu")){var n=new b.uberMenu(this,d);b(this).data("uberMenu",n)}})}})(jQuery);function uberMenu_openMega(b){$ujq("#megaMenu").data("uberMenu").openMega(b)}function uberMenu_openFlyout(b){$ujq("#megaMenu").data("uberMenu").openFlyout(b)}function uberMenu_close(b){$ujq("#megaMenu").data("uberMenu").close(b)} function uberMenu_redrawSubmenus(){$ujq("#megaMenu").data("uberMenu").redrawSubmenus()} (function(b){jQuery.uber_mobile=/android.+mobile|avantgo|bada\/|blackberry|blazer|compal|elaine|fennec|hiptop|iemobile|ip(hone|od)|iris|kindle|lge |maemo|midp|mmp|netfront|opera m(ob|in)i|palm( os)?|phone|p(ixi|re)\/|plucker|pocket|psp|symbian|treo|up\.(browser|link)|vodafone|wap|windows (ce|phone)|xda|xiino/i.test(b)||/1207|6310|6590|3gso|4thp|50[1-6]i|770s|802s|a wa|abac|ac(er|oo|s\-)|ai(ko|rn)|al(av|ca|co)|amoi|an(ex|ny|yw)|aptu|ar(ch|go)|as(te|us)|attw|au(di|\-m|r |s )|avan|be(ck|ll|nq)|bi(lb|rd)|bl(ac|az)|br(e|v)w|bumb|bw\-(n|u)|c55\/|capi|ccwa|cdm\-|cell|chtm|cldc|cmd\-|co(mp|nd)|craw|da(it|ll|ng)|dbte|dc\-s|devi|dica|dmob|do(c|p)o|ds(12|\-d)|el(49|ai)|em(l2|ul)|er(ic|k0)|esl8|ez([4-7]0|os|wa|ze)|fetc|fly(\-|_)|g1 u|g560|gene|gf\-5|g\-mo|go(\.w|od)|gr(ad|un)|haie|hcit|hd\-(m|p|t)|hei\-|hi(pt|ta)|hp( i|ip)|hs\-c|ht(c(\-| |_|a|g|p|s|t)|tp)|hu(aw|tc)|i\-(20|go|ma)|i230|iac( |\-|\/)|ibro|idea|ig01|ikom|im1k|inno|ipaq|iris|ja(t|v)a|jbro|jemu|jigs|kddi|keji|kgt( |\/)|klon|kpt |kwc\-|kyo(c|k)|le(no|xi)|lg( g|\/(k|l|u)|50|54|e\-|e\/|\-[a-w])|libw|lynx|m1\-w|m3ga|m50\/|ma(te|ui|xo)|mc(01|21|ca)|m\-cr|me(di|rc|ri)|mi(o8|oa|ts)|mmef|mo(01|02|bi|de|do|t(\-| |o|v)|zz)|mt(50|p1|v )|mwbp|mywa|n10[0-2]|n20[2-3]|n30(0|2)|n50(0|2|5)|n7(0(0|1)|10)|ne((c|m)\-|on|tf|wf|wg|wt)|nok(6|i)|nzph|o2im|op(ti|wv)|oran|owg1|p800|pan(a|d|t)|pdxg|pg(13|\-([1-8]|c))|phil|pire|pl(ay|uc)|pn\-2|po(ck|rt|se)|prox|psio|pt\-g|qa\-a|qc(07|12|21|32|60|\-[2-7]|i\-)|qtek|r380|r600|raks|rim9|ro(ve|zo)|s55\/|sa(ge|ma|mm|ms|ny|va)|sc(01|h\-|oo|p\-)|sdk\/|se(c(\-|0|1)|47|mc|nd|ri)|sgh\-|shar|sie(\-|m)|sk\-0|sl(45|id)|sm(al|ar|b3|it|t5)|so(ft|ny)|sp(01|h\-|v\-|v )|sy(01|mb)|t2(18|50)|t6(00|10|18)|ta(gt|lk)|tcl\-|tdg\-|tel(i|m)|tim\-|t\-mo|to(pl|sh)|ts(70|m\-|m3|m5)|tx\-9|up(\.b|g1|si)|utst|v400|v750|veri|vi(rg|te)|vk(40|5[0-3]|\-v)|vm40|voda|vulc|vx(52|53|60|61|70|80|81|83|85|98)|w3c(\-| )|webc|whit|wi(g |nc|nw)|wmlb|wonu|x700|xda(\-|2|g)|yas\-|your|zeto|zte\-/i.test(b.substr(0,4))})(navigator.userAgent|| navigator.vendor||window.opera);