

(function($){
    $.fn.equalizeCols = function(){
        var height = 0, reset = $.browser.msie ? "1%" : "auto";
        
        return this.css("height", reset).each(function(){
            height = Math.max(height, this.offsetHeight);
        }).css("height", height).each(function(){
            var h = this.offsetHeight;
            if (h > height) {
                $(this).css("height", height - (h - height));
            };
                    });
        
    };
    
})(jQuery);

jQuery(document).ready(function(){
    jQuery('.slideshow ul').before('<div class="nav">').cycle({
        fx: 'fade',
        speed: 300,
        timeout: 10000,
        pause: 1,
        pager: '.nav'
    });
    
    //jQuery(".slideshow li a").prepend('<div class="clt"></div><div class="crt"></div>').append('<div class="clb"></div><div class="crb"></div>');
    
   
    
});

jQuery(body).load(function(){
 jQuery("#content, #sidebar").equalizeCols();
});



