// JavaScript Document

//####### Evita CONFLITTO jQUERY vs LightBox
jQuery.noConflict();
//####################################

 jQuery(document).ready(function(){
								 
	stato = 0;
	
	var p1_link = "http://ilcratere.it/blog" // restaurant
	var p2_link = "http://bb.ilcratere.it" // bb
	var p3_link = "http://ilcratere.it/blog" // blog
	var p4_link = "http://www.facebook.com/ilcratere" // facebook
   
	/* PULSANTE RISTORANTE */
	jQuery(".t1").hover(
  		function () {
    		jQuery("html").css("background", "url('img/sf-giallo.jpg') fixed left top");
			jQuery("body").css("background", "url('img/sf-giallo.jpg') fixed left top");
			jQuery("img").filter(".t1").attr("src", "img/button/restaurant-bar-over.png");
			jQuery("#rosso").fadeOut(10);
			jQuery("#giallo").fadeIn(400);
  		},
  		function () {
			jQuery("img").filter(".t1").attr("src", "img/button/restaurant-bar.png");
  		}
	);
	
	jQuery(".t1").click( function(){	window.location = p1_link;}	);
	
	/* PULSANTE BB */
	jQuery(".t2").hover(
  		function () {
    		jQuery("html").css("background", "url('img/sf-rosso.jpg') fixed left top");
			jQuery("body").css("background", "url('img/sf-rosso.jpg') fixed left top");
			jQuery("img").filter(".t2").attr("src", "img/button/bb-over.png");
			jQuery("#giallo").fadeOut(10);
			jQuery("#rosso").fadeIn(400);
  		},
  		function () {
    		jQuery("img").filter(".t2").attr("src", "img/button/bb.png");
  		}
	);
	jQuery(".t2").click( function(){	window.location = p2_link;}	);
	
	/* PULSANTE BLOG */
	jQuery(".t3").hover(
  		function () {
			jQuery("img").filter(".t3").attr("src", "img/button/blog-over.png");
  		},
  		function () {
    		jQuery("img").filter(".t3").attr("src", "img/button/blog.png");
  		}
	);
	jQuery(".t3").click( function(){	window.location = p3_link;}	);
	
	
	/* PULSANTE FACEBOOK */	
	jQuery(".t4").hover(
  		function () {
			jQuery("img").filter(".t4").attr("src", "img/button/facebook-over.png");
  		},
  		function () {
    		jQuery("img").filter(".t4").attr("src", "img/button/facebook.png");
  		}
	);
	
	jQuery(".t4").click( function(){	window.location = p4_link;}	);
	
	//########################
	//NIENTE SOTTO QUESTA RIGA
});
