
$(document).ready(function(){
	$("#artists .al").fadeTo("fast", 0.6);
	$("#artists .al").hover(function(){
		$(this).fadeTo("slow", 1.0);
	},function(){
		$(this).fadeTo("slow", 0.6);
	});
});
$(document).ready(function(){
	$("#navi li").fadeTo("fast", 0.6); 
	$("#navi li").hover(function(){
		$(this).fadeTo("slow", 1.0);
	},function(){
		$(this).fadeTo("slow", 0.6); 
	});
});
$(document).ready(function(){
	$("#artists .al a").fadeTo("fast", 0);
	$("#artists .al a").hover(function(){
		$(this).fadeTo("slow", 1); 
	},function(){
		$(this).fadeTo("slow", 0);
	});
});
$(document).ready(function(){
		$('#langnav li.headlang').hover(
			function() { $('ul', this).css('display', 'block'); },
			function() { $('ul', this).css('display', 'none'); });
	});
$(document).ready(function(){
			var spotlight = {
				opacity : 0.2,
				imgWidth : $('#social ul li').find('img').width(), 
				imgHeight : $('#social ul li').find('img').height() 
				
			};
			
			$('#social ul li').css({ 'width' : spotlight.imgWidth, 'height' : spotlight.imgHeight });
			
			$('#social ul li').hover(function(){
				
				$(this).find('img').addClass('active').css({ 'opacity' : 1});
				
				$(this).siblings('li').find('img').css({'opacity' : spotlight.opacity}) ;
				
			}, function(){
				
				$(this).find('img').removeClass('active');
				
			});
			
			$('#social ul').bind('mouseleave',function(){
				$(this).find('img').css('opacity', 1);
			});
			
		});
this.tooltip = function(){	
		xOffset = -20;
		yOffset = -10;		
	$("a.tooltip").hover(function(e){											  
		this.t = this.title;
		this.title = "";									  
		$("body").append("<p id='tooltip'>"+ this.t +"</p>");
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px")
			.fadeIn("fast");		
    },
	function(){
		this.title = this.t;		
		$("#tooltip").remove();
    });	
	$("a.tooltip").mousemove(function(e){
		$("#tooltip")
			.css("top",(e.pageY - xOffset) + "px")
			.css("left",(e.pageX + yOffset) + "px");
	});			
};



$(document).ready(function(){
	tooltip();
});	
