JS

/* = put selected divs to equal height according to highest -----------------------------------------------------------------------*/ $.fn.eqHeight = function() { var heighest = 0; this.each(function(){ if($(this).height() > heighest){ heighest = $(this).height(); } }); this.each(function(){ $(this).height(heighest); }); } /* = receives array, removes duplicates and returns new array -----------------------------------------------------------------------*/ function group(items){ var grouped = []; var j = 0; for(var i = 0; i < items.length; i++){ if($.inArray(items[i], grouped) === -1){ grouped[j] = items[i]; j++; } } return grouped; }