/* Author: Luca Fregoso */
$("footer#main_footer").delegate(".toggler","click",function(){
	var $this = $(this);
	var $footer = $this.parent();
	if($this.is('.slideUp')){
		$this.removeClass('slideUp').addClass('slideDown');
		var nh = '307px';
		if(typeof $footer.data('nh') != 'undefined')
			nh = $footer.data('nh');
		$footer.stop().animate({
			'height':nh
		});
	}else{
		$this.removeClass('slideDown').addClass('slideUp');
		$footer.stop().animate({
			'height':'30px'
		});
	}
});

$("#artistiThumb").delegate(".tv_thumb_link","mouseenter",function(){
	var $this = $(this);
	var $image = $this.children('img');
	var $text = $this.children('span.artist_name');
	$this.css({
		background: 'url('+$image.attr('src')+') no-repeat 0 -95px transparent'
	});
	$image.stop().fadeTo(400,0);
	$text.show();
}).delegate(".tv_thumb_link","mouseleave",function(){
	var $this = $(this);
	var $image = $this.children('img');
	var $text = $this.children('span.artist_name');
	$image.stop().fadeTo(300,100);
	$text.hide();
});


$(".external").attr("target","_blank");

















