$(document).ready(function(){

	$(".play-button").hover(function() {
		$(this).children(".play-button-hover").animate({opacity: "show"}, "slow");
	}, function() {
		$(this).children(".play-button-hover").animate({opacity: "hide"}, "fast");
	});
	
	$(".next").hover(function() {
		$(this).children(".next-button").animate({opacity: "show"}, "slow");
	}, function() {
		$(this).children(".next-button").animate({opacity: "hide"}, "fast");
	});
	
	$(".prev").hover(function() {
		$(this).children(".prev-button").animate({opacity: "show"}, "slow");
	}, function() {
		$(this).children(".prev-button").animate({opacity: "hide"}, "fast");
	});
	
	$(".share-button").click(function() {
		$(".theme-tags").animate({opacity: "hide"}, "fast")
		$(".theme-related").animate({opacity: "hide"}, "fast")
	    $(".theme-rate").animate({opacity: "hide"}, "fast");
		$(".theme-link").animate({opacity: "hide"}, "fast")
		$("#theme-inside").animate({opacity: "hide"}, "fast");
		$(".theme-share").animate({opacity: "show"}, "fast");
	});


	$(".tags-button").click(function() {
		$(".theme-related").animate({opacity: "hide"}, "fast")
		$("#theme-inside").animate({opacity: "hide"}, "fast");
		$(".theme-tags").animate({opacity: "show"}, "fast");
	});
	$(".rate-button").click(function() {
		$(".theme-tags").animate({opacity: "hide"}, "fast")
		$(".theme-related").animate({opacity: "hide"}, "fast")
		$("#theme-inside").animate({opacity: "hide"}, "fast");
		$(".theme-rate").animate({opacity: "show"}, "fast");
	});
	
	$(".related-button").click(function() {
		$("#theme-inside").animate({opacity: "hide"}, "fast");
		$(".theme-related").animate({opacity: "show"}, "fast");
	});
	
	$(".close").click(function() {
		$(this).parent(".theme2").animate({opacity: "hide"}, "slow");
		$("#theme-inside").animate({opacity: "show"}, "slow");
		$(".theme-rate").animate({opacity: "hide"}, "slow");
		$(".theme-tags").animate({opacity: "hide"}, "slow");
		$(".theme-comment").animate({opacity: "hide"}, "slow");
		$(".theme-link").animate({opacity: "hide"}, "slow");
		$(".theme-share").animate({opacity: "hide"}, "slow");
		$(".theme-embed").animate({opacity: "hide"}, "slow");
	});
	$(".theme-button-hover").hover(function() {
		$(this).children(".theme-button-hover-image").animate({opacity: "show"}, "slow");
	}, function() {
		$(this).children(".theme-button-hover-image").animate({opacity: "hide"}, "fast");
	});
	$(".lights-button").click(function() {
		$(".lights").slideToggle("slow");
		$(this).toggleClass("active"); return false;
	});

});