J(document).ready(function(){
	
	var pic_height = J('.recent_album').height();
	
	J('.recent_album_deets').each(function(){
		var tab_height = J(this).height();
		var displace = pic_height - tab_height - 7;
		//alert(pic_height+tab_height+displace);
		J(this).css("top",displace);
	})
	
		
	//To switch directions up/down and left/right just place a "-" in front of the top/left attribute
	//Full Caption Sliding (Hidden to Visible)
	J('.recent_album').hover(function(){
		J(".recent_album_deets", this).stop().animate({top:'200px'},{queue:false,duration:160});
	}, function() {
		var tab_height = J(this).find(".recent_album_deets").height();
		var pic_height = J('.recent_album').height();		
		var displace = (pic_height - tab_height - 7) + "px";
		J(".recent_album_deets", this).stop().animate({top: displace},{queue:false,duration:160});
	});

	var input_value = J(".focus_clear").val();

	J(".focus_clear").focus(function() {
		if (J(this).val() == input_value) {
			J(this).val('');
		}
	});

});