/*

Copyright (c) 2011 DeepartWeb. All rights reserved.

*/

$(document).ready(function() {

  $(".camere").hover(
  	function () {
  	$(this).find('.camera_title').fadeIn('fast');}, 
  	function () {
  	$(this).find('.camera_title').fadeOut('fast');}
  );
  
//change color
$("#nav li a, #richiedi").hover(
	function () {
	$(this).not('#nav li.active a').animate({color: "#fff"}, "fast");}, 
	function () {
	$(this).not('#nav li.active a').animate({color: "#A3947B"} , "fast");}
);

$("#footer a").not(".mail").hover(
	function () {
	$(this).animate({color: "#413728"}, "fast");}, 
	function () {
	$(this).animate({color: "#7A684B"} , "fast");}
);

$("#footer a.mail").hover(
	function () {
	$(this).animate({color: "#413728"}, "fast");}, 
	function () {
	$(this).animate({color: "#AC8635"} , "fast");}
);

$("#main a.mail").hover(
	function () {
	$(this).animate({color: "#fff"}, "fast");}, 
	function () {
	$(this).animate({color: "#866D57"} , "fast");}
);

$("#main h3 a").hover(
	function () {
	$(this).animate({color: "#A3947B"}, "fast");}, 
	function () {
	$(this).animate({color: "#544130"} , "fast");}
);

			$('.fadeTo50').mouseover(function(){$(this).fadeTo('normal', 0.5);});
			$('.fadeTo50').mouseout(function(){$(this).fadeTo('normal', 1);});
			$('.fadeTo70').mouseover(function(){$(this).fadeTo('normal', 0.7);});
			$('.fadeTo70').mouseout(function(){$(this).fadeTo('normal', 1);});
			$("a[rel^='prettyPhoto']").prettyPhoto({theme: 'light_square',showTitle: false});


    $(".fr-call").hover(
	   function () {
            $(this).attr('src', 'images/fr_hover.png');
            $(this).attr('hover', 'images/fr.png');
	   }, 
	   function () {
            $(this).attr('src', 'images/fr.png');
            $(this).attr('hover', 'images/fr_hover.png');
    });

});

$(window).load(function(){

        $('#slider').cycle({
            fx: 'fade',
            timeout: 3000,
            speed: 1000,
            next:   '#next', 
            prev:   '#prev' 
        });
        
        $('.loader').fadeOut('normal');
        $('#slider').fadeTo('normal', 1);
});
