$(document).ready(function(){
 
	$(".signup-popup a").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-70"}, "fast");
	});
	
	$(".youtube-popup a").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-70"}, "fast");
	});
	
	$(".facebook-popup a").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-70"}, "fast");
	});
	
	$(".rss-popup a").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-70"}, "fast");
	});
	
	$(".spotify-popup a").hover(function() {
	$(this).next("em").stop(true, true).animate({opacity: "show", top: "-60"}, "slow");
	}, function() {
	$(this).next("em").animate({opacity: "hide", top: "-70"}, "fast");
	});
	
	
	// Tour Map
	
	// Popups for location details on tour map
	$(".dot").tooltip({effect: 'slide', relative: 'true', tipClass: 'details', offset: [15,0]}); // Add tooltip effect (using jquery tools)
	$(".dot, .details").hover(function() {
		var place = $(this).attr('class').split(" ", 1); // get specific class of hovered item
		$("#locations tr."+place+"Row").addClass("selected"); // add class 'selected' (turn it pink)
	}, function() {
		var place = $(this).attr('class').split(" ", 1);
		$("#locations tr."+place+"Row").removeClass("selected");
	});

});
