function anim()
{
	$("#exclu").css('display','none').fadeIn('slow');
}


$(document).ready(function(){
         
         
         //Animation promo vortex 2011
         
         $('a.promo-robot').fancybox();
         
         $('#promo-robot-video').click(function() {
				$.fancybox({
						'padding'		: 0,
						'autoScale'		: false,
						'transitionIn'	: 'none',
						'transitionOut'	: 'none',
						'title'			: this.title,
						'width'		: 680,
						'height'		: 495,
						'href'			: this.href.replace(new RegExp("watch\\?v=", "i"), 'v/'),
						'type'			: 'swf',
						'swf'			: {
							'wmode'		: 'transparent',
							'allowfullscreen'	: 'true'
						}
					});

				return false;
			});
         
         $("#vortex3").animate({left:"+=422px"}, 1800);
         $("#vortex1").animate({left:"-=400px"}, 1800);
			setTimeout(function() {$("#vortex-info").animate({left:"+=422px"}, 1800)}, 1800);
         setInterval("anim()",4000);
         
         //Animation promotion produits saison 2009
         $("#promoproduts #traitement").fadeTo("fast", 0);
         $("#promoproduts").mouseover(function(){$("#promoproduts #traitement").fadeTo("slow", 1);});
         $("#promoproduts").mouseout(function(){$("#promoproduts #traitement").fadeTo("slow", 0);});
         
         //Animation trouvez la voiture
         $("#voiture").animate({left:"+=1050px"}, 1800);
         setTimeout(function() {$("#texte1").animate({left:"-=680px"}, 1800)}, 1600);
         setTimeout(function() {$("#texte2").animate({left:"-=610px"}, 1800)}, 3000);
         setTimeout(function() {$("#texte3").animate({top:"-=170px"}, 1800)}, 5000);
         
         setTimeout(function() {$("#cadeau1").css("opacity", "0").animate({top:"-=100px"}, 1800).fadeTo("slow", 1)}, 6000);
         setTimeout(function() {$("#cadeau2").css("opacity", "0").animate({top:"-=100px"}, 1800).fadeTo("slow", 1)}, 6000);
         setTimeout(function() {$("#cadeau3").css("opacity", "0").animate({top:"-=100px"}, 1800).fadeTo("slow", 1)}, 6000);
         setTimeout(function() {$("#cadeau4").css("opacity", "0").animate({top:"-=100px"}, 1800).fadeTo("slow", 1)}, 6000);

         //Animation pour encart pro g plus
         $("#proplus img").fadeTo("fast", 0);
         $("#proplus").mouseover(function(){$("#proplus img").fadeTo("slow", 1);});
         $("#proplus").mouseout(function(){$("#proplus img").fadeTo("slow", 0);});
         
    });

