jQuery(document).ready(function(){ jQuery('input[type="text"]').toggleVal(); jQuery('#ccsfg').validate(); jQuery('.rotate').cycle({timeoutFn: calculateTimeout}); function calculateTimeout(currElement, nextElement, opts, isForward) { var index = opts.currSlide; return index % 2 ? 8000 : false; } }); jQuery(window).load(function() { equalHeight(jQuery('#section-sitemap .col')); equalHeight(jQuery('#section-sitemaps .col')); if (jQuery('#content').height() > jQuery('#sidebars').height()) { newHeight = Math.abs(parseInt(jQuery('#content').height()) - parseInt(jQuery('#widgets-reloaded-search-3').height()) - parseInt(jQuery('#text-3').height()) - parseInt(jQuery('#text-4').height()))-74; jQuery('#sidebar_2').height(newHeight); } }); function equalHeight(group) { var tallest = 0; group.each(function() { var thisHeight = jQuery(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest); }