// ----------------------------------------------------------------------------------------------------------------------------------
//Effetto fade applicato alle foto
$(function() {
// Opacità delle immagini impostate al 70%
$(".fade").css("opacity","0.7");
		
// Al passaggio del mouse
$(".fade").hover(function () {
										  
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1.0 
}, "slow");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 70%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});


// ----------------------------------------------------------------------------------------------------------------------------------
//Effetto fade inversp applicato alle foto
$(function() {
// Opacità delle immagini impostate al 100%
$(".fade_reverse").css("opacity","1");
		
// Al passaggio del mouse
$(".fade_reverse").hover(function () {
										  
// imposta l'opacità al 70%
$(this).stop().animate({
opacity: 0.7
}, "slow");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1
}, "slow");
});
});


// ----------------------------------------------------------------------------------------------------------------------------------
//effetto fade applicato al .right ul li a
$(function() {
// Opacità del div impostata al 100%
$(".right ul li a").css("opacity","1.0");
		
// Al passaggio del mouse
$(".right ul li a").hover(function () {
										  
// imposta l'opacità al 50%
$(this).stop().animate({
opacity: 0.5
}, "fast");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1.0
}, "slow");
});
});


// ----------------------------------------------------------------------------------------------------------------------------------
//effetto fade applicato al .header_text ul li

/*

$(function() {
// Opacità del div impostata al 70%
$(".header_text ul li").css("opacity","0.7");
		
// Al passaggio del mouse
$(".header_text ul li").hover(function () {
										  
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 70%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});

*/

//--------------------------------------------------------------------------------------------------------------------------------
//effetto fade applicato a privacy
$(function() {
// Opacità del div impostata al 70%
$("#privacy").css("opacity","0.7");
		
// Al passaggio del mouse
$("#privacy").hover(function () {
										  
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 70%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});


// ----------------------------------------------------------------------------------------------------------------------------------
//effetto fade applicato a credits
$(function() {
// Opacità del div impostata al 70%
$("#credits").css("opacity","0.7");
		
// Al passaggio del mouse
$("#credits").hover(function () {
										  
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 70%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});


// ----------------------------------------------------------------------------------------------------------------------------------
//effetto fade applicato a HOME gallery
$(function() {
// Opacità del div impostata al 70%
$(".return").css("opacity","0.7");
		
// Al passaggio del mouse
$(".return").hover(function () {
										  
// imposta l'opacità al 100%
$(this).stop().animate({
opacity: 1.0
}, "fast");
},
		
// quando il mouse non è sull'elemento
function () {
			
// imposta l'opacità al 70%
$(this).stop().animate({
opacity: 0.7
}, "slow");
});
});


// -----------------------------------------------------------------------------------------------------------------------------------
// rotazione immagini header
// http://malsup.com/jquery/cycle/
$(document).ready(function() {
    $('.header_image').cycle({
		fx: 'fade', // choose your transition type:blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, shuffle, slideX, slideY, toss, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, zoom
		speed: 3000,
		sync: 0,
		timeout: 9000
});
});


// -----------------------------------------------------------------------------------------------------------------------------------
// rotazione immagini news
// http://malsup.com/jquery/cycle/
$(document).ready(function() {
    $('.news').cycle({
		fx: 'scrollLeft', // choose your transition type:blindX, blindY, blindZ, cover, curtainX, curtainY, fade, fadeZoom, growX, growY, scrollUp, scrollDown, scrollLeft, scrollRight, scrollHorz, scrollVert, shuffle, slideX, slideY, toss, turnUp, turnDown, turnLeft, turnRight, uncover, wipe, zoom
		speed: 1000,
		timeout: 10000//,
		//next: ".news"
});
});


// -----------------------------------------------------------------------------------------------------------------------------------
// lightbox immagini footer home
$(function() {
$('.footer_images a').lightBox({fixedNavigation:true});
});
