function equalheight(group) { tallest = 0; group.each(function() { thisheight = $(this).height(); if(thisheight > tallest) { tallest = thisheight; } }); group.height(tallest); } $(document).ready(function(){ equalheight($(".column")); equalheight($(".columnde")); $("#trigger4").switchable("#panel4 > ul > li", { triggertype: "click", effect: "scroll", steps: 1, visible: 4 }).autoplay().carousel().mousewheel(); var api4 = $("#trigger4").switchable(); $("#next4").click(function(){ api4.next(); }); $("#prev4").click(function(){ api4.prev(); }); });