document.documentElement.className = 'no-fouc'; $(document).ready(function () { $('#simple-menu').sidr({ timing: 'ease-in-out', speed: 700 }); }); $( window ).resize(function () { $.sidr('close', 'sidr'); }); $('.no-fouc').removeClass('no-fouc'); $(function() { $(' #nav > li ').each( function() { $(this).hoverdir(); } ); $(' #navThisWeek > li ').each( function() { $(this).hoverdir(); } ); $('#toggleNav').click(function() { $('#navThisWeek').slideToggle(300); return false; }); $("#navThisWeek").hide(); $(".scroll").click(function(event){ event.preventDefault(); $('html,body').animate({scrollTop:$(this.hash).offset().top}, 500); }); }); $(window).bind('scroll', function() { // logo height + logo bottom margin if ($(window).scrollTop() > 367) { $('#utility').addClass('fixed'); $('#section').addClass('sectionMargin'); } else { $('#utility').removeClass('fixed'); $('#section').removeClass('sectionMargin'); } }); $(function() { $(".snippet").click(function(){ window.location=$(this).find("a").attr("href");return false; }); $(".clubSignUp a").hover(function() { $(this).next("em").animate({opacity: "show", top: "42"}, "slow"); }, function() { $(this).next("em").animate({opacity: "hide", top: "52"}, "fast"); }); $("#social-v1 a").hover(function() { $(this).next("em").animate({opacity: "show", top: "42"}, "slow"); }, function() { $(this).next("em").animate({opacity: "hide", top: "52"}, "fast"); }); });