//Noobslide
var noobSlide=new Class({initialize:function(a){this.items=a.items;this.mode=a.mode||'horizontal';this.modes={horizontal:['left','width'],vertical:['top','height']};this.size=a.size||240;this.box=a.box.setStyle(this.modes[this.mode][1],(this.size*this.items.length)+'px');this.button_event=a.button_event||'click';this.handle_event=a.handle_event||'click';this.onWalk=a.onWalk||null;this.currentIndex=null;this.previousIndex=null;this.nextIndex=null;this.interval=a.interval||10000;this.autoPlay=a.autoPlay||false;this._play=null;this.handles=a.handles||null;if(this.handles){this.addHandleButtons(this.handles)}this.buttons={previous:[],next:[],play:[],playback:[],stop:[]};if(a.addButtons){for(var b in a.addButtons){this.addActionButtons(b,$type(a.addButtons[b])=='array'?a.addButtons[b]:[a.addButtons[b]])}}this.fx=new Fx.Tween(this.box,$extend((a.fxOptions||{duration:500,wait:false}),{/*transition:Fx.Transitions.Sine.easeInOut,*/property:this.modes[this.mode][0]}));this.walk((a.startItem||0),true,true)},addHandleButtons:function(a){for(var i=0;i<a.length;i++){a[i].addEvent(this.handle_event,this.walk.bind(this,[i,true]))}},addActionButtons:function(a,b){for(var i=0;i<b.length;i++){switch(a){case'previous':b[i].addEvent(this.button_event,this.previous.bind(this,[true]));break;case'next':b[i].addEvent(this.button_event,this.next.bind(this,[true]));break;case'play':b[i].addEvent(this.button_event,this.play.bind(this,[this.interval,'next',false]));break;case'playback':b[i].addEvent(this.button_event,this.play.bind(this,[this.interval,'previous',false]));break;case'stop':b[i].addEvent(this.button_event,this.stop.bind(this));break}this.buttons[a].push(b[i])}},previous:function(a){this.walk((this.currentIndex>0?this.currentIndex-1:this.items.length-1),a)},next:function(a){this.walk((this.currentIndex<this.items.length-1?this.currentIndex+1:0),a)},play:function(a,b,c){this.stop();if(!c){this[b](false)}this._play=this[b].periodical(a,this,[false])},stop:function(){$clear(this._play)},walk:function(a,b,c){if(a!=this.currentIndex){this.currentIndex=a;this.previousIndex=this.currentIndex+(this.currentIndex>0?-1:this.items.length-1);this.nextIndex=this.currentIndex+(this.currentIndex<this.items.length-1?1:1-this.items.length);if(b){this.stop()}if(c){this.fx.cancel().set((this.size*-this.currentIndex)+'px')}else{this.fx.start(this.size*-this.currentIndex)}if(b&&this.autoPlay){this.play(this.interval,'next',true)}if(this.onWalk){this.onWalk((this.items[this.currentIndex]||null),(this.handles&&this.handles[this.currentIndex]?this.handles[this.currentIndex]:null))}}}});

