/* Cycle lite ___________________________________________________ */
(function(D){var A="Lite-1.0";D.fn.cycle=function(E){return this.each(function(){E=E||{};if(this.cycleTimeout){clearTimeout(this.cycleTimeout)}this.cycleTimeout=0;this.cyclePause=0;var I=D(this);var J=E.slideExpr?D(E.slideExpr,this):I.children();var G=J.get();if(G.length<2){if(window.console&&window.console.log){window.console.log("terminating; too few slides: "+G.length)}return }var H=D.extend({},D.fn.cycle.defaults,E||{},D.metadata?I.metadata():D.meta?I.data():{});H.before=H.before?[H.before]:[];H.after=H.after?[H.after]:[];H.after.unshift(function(){H.busy=0});var F=this.className;H.width=parseInt((F.match(/w:(\d+)/)||[])[1])||H.width;H.height=parseInt((F.match(/h:(\d+)/)||[])[1])||H.height;H.timeout=parseInt((F.match(/t:(\d+)/)||[])[1])||H.timeout;if(I.css("position")=="static"){I.css("position","relative")}if(H.width){I.width(H.width)}if(H.height&&H.height!="auto"){I.height(H.height)}var K=0;J.css({position:"absolute",top:0,left:0}).hide().each(function(M){D(this).css("z-index",G.length-M)});D(G[K]).css("opacity",1).show();if(D.browser.msie){G[K].style.removeAttribute("filter")}if(H.fit&&H.width){J.width(H.width)}if(H.fit&&H.height&&H.height!="auto"){J.height(H.height)}if(H.pause){I.hover(function(){this.cyclePause=1},function(){this.cyclePause=0})}D.fn.cycle.transitions.fade(I,J,H);J.each(function(){var M=D(this);this.cycleH=(H.fit&&H.height)?H.height:M.height();this.cycleW=(H.fit&&H.width)?H.width:M.width()});J.not(":eq("+K+")").css({opacity:0});if(H.cssFirst){D(J[K]).css(H.cssFirst)}if(H.timeout){if(H.speed.constructor==String){H.speed={slow:600,fast:200}[H.speed]||400}if(!H.sync){H.speed=H.speed/2}while((H.timeout-H.speed)<250){H.timeout+=H.speed}}H.speedIn=H.speed;H.speedOut=H.speed;H.slideCount=G.length;H.currSlide=K;H.nextSlide=1;var L=J[K];if(H.before.length){H.before[0].apply(L,[L,L,H,true])}if(H.after.length>1){H.after[1].apply(L,[L,L,H,true])}if(H.click&&!H.next){H.next=H.click}if(H.next){D(H.next).bind("click",function(){return C(G,H,H.rev?-1:1)})}if(H.prev){D(H.prev).bind("click",function(){return C(G,H,H.rev?1:-1)})}if(H.timeout){this.cycleTimeout=setTimeout(function(){B(G,H,0,!H.rev)},H.timeout+(H.delay||0))}})};function B(J,E,I,K){if(E.busy){return }var H=J[0].parentNode,M=J[E.currSlide],L=J[E.nextSlide];if(H.cycleTimeout===0&&!I){return }if(I||!H.cyclePause){if(E.before.length){D.each(E.before,function(N,O){O.apply(L,[M,L,E,K])})}var F=function(){if(D.browser.msie){this.style.removeAttribute("filter")}D.each(E.after,function(N,O){O.apply(L,[M,L,E,K])})};if(E.nextSlide!=E.currSlide){E.busy=1;D.fn.cycle.custom(M,L,E,F)}var G=(E.nextSlide+1)==J.length;E.nextSlide=G?0:E.nextSlide+1;E.currSlide=G?J.length-1:E.nextSlide-1}if(E.timeout){H.cycleTimeout=setTimeout(function(){B(J,E,0,!E.rev)},E.timeout)}}function C(E,F,I){var H=E[0].parentNode,G=H.cycleTimeout;if(G){clearTimeout(G);H.cycleTimeout=0}F.nextSlide=F.currSlide+I;if(F.nextSlide<0){F.nextSlide=E.length-1}else{if(F.nextSlide>=E.length){F.nextSlide=0}}B(E,F,1,I>=0);return false}D.fn.cycle.custom=function(K,H,I,E){var J=D(K),G=D(H);G.css({opacity:0});var F=function(){G.animate({opacity:1},I.speedIn,I.easeIn,E)};J.animate({opacity:0},I.speedOut,I.easeOut,function(){J.css({display:"none"});if(!I.sync){F()}});if(I.sync){F()}};D.fn.cycle.transitions={fade:function(F,G,E){G.not(":eq(0)").css("opacity",0);E.before.push(function(){D(this).show()})}};D.fn.cycle.ver=function(){return A};D.fn.cycle.defaults={timeout:4000,speed:1000,next:null,prev:null,before:null,after:null,height:"auto",sync:1,fit:0,pause:0,delay:0,slideExpr:null}})(jQuery)

