﻿
//hover jquery - per scritte effetto fade
jQuery.noConflict();
jQuery(function($){

   $("#nav_top ul.azienda li a").hover(
	   function () {
	   $(this).animate({color: "#bc051f"}, "fast");	   
	   }, 
	   function () {
	   $(this).animate({color: "#666"}, "fast");
	   }
    );
    $("#nav_top ul.lang li a").hover(
	   function () {
	   $(this).animate({color: "#000"}, "fast");	   
	   }, 
	   function () {
	   $(this).animate({color: "#999"}, "fast");
	   }
    );
   
    $("#nav_bottom ul li a").hover(
	   function () {
	   $(this).animate({color: "#bc051f"}, "fast");	   
	   }, 
	   function () {
	   $(this).animate({color: "#666"}, "fast");
	   }
    );
    $(".footer-cont ul li a").hover(
	   function () {
	   $(this).animate({color: "#bc051f"}, "fast");	   
	   }, 
	   function () {
	   $(this).animate({color: "#333"}, "fast");
	   }
    );
    
        
    //hover per box - cambia posizione il background
    
    $('.boxsistema')
	.css( {backgroundPosition: "0 -50px"} )
	.mouseover(function(){
		$(this).stop().animate(
			{backgroundPosition:"(0 -10px)"}, 
			{duration:100})
		})
	.mouseout(function(){
		$j(this).stop().animate(
			{backgroundPosition:"(0 -50px)"}, 
			{duration:500})
		})
	
		
	$('.boxes_bottom')
    .css( {backgroundPosition: "0 -50px"} )
    .mouseover(function(){
	    $(this).stop().animate(
		    {backgroundPosition:"(0 -20px)"}, 
		    {duration:100})
	    })
    .mouseout(function(){
	    $(this).stop().animate(
		    {backgroundPosition:"(0 -50px)"}, 
		    {duration:500})
	    })
	    
	$('.boxshadow')
    .css( {backgroundPosition: "0 -90px"} )
    .mouseover(function(){
	    $(this).stop().animate(
		    {backgroundPosition:"(0 -30px)"}, 
		    {duration:50})
	    })
    .mouseout(function(){
	    $(this).stop().animate(
		    {backgroundPosition:"(0 -90px)"}, 
		    {duration:300})
	})
	
	
	
	// Load Accordion PAG. ACCESSORI con active effect
	//$('.etichetta').first().next().show();
	//$('.etichetta').first().addClass('active');
	
    $('.etichetta').toggle(function(){
        $(this).next().slideDown("normal");  
        $('.etichetta').addClass('active');
          
        $('.etichetta').not(this).next().slideUp("normal");
        $('.etichetta').not(this).removeClass('active');
        },
        function(){
        $(this).next().slideUp("normal");  
        $('.etichetta').removeClass('active');
    });
    
    

    //effetto hover per immagini varie
     $('.redazionale').hover(
	   function () {
	   $(this).find('.mask').fadeOut('fast');
	   $(this).find('.scritta').animate({color: "#000"}, "fast");
	   }, 
	   function () {
	   $(this).find('.mask').fadeIn('fast');
	   $(this).find('.scritta').animate({color: "#58585A"}, "fast");
	   }
    );
    
    $('.highslide').hover(
	   function () {
	   $(this).find('.mask-mini').fadeOut('fast');
	   }, 
	   function () {
	   $(this).find('.mask-mini').fadeIn('fast');
	   }
    );
    
    $('.gallery').hover(
	   function () {
	   $(this).find('.mask-gallery').fadeOut('fast');
	   }, 
	   function () {
	   $(this).find('.mask-gallery').fadeIn('fast');
	   }
    );
    
    $('.highslide').hover(
	   function () {
	   $(this).find('.mask-camp').fadeOut('fast');
	   }, 
	   function () {
	   $(this).find('.mask-camp').fadeIn('fast');
	   }
    );
    
    
});