// Mootools : SexyLightBox :
//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}('s.3t({t:7(a){C 3.1k(a)}});o 3u=p 3v({3w:[3x,3y],2z:{1l:\'28\',D:3z,q:\'2A\',1z:\'3A\',P:\'3B\',2B:\'1m\',n:\'2C.1A\',2D:\'2C.29\',1B:\'1B.1A\',Q:0,1K:3C,1L:G.1C.2E,1M:3D,1N:G.1C.2E,2F:2G,2H:G.1C.2I.2a,2b:2G,2c:G.1C.2I.2a,1n:{2J:10,V:2d,A:G.1C.3E.2a,2K:2},17:{\'8\':3F,\'9\':3G},18:{\'3H\':{\'1o\':\'#1O\',\'1p\':\'#W\',\'n-q\':\'#W\',\'R\':0.6},\'2A\':{\'1o\':\'#W\',\'1p\':\'#1O\',\'n-q\':\'#W\',\'R\':0.6},\'3I\':{\'1o\':\'#1O\',\'1p\':\'#W\',\'n-q\':\'#W\',\'R\':0.6},\'3J\':{\'1o\':\'#W\',\'1p\':\'#1O\',\'n-q\':\'#W\',\'R\':0.6}}},19:{2L:7(a){3.4=a;3.w=p s(\'H\',{u:\'3K-\'+$3L(),v:$1P(3.4.1D,{\'1E\':\'2e\',\'1m\':0,\'I\':0,\'R\':0,\'z-1Q\':3.4.D}),3M:{1a:7(){5(3.4.2f){5(3.4.2g){3.4.2g()}J{3.1F()}}}.r(3)}});3.1G=1b;3.1R()},1R:7(){3.1S=X.u(X.2M);3.w.1R(3.1S,\'3N\');5((1c.1q.2N||(1c.1q.3O&&!1c.1q.3P&&1c.3Q.3R))){o a=3.w.2O(\'D\').1r();5(!a){a=1;o b=3.w.2O(\'1E\');5(b==\'3S\'||!b){3.w.1T(\'1E\',\'3T\')}3.w.1T(\'D\',a)}a=($3U(3.4.D)&&a>3.4.D)?3.4.D:a-1;5(a<0){a=1}3.S=p s(\'2P\',{u:"2Q"+p 2R().2S(),1s:\'3V:K;X.3W("");\',3X:\'2T\',2U:0,v:{D:a,1E:\'2e\',1m:0,I:0,2h:\'Y\',R:0}});3.S.1R(3.w,\'3Y\')}},E:7(x,y){o a=1t.3Z();o b=1c.1q.40?(a.x-25<X.Z.2i?X.Z.2i:a.x):a.x;3.w.1k({\'9\':0,\'8\':0});3.w.1k({8:$1U(x,b),9:$1U(y,a.y)});5(3.S){3.S.1k({\'9\':0,\'8\':0});3.S.1k({8:$1U(x,41.42(a.x,X.Z.2i)),9:$1U(y,a.y)})}C 3},11:7(){5(!3.1G)C 3;5(3.A)3.A.1H();3.1S.L(\'E\',3.E);3.E();5(3.S)3.S.1T(\'1d\',\'2V\');3.1G=K;3.A=p G.2j(3.w,{2W:\'R\',V:3.4.1K,A:3.4.1L,2X:7(){3.w.1V(\'11\')}.r(3)}).T(3.4.1D.R);C 3},1F:7(){5(3.1G)C 3;5(3.A)3.A.1H();3.1S.43(\'E\',3.E);5(3.S)3.S.1T(\'1d\',\'Y\');3.1G=1b;3.A=p G.2j(3.w,{2W:\'R\',V:3.4.1M,A:3.4.1N,2X:7(){3.w.1k({\'9\':0,\'8\':0});3.w.1V(\'1F\')}.r(3)}).T(0);C 3}},2Y:7(a){3.4.P=a.P||a.44||a.45||a.46;3.4.2Z=$30(3.4.18[3.4.q],3.4.2Z||{})},2k:7(a){M=p 1e();M.1s=a},47:7(b){3.49(3.2z,b);3.2Y(3.4);o c=3.4.P+\'/\'+3.4.q+\'/\'+((1c.1q.2N)?3.4.2D:3.4.n);o d=3.4.1l;3.2k(c);3.2k(3.4.P+\'/\'+3.4.q+\'/\'+3.4.1B);3.19.2L({1D:3.4.18[3.4.q],2f:1b,D:3.4.D-1,2g:3.1W.r(3),1K:3.4.1K,1L:3.4.1L,1M:3.4.1M,1N:3.4.1N});3.F={};3.N=p s(\'H\',{\'u\':d+\'-N\',\'v\':{\'z-1Q\':3.4.D,\'1d\':\'Y\'}});3.1u=p s(\'H\',{\'u\':d+\'-1u\',\'v\':{\'z-1Q\':3.4.D+1}}).B(3.N);3.O=p s(\'H\',{\'u\':d+\'-O\',\'v\':{\'1E\':\'2e\',\'8\':3.4.17[\'8\'],\'z-1Q\':3.4.D+2}}).B(3.N);3.1X=p s(\'H\',{u:d+\'-1X\',v:{\'n-1f\':\'12(\'+c+\')\'}}).B(3.O);3.31=p s(\'a\',{1I:\'#\',Z:\'&32;\',v:{\'n-1f\':\'12(\'+3.4.P+\'/\'+3.4.q+\'/\'+3.4.1B+\')\'}}).B(3.1X);p s(\'H\',{\'u\':d+\'-4a\',\'v\':{\'n-1f\':\'12(\'+c+\')\'}}).B(3.1X);3.13=p s(\'H\',{\'u\':d+\'-13\',\'v\':{\'9\':3.4.17[\'9\'],\'2h-I-q\':3.4.18[3.4.q].1o,\'2h-33-q\':3.4.18[3.4.q].1o}}).B(3.O);3.1Y=p s(\'H\',{\'u\':d+\'-4b\',\'v\':{\'n-1f\':\'12(\'+c+\')\'}}).B(3.O);3.2l=p s(\'H\',{\'u\':d+\'-4c\',\'v\':{\'n-1f\':\'12(\'+c+\')\'}}).B(3.1Y);3.1v=p s(\'H\',{\'u\':d+\'-4d\',\'v\':{\'q\':3.4.18[3.4.q].1p}});3.2m=p s(\'4e\',{\'u\':d+\'-4f\',\'v\':{\'q\':3.4.18[3.4.q].1p}});3.N.B(X.2M);3.31.L(\'1a\',7(){3.1W();C K}.r(3));X.L(\'4g\',7(a){5(3.4.Q==1){5(a.2n==\'4h\'){3.1W()}5(a.2n==\'I\'){5(3.15){3.15.1V(\'1a\',a)}}5(a.2n==\'33\'){5(3.16){3.16.1V(\'1a\',a)}}}}.r(3));1t.4i({\'E\':7(){5(3.4.Q==1){3.1w();3.19.E()}}.r(3),\'4j\':7(){5(3.4.Q==1){3.1w()}}.r(3)});3.34();3.1Z=$U()},20:7(a){a.4k();3.11((a.1g||a.1l||""),a.1I,(a.1h(\'1x\')||K))},1W:7(){3.2o(0)},34:7(){3.2p=[];$$("a","4l").36(7(a){5(a.1h(\'1x\')&&a.1h(\'1x\').4m("^"+3.4.1z)){a.L(\'1a\',7(){3.20(a);C K}.r(3));5(!(a.1h(\'u\')==3.4.1l+"-37"||a.1h(\'u\')==3.4.1l+"-38")){3.2p.4n(a)}}}.r(3))},2o:7(a){5(3.4.Q==0&&a!=0||a==1){3.19.11();3.4.Q=1;3.N.t({\'1d\':\'2V\'})}J{3.N.t({\'1d\':\'Y\',\'1m\':-(3.4.17[\'9\']+4o)});3.19.1F();3.19.w.L(\'1F\',7(){5(3.4.Q){5(3.1e)3.1e.4p();3.4.Q=0}}.r(3))}},1w:7(a){o b=1t.4q();o c=1t.4r();o d=3.4.17[\'8\'];o e=3.4.17[\'9\'];5(3.4.Q==0){o x=0;o y=0;y=c.x+((b.x-d)/2);5(3.4.2B=="4s"){x=(c.y+b.y+22)}J{x=(c.y-e)-22}3.N.t({\'1d\':\'Y\',\'1m\':x,\'I\':y});3.O.t({\'8\':d});3.13.t({\'9\':e-22})}a=$30({\'8\':3.F.8,\'9\':3.F.9,\'E\':0},a||{});5(3.1Z)3.1Z.1H();3.1Z=p G.2q(3.N,{V:3.4.2F,A:3.4.2H}).T({\'I\':(c.x+((b.x-a.8)/2)),\'1m\':(c.y+(b.y-(a.9+(3.1J?22:48)))/2)});5(a.E){5(3.2r)3.2r.1H();3.2r=p G.2q(3.13,{V:3.4.2b,A:3.4.2c}).T({\'9\':a.9});5(3.1i)3.1i.1H();3.1i=p G.2q(3.O,{V:3.4.2b,A:3.4.2c}).T({\'8\':a.8})}},2s:7(a,b){C p s(\'a\',{u:3.4.1l+\'-\'+b,1g:a.1g,1I:a.1I,1x:a.1h(\'1x\'),Z:"&32;",v:{\'n-1f\':\'12(\'+3.4.P+\'/\'+3.4.q+\'/\'+3.4.1B+\')\'}})},1d:7(a,b,c){C 3.11(b,a,\'\',c)},11:7(c,d,e,f){3.39();o g=d.2t(/(.+)?/)[1]||d;o h=/\\.(4t?g|1A|29|4u)/4v;o i=d.2t(/\\?(.+)/);5(i)i=i[1];o j=3.3a(i);j=$1P({\'8\':0,\'9\':0,\'23\':0,\'n\':\'\',\'1g\':c},j||{});j[\'8\']=j[\'8\'].1r();j[\'9\']=j[\'9\'].1r();j[\'23\']=j[\'23\'].1r();3.19.4.2f=!j[\'23\'];3.F=$1P(j,{\'8\':j[\'8\']+14});5(f==\'1f\'||g.2t(h)){3.M=p 1e();3.M.3b=7(){3.M.3b=7(){};5(!j[\'8\']){o a=3.3c(3.M.8,3.M.9);j[\'8\']=a.x;j[\'9\']=a.y;3.F.8=j[\'8\']+14}3.F.9=j[\'9\']-((3.F.1g)?21:35);3.1w({\'E\':1});3.1i.L(\'24\',7(){3.3d(3.M.1s,j)}.r(3))}.r(3);3.M.4w=7(){3.11(\'\',3.4.P+\'/\'+3.4.q+\'/3e.1A\',3.4.1z)}.r(3);3.M.1s=d}J{3.F.9=j[\'9\']+(1c.1q.4x?2:0);3.1w({\'E\':1});5(d.3f(\'4y\')!=-1){3.1i.L(\'24\',7(){3.2u($(j[\'4z\']).3g(\'Z\'),3.F)}.r(3))}J 5(d.3f(\'4A\')!=-1){o k=d.2v(\'4B\');3.1i.L(\'24\',7(){3.3h(k[0],3.F)}.r(3))}J{3.1i.L(\'24\',7(){o b=p 4C.4D({12:d,4E:\'3g\',4F:K,4G:7(a){5(a.4H==3e){3.11(\'\',3.4.P+\'/\'+3.4.q+\'/4I.1A\',3.4.1z)}}.r(3),4J:3.3i.r(3)}).4K()}.r(3))}}3.16=K;3.15=K;5(e.26>3.4.1z.26){3.1J=1b;o l=K;o m=K;3.2p.36(7(a,b){5(a.1h(\'1x\')==e&&!m){5(a.1I==d){l=1b}J{5(l){3.16=3.2s(a,"38");m=1b}J{3.15=3.2s(a,"37")}}}}.r(3))}J{3.1J=K}5(3.F.1g)3.1J=1b;3.3j();3.3k(c);3.2o(1)},3c:7(x,y){o a=1t.4L()-2d;o b=1t.4M()-2d;5(x>a){y=y*(a/x);x=a;5(y>b){x=x*(b/y);y=b}}J 5(y>b){x=x*(b/y);y=b;5(x>a){y=y*(a/x);x=a}}C{x:x.1r(),y:y.1r()}},3i:7(a,b,c,d){3.2u(c,3.F);$4N(d)},3j:7(){5(3.15)3.15.L(\'1a\',7(a){a.3l();3.20(3.15)}.r(3));5(3.16)3.16.L(\'1a\',7(a){a.3l();3.20(3.16)}.r(3))},3k:7(){5(3.1J){3.1Y.4O("28-3m");3.1v.U();3.1v.B(3.2l);3.2m.2w(\'Z\',3.F.1g);3.1v.3n(3.15);3.1v.3n(3.16);3.2m.B(3.1v)}J{3.1Y.4P("28-3m");3.2l.U()}},3d:7(a,b){3.1e=p s(\'M\',{\'1s\':a,\'v\':b}).B(3.1u.U().3o(\'1D\').t({8:\'1j\',9:\'1j\'}));3.O.t({\'n\':\'Y\'});3.13.U().t({\'n-q\':\'3p\',\'2x\':\'2y\',\'8\':\'1j\'})},2u:7(a,b){3.1u.t({\'8\':b[\'8\']-14,\'9\':b[\'9\']+35,\'n-q\':b[\'n\']||\'#1y\'});3.1e=p s(\'H\',{\'v\':{\'8\':b[\'8\']-14,\'9\':b[\'9\'],\'4Q\':\'1j\',\'n\':b[\'n\']||\'#1y\'}}).2w(\'Z\',a).B(3.13.U().t({\'8\':b[\'8\']-14,\'n-q\':b[\'n\']||\'#1y\'}));3.O.t({\'n\':\'Y\'})},3h:7(a,b){3.1u.t({\'8\':b[\'8\']-14,\'9\':b[\'9\']+35,\'n-q\':b[\'n\']||\'#1y\'});3.1e=p s(\'2P\',{\'2U\':0,\'u\':"2Q"+p 2R().2S(),\'v\':{\'8\':b[\'8\']-14,\'9\':b[\'9\'],\'n\':b[\'n\']||\'#1y\'}}).2w(\'1s\',a).B(3.13.U().t({\'8\':b[\'8\']-14,\'n-q\':b[\'n\']||\'#1y\',\'2x\':\'2y\'}));3.O.t({\'n\':\'Y\'})},39:7(){3.1u.U().3o(\'1D\').t({8:\'1j\',9:\'1j\'});3.13.U().t({\'n-q\':\'3p\',\'2x\':\'2y\',\'8\':\'1j\'});3.O.t({\'n\':\'12(\'+3.4.P+\'/\'+3.4.q+\'/4R.29) 2T-4S 3q% 3q%\'});3.1w($1P(3.4.17,{\'E\':1}))},3a:7(a){5(!a)C{};o b={};o c=a.2v(/[;&]/);3r(o i=0;i<c.26;i++){o d=c[i].2v(\'=\');5(!d||d.26!=2)4T;b[3s(d[0])]=3s(d[1]).4U(/\\+/g,\' \')}C b},1n:7(){o d=3.4.1n.2J;o l=3.N.4V();l=l.I;5(!3.27){3.27=p G.2j(3.N,{4W:\'4X\',V:3.4.1n.V,A:3.4.1n.A})}3r(x=0;x<3.4.1n.2K;x++){3.27.T(\'I\',l+d).T(\'I\',l-d)}3.27.T(\'I\',l+d).T(\'I\',l)}});',62,308,'|||this|options|if||function|width|height||||||||||||||background|var|new|color|bind|Element|css|id|styles|element||||transition|injectInside|return|zIndex|resize|lightbox|Fx|div|left|else|false|addEvent|img|Wrapper|Contenedor|dir|displayed|opacity|shim|start|empty|duration|000000|document|none|html||show|url|Contenido||prev|next|BoxStyles|Skin|overlay|click|true|Browser|display|Image|image|title|getProperty|ResizeBox|auto|setStyles|name|top|shake|hexcolor|captionColor|Engine|toInt|src|window|Background|Nav|replaceBox|rel|ffffff|find|png|buttons|Transitions|style|position|hide|hidden|cancel|href|MostrarNav|showDuration|showEffect|closeDuration|closeEffect|FFFFFF|merge|index|inject|target|setStyle|pick|fireEvent|close|Top|bb|MoveBox|hook||80|modal|complete||length|tween|SLB|gif|easeInOut|resizeDuration|resizeEffect|100|absolute|hideOnClick|callback|border|clientWidth|Tween|preloadimage|innerbb|Descripcion|key|animate|anchors|Morph|ResizeBox2|getInfo|match|showContent|split|set|padding|0px|getOptions|black|emergefrom|bgSexy|backgroundIE|linear|moveDuration|1000|moveEffect|Back|distance|loops|create|body|trident4|getStyle|iframe|IF_|Date|getTime|no|frameborder|block|property|onComplete|backwardcompatibility|OverlayStyles|extend|CloseButton|nbsp|right|refresh||each|Left|Right|showLoading|parseQuery|onload|calculate|showImage|404|indexOf|get|showIframe|handlerFunc|addButtons|showNavBar|stop|bbnav|adopt|erase|transparent|50|for|unescape|implement|SexyLightBox|Class|Implements|Options|Events|32000|sexylightbox|sexyimages|200|400|Sine|486|320|white|blanco|negro|mask|time|events|inside|gecko|gecko19|Platform|mac|static|relative|chk|javascript|write|scrolling|after|getScrollSize|webkit|Math|max|removeEvent|imagesdir|path|folder|initialize||setOptions|TopLeft|Bottom|BottomRight|Navegador|strong|Caption|keydown|esc|addEvents|scroll|blur|area|test|push|280|dispose|getSize|getScroll|bottom|jpe|bmp|gi|onerror|presto|TB_inline|inlineId|TB_iframe|TB_|Request|HTML|method|evalScripts|onFailure|status|404html|onSuccess|send|getWidth|getHeight|exec|addClass|removeClass|overflow|loading|repeat|continue|replace|getCoordinates|link|chain'.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}('N=8 u({h:3(){x=$i(\'2, w\');x.m(3(2){5(2.j()==\'2\'){s=2.O();a=8 P(\'a\');a.z=3(2){4.7(2)}.k(2,4);a.t(\'B\').C(\'?\').c(\'g\',\'o\').D(s);2.Y=3(e){a=$E(\'a\',2.l);a.c(\'g\',\'F\');e=8 W(e);5(e.U==\'T\'){4.7(2)}}.J(4)}5(2.j()==\'w\'){2.M=3(2){4.7(2)}.k(2,4)}},4)},7:3(2){a=$E(\'a\',2.l);5(a){a.c(\'g\',\'o\')}6=2.Q.V(\',\');v=(2.d.X(/Z|10|\\[|\\]|y/))?A(2.d):2.d;5(6[1]){f.n[6[0]][6[1].I()]=v}K{f.n[6[0]]=v}f.R()}});9=8 u({h:3(){q=$i(\'p, L\');q.m(3(b){b.r(\'S\',3(){b.t(\'9\')});b.r(\'G\',3(){b.H(\'9\')})})}});',62,63,'||input|function|this|if|arr|update|new|hover|||setStyle|value||myShow|display|initialize|ES|getTag|pass|parentNode|each|props|none||blocks|addEvent|pn|addClass|Class||select|inputs|Fx|onclick|eval|kbd|appendText|injectInside||inline|mouseout|removeClass|toInt|bind|else|ul|onchange|editor|getParent|Element|name|start|mouseover|enter|key|split|Event|test|onkeydown|true|false'.split('|'),0,{}))