/* DD_belatedPNG: Adds IE6 support: PNG images for CSS background-image and HTML <IMG/>  ___________________________________________________ */
var DD_belatedPNG={ns:"DD_belatedPNG",imgSize:{},delay:10,nodesFixed:0,createVmlNameSpace:function(){if(document.namespaces&&!document.namespaces[this.ns]){document.namespaces.add(this.ns,"urn:schemas-microsoft-com:vml")}},createVmlStyleSheet:function(){var b,a;b=document.createElement("style");b.setAttribute("media","screen");document.documentElement.firstChild.insertBefore(b,document.documentElement.firstChild.firstChild);if(b.styleSheet){b=b.styleSheet;b.addRule(this.ns+"\\:*","{behavior:url(#default#VML)}");b.addRule(this.ns+"\\:shape","position:absolute;");b.addRule("img."+this.ns+"_sizeFinder","behavior:none; border:none; position:absolute; z-index:-1; top:-10000px; visibility:hidden;");this.screenStyleSheet=b;a=document.createElement("style");a.setAttribute("media","print");document.documentElement.firstChild.insertBefore(a,document.documentElement.firstChild.firstChild);a=a.styleSheet;a.addRule(this.ns+"\\:*","{display: none !important;}");a.addRule("img."+this.ns+"_sizeFinder","{display: none !important;}")}},readPropertyChange:function(){var b,c,a;b=event.srcElement;if(!b.vmlInitiated){return}if(event.propertyName.search("background")!=-1||event.propertyName.search("border")!=-1){DD_belatedPNG.applyVML(b)}if(event.propertyName=="style.display"){c=(b.currentStyle.display=="none")?"none":"block";for(a in b.vml){if(b.vml.hasOwnProperty(a)){b.vml[a].shape.style.display=c}}}if(event.propertyName.search("filter")!=-1){DD_belatedPNG.vmlOpacity(b)}},vmlOpacity:function(b){if(b.currentStyle.filter.search("lpha")!=-1){var a=b.currentStyle.filter;a=parseInt(a.substring(a.lastIndexOf("=")+1,a.lastIndexOf(")")),10)/100;b.vml.color.shape.style.filter=b.currentStyle.filter;b.vml.image.fill.opacity=a}},handlePseudoHover:function(a){setTimeout(function(){DD_belatedPNG.applyVML(a)},1)},fix:function(a){if(this.screenStyleSheet){var c,b;c=a.split(",");for(b=0;b<c.length;b++){this.screenStyleSheet.addRule(c[b],"behavior:expression(DD_belatedPNG.fixPng(this))")}}},applyVML:function(a){a.runtimeStyle.cssText="";this.vmlFill(a);this.vmlOffsets(a);this.vmlOpacity(a);if(a.isImg){this.copyImageBorders(a)}},attachHandlers:function(i){var d,c,g,e,b,f;d=this;c={resize:"vmlOffsets",move:"vmlOffsets"};if(i.nodeName=="A"){e={mouseleave:"handlePseudoHover",mouseenter:"handlePseudoHover",focus:"handlePseudoHover",blur:"handlePseudoHover"};for(b in e){if(e.hasOwnProperty(b)){c[b]=e[b]}}}for(f in c){if(c.hasOwnProperty(f)){g=function(){d[c[f]](i)};i.attachEvent("on"+f,g)}}i.attachEvent("onpropertychange",this.readPropertyChange)},giveLayout:function(a){a.style.zoom=1;if(a.currentStyle.position=="static"){a.style.position="relative"}},copyImageBorders:function(b){var c,a;c={borderStyle:true,borderWidth:true,borderColor:true};for(a in c){if(c.hasOwnProperty(a)){b.vml.color.shape.style[a]=b.currentStyle[a]}}},vmlFill:function(e){if(!e.currentStyle){return}else{var d,f,g,b,a,c;d=e.currentStyle}for(b in e.vml){if(e.vml.hasOwnProperty(b)){e.vml[b].shape.style.zIndex=d.zIndex}}e.runtimeStyle.backgroundColor="";e.runtimeStyle.backgroundImage="";f=true;if(d.backgroundImage!="none"||e.isImg){if(!e.isImg){e.vmlBg=d.backgroundImage;e.vmlBg=e.vmlBg.substr(5,e.vmlBg.lastIndexOf('")')-5)}else{e.vmlBg=e.src}g=this;if(!g.imgSize[e.vmlBg]){a=document.createElement("img");g.imgSize[e.vmlBg]=a;a.className=g.ns+"_sizeFinder";a.runtimeStyle.cssText="behavior:none; position:absolute; left:-10000px; top:-10000px; border:none; margin:0; padding:0;";c=function(){this.width=this.offsetWidth;this.height=this.offsetHeight;g.vmlOffsets(e)};a.attachEvent("onload",c);a.src=e.vmlBg;a.removeAttribute("width");a.removeAttribute("height");document.body.insertBefore(a,document.body.firstChild)}e.vml.image.fill.src=e.vmlBg;f=false}e.vml.image.fill.on=!f;e.vml.image.fill.color="none";e.vml.color.shape.style.backgroundColor=d.backgroundColor;e.runtimeStyle.backgroundImage="none";e.runtimeStyle.backgroundColor="transparent"},vmlOffsets:function(d){var h,n,a,e,g,m,f,l,j,i,k;h=d.currentStyle;n={W:d.clientWidth+1,H:d.clientHeight+1,w:this.imgSize[d.vmlBg].width,h:this.imgSize[d.vmlBg].height,L:d.offsetLeft,T:d.offsetTop,bLW:d.clientLeft,bTW:d.clientTop};a=(n.L+n.bLW==1)?1:0;e=function(b,p,q,c,s,u){b.coordsize=c+","+s;b.coordorigin=u+","+u;b.path="m0,0l"+c+",0l"+c+","+s+"l0,"+s+" xe";b.style.width=c+"px";b.style.height=s+"px";b.style.left=p+"px";b.style.top=q+"px"};e(d.vml.color.shape,(n.L+(d.isImg?0:n.bLW)),(n.T+(d.isImg?0:n.bTW)),(n.W-1),(n.H-1),0);e(d.vml.image.shape,(n.L+n.bLW),(n.T+n.bTW),(n.W),(n.H),1);g={X:0,Y:0};if(d.isImg){g.X=parseInt(h.paddingLeft,10)+1;g.Y=parseInt(h.paddingTop,10)+1}else{for(j in g){if(g.hasOwnProperty(j)){this.figurePercentage(g,n,j,h["backgroundPosition"+j])}}}d.vml.image.fill.position=(g.X/n.W)+","+(g.Y/n.H);m=h.backgroundRepeat;f={T:1,R:n.W+a,B:n.H,L:1+a};l={X:{b1:"L",b2:"R",d:"W"},Y:{b1:"T",b2:"B",d:"H"}};if(m!="repeat"||d.isImg){i={T:(g.Y),R:(g.X+n.w),B:(g.Y+n.h),L:(g.X)};if(m.search("repeat-")!=-1){k=m.split("repeat-")[1].toUpperCase();i[l[k].b1]=1;i[l[k].b2]=n[l[k].d]}if(i.B>n.H){i.B=n.H}d.vml.image.shape.style.clip="rect("+i.T+"px "+(i.R+a)+"px "+i.B+"px "+(i.L+a)+"px)"}else{d.vml.image.shape.style.clip="rect("+f.T+"px "+f.R+"px "+f.B+"px "+f.L+"px)"}},figurePercentage:function(d,c,f,a){var b,e;e=true;b=(f=="X");switch(a){case"left":case"top":d[f]=0;break;case"center":d[f]=0.5;break;case"right":case"bottom":d[f]=1;break;default:if(a.search("%")!=-1){d[f]=parseInt(a,10)/100}else{e=false}}d[f]=Math.ceil(e?((c[b?"W":"H"]*d[f])-(c[b?"w":"h"]*d[f])):parseInt(a,10));if(d[f]%2===0){d[f]++}return d[f]},fixPng:function(c){c.style.behavior="none";var g,b,f,a,d;if(c.nodeName=="BODY"||c.nodeName=="TD"||c.nodeName=="TR"){return}c.isImg=false;if(c.nodeName=="IMG"){if(c.src.toLowerCase().search(/\.png$/)!=-1){c.isImg=true;c.style.visibility="hidden"}else{return}}else{if(c.currentStyle.backgroundImage.toLowerCase().search(".png")==-1){return}}g=DD_belatedPNG;c.vml={color:{},image:{}};b={shape:{},fill:{}};for(a in c.vml){if(c.vml.hasOwnProperty(a)){for(d in b){if(b.hasOwnProperty(d)){f=g.ns+":"+d;c.vml[a][d]=document.createElement(f)}}c.vml[a].shape.stroked=false;c.vml[a].shape.appendChild(c.vml[a].fill);c.parentNode.insertBefore(c.vml[a].shape,c)}}c.vml.image.shape.fillcolor="none";c.vml.image.fill.type="tile";c.vml.color.fill.on=false;g.attachHandlers(c);g.giveLayout(c);g.giveLayout(c.offsetParent);c.vmlInitiated=true;g.applyVML(c)}};try{document.execCommand("BackgroundImageCache",false,true)}catch(r){}DD_belatedPNG.createVmlNameSpace();DD_belatedPNG.createVmlStyleSheet();

