$(document).ready(function() { var smalllogo = $('.headerleft-logo').offset().top; var fixedsmalllogo = function() { width = $( window ).width(); var scrollTop = $(window).scrollTop(); if (scrollTop > smalllogo && width >= 580) { $('.headerleft-logoscroll').addClass('displaylogo'); $('.headerleft-logo').addClass('displaynone'); $('header').addClass('stick'); } else { $('.headerleft-logoscroll').removeClass('displaylogo'); $('.headerleft-logo').removeClass('displaynone'); $('header').removeClass('stick'); } }; fixedsmalllogo(); $(window).scroll(function() { fixedsmalllogo(); }); }); $(document).ready(function () { $('#demo').click(function (e) { e.preventDefault(); $('#modal-content').popUpWindow({ action: "open", // open or close modal: true, // modal mode size: "large", // large, medium or large buttons: [{ text: "Close", click: function () { this.close(); } }] }); }); }); $(document).ready(function() { $('.summary-container').mouseover(function(){ //$(this).find('.summary').stop(true,true).fadeIn('fast'); //$(this).find('.summary').stop(true,true).css("bottom",'0'); $(this).find('.summary').stop(true).animate({bottom:'0px'}, 10); }) $('.summary-container').mouseout(function(){ //$(this).find('.summary').stop(true,true).fadeOut('fast'); //$(this).find('.summary').stop(true,true).css("bottom",'-45px'); $(this).find('.summary').stop(true).animate({bottom:'-153px'}, 10); }); });