function equalizeFooter() { var currentWrapperHeight = $('body').height(); var currentFooterHeight = $('footer').height(); //var currentDocHeight = currentWrapperHeight + currentFooterHeight; var currentWindowHeight = $(document).height(); //alert("Window: "+currentWindowHeight + "\n\nBody: "+currentWrapperHeight); var diff = currentWindowHeight - currentWrapperHeight; if (diff > 0) { var newFooterHeight = currentFooterHeight + diff; $('footer').css('height', newFooterHeight+'px'); } }; $().ready(function() { equalizeFooter(); $("#secondary-navigation li").not('.contact').after('
  • |
  • '); $("a:not([rel='lightbox'])").attr('title', ''); $("#navigation li").hover( function() { $(this).find('a').addClass('active'); }, function() { $(this).find('a').removeClass('active'); } ); $("#gripselector a").attr('title', ''); $("#qyhz-qyhz").focus(function() { var value = $(this).getValue(); if (value == "your email address") { $(this).setValue(''); } }); $("#qyhz-qyhz").blur(function() { var value = $(this).getValue(); if (value == '') { $(this).setValue('your email address'); } }); $("#viewCartLink").bind("click", function() { $("#viewCart").submit(); }); var disclaimerHeight = $("#store-disclaimer").outerHeight(); var imgHeight = $("#payment-methods").outerHeight(); var push = ((disclaimerHeight - imgHeight)/2 - 10); $("#payment-methods li").css({'padding-top':push+'px'}); }); $.fn.equalHeights = function(px) { $(this).each(function(){ var currentTallest = 0; $(this).children().each(function(i){ if ($(this).height() > currentTallest) { currentTallest = $(this).height(); } }); if ($.browser.msie && $.browser.version == 6.0) { $(this).children().css({'height': currentTallest}); } $(this).children().css({'min-height': currentTallest}); }); return this; };