if (jQuery.browser.msie) {
if(parseInt(jQuery.browser.version) == 6) {
DD_belatedPNG.fix('img,.home #bg_photo,.home #bg_container,.cadre_accueil a.savoir_plus,.cadre_accueil,#bg_container,#courbe_content, #sub_header');
}}

/* --------------- Caroussel avec pause on hover---------------------- 
(function($){$.fn.jCarouselLite=function(o){o=$.extend({btnPrev:null,btnNext:null,btnGo:null,mouseWheel:false,auto:null,pauseOnHover:true,speed:200,easing:null,vertical:false,circular:true,visible:3,start:0,scroll:1,beforeStart:null,afterEnd:null},o||{});return this.each(function(){var running=false,animCss=o.vertical?"top":"left",sizeCss=o.vertical?"height":"width";var div=$(this),ul=$("ul",div),tLi=$("li",ul),tl=tLi.size(),v=o.visible;var isMouseOver=false;if(o.circular){ul.prepend(tLi.slice(tl-v-1+1).clone()).append(tLi.slice(0,v).clone());o.start+=v;}var li=$("li",ul),itemLength=li.size(),curr=o.start;div.css("visibility","visible");li.css({overflow:"hidden",float:o.vertical?"none":"left"});ul.css({margin:"0",padding:"0",position:"relative","list-style-type":"none","z-index":"1"});div.css({overflow:"hidden",position:"relative","z-index":"2",left:"0px"});var liSize=o.vertical?height(li):width(li);var ulSize=liSize*itemLength;var divSize=liSize*v;li.css({width:li.width(),height:li.height()});ul.css(sizeCss,ulSize+"px").css(animCss,-(curr*liSize));div.css(sizeCss,divSize+"px");li.mouseover(function(){isMouseOver=true;});li.mouseout(function(){isMouseOver=false;});if(o.btnPrev){$(o.btnPrev).mouseover(function(){isMouseOver=true;});$(o.btnPrev).mouseout(function(){isMouseOver=false;});$(o.btnPrev).click(function(){return go(curr-o.scroll);});}if(o.btnNext){$(o.btnNext).mouseover(function(){isMouseOver=true;});$(o.btnNext).mouseout(function(){isMouseOver=false;});$(o.btnNext).click(function(){return go(curr+o.scroll);});}if(o.btnGo)$.each(o.btnGo,function(i,val){$(val).click(function(){return go(o.circular?o.visible+i:i);});});if(o.mouseWheel&&div.mousewheel)div.mousewheel(function(e,d){return d>0?go(curr-o.scroll):go(curr+o.scroll);});if(o.auto)setInterval(function(){if(o.pauseOnHover&&isMouseOver)return;go(curr+o.scroll);},o.auto+o.speed);function vis(){return li.slice(curr).slice(0,v);};function go(to){if(!running){if(o.beforeStart)o.beforeStart.call(this,vis());if(o.circular){if(to<=o.start-v-1){ul.css(animCss,-((itemLength-(v*2))*liSize)+"px");curr=to==o.start-v-1?itemLength-(v*2)-1:itemLength-(v*2)-o.scroll;}else if(to>=itemLength-v+1){ul.css(animCss,-((v)*liSize)+"px");curr=to==itemLength-v+1?v+1:v+o.scroll;}else curr=to;}else{if(to<0||to>itemLength-v)return;else curr=to;}running=true;ul.animate(animCss=="left"?{left:-(curr*liSize)}:{top:-(curr*liSize)},o.speed,o.easing,function(){if(o.afterEnd)o.afterEnd.call(this,vis());running=false;});if(!o.circular){$(o.btnPrev+","+o.btnNext).removeClass("disabled");$((curr-o.scroll<0&&o.btnPrev)||(curr+o.scroll>itemLength-v&&o.btnNext)||[]).addClass("disabled");}}return false;};});};function css(el,prop){return parseInt($.css(el[0],prop))||0;};function width(el){return el[0].offsetWidth+css(el,'marginLeft')+css(el,'marginRight');};function height(el){return el[0].offsetHeight+css(el,'marginTop')+css(el,'marginBottom');};})(jQuery);
*/


