jQuery.fn.equalCols = function(options){
	var defaults = { 
	    offset: 0 
	  };
	var options = $.extend({}, defaults, options); 
	var sortNumber = function(a,b){return b - a;};
	var heights = [];
	//Push each height into an array
	$(this).each(function(){
		heights.push($(this).height());
	});
	heights.sort(sortNumber);
	var maxHeight = heights[0];
	return this.each(function(){
		//Set each column to the max height
		var total = maxHeight-options.offset;
		$(this).css({'height': total});
	});
};

function openPlayer(album) {
    window.open('/player/?album='+album+'', 'Player', 'width=350,height=400,innerwidth=350,innerheight=400');
}
