$(document).ready(function(){
		$('#blocco').bind('mouseover', function(){
			$(this).spotlight({exitEvent:'mouseover', speed:200,
				onShow: function(){
					$('#blocco').addClass("lighted");
				},
				onHide: function(){
					$('#blocco').removeClass("lighted");
				}	
			});
		});
		$('#blocco2').bind('mouseover', function(){
			$(this).spotlight({exitEvent:'mouseover', speed:200,
				onShow: function(){
					$('#blocco2').addClass("lighted");
				},
				onHide: function(){
					$('#blocco2').removeClass("lighted");
				}	
			});
		});
		$('#blocco3').bind('mouseover', function(){
			$(this).spotlight({exitEvent:'mouseover', speed:200,
				onShow: function(){
					$('#blocco3').addClass("lighted");
				},
				onHide: function(){
					$('#blocco3').removeClass("lighted");
				}	
			});
		});
		
		$('.buttonNav').bind('mouseover', function(){
			$(this).animate({
			    backgroundColor : "#333333"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		$('.buttonNav').bind('mouseout', function(){
			$(this).animate({
			    backgroundColor : "#999999"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		$('.buttonAreaR').bind('mouseout', function(){
			$(this).animate({
			    backgroundColor : "#333333"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		$('.buttonAreaR').bind('mouseover', function(){
			$(this).animate({
			    backgroundColor : "#999999"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		
		$('#pulVerde').bind('mouseover', function(){
			$(this).animate({
			    backgroundColor : "#66ee33"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		$('#pulVerde').bind('mouseout', function(){
			$(this).animate({
			    backgroundColor : "#66cc33"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		
		$('#pulViola').bind('mouseover', function(){
			$(this).animate({
			    backgroundColor : "#cc33ee"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		$('#pulViola').bind('mouseout', function(){
			$(this).animate({
			    backgroundColor : "#9933cc"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		
		$('#pulBlu').bind('mouseover', function(){
			$(this).animate({
			    backgroundColor : "#3399ff"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		$('#pulBlu').bind('mouseout', function(){
			$(this).animate({
			    backgroundColor : "#3333ff"
			  }, 200, function() {
			    // Animation complete.
			  });
		});
		
		$(function() {
		    $("#map").gMap({ zoom: 15, markers: [{ address: "via roma 72 paderno dugnano", html: "<img src='img/logo.png' style='height:73px' alt='Zeroeuno Srl - Logo'/><p>via Roma, 72<br/>20037 - Paderno Dugnano (Mi)</p>", popup: true }] });
		});
		
		$.localScroll();
		$.localScroll.hash();
}); 


function abilita()
{
	if(document.getElementById('Submit').disabled==true)
	{
		document.getElementById('Submit').disabled=false;
	}
	else
	{
		document.getElementById('Submit').disabled=true;
	}
	
}