/*	
 *	jQuery carouFredSel 2.5.4
 *	Demo's and documentation:
 *	caroufredsel.frebsite.nl
 *	
 *	Copyright (c) 2010 Fred Heusschen
 *	www.frebsite.nl
 *
 *	Licensed under the MIT license.
 *	http://www.opensource.org/licenses/mit-license.php
 */

eval(function(p,a,c,k,e,r){e=function(c){return(c<a?'':e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)r[e(c)]=k[c]||e(c);k=[function(e){return r[e]}];e=function(){return'\\w+'};c=1};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p}('(u($){$.1a.1b=u(o){8(G.X>1){w G.1v(u(){$(G).1b(o)})}G.2m=u(o){8(9(o)!=\'16\')o={};8(9(o.Q)==\'A\'){8(o.Q<=35)o.Q={q:o.Q};z o.Q={T:o.Q}}z{8(9(o.Q)==\'12\')o.Q={U:o.Q}}8(9(o.q)==\'A\')o.q={M:o.q};z 8(9(o.q)==\'12\')o.q={1m:o.q,1n:o.q};7=$.1H(K,{},$.1a.1b.2A,o);7.N=2B(7.N);7.Y=(7.N[0]==0&&7.N[1]==0&&7.N[2]==0&&7.N[3]==0)?H:K;1c=(7.1c==\'2C\'||7.1c==\'1d\')?\'D\':\'E\';8(7.1c==\'2D\'||7.1c==\'1d\'){7.x=[\'1m\',\'2n\',\'1n\',\'2o\',\'1d\',\'1U\',\'36\']}z{7.x=[\'1n\',\'2o\',\'1m\',\'2n\',\'1U\',\'1d\',\'3a\'];7.N=[7.N[3],7.N[2],7.N[1],7.N[0]]}8(!7.q.1m)7.q.1m=F(j).2n(K);8(!7.q.1n)7.q.1n=F(j).2o(K);8(9 7.q.1I!=\'A\')7.q.1I=7.q.M;8(9 7.Q.q!=\'A\')7.Q.q=7.q.M;8(9 7.Q.T!=\'A\')7.Q.T=3b;7.I=1J(7.I,H,K);7.E=1J(7.E);7.D=1J(7.D);7.R=1J(7.R,K);7.I=$.1H({},7.Q,7.I);7.E=$.1H({},7.Q,7.E);7.D=$.1H({},7.Q,7.D);7.R=$.1H({},7.Q,7.R);8(9 7.R.1V!=\'W\')7.R.1V=H;8(9 7.R.2p!=\'u\')7.R.2p=$.1a.1b.2E;8(9 7.I.S!=\'W\')7.I.S=K;8(9 7.I.1K!=\'W\')7.I.1K=K;8(9 7.I.2q!=\'A\')7.I.2q=0;8(9 7.I.1W!=\'A\')7.I.1W=(7.I.T<10)?3c:7.I.T*5};G.2F=u(){$1e.L({1X:\'3d\',3e:\'3f\'});j.v(\'2G\',{1m:j.L(\'1m\'),1n:j.L(\'1n\'),1X:j.L(\'1X\'),1U:j.L(\'1U\'),1d:j.L(\'1d\')}).L({1X:\'3g\'});8(7.Y){F(j).1v(u(){C m=1L($(G).L(7.x[6]));8(1Y(m))m=0;$(G).v(\'V\',m)})}1Z(7,B)};G.2H=u(){j.19(\'1f\',u(e,g){8(9 g!=\'W\')g=H;8(g)20=K;8(21!=22){3h(21)}8(23!=22){3i(23)}}).19(\'S\',u(e,d,f,g){j.y(\'1f\');8(7.I.S){8(9 g!=\'W\'){8(9 f==\'W\')g=f;z 8(9 d==\'W\')g=d;z g=H}8(9 f!=\'A\'){8(9 d==\'A\')f=d;z f=0}8(d!=\'E\'&&d!=\'D\')d=1c;8(g)20=H;8(20)w;21=3j(u(){8(j.1o(\':24\')){j.y(\'S\',d)}z{25=0;j.y(d,7.I)}},7.I.1W+f-25);8(7.I.1w===\'3k\'){23=3l(u(){25+=2I},2I)}}}).19(\'E\',u(e,b,c){8(j.1o(\':24\'))w H;8(7.q.1I>=B){14(\'1p 2r q: 1M 1N\');w H}8(9(b)==\'A\')c=b;8(9(b)!=\'16\')b=7.E;8(9(c)!=\'A\')c=b.q;8(9(c)!=\'A\'){14(\'1p a 26 A: 1M 1N\');w H}8(!7.1q){C d=B-O;8(d-c<0){c=d}8(O==0){c=0}}O+=c;8(O>=B)O-=B;8(!7.1q&&!7.1x){8(O==0&&7.E.P)7.E.P.27(\'1O\');8(7.D.P)7.D.P.2s(\'1O\')}8(c==0){8(7.1x)j.y(\'D\',B-7.q.M);w H}F(j,\':28(\'+(B-c-1)+\')\').3m(j);8(B<7.q.M+c)F(j,\':1g(\'+((7.q.M+c)-B)+\')\').2J(K).2t(j);C f=2u(j,7,c),1h=F(j,\':1r(\'+(c-1)+\')\'),13=f[1].1i(\':1y\'),17=f[0].1i(\':1y\');8(7.Y)13.L(7.x[6],13.v(\'V\'));C g=1s(7,F(j,\':1g(\'+c+\')\')),1j=29(1s(7,f[0],K),7);8(7.Y)13.L(7.x[6],13.v(\'V\')+7.N[1]);C h={},2v={},1z={},J=b.T;8(J==\'I\')J=7.Q.T/7.Q.q*c;z 8(J<=0)J=0;z 8(J<10)J=g[0]/J;8(b.2a)b.2a(f[1],f[0],1j,J);8(7.Y){C i=7.N[3];1z[7.x[6]]=1h.v(\'V\');2v[7.x[6]]=17.v(\'V\')+7.N[1];1h.L(7.x[6],1h.v(\'V\')+7.N[3]);1h.1A().1k(1z,{T:J,U:b.U});17.1A().1k(2v,{T:J,U:b.U})}z{C i=0}h[7.x[4]]=i;8((9(7[7.x[0]])!=\'A\'&&9(7.q[7.x[0]])!=\'A\')||(9(7[7.x[2]])!=\'A\'&&9(7.q[7.x[2]])!=\'A\')){$1e.1A().1k(1j,{T:J,U:b.U})}j.v(\'1B\',c).v(\'1C\',b).v(\'2b\',f[1]).v(\'2c\',f[0]).v(\'2d\',1j).L(7.x[4],-g[0]).1k(h,{T:J,U:b.U,2K:u(){8(j.v(\'1C\').2e){j.v(\'1C\').2e(j.v(\'2b\'),j.v(\'2c\'),j.v(\'2d\'))}8(B<7.q.M+j.v(\'1B\')){F(j,\':28(\'+(B-1)+\')\').1P()}C a=F(j,\':1r(\'+(7.q.M+j.v(\'1B\')-1)+\')\');8(7.Y){a.L(7.x[6],a.v(\'V\'))}}});j.y(\'1t\').y(\'S\',[\'\',J])}).19(\'D\',u(e,c,d){8(j.1o(\':24\'))w H;8(7.q.1I>=B){14(\'1p 2r q: 1M 1N\');w H}8(9(c)==\'A\')d=c;8(9(c)!=\'16\')c=7.D;8(9(d)!=\'A\')d=c.q;8(9(d)!=\'A\'){14(\'1p a 26 A: 1M 1N\');w H}8(!7.1q){8(O==0){8(d>B-7.q.M){d=B-7.q.M}}z{8(O-d<7.q.M){d=O-7.q.M}}}O-=d;8(O<0)O+=B;8(!7.1q&&!7.1x){8(O==7.q.M&&7.D.P)7.D.P.27(\'1O\');8(7.E.P)7.E.P.2s(\'1O\')}8(d==0){8(7.1x)j.y(\'E\',B-7.q.M);w H}8(B<7.q.M+d)F(j,\':1g(\'+((7.q.M+d)-B)+\')\').2J(K).2t(j);C f=2u(j,7,d),1h=F(j,\':1r(\'+(d-1)+\')\'),13=f[0].1i(\':1y\'),17=f[1].1i(\':1y\');8(7.Y){13.L(7.x[6],13.v(\'V\'));17.L(7.x[6],17.v(\'V\'))}C g=1s(7,F(j,\':1g(\'+d+\')\')),1j=29(1s(7,f[1],K),7);8(7.Y){13.L(7.x[6],13.v(\'V\')+7.N[1]);17.L(7.x[6],17.v(\'V\')+7.N[1])}C h={},2w={},1z={},J=c.T;8(J==\'I\')J=7.Q.T/7.Q.q*d;z 8(J<=0)J=0;z 8(J<10)J=g[0]/J;8(c.2a)c.2a(f[0],f[1],1j,J);h[7.x[4]]=-g[0];8(7.Y){2w[7.x[6]]=13.v(\'V\');1z[7.x[6]]=1h.v(\'V\')+7.N[3];17.L(7.x[6],17.v(\'V\')+7.N[1]);13.1A().1k(2w,{T:J,U:c.U});1h.1A().1k(1z,{T:J,U:c.U})}8((9(7[7.x[0]])!=\'A\'&&9(7.q[7.x[0]])!=\'A\')||(9(7[7.x[2]])!=\'A\'&&9(7.q[7.x[2]])!=\'A\')){$1e.1A().1k(1j,{T:J,U:c.U})}j.v(\'1B\',d).v(\'1C\',c).v(\'2b\',f[0]).v(\'2c\',f[1]).v(\'2d\',1j).1k(h,{T:J,U:c.U,2K:u(){8(j.v(\'1C\').2e){j.v(\'1C\').2e(j.v(\'2b\'),j.v(\'2c\'),j.v(\'2d\'))}8(B<7.q.M+j.v(\'1B\')){F(j,\':28(\'+(B-1)+\')\').1P()}C a=(7.Y)?7.N[3]:0;j.L(7.x[4],a);C b=F(j,\':1g(\'+j.v(\'1B\')+\')\').2t(j).1i(\':1y\');8(7.Y){b.L(7.x[6],b.v(\'V\'))}}});j.y(\'1t\').y(\'S\',[\'\',J])}).19(\'1u\',u(e,a,b,c,d){8(j.1o(\':24\'))w H;a=2f(a,b,c,O,B,j);8(a==0)w H;8(9(d)!=\'16\')d=H;8(7.1q){8(a<B/2)j.y(\'D\',[d,a]);z j.y(\'E\',[d,B-a])}z{8(O==0||O>a)j.y(\'D\',[d,a]);z j.y(\'E\',[d,B-a])}}).19(\'2L\',u(e,a,b,c,d){8(9(a)==\'16\'&&9(a.1Q)==\'Z\')a=$(a);8(9(a)==\'12\')a=$(a);8(9(a)!=\'16\'||9(a.1Q)==\'Z\'||a.X==0){14(\'1p a 26 16.\');w H}8(9(b)==\'Z\'||b==\'2M\'){j.2x(a)}z{b=2f(b,d,c,O,B,j);C f=F(j,\':1r(\'+b+\')\');8(f.X){8(b<=O)O+=a.X;f.3n(a)}z{j.2x(a)}}B=F(j).X;1D(\'\',\'.2g\',j);1R(j,7);1Z(7,B);j.y(\'1t\',K)}).19(\'2N\',u(e,a,b,c){8(9(a)==\'Z\'||a==\'2M\'){F(j,\':1y\').1P()}z{a=2f(a,c,b,O,B,j);C d=F(j,\':1r(\'+a+\')\');8(d.X){8(a<O)O-=d.X;d.1P()}}B=F(j).X;1D(\'\',\'.2g\',j);1R(j,7);1Z(7,B);j.y(\'1t\',K)}).19(\'1t\',u(e,b){8(!7.R.11)w H;8(9(b)==\'W\'&&b){F(7.R.11).1P();2y(C a=0;a<2O.3o(B/7.q.M);a++){7.R.11.2x(7.R.2p(a+1))}F(7.R.11).15(\'1E\').1v(u(a){$(G).1E(u(e){j.y(\'1u\',[a*7.q.M,0,K,7.R]);e.1F()})})}C c=(O==0)?0:2O.3p((B-O)/7.q.M);F(7.R.11).2s(\'2P\').1i(\':1r(\'+c+\')\').27(\'2P\')});8(7.2Q){j.19(\'2R\',u(e,a,b,c,d){j.y(\'1u\',[a,b,c,d])})}};G.2S=u(){8(7.I.1w&&7.I.S){$1e.2h(u(){j.y(\'1f\')},u(){j.y(\'S\')})}8(7.E.P){7.E.P.1E(u(e){j.y(\'E\');e.1F()});8(7.E.1w&&7.I.S){7.E.P.2h(u(){j.y(\'1f\')},u(){j.y(\'S\')})}8(!7.1q&&!7.1x){7.E.P.27(\'1O\')}}8($.1a.18){8(7.E.18){$1e.18(u(e,a){8(a>0){2i=(9(7.E.18)==\'A\')?7.E.18:\'\';j.y(\'E\',2i);e.1F()}})}8(7.D.18){$1e.18(u(e,a){8(a<0){2i=(9(7.D.18)==\'A\')?7.D.18:\'\';j.y(\'D\',2i);e.1F()}})}}8(7.D.P){7.D.P.1E(u(e){j.y(\'D\');e.1F()});8(7.D.1w&&7.I.S){7.D.P.2h(u(){j.y(\'1f\')},u(){j.y(\'S\')})}}8(7.R.11){j.y(\'1t\',K);8(7.R.1w&&7.I.S){7.R.11.2h(u(){j.y(\'1f\')},u(){j.y(\'S\')})}}8(7.D.1l||7.E.1l){$(2T).2U(u(e){C k=e.2V;8(k==7.D.1l)j.y(\'D\');8(k==7.E.1l)j.y(\'E\')})}8(7.R.1V){$(2T).2U(u(e){C k=e.2V;8(k>=2W&&k<3q){k=(k-2W)*7.q.M;8(k<=B){j.y(\'1u\',[k,0,K,7.R])}}})}8(7.I.S){j.y(\'S\',[\'\',7.I.2q]);8($.1a.1K&&7.I.1K){j.1K(\'1f\',\'S\')}}};G.3r=u(){j.L(j.v(\'2G\')).15(\'1f\').15(\'S\').15(\'E\').15(\'D\').15(\'2R\').15(\'1u\').15(\'2L\').15(\'2N\').15(\'1t\');$1e.3s(j);w G};G.3t=u(a,b){8(9(a)==\'Z\')w 7;8(9(b)==\'Z\'){C r=2X(\'7.\'+a);8(9(r)==\'Z\')r=\'\';w r}2X(\'7.\'+a+\' = b\');G.2m(7);1R(j,7);w G};G.1D=u(a,b){1D(a,b,j)};C j=$(G),$1e=$(G).3u(\'<3v 3w="3x" />\').2Y(),7={},B=F(j).X,O=0,21=22,23=22,25=0,20=H,1c=\'D\';G.2m(o);G.2F();G.2H();G.2S();1D(\'\',\'.2g\',j);1R(j,7);8(7.q.1S!==0&&7.q.1S!==H){C s=7.q.1S;8(7.q.1S===K){s=2j.3y.2Z;8(!s.X)s=0}j.y(\'1u\',[s,0,K,{T:0}])}w G};$.1a.1b.2A={1x:K,1q:K,1c:\'1d\',N:0,2Q:K,q:{M:5,1S:0},Q:{U:\'3z\',1w:H,18:H}};$.1a.1b.2E=u(a){w\'<a 3A="#"><30>\'+a+\'</30></a>\'};u 1D(a,b,c){8(9(a)==\'Z\'||a.X==0)a=$(\'3B\');z 8(9(a)==\'12\')a=$(a);8(9(a)!=\'16\')w H;8(9(b)==\'Z\')b=\'\';a.3C(\'a\'+b).1v(u(){C h=G.2Z||\'\';8(h.X>0&&F(c).31($(h))!=-1){$(G).15(\'1E\').1E(u(e){c.y(\'1u\',h);e.1F()})}})}u 1Z(o,t){8(o.q.1I>=t){14(\'1p 2r q: 1M 1N\');C f=\'3D\'}z{C f=\'3E\'}8(o.E.P)o.E.P[f]();8(o.D.P)o.D.P[f]();8(o.R.11)o.R.11[f]()}u 2z(k){8(k==\'2D\')w 39;8(k==\'1d\')w 37;8(k==\'2C\')w 38;8(k==\'3F\')w 3G;w-1};u 1J(a,b,c){8(9(b)!=\'W\')b=H;8(9(c)!=\'W\')c=H;8(9(a)==\'Z\')a={};8(9(a)==\'12\'){C d=2z(a);8(d==-1)a=$(a);z a=d}8(b){8(9(a.1Q)!=\'Z\')a={11:a};8(9(a)==\'W\')a={1V:a};8(9(a.11)==\'12\')a.11=$(a.11)}z 8(c){8(9(a)==\'W\')a={S:a};8(9(a)==\'A\')a={1W:a}}z{8(9(a.1Q)!=\'Z\')a={P:a};8(9(a)==\'A\')a={1l:a};8(9(a.P)==\'12\')a.P=$(a.P);8(9(a.1l)==\'12\')a.1l=2z(a.1l)}w a};u F(a,f){8(9(f)!=\'12\')f=\'\';w $(\'> *\'+f,a)};u 2u(c,o,n){C a=F(c,\':1g(\'+o.q.M+\')\'),32=F(c,\':1g(\'+(o.q.M+n)+\'):28(\'+(n-1)+\')\');w[a,32]};u 2f(a,b,c,d,e,f){8(9(a)==\'12\'){8(1Y(a))a=$(a);z a=1L(a)}8(9(a)==\'16\'){8(9(a.1Q)==\'Z\')a=$(a);a=F(f).31(a);8(a==-1)a=0;8(9(c)!=\'W\')c=H}z{8(9(c)!=\'W\')c=K}8(1Y(a))a=0;z a=1L(a);8(1Y(b))b=0;z b=1L(b);8(c){a+=d}a+=b;33(a>=e){a-=e}33(a<0){a+=e}w a};u 1s(o,a,b){8(9(b)!=\'W\')b=H;C c=o.x,1T=0,1G=0;8(b&&9(o[c[0]])==\'A\')1T+=o[c[0]];z 8(9(o.q[c[0]])==\'A\')1T+=o.q[c[0]]*a.X;z{a.1v(u(){1T+=$(G)[c[1]](K)})}8(b&&9(o[c[2]])==\'A\')1G+=o[c[2]];z 8(9(o.q[c[2]])==\'A\')1G+=o.q[c[2]];z{a.1v(u(){C m=$(G)[c[3]](K);8(1G<m)1G=m})}w[1T,1G]};u 29(a,o){C b=(o.Y)?o.N:[0,0,0,0];C c={};c[o.x[0]]=a[0]+b[1]+b[3];c[o.x[2]]=a[1]+b[0]+b[2];w c};u 1R(a,o){C b=a.2Y(),$i=F(a),$l=$i.1i(\':1r(\'+(o.q.M-1)+\')\'),1o=1s(o,$i);b.L(29(1s(o,$i.1i(\':1g(\'+o.q.M+\')\'),K),o));8(o.Y){$l.L(o.x[6],$l.v(\'V\')+o.N[1]);a.L(o.x[5],o.N[0]);a.L(o.x[4],o.N[3])}a.L(o.x[0],1o[0]*2);a.L(o.x[2],1o[1])};u 2B(p){8(9(p)==\'A\')p=[p];z 8(9(p)==\'12\')p=p.34(\'3H\').3I(\'\').34(\' \');8(9(p)!=\'16\'){14(\'1p a 26 3J 2y N.\');p=[0]}2y(i 3K p){p[i]=1L(p[i])}3L(p.X){2k 0:w[0,0,0,0];2k 1:w[p[0],p[0],p[0],p[0]];2k 2:w[p[0],p[1],p[0],p[1]];2k 3:w[p[0],p[1],p[2],p[1]];3M:w p}};u 14(m){8(9(m)==\'12\')m=\'1b: \'+m;8(2j.2l&&2j.2l.14)2j.2l.14(m);z 3N{2l.14(m)}3O(3P){}};$.1a.2g=u(o){G.1b(o)}})(3Q);',62,239,'|||||||opts|if|typeof|||||||||||||||||items||||function|data|return|dimentions|trigger|else|number|totalItems|var|next|prev|getItems|this|false|auto|a_dur|true|css|visible|padding|firstItem|button|scroll|pagination|play|duration|easing|cfs_origCssMargin|boolean|length|usePadding|undefined||container|string|l_old|log|unbind|object|l_new|mousewheel|bind|fn|carouFredSel|direction|left|wrp|pause|lt|l_cur|filter|w_siz|animate|key|width|height|is|Not|circular|nth|getSizes|updatePageStatus|slideTo|each|pauseOnHover|infinite|last|a_cur|stop|cfs_numItems|cfs_slideObj|link_anchors|click|preventDefault|s2|extend|minimum|getNaviObject|nap|parseInt|not|scrolling|disabled|remove|jquery|setSizes|start|s1|top|keys|pauseDuration|position|isNaN|showNavi|pausedGlobal|autoTimeout|null|autoInterval|animated|pauseTimePassed|valid|addClass|gt|mapWrapperSizes|onBefore|cfs_oldItems|cfs_newItems|cfs_wrapSize|onAfter|getItemIndex|caroufredsel|hover|num|window|case|console|init|outerWidth|outerHeight|anchorBuilder|delay|enough|removeClass|appendTo|getCurrentItems|a_new|a_old|append|for|getKeyCode|defaults|getPadding|up|right|pageAnchorBuilder|build|cfs_origCss|bind_events|100|clone|complete|insertItem|end|removeItem|Math|selected|useScrollTo|scrollTo|bind_buttons|document|keyup|keyCode|49|eval|parent|hash|span|index|ni|while|split|50|marginRight||||marginBottom|500|2500|relative|overflow|hidden|absolute|clearTimeout|clearInterval|setTimeout|resume|setInterval|prependTo|before|ceil|round|58|destroy|replaceWith|configuration|wrap|div|class|caroufredsel_wrapper|location|swing|href|body|find|hide|show|down|40|px|join|value|in|switch|default|try|catch|err|jQuery'.split('|'),0,{}))