function socialquit(){
	if (document.getElementById("reseaux")){
		var box = document.getElementById("reseaux")
		box.style.display = "none";
	}
}
function quit(){
	socialquit();
	if (document.getElementById("hebergement")){
		var heberg = document.getElementById("hebergement")
		heberg.style.display = "none";
		document.getElementById("mini_resa").style.display="block";
	}
	if (document.getElementById("colR2")){
		document.getElementById("colR2").style.marginTop="0";
	}
}

function display_heb(texte){
document.getElementById("mini_resa").style.display="none";
//document.getElementById(texte).style.display="block";
document.getElementById(texte).style.display=document.getElementById(texte).style.display=="block"?"none":"block";
	if (document.getElementById("colR2")){
		document.getElementById("colR2").style.marginTop="84px";
	}
}

function display(texte){
document.getElementById(texte).style.display=document.getElementById(texte).style.display=="block"?"none":"block";
}

window.addEvent('domready',function(){
	var header = document.getElementById("header")
	header.setAttribute("onMouseover", "socialquit()");
	//var centre = document.getElementById("content")
	//centre.setAttribute("onMouseover", "quit()");
	//var colG = document.getElementById("colL")
	//colG.setAttribute("onMouseover", "quit()");
	//var colR = document.getElementById("colR")
	//colR.setAttribute("onMouseover", "quit()");
	
	//Encart pub en page d'accueil.Test si présence de la div "nouvelpub" pour éviter les conflits
	if($('nouvelpub'))
		{ 
			var nS4 = new noobSlide({
				box    : $('nouvelpub'),
				items    : $$('#nouvelpub img'),
				size    : 245,
				autoPlay  : true,
				interval: 9000,
				fxOptions  : {
				  duration: 1000,
				  wait: false
				}
			});
		};	
});					





