jQuery(function ($) {
	$(document).ready(function() {
	  
$('a.email').each(function(){
			e = this.rel.replace('/','@');
			this.href = 'mailto:' + e;
			$(this).text(e);
		});

$("ul#menu_vousetes span").css("opacity","0");

$("ul#menu_vousetes span").hover(
  function () { $(this).stop().animate({ opacity: 1}, "slow"); },
  function () { $(this).stop().animate({ opacity: 0 }, "slow"); }
);

$("ul#menu span").css("opacity","0");

$("ul#menu span").hover(
  function () { $(this).stop().animate({ opacity: 1}, "medium"); },
  function () { $(this).stop().animate({ opacity: 0 }, "medium"); }
);

$('#slideshow').anythingSlider({
    easing: "easeOutCirc",        // Anything other than "linear" or "swing" requires the easing plugin
    autoPlay: true,                 // This turns off the entire FUNCTIONALY, not just if it starts running or not.
    delay: 7000,                    // How long between slide transitions in AutoPlay mode
    startStopped: false,            // If autoPlay is on, this can force it to start stopped
    animationTime: 2000,             // How long the slide transition takes
    hashTags: true,                 // Should links change the hashtag in the URL?
    buildNavigation: true,          // If true, builds and list of anchor links to link to each slide
	  pauseOnHover: true,             // If true, and autoPlay is enabled, the show will pause on hover
	  startText: "Go",             // Start text
    stopText: "Stop"               // Stop text
});

$('#news').innerfade({ 
	  animationtype: 'fade',
 	  speed: 'slow',
 	  type: 'random',
 	  timeout: 8000
   }); 
   
$('#mycarousel').jcarousel({
    scroll:1,
    auto: 2,
    wrap: 'circular'
});
      
$("#wpcf7-form").formToWizard();

  });
});
