(function($) {
 	$.fn.equalizeCols = function(children){
 	var child = Array(0);
 	if (children) child = children.split(",");
 		var maxH = 0;
 		this.each( function(i) { if (this.offsetHeight>maxH) maxH = this.offsetHeight; })
 		.css("height", "auto")
 		.each( function(i) { var gap = maxH-this.offsetHeight;
 	if (gap > 0) {
 		t = document.createElement('div');
		$(t).attr("class","fill").css("height",gap+"px");
 			if (child.length > i) {
 			$(this).find(child[i]).children(':last-child').after(t);
 			}
 			else { $(this).children(':last-child').after(t);
 			}
 	}
 });
}
})(jQuery);

$(document).ready(function(){

		//Caption Sliding (Partially Hidden to Visible)
		$('.release').hover(function(){
			$(".release_info", this).stop().animate({top:'0px'},{queue:false,duration:160});
		}, function() {
			$(".release_info", this).stop().animate({top:'175px'},{queue:false,duration:160});
		});
		$('.artist').hover(function(){
			$(".artist_info", this).stop().animate({top:'0'},{queue:false,duration:300});
		}, function() {
			$(".artist_info", this).stop().animate({top:'225px'},{queue:false,duration:300});
		}); 
		$("div.hentry").equalizeCols();

		
	    $("div#news h3:first").addClass("expand");
	    $("div#news div:not(:first)").hide();
    	$("div#news h3").click(function(){
			$(this).next("div").slideToggle("slow").siblings("div:visible").slideUp("slow");
			$(this).toggleClass("expand");
			$(this).siblings("h3").removeClass("expand");
    	});
	});