eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('m.X(m.q,{T:9(x,t,b,c,d){6 c*(t/=d)*t+b},Q:9(x,t,b,c,d){6-c*(t/=d)*(t-2)+b},Y:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t+b;6-c/2*((--t)*(t-2)-1)+b},Z:9(x,t,b,c,d){6 c*(t/=d)*t*t+b},16:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t+1)+b},P:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t+b;6 c/2*((t-=2)*t*t+2)+b},12:9(x,t,b,c,d){6 c*(t/=d)*t*t*t+b},13:9(x,t,b,c,d){6-c*((t=t/d-1)*t*t*t-1)+b},18:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t+b;6-c/2*((t-=2)*t*t*t-2)+b},M:9(x,t,b,c,d){6 c*(t/=d)*t*t*t*t+b},B:9(x,t,b,c,d){6 c*((t=t/d-1)*t*t*t*t+1)+b},C:9(x,t,b,c,d){e((t/=d/2)<1)6 c/2*t*t*t*t*t+b;6 c/2*((t-=2)*t*t*t*t+2)+b},F:9(x,t,b,c,d){6-c*8.A(t/d*(8.g/2))+c+b},D:9(x,t,b,c,d){6 c*8.l(t/d*(8.g/2))+b},11:9(x,t,b,c,d){6-c/2*(8.A(8.g*t/d)-1)+b},J:9(x,t,b,c,d){6(t==0)?b:c*8.h(2,10*(t/d-1))+b},I:9(x,t,b,c,d){6(t==d)?b+c:c*(-8.h(2,-10*t/d)+1)+b},H:9(x,t,b,c,d){e(t==0)6 b;e(t==d)6 b+c;e((t/=d/2)<1)6 c/2*8.h(2,10*(t-1))+b;6 c/2*(-8.h(2,-10*--t)+2)+b},K:9(x,t,b,c,d){6-c*(8.o(1-(t/=d)*t)-1)+b},L:9(x,t,b,c,d){6 c*8.o(1-(t=t/d-1)*t)+b},N:9(x,t,b,c,d){e((t/=d/2)<1)6-c/2*(8.o(1-t*t)-1)+b;6 c/2*(8.o(1-(t-=2)*t)+1)+b},G:9(x,t,b,c,d){f s=1.k;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}j f s=p/(2*8.g)*8.r(c/a);6-(a*8.h(2,10*(t-=1))*8.l((t*d-s)*(2*8.g)/p))+b},O:9(x,t,b,c,d){f s=1.k;f p=0;f a=c;e(t==0)6 b;e((t/=d)==1)6 b+c;e(!p)p=d*.3;e(a<8.w(c)){a=c;f s=p/4}j f s=p/(2*8.g)*8.r(c/a);6 a*8.h(2,-10*t)*8.l((t*d-s)*(2*8.g)/p)+c+b},E:9(x,t,b,c,d){f s=1.k;f p=0;f a=c;e(t==0)6 b;e((t/=d/2)==2)6 b+c;e(!p)p=d*(.3*1.5);e(a<8.w(c)){a=c;f s=p/4}j f s=p/(2*8.g)*8.r(c/a);e(t<1)6-.5*(a*8.h(2,10*(t-=1))*8.l((t*d-s)*(2*8.g)/p))+b;6 a*8.h(2,-10*(t-=1))*8.l((t*d-s)*(2*8.g)/p)*.5+c+b},14:9(x,t,b,c,d,s){e(s==v)s=1.k;6 c*(t/=d)*t*((s+1)*t-s)+b},15:9(x,t,b,c,d,s){e(s==v)s=1.k;6 c*((t=t/d-1)*t*((s+1)*t+s)+1)+b},17:9(x,t,b,c,d,s){e(s==v)s=1.k;e((t/=d/2)<1)6 c/2*(t*t*(((s*=(1.y))+1)*t-s))+b;6 c/2*((t-=2)*t*(((s*=(1.y))+1)*t+s)+2)+b},z:9(x,t,b,c,d){6 c-m.q.u(x,d-t,0,c,d)+b},u:9(x,t,b,c,d){e((t/=d)<(1/2.i)){6 c*(7.n*t*t)+b}j e(t<(2/2.i)){6 c*(7.n*(t-=(1.5/2.i))*t+.i)+b}j e(t<(2.5/2.i)){6 c*(7.n*(t-=(2.S/2.i))*t+.R)+b}j{6 c*(7.n*(t-=(2.U/2.i))*t+.W)+b}},V:9(x,t,b,c,d){e(t<d/2)6 m.q.z(x,t*2,0,c,d)*.5+b;6 m.q.u(x,t*2-d,0,c,d)*.5+c*.5+b}});',62,71,'||||||return||Math|function|||||if|var|PI|pow|75|else|70158|sin|jQuery|5625|sqrt||easing|asin|||easeOutBounce|undefined|abs||525|easeInBounce|cos|easeOutQuint|easeInOutQuint|easeOutSine|easeInOutElastic|easeInSine|easeInElastic|easeInOutExpo|easeOutExpo|easeInExpo|easeInCirc|easeOutCirc|easeInQuint|easeInOutCirc|easeOutElastic|easeInOutCubic|easeOutQuad|9375|25|easeInQuad|625|easeInOutBounce|984375|extend|easeInOutQuad|easeInCubic||easeInOutSine|easeInQuart|easeOutQuart|easeInBack|easeOutBack|easeOutCubic|easeInOutBack|easeInOutQuart'.split('|'),0,{}))

eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('(3(c){12 s="1s",B="3z",o=3K,g=3J,e,E=!c.3M.1t,N=E&&!2j.3I,O="16.1s",2X="43",J="3V",P="48",Q="3e",1Y="3r",R="1v.3l",u,j,x,p,S,T,U,V,h,r,n,K,L,2d,W,y,F,G,M,C,D,z,A,m,k,a,H,I,X,Y={1F:"3m",2w:3n,6:g,5:g,20:g,1Z:g,2Y:"31",2I:"31",21:g,1Q:g,2V:o,1A:o,2k:g,1a:g,1E:g,2P:g,1d:g,28:g,1w:g,1t:0.9,2A:o,1L:"3k {1L} 3g {2E}",29:"29",1e:"1e",1j:"1j",2n:g,2J:o,1h:g,2N:o,26:3i,2U:"3o 1h",2O:"33 1h",2v:o};3 v(b,d){d=d==="x"?1K.1D.2s:1K.1D.2g;1b 2K b==="3t"?1I.3q(b.2Q(/%/)?d/2G*30(b,10):30(b,10)):b}3 Z(b){1b a.2P||b.2Q(/\\.(3b|3X|3Y|3y|3S)(?:\\?([^#]*))?(?:#(\\.*))?$/i)}3 22(){3U(12 b 3Z a)4(2K a[b]==="3")a[b]=a[b].2z(m)}e=c.46.1s=3(b,d){7.14?7.47(3(){12 i=c(7).1c(s)?c.1O({},c(7).1c(s),b):c.1O({},Y,b);c(7).1c(s,i).1l("34")}):c(7).1c(s,c.1O({},Y,b));c(7).1q(O).17(O,3(i){m=7;a=c(m).1c(s);22();X=d||g;12 l=a.1w||m.1w;4(l&&l!=="45"){h=c(".34").1C(3(){12 f=c(7).1c(s).1w||7.1w;1b f===l});k=h.41(m);4(k<0){h=h.42(m);k=h.14-1}}19{h=c(m);k=0}4(!H){I=H=o;c().17("1J.2L",3(f){4(f.1X===27){f.1B();e.1j()}}).17("1J.2M",3(f){4(f.1X===37){f.1B();G.16()}19 4(f.1X===39){f.1B();F.16()}});a.2J&&u.11({2a:"2S"}).1z("16",e.1j);m.3O();c.1x.1p(2X);M.1a(a.1j);u.11({1t:a.1t}).1n();a.w=v(a.2Y,"x");a.h=v(a.2I,"y");e.1r(0);N&&r.17("1v.1y 2b.1y",3(){u.11({6:r.6(),5:r.5(),2p:r.2h(),1G:r.2m()})}).1p("2b.1y")}e.1h();e.1u();i.1B()});b&&b.2n&&c(7).3L(O);1b 7};e.2y=3(){3 b(d){1b c(\'<15 1o="3N\'+d+\'"/>\')}r=c(2j);j=c(\'<15 1o="1s"/>\');u=b("3H").13();x=b("3B");p=b("3A").1k(n=b("3C").11({6:0,5:0}),K=b("3D"),L=b("3G"),2d=b("3F"),W=b("3E"),y=b("3Q"),F=b("3R"),G=b("44"),M=b("40"));x.1k(c("<15/>").1k(b("3T"),S=b("3W"),b("3u")),c("<15/>").1k(T=b("3a"),p,U=b("38")),c("<15/>").1k(b("36"),V=b("3d"),b("35"))).18().18().11({"3c":"1G"});c("3x").3s(u,j.1k(x));4(E){j.1l("3f");N&&u.11("1r","3w")}p.18().1l(B).3v(3(){c(7).1l(B)}).3p(3(){c(7).1i(B)}).13();C=S.5()+V.5()+p.2B(o)-p.5();D=T.6()+U.6()+p.2t(o)-p.6();z=n.2B(o);A=n.2t(o);j.11({"2r-3h":C,"2r-3j":D}).13();F.16(e.1e);G.16(e.32);M.16(e.1j);p.18().1i(B)};e.1r=3(b,d){12 i=1K.1D.2g;i=1I.1R(i-a.h-z-C,0)/2+r.2h();12 l=1I.1R(1K.1D.2s-a.w-A-D,0)/2+r.2m();b=j.6()===a.w+A&&j.5()===a.h+z?0:b;x[0].8.6=x[0].8.5="3P";3 f(q){S[0].8.6=V[0].8.6=p[0].8.6=q.8.6;L[0].8.5=K[0].8.5=p[0].8.5=T[0].8.5=U[0].8.5=q.8.5}j.4J().4G({6:a.w+A,5:a.h+z,2p:i,1G:l},{4I:b,4y:3(){f(7);I=g;x[0].8.6=a.w+A+D+"1W";x[0].8.5=a.h+z+C+"1W";d&&d()},4F:3(){f(7)}})};e.1v=3(b){4(H){3 d(w){e.1r(w,3(){4(H){4(E){q&&n.4z(2G);j[0].8.2u("1C")}p.18().1n();4(a.1E)n.1k("<1E 1o=\'4A\'"+(a.1A?" ":"1A=\'4B\'")+" 4C=\'4D"+(1T 4w).4x()+"\' 4H=0 1m=\'"+(a.1d||m.1d)+"\' />");K.13();L.13();y.13();4(h.14>1){W.1a(a.1L.2D(/\\{1L\\}/,k+1).2D(/\\{2E\\}/,h.14));F.1a(a.1e);G.1a(a.29);a.1h&&y.1n()}19{W.13();F.13();G.13()}2d.1a(a.28||m.28);c.1x.1p(P);X&&X.2z(m);a.1F==="2l"&&j.2o(t,1,3(){E&&j[0].8.2u("1C")});r.17(R,3(){e.1r(0)})}})}3 i(){a.h=a.h||n.5();1b a.h}3 l(){a.w=a.w||n.6();1b a.w}12 f,q,t=a.1F==="1V"?0:a.2w;r.1q(R);4(b){n.2R();n=c(\'<15 1o="4E"/>\').1a(b);n.13().4u(u).11({6:l(),2F:a.1A?"1H":"23"}).11({5:i()}).4g(p);c("#2H").11({2W:"1V"});N&&c("2C:4h(#1s 2C)").1C(3(){1b 7.8.2f!=="23"}).11({2f:"23"}).1z(Q,3(){7.8.2f="4i"});a.1F==="2l"&&j.2o(t,0,3(){d(0)})||d(t);4(a.2A&&h.14>1){b=k>0?h[k-1]:h[h.14-1];f=k<h.14-1?h[k+1]:h[0];f=c(f).1c(s).1d||f.1d;b=c(b).1c(s).1d||b.1d;Z(f)&&c("<1P />").1S("1m",f);Z(b)&&c("<1P />").1S("1m",b)}}19 b=2c(3(){12 w=n.4f("<15 8=\'2F:1H\'></15>").18();a.h=w.5();n.11({5:a.h});w.2i(w.18());e.1r(t)},1)}};e.1u=3(){12 b,d,i,l=e.1v;I=o;3 f(q){12 t=c(q),w=t.49("1P"),$=w.14;3 1M(){12 1N=1T 2q;$-=1;4($>=0&&a.2v){1N.1U=1M;1N.1m=w[$].1m}19 l(t)}1M()}m=h[k];a=c(m).1c(s);22();c.1x.1p(J);a.h=a.5?v(a.5,"y")-z-C:a.1Z?v(a.1Z,"y"):g;a.w=a.6?v(a.6,"x")-A-D:a.20?v(a.20,"x"):g;a.1f=a.w;a.1g=a.h;4(a.21){a.1f=v(a.21,"x")-A-D;a.1f=a.w&&a.w<a.1f?a.w:a.1f}4(a.1Q){a.1g=v(a.1Q,"y")-z-C;a.1g=a.h&&a.h<a.1g?a.h:a.1g}b=a.1d||c(m).1S("1d");K.1n();L.1n();M.1n();4(a.2k){c(\'<15 1o="4a" />\').13().4b(c(b)[0]).17(J+" "+Q,3(){c(7).2i(n.18())});l(c(b))}19 4(a.1E)l(" ");19 4(a.1a)f(a.1a);19 4(Z(b)){d=1T 2q;d.1U=3(){12 q;d.1U=4c;d.1o="2H";c(d).11({4d:"1H",4j:"1V",4v:"4k",2W:"1G"});4(a.2V){i=3(){d.5-=d.5*q;d.6-=d.6*q};4(a.1f&&d.6>a.1f){q=(d.6-a.1f)/d.6;i()}4(a.1g&&d.5>a.1g){q=(d.5-a.1g)/d.5;i()}}4(a.h)d.8.4r=1I.1R(a.h-d.5,0)/2+"1W";l(d);h.14>1&&c(d).11({2a:"2S"}).16(e.1e);4(E)d.8.4s="4t"};d.1m=b}19 c("<15 />").1u(b,3(q,t){t==="4q"?f(7):l(c("<p>4p 4l.</p>"))})};e.1e=3(){4(!I){k=k<h.14-1?k+1:0;e.1u()}};e.32=3(){4(!I){k=k>0?k-1:h.14-1;e.1u()}};e.1h=3(){12 b,d,i="4m";y.17(1Y,3(){y.1q();2e(d);j.1i(i+"24 "+i+"25")});3 l(){y.2T(a.2O).17(P,3(){d=2c(e.1e,a.26)}).17(J,3(){2e(d)}).1z("16",3(){b();c(7).1i(B)});j.1i(i+"24").1l(i+"25")}b=3(){2e(d);y.2T(a.2U).1q(P+" "+J).1z("16",3(){l();d=2c(e.1e,a.26);c(7).1i(B)});j.1i(i+"25").1l(i+"24")};4(a.1h&&h.14>1)a.2N?l():b()};e.1j=3(){c.1x.1p(Q);H=g;c().1q("1J.2L 1J.2M");r.1q(R+" 1v.1y 2b.1y");u.11({2a:"1H"}).2Z("2x");j.33(o,g).2Z("2x",3(){n.2R();j.11({1t:1});p.18().13();c.1x.1p(1Y)})};e.4n=3(){1b c(m)};e.4o=Y;c(e.2y)})(4e);',62,294,'|||function|if|height|width|this|style|||||||||||||||||||||||||||||||||||||||||||||||||||||||css|var|hide|length|div|click|bind|children|else|html|return|data|href|next|mw|mh|slideshow|removeClass|close|append|addClass|src|show|id|trigger|unbind|position|colorbox|opacity|load|resize|rel|event|cboxie6|one|scrolling|preventDefault|filter|documentElement|iframe|transition|left|auto|Math|keydown|document|current|da|ea|extend|img|maxHeight|max|attr|new|onload|none|px|keyCode|aa|innerHeight|innerWidth|maxWidth|ca|hidden|off|on|slideshowSpeed||title|previous|cursor|scroll|setTimeout|ba|clearTimeout|visibility|clientHeight|scrollTop|replaceWith|window|inline|fade|scrollLeft|open|fadeTo|top|Image|padding|clientWidth|outerWidth|removeAttribute|preloadIMG|speed|fast|init|call|preloading|outerHeight|select|replace|total|overflow|100|cboxPhoto|initialHeight|overlayClose|typeof|cbox_close|cbox_arrows|slideshowAuto|slideshowStop|photo|match|remove|pointer|text|slideshowStart|scalePhotos|cssFloat|fa|initialWidth|fadeOut|parseInt|400|prev|stop|cboxelement|BottomRight|BottomLeft||MiddleRight||MiddleLeft|gif|float|BottomCenter|cbox_cleanup|cboxIE|of|bottom|2500|right|image|cbox_resize|elastic|350|start|mouseout|round|cbox_closed|prepend|string|TopRight|mouseover|absolute|body|jpeg|hover|Content|Wrapper|LoadedContent|LoadingOverlay|Current|Title|LoadingGraphic|Overlay|XMLHttpRequest|false|true|triggerHandler|support|cbox|blur|9999px|Slideshow|Next|bmp|TopLeft|for|cbox_load|TopCenter|png|jpg|in|Close|index|add|cbox_open|Previous|nofollow|fn|each|cbox_complete|find|cboxInlineTemp|insertBefore|null|margin|jQuery|wrapInner|prependTo|not|inherit|border|block|unsuccessful|cboxSlideshow_|element|settings|Request|success|marginTop|msInterpolationMode|bicubic|appendTo|display|Date|getTime|complete|fadeIn|cboxIframe|no|name|iframe_|cboxLoadedContent|step|animate|frameborder|duration|dequeue'.split('|'),0,{}))

eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[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}('$.7.0=3(2,4){6.5.8.0=3(){};a 9.b({0:1},2,4)}',12,12,'delay||time|function|callback|fx|jQuery|fn|step|this|return|animate'.split('|'),0,{}))

eval(function(p,a,c,k,e,d){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--){d[e(c)]=k[c]||e(c)}k=[function(e){return d[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}('a.4.D({R:d(c,3,4,b,k){g 7.C(d(){a.j.u(7,c,3,4,b,k)})},O:d(c,3,4){g 7.C(d(){a.j.u(7,c,3,4,1)})},M:d(3,4){g 7.C(d(){a.j.m(7,3,4)})}});a.D({j:{H:1,h:{},E:/^([0-9]+)\\s*(.*s)?$/,K:{\'13\':1,\'W\':10,\'U\':T,\'s\':X,\'Y\':S,\'12\':11,\'Z\':14},G:d(o){6(o==N||o==q)g q;e r=7.E.P(a.Q(o.V()));6(r[2]){e F=1e(r[1],10);e L=7.K[r[2]]||1;g F*L}B{g o}},u:d(8,c,3,4,b,k){e z=0;6(a.1i(3)){6(!b)b=4;4=3;3=c}c=a.j.G(c);6(15 c!=\'1k\'||1g(c)||c<=0)g;6(b&&b.1j!=1l){k=!!b;b=0}b=b||0;k=k||w;6(!8.$5)8.$5={};6(!8.$5[3])8.$5[3]={};4.$f=4.$f||7.H++;e v=d(){6(k&&7.x)g;7.x=1f;6((++z>b&&b!==0)||4.18(8,z)===w)a.j.m(8,3,4);7.x=w};v.$f=4.$f;6(!8.$5[3][4.$f])8.$5[3][4.$f]=t.17(v,c);6(!7.h[3])7.h[3]=[];7.h[3].16(8)},m:d(8,3,4){e 5=8.$5,l;6(5){6(!3){p(3 n 5)7.m(8,3,4)}B 6(5[3]){6(4){6(4.$f){t.I(5[3][4.$f]);A 5[3][4.$f]}}B{p(e 4 n 5[3]){t.I(5[3][4]);A 5[3][4]}}p(l n 5[3])J;6(!l){l=q;A 5[3]}}p(l n 5)J;6(!l)8.$5=q}}}});6(a.1d.1c)a(t).1b("1h",d(){e h=a.j.h;p(e 3 n h){e y=h[3],i=y.1a;19(--i)a.j.m(y[i],3)}});',62,84,'|||label|fn|timers|if|this|element||jQuery|times|interval|function|var|timerID|return|global||timer|belay|ret|remove|in|value|for|null|result||window|add|handler|false|inProgress|els|counter|delete|else|each|extend|regex|num|timeParse|guid|clearInterval|break|powers|mult|stopTime|undefined|oneTime|exec|trim|everyTime|10000|100|ds|toString|cs|1000|das|ks||100000|hs|ms|1000000|typeof|push|setInterval|call|while|length|one|msie|browser|parseInt|true|isNaN|unload|isFunction|constructor|number|Number'.split('|'),0,{}))


$(function($){
    $('ul#liste_breves').simpleSpy(6, 5000, 50);
});

(function($){

    $.fn.simpleSpy = function(limit, interval, height){
    
        limit = limit || 4;
        interval = interval || 4000;
        height = height || 50;
        return this.each(function(){
        
            // 1.setup
            var $list = $(this), items = [], currentItem = limit + 1, total = 0;
            
            $list.find('> li').each(function(){
                items.push("<li class='une_breve'>" + $(this).html() + "</li>");
            });
            
            total = items.length;
            
            //console.log(total);
            
            $list.find('> li').filter(':gt(' + (limit - 1) + ')').remove();
            
            //2.effect
            function spy(){
                //insert a new item
                
                var $lastItem = $list.find("> li:last");
                var _height = $lastItem.height();
                
                
                var $insert = $(items[currentItem]).css({
                    height: 0,
                    opacity: 0,
                    display: 'none'
                }).prependTo($list);
                
                
                
                $lastItem.animate({
                    opacity: 0
                }, 1000, function(){
                    //console.log('nice effect');
                    
                    $insert.animate({
                        height: 50
                    }).animate({
                        opacity: 1
                    }, 1000);
                    
                    $(this).animate({
                        height: 0
                    }, 1000, function(){
                        $(this).remove();
                    });
                    
                });
                
                currentItem++;
                if (currentItem >= total) {
                    currentItem = 0;
                }
                
                setTimeout(spy, interval);
                
                //fade the lsat item
                //increase the height
                //and decrease the height of the last
                //finaly fade the first item in
            }
            
            spy();
            
        });//end each
    };
    
})(jQuery);

$(document).ready(function(){

    //ROLLOVERS
    
    $('.push_volet').css('top', '157px');

    $('.pushover').mouseover(function(){
        $(this).find('.push_volet').animate({
            top: "126px"
        }, 300, "easeOutExpo");
    }).mouseout(function(){
        $(this).find('.push_volet').animate({
            top: "157px"
        }, 300, "easeOutExpo");
    });
    
    //CAROUSEL BIG
    $("#minis img:eq(0)").css('border-color', '#CBAF68');
    
    $('#minis img').click(function(){
    
				var id = $(this).attr("id");
				
				slider(id);
				
				return false;
        
    });
    
    $('#minis img').mouseover(function() {
    	$(this).css('border-color', '#CBAF68');
    }).mouseout(function() {
    	$(this).css('border-color', '#333');
    });
    
		var i = 0;
    $("#minis").everyTime(5000,function() {
				
				i++;
					
				if(i >= 3) {
					i = 0;
				}
					
				if(i == 0){
					slider("0px");
				}
				
				if(i == 1){
					slider("392px");
				}
				
				if(i == 2){
					slider("784px");
				}
								
	});


    function slider(id) {
      $('.slide_contenu').fadeOut('fast');
      $("#minis img").css('border-color', '#333');
      $("#" + id).css('border-color', '#CBAF68');
      $('.carrousel_content').animate({
          top: "-" + id
      }, 700, "easeInOutExpo");
      
      $('.' + id).fadeIn('fast');
    }
    
    //CAROUSEL IPHONE
    var slides = $('.unslide_bigpave').size();
    var currentY = 0;
    var xOffset = (slides - 1) * 610;
    $('#iright').click(function(){
        if (currentY > -xOffset) {
            currentY -= 610;
            $('#slide_container').animate({
                left: currentY
            }, 300, "easeInOutExpo");
        }
        return false;
    });
    
    $('#ileft').click(function(){
        if (currentY < 0) {
            currentY += 610;
            $('#slide_container').animate({
                left: currentY
            }, 300, "easeInOutExpo");
        }
        return false;
    });
    
    		var j = 0;
    $("#slide_container").everyTime(8000,function() {
				
				j++;
					
				if(j >= 4) {
					j = 0;
				}
					
				if(j == 0){
					iPhone(-0);
				}
				
				if(j == 1){
					iPhone(-610);
				}
				
				if(j == 2){
					iPhone(-1220);
				}
				
				if(j == 3){
					iPhone(-1830);
				}
	
				
	});
	
	function iPhone(currentY){
        $('#slide_container').animate({
        left: currentY
    }, 300, "easeInOutExpo");
	}
    
    /*
    * TOGGLE LE FORMULAIRE
    */
    $('.active_form').click(function() {
    	if(!$('#comment_form').hasClass("show")){
    		$('#comment_form').slideDown({ duration: 300, easing: 'easeInOutExpo'});
    		$('#comment_form').addClass('show');
    	} else {
     		$('#comment_form').slideUp({ duration: 300, easing: 'easeInOutExpo'});
    		$('#comment_form').removeClass('show');   		
    	}
    	$('#comment_send').hide();
    	return false;
    });
    
            	$(document).ready(function() {
        			
        		$('.fade').fadeTo(0, 1);
        		$('.fade').mouseover(function(){        
                    if ($(this).is(':animated')) {
                        $(this).stop().fadeTo(300, 0);
                    }
                    else {
                        $(this).fadeTo(300, 0);
                    }
                }).mouseout(function(){
                    if ($(this).is(':animated')) {
                        $(this).stop().fadeTo(300, 1);
                    }
                    else {
                        $(this).fadeTo(300, 1);
                    }
                });
				$('#big_pave_nav_gauche').mouseover(function(){        
                    if ($(this).is(':animated')) {
                        $(this).stop().fadeTo(300, 0);
                    }
                    else {
                        $(this).fadeTo(300, 0);
                    }
                }).mouseout(function(){
                    if ($(this).is(':animated')) {
                        $(this).stop().fadeTo(300, 1);
                    }
                    else {
                        $(this).fadeTo(300, 1);
                    }
                });
				$('#big_pave_nav_droite').mouseover(function(){        
                    if ($(this).is(':animated')) {
                        $(this).stop().fadeTo(300, 0);
                    }
                    else {
                        $(this).fadeTo(300, 0);
                    }
                }).mouseout(function(){
                    if ($(this).is(':animated')) {
                        $(this).stop().fadeTo(300, 1);
                    }
                    else {
                        $(this).fadeTo(300, 1);
                    }
                });
        		
        		
        		//AJAX INSCRIPTION
        		$('#nl_form').submit(function() {
        			 $.ajax({
						   type: "POST",
						   url: "home/inscription/",
						   data: "email="+$('#crm_mail').val(),
						   success: function(msg){
						   	 if(msg == "Email enregistr&eacute;") {
						   	 	$('#crm_mail').val(msg).fadeIn().css('color', 'green');
						   	 } else {
						   	 	$('#crm_mail').val(msg).fadeIn().css('color', 'red');
						   	 }
						   }
						 });
        			return false;
        		});
        		
        		//SLIDES INSCRIPTION MOTEUR
        		$('#inscription_btn').click(function(){
        			if(!$(this).hasClass('bottom')) {
	         			$(this).addClass('bottom').css('color', '#F4D776');	
	        			$('#engine_inscription').animate({
	        				'top': '-23px'
	        			}, 400, "easeInOutQuint");       				
        			} else {
 	         			$(this).removeClass('bottom').css('color', '#ffffff');	
	        			$('#engine_inscription').animate({
	        				'top': '0px'
	        			}, 400, "easeInOutQuint");         				
        			}
        		});
        		
        		$('#nl_form_slide').submit(function() {
        			 $.ajax({
						   type: "POST",
						   url: "home/inscription/",
						   data: "email="+$('#crm_mail').val(),
						   success: function(msg){
						   	 if(msg == "Email enregistr&eacute;") {
						   	 	$('#crm_mail').val(msg).fadeIn().css('color', 'green');
						   	 	$('#inscription_btn').delay(600).removeClass('bottom').css('color', '#ffffff');
						   	 	$('#engine_inscription').delay(600).animate({
			        				'top': '0px'
			        			}, 400, "easeInOutQuint");  
						   	 } else {
						   	 	$('#crm_mail').val(msg).fadeIn().css('color', 'red');
						   	 }
					   	 	}
						 });
        			return false;
        		});        		
        		
        	});
    
});


        	
        	$('.resultat_article').mouseover(function() {
							$(this).find('h3 a').css('color', 'white');
							$(this).find('.thumb_article').css('border', '1px solid #333');
							$(this).find('.thumb_video').css('border', '1px solid #333');
        		}).mouseout(function(){
        			$(this).find('h3 a').css('color', 'gray');
        			$(this).find('.thumb_article').css('border', '1px solid #000');
        			$(this).find('.thumb_video').css('border', '1px solid #000');
        		});

        	$('.voir_aussi').mouseover(function() {
							$(this).find('h3 a').css('color', 'white');
							$(this).find('img').css('border', '1px solid #333');
        		}).mouseout(function(){
        			$(this).find('h3 a').css('color', 'gray');
        			$(this).find('img').css('border', '1px solid #000');
        		});
        		
        		$('#search_input').focus(function(){
        			$(this).css('border-color', '#4F4A4A').val("");
        		}).blur(function(){
        			$(this).css('border-color', '#393939')
        		});
        		

        		