/* Sous menu pour IE6 ___________________________________________________ */

navHover = function() {
	var lis = document.getElementById("menu-menu-principal").getElementsByTagName("LI");
	for (var i=0; i<lis.length; i++) {
		lis[i].onmouseover=function() {
			this.className+=" iehover";
			
		}
		lis[i].onmouseout=function() {
			this.className=this.className.replace(new RegExp(" iehover\\b"), "");
		}
	}
}
if (window.attachEvent) window.attachEvent("onload", navHover);


// Post it  ___________________________________________________ 



function postit(){
			var nombre_item = $('#ajax_temp ul li').length;
			var i = parseInt(Math.random()*nombre_item);
			var item = $('#ajax_temp ul li').eq(i).text();
			$('#text-3 #text_saviez').html(item).css('opacity','0').animate({ opacity:"1" }, {queue:false,duration:1500});
			$('#text-3 #text_saviez').css('background','none'); 
			//$('#text-3 #text_saviez').load(ajax_url + "?page_id=134 .entry ul",
};



// Decalimage  ___________________________________________________ 
function decalimage(){
	var largeur = $(window).width();
	var result = -(1440-largeur)/2+"px";
	var result = "0 0 0 "+result;
	$("#bg_photo_accueil img").css('margin',result);

 };



/* Script jquery ___________________________________________________ */
jQuery(document).ready(function() {
var ajax_url ="http://www.urville-nacqueville.fr";
$('#ajax_temp').load(ajax_url + "?page_id=134 .entry ul",function(){postit();});

// postit  ___________________________________________________ 
setInterval("postit()", 10000);

//haut de page ________________________________
$('#hautdepage').click(function() {
	$('html, body').animate({ scrollTop:0 }, 'fast');
	return false;
});


// Font resize ________________________________________ */

	// See which font size the user wants
		$("#lien_taille_texte a").click(function() {
			switch ($(this).attr("id")) {
				case 'text_petit'	: setFontSize(0.75);	break;
				case 'text_grand'	: setFontSize(1.1);	break;
				default			: setFontSize(1);	break;
			}
			return false;
		});

		// Set the font size and set a cookie
		function setFontSize(size) {
            $("body").animate({fontSize: size+"em"}, 500).fadeIn("slow");
			createCookie(size);
		}
		
//Diaporama header____________________________________ */
		
$('#bg_photo_accueil').cycle({
				delay:  200,
				prev:   '#prev', 
				next:   '#next', 
				
				after: onAfter
				})


// align center sur les images du bandeau  ___________________________________________________ 
function onAfter() { 
	decalimage();
}; 

//a la retaille de la fenetre  ___________________________________________________ 
$(window).resize(function(){
	decalimage();
});
$("h3.slide a, h4.slide2 a").parent().prev('br').hide();
$("h3.slide a, h4.slide2 a").click(function(){$(this).parent().next("div").slideToggle("slow");});


$("#execphp-3 .actus").carouFredSel({
	direction: "top",
	items: {
		visible: 1,
		minimum: 1,
		start: 1,
		height: "variable"
	},
	scroll: {
		items: 1,
		easing: "easeInOutQuad",
		mousewheel: true,
		pauseOnHover: true,
		 duration: 1000
	},
	auto: 4000,
	prev: {
		button: ".prev",
		key: "left"
	},
	next: {
		button: ".next",
		key: "right"
	}
});


}); 
