$(document).ready(function(){$("a.ref").hover(function(){$(this).find('img').fadeTo(400,0);$(this).find('div.description span').animate({backgroundColor:"rgba(230, 230, 230, .0)",color:"#394253"},500);},function(){$(this).find('img').fadeTo(200,1);$(this).find('div.description span').animate({backgroundColor:"#e6e6e6",color:"#e6e6e6"},100);});$("a.ref").click(function(e){e.preventDefault();var cible=$(this).attr('href');var pageTracker=_gat._getTracker('UA-930844-12');pageTracker._trackPageview('/outgoing/'+cible);$('#container').load(cible,function(){$("#containerSlideshow").fadeIn("slow");$('#closeBtn').fadeIn('slow',function(){if($.browser.msie){$("#containerVignettes").animate({marginTop:"440px"},600,"easeOutQuint");}
else{$("#containerVignettes").animate({marginTop:"440px",marginLeft:"auto"},600,"easeOutQuint");}});$('#slideshow').cycle({fx:'scrollLeft',easing:'easeOutQuad',speed:400,timeout:0,next:'#slideshow'});});});$("#closeBtn").click(function(e){e.preventDefault();$("#containerVignettes").animate({marginTop:"0px"},200,"easeOutQuad");$("#containerSlideshow").fadeOut("slow");$(this).fadeOut("slow");$("#container").empty();});$("a.ref").each(function(){var bordercolor=$(this).attr('value');$(this).css('border-color',bordercolor);var cheminimage=$(this).find('img').attr('src');cheminimage='url('+cheminimage.replace('.jpg','_hover.jpg')+')';$(this).css('background-image',cheminimage);});});
