jQuery.noConflict();
var carrousel={nbSlide:0,nbCurrent:1,elemCurrent:null,elem:null,timer:null,init:function(elem){this.nbSlide=elem.find(".slide").length;
elem.find("ul.navigation li").click(function(){carrousel.gotoSlide(jQuery(this).attr("title"));})
this.elem=elem;elem.find(".slide").hide();
elem.find(".slide:first").show();
this.elemCurrent=elem.find(".slide:first");
this.elem.find("ul.navigation").css("opacity",1);
this.elem.find("ul.navigation li:first").addClass("active");
carrousel.play();
elem.mouseover(carrousel.stop);elem.mouseout(carrousel.play);},gotoSlide:function(num){if(num==this.nbCurrent){return false;}
this.elemCurrent.find(".visu").fadeOut();
this.elem.find("#slide"+num).show();
this.elem.find("#slide"+num+" .visu").hide().fadeIn();
var titleHeight=this.elemCurrent.find(".titlenews").height();
this.elemCurrent.find(".titlenews").animate({"bottom":-titleHeight},500);
this.elem.find("#slide"+num+" .titlenews").css("bottom",-titleHeight).animate({"bottom":"25px"},500);
var titleHeight=this.elemCurrent.find(".titledesign").height();
this.elem.find(".navigation li").removeClass("active");
this.elem.find(".navigation li:eq("+(num-1)+")").addClass("active");
this.nbCurrent=num;
this.elemCurrent=this.elem.find("#slide"+num);},next:function(){var num=this.nbCurrent+1;if(num>this.nbSlide){num=1;}
this.gotoSlide(num);},prev:function(){var num=this.nbCurrent-1;if(num<1){num=this.nbSlide;}
this.gotoSlide(num);},stop:function(){window.clearInterval(carrousel.timer);},play:function(){window.clearInterval(carrousel.timer);
carrousel.timer=window.setInterval("carrousel.next()",3500);}}
jQuery(function(){carrousel.init(jQuery("#carrousel"));});
var title = $(".active").attr("title");

