$(document).ready(function(){
	$("#box-home").fadeTo(0, 0.0);
	$(".tondo-01").hover(function(){
	$(".tondo-02,.tondo-03,.tondo-04,.tondo-05").stop(false,true).fadeTo("slow", 0.7);
	},function(){
	$(".tondo-02,.tondo-03,.tondo-04,.tondo-05").stop(false,true).fadeTo("slow", 1.0);
	});
	$(".tondo-02").hover(function(){
	$(".tondo-01,.tondo-03,.tondo-04,.tondo-05").stop(false,true).fadeTo("slow", 0.7);
	},function(){
	$(".tondo-01,.tondo-03,.tondo-04,.tondo-05").stop(false,true).fadeTo("slow", 1.0);
	});
	$(".tondo-03").hover(function(){
	$(".tondo-01,.tondo-02,.tondo-04,.tondo-05").stop(false,true).fadeTo("slow", 0.7);
	},function(){
	$(".tondo-01,.tondo-02,.tondo-04,.tondo-05").stop(false,true).fadeTo("slow", 1.0);
	});
	$(".tondo-04").hover(function(){
	$(".tondo-01,.tondo-02,.tondo-03,.tondo-05").stop(false,true).fadeTo("slow", 0.7);
	},function(){
	$(".tondo-01,.tondo-02,.tondo-03,.tondo-05").stop(false,true).fadeTo("slow", 1.0);
	});
	$(".tondo-05").hover(function(){
	$(".tondo-01,.tondo-02,.tondo-03,.tondo-04").stop(false,true).fadeTo("slow", 0.7);
	},function(){
	$(".tondo-01,.tondo-02,.tondo-03,.tondo-04").stop(false,true).fadeTo("slow", 1.0);
	});
	$(".menuchiaro a,.menunero a").hover(function() {
	$(this).stop(false,true).animate({ "padding-right":"23px" }, "normal");
	},function() {
	$(this).stop(false,true).animate({ "padding-right":"16px" }, "normal");
	});
	$("#musica").hover(function () {
      $(".appare").stop(false,true).fadeTo("slow", 1.0);
	  $("#musica").stop(false,true).animate({top: 597}, {duration:600, easing: 'easeOutBounce'});
	  },function() {
	  $(".appare").stop(false,true).fadeTo("slow", 0.0);
	  $("#musica").stop(false,true).animate({top: 620}, {duration:600, easing: 'easeOutBounce'});
	});
	$(".menushop").hover(function () {
      $(".iconashop").stop(false,true).fadeTo("slow", 1.0);
	  },function() {
	  $(".iconashop").stop(false,true).fadeTo("slow", 0.0);
	});
	$(".menucontact").hover(function () {
      $(".iconacontact").stop(false,true).fadeTo("slow", 1.0);
	  },function() {
	  $(".iconacontact").stop(false,true).fadeTo("slow", 0.0);
	});
	$(".icona img,.fade-img").hover(function () {
      $(this).stop(false,true).fadeTo("slow", 0.7);
	  },function() {
	  $(this).stop(false,true).fadeTo("slow", 1.0);
	});
	$(".dissolvi").hover(function () {
	  $(this).stop(false,true).animate({ border: "5px solid #1B0D20" });
	  $(this).stop(false,true).fadeTo("slow", 0.7);
	  },function() {
	  $(this).stop(false,true).animate({ border: "5px solid #F0C295" });
	  $(this).stop(false,true).fadeTo("slow", 1.0);
	});
	$(".carrello").hover(function () {
	  $(this).stop(false,true).animate({ border: "1px solid #829895",backgroundColor: "#CAD0C0" }, "slow");
	  $(".carrello a").stop(false,true).animate({ color: "#829895" }, "fast");
	  },function() {
	  $(this).stop(false,true).animate({ border: "1px solid #D7A97C",backgroundColor: "#F0C295" }, "slow");
	  $(".carrello a").stop(false,true).animate({ color: "#A7322D" }, "slow");
	});
	$("#box-testi a,.link-prev a,.link-next a").hover(function() {
	$(this).animate({ color: "#829895" }, "normal");
	},function() {
	$(this).animate({ color: "#AF463F" }, "slow");
	});
	$(".linkshop-prev a,.linkshop-next a").hover(function() {
	$(this).stop(false,true).animate({ color: "#AF463F" }, "normal");
	},function() {
	$(this).stop(false,true).animate({ color: "#829895" }, "slow");
	});
	$(".tondo-01,.tondo-02,.tondo-03,.tondo-04,.tondo-05").click( 
	function(event) 
	{ 
	window.location = "home.html";
	});
	$('a[rel="radio"]').click(
		function()
		{
			return $.dbPopWin( $(this).attr('href'), { dbPopWinWidth: 350, dbPopWinHeight: 135, dbPopWinY: "0px", dbPopWinX: "0px" } );
		}
	);
	$('a[rel="player"]').click(
		function()
		{
			return $.dbPopWin( $(this).attr('href'), { dbPopWinWidth: 400, dbPopWinHeight: 450, dbPopWinY: "0px", dbPopWinX: "0px" } );
		}
	);
});
$(window).load(function () {
	$("#box-home,#carrello").fadeTo("normal", 1.0);
});
