function equalHeight(selector,step){

    var els = $(selector);

    var maxHeight = [];
    
    var line,heigh;

    els.each(function(index){
        line = Math.ceil((index+1)/step);
        height = $(this).height();
        if (!maxHeight[line] || height > maxHeight[line])  maxHeight[line] = height;
		});

    els.each(function(index){
        line = Math.ceil((index+1)/step);
		    $(this).css('height',maxHeight[line]+'px');
		});

}

$(document).ready(function() {
    $("a.external").click(function(){
        window.open(this.href);
        return false;
    });
});

