jQuery.easing.jswing=jQuery.easing.swing;jQuery.extend(jQuery.easing,{easeInOutExpo:function(e,f,a,h,g){if(f==0){return a}if(f==g){return a+h}if((f/=g/2)<1){return h/2*Math.pow(2,10*(f-1))+a}return h/2*(-Math.pow(2,-10*--f)+2)+a}});$(function(){$("body").removeClass("coda-slider-no-js");$(".coda-slider").children(".panel").hide().end().prepend('<p class="loading">Chargement...<br /><img src="/espaces/portals/72/medias/slides/ajax-loader.gif" alt="chargement..." /></p>')});var sliderCount=1;$.fn.codaSlider=function(a){a=$.extend({autoHeight:false,autoHeightEaseDuration:1000,autoHeightEaseFunction:"easeInOutExpo",autoSlide:false,autoSlideInterval:7000,autoSlideStopWhenClicked:true,crossLinking:false,dynamicTabs:false,dynamicTabsAlign:"center",dynamicTabsPosition:"top",externalTriggerSelector:"a.xtrig",firstPanelToLoad:1,panelTitleSelector:"h2.title",slideEaseDuration:400,slideEaseFunction:"easeInOutExpo"},a);return this.each(function(){var c=$(this);var f=c.find(".panel").width();var h=c.find(".panel").size();var b=f*h;$(".panel",c).wrapAll('<div class="panel-container"></div>');$(".panel-container",c).css({width:b});if(a.crossLinking&&location.hash&&parseInt(location.hash.slice(1))<=h){var g=parseInt(location.hash.slice(1));var e=-(f*(g-1));$(".panel-container",c).css({marginLeft:e})}else{if(a.firstPanelToLoad!=1&&a.firstPanelToLoad<=h){var g=a.firstPanelToLoad;var e=-(f*(g-1));$(".panel-container",c).css({marginLeft:e})}else{var g=1}}$(a.externalTriggerSelector).each(function(){if(sliderCount==parseInt($(this).attr("rel").slice(12))){$(this).bind("mouseover",function(){$(".panel-container",c).stop();targetPanel=parseInt($(this).attr("name"));e=-(f*(targetPanel-1));g=targetPanel;c.siblings(".coda-nav").find("a").removeClass("current").parents("ul").find("li:eq("+(targetPanel-1)+") a").addClass("current");$(".panel-container",c).animate({marginLeft:e},a.slideEaseDuration,a.slideEaseFunction);if(!a.crossLinking){return false}})}});if(a.crossLinking&&location.hash&&parseInt(location.hash.slice(1))<=h){$("#coda-nav-"+sliderCount+" a:eq("+(location.hash.slice(1)-1)+")").addClass("current")}else{if(a.firstPanelToLoad!=1&&a.firstPanelToLoad<=h){$("#coda-nav-"+sliderCount+" a:eq("+(a.firstPanelToLoad-1)+")").addClass("current")}else{$("#coda-nav-"+sliderCount+" a:eq(0)").addClass("current")}}function d(i){}$(".panel",c).show().end().find("p.loading").remove();c.removeClass("preload");sliderCount++})};
