var YIT_Browser={isTablet:function(){var b=jQuery("body").hasClass("responsive")||jQuery("body").hasClass("iPad")||jQuery("body").hasClass("Blakberrytablet")||jQuery("body").hasClass("isAndroidtablet")||jQuery("body").hasClass("isPalm"),a=1024>=jQuery(window).width()&&768<=jQuery(window).width();return b&&a},isPhone:function(){var b=jQuery("body").hasClass("responsive")||jQuery("body").hasClass("isIphone")||jQuery("body").hasClass("isWindowsphone")||jQuery("body").hasClass("isAndroid")||jQuery("body").hasClass("isBlackberry"),
    a=480>=jQuery(window).width()&&320<=jQuery(window).width();return b&&a},isViewportBetween:function(b,a){"undefinied"==a&&(a=0);return a?jQuery(window).width()<b&&jQuery(window).width()>a:jQuery(window).width()<b},isLowResMonitor:function(){return 1200>jQuery(window).width()},isMobile:function(){return this.isTablet()||this.isPhone()},isIE:function(){return jQuery.browser.msie},isIE8:function(){return this.isIE()&&"8.0"==jQuery.browser.version},isIE9:function(){return this.isIE()&&"9.0"==jQuery.browser.version},
    isIE10:function(){return this.isIE()&&"10.0"==jQuery.browser.version}};



(function(a){var c;a.fn.extend({stickyFooter:function(){function b(){var b=a(document.body).height()-a("#sticky-footer-push").height();b<a(window).height()&&(b=a(window).height()-b,0<!a("#sticky-footer-push").length&&a(c).before('<div id="sticky-footer-push"></div>'),0<a("#wpadminbar").length&&(b-=28),a("#sticky-footer-push").height(b))}c=this;b();a(window).on("sticky",b).scroll(b).resize(b)}})})(jQuery);
jQuery(document).ready(function(a){var c=function(){var b;containerWidth=a("#header").width();marginRight=a("#nav ul.level-1 > li").css("margin-right");submenuWidth=a(this).find("ul.sub-menu").outerWidth();offsetMenuRight=a(this).position().left+submenuWidth;leftPos=-18;b=offsetMenuRight>containerWidth?{left:leftPos-(offsetMenuRight-containerWidth)}:{};a("ul.sub-menu:not(ul.sub-menu li > ul.sub-menu), ul.children:not(ul.children li > ul.children)",this).css(b).stop(!0,!0).fadeIn(300)};a("#nav ul > li").hover(c,
    function(){a("ul.sub-menu:not(ul.sub-menu li > ul.sub-menu), ul.children:not(ul.children li > ul.children)",this).fadeOut(300)});a("#nav :not(.megamenu) ul > li").each(function(){var b=a(this);if(0<a("ul",this).length){a(this).children("a").append('<span class="sf-sub-indicator"> &raquo;</span>');var c;(c=function(){b.children("a").css("padding-right","").css({paddingRight:parseInt(b.children("a").css("padding-right"))+16})})();a(window).resize(c)}});a("#nav li:not(.megamenu) ul.sub-menu li, #nav li:not(.megamenu) ul.children li").hover(function(){0<
    a(this).closest(".megamenu").length||(containerWidth=a("#header").width(),containerOffsetRight=a("#header").offset().left+containerWidth,submenuWidth=a("ul.sub-menu, ul.children",this).parent().width(),offsetMenuRight=a(this).offset().left+2*submenuWidth,leftPos=-10,offsetMenuRight>containerOffsetRight&&a(this).addClass("left"),a("ul.sub-menu, ul.children",this).stop(!0,!0).fadeIn(300))},function(){0<a(this).closest(".megamenu").length||a("ul.sub-menu, ul.children",this).fadeOut(300)});a("#nav .megamenu").mouseover(function(){var b=
    a(".container").width(),c=a(".container").offset(),f=a(this),d=a(this).children("ul.sub-menu"),e=d.outerWidth(),g=d.offset();f.position().left+e>b&&d.offset({top:g.top,left:c.left+(b-e)})});a("body").hasClass("isMobile")&&(!a("body").hasClass("iphone")&&!a("body").hasClass("ipad"))&&a(".sf-sub-indicator").parent().click(function(){a(this).parent().toggle(c,function(){document.location=a(this).children("a").attr("href")})})});