/*************** CALENDRIER DES DIPSOS ******************/
var restaure = new Array;
	window.onload=function(){
		//restaure['popup2'] = document.getElementById('popup2').offsetHeight;
		// document.getElementById('popup2').style.height = '0px';
		// document.getElementById('popup2').style.overflow = 'hidden';
		// document.getElementById('popup2').style.display = 'none';
}

function swap(elmt){
	elt=document.getElementById(elmt);
	if(elt.style.display=='none'){
		document.getElementById('btn_dispos').innerHTML = "Masquer les disponibilités";
		elt.style.display = 'block';
		/*var taille = restaure[elmt];
		elt.style.display = '';
		var timer = setInterval(function(){
			if(taille>elt.offsetHeight){elt.style.height=(elt.offsetHeight+7)+'px'}
			else{elt.style.height='auto';clearInterval(timer)}
		},1);*/
	}
	else{
		/*var taille = elt.offsetHeight;
		restaure[elmt] = taille;
		elt.style.overflow='hidden';*/
		elt.style.display = 'none';
		document.getElementById('btn_dispos').innerHTML = "Voir les disponibilités";
		/*var timer = setInterval(function(){
			if(taille>=5){elt.style.height=taille+'px';taille-=7;}
			else{elt.style.display='none';clearInterval(timer)}
		},1);*/
	}
}
