function equalHeight(group) { tallest = 0; group.each(function() { thisHeight = $(this).height(); if(thisHeight > tallest) { tallest = thisHeight; } }); group.height(tallest);}
function mycarousel_initCallback(carousel) {carousel.buttonNext.bind('click', function() { carousel.startAuto(0); }); carousel.buttonPrev.bind('click', function() { carousel.startAuto(0); }); carousel.clip.hover(function() { carousel.stopAuto(); }, function() { carousel.startAuto();}); };
jQuery(document).ready(function() {jQuery('#mycarousel').jcarousel({ auto: 5, scroll:5, speed:"slow", wrap: 'last', initCallback: mycarousel_initCallback }); });
$(document).ready(function() { equalHeight($("#offer, #gallery")); $('#respond textarea').css({'height':$('#respond .left').height()-24+'px'}); function vertCenter (id) { desc=$(id).height(); padding=0; if(desc<145) { padding=Math.floor((145-desc)/2);} $(id).css({'padding':padding+'px 0px'}); } vertCenter('#header a#logo'); vertCenter('#header p#description');});
