

var DynamicZoneJavascriptNone= 0;
var DynamicZoneJavascriptEval= 1;
var DynamicZoneJavascriptWrite= 2;

function DynamicZone(idCible, javascriptMode, nomFrame){




var putFrameInNode= function(node){
frame=frames[nomFrame];
var d= frame.document;
var source= d.body.firstChild;
while(node.childNodes.length> 0){
node.removeChild(node.childNodes[0])}
var ie= false;
try{
ie= YAHOO.env.ua.ie;} catch(e){
ie= jQuery.browser.msie;}
if( ie ){
node.innerHTML= source.innerHTML;} else{
var clone= source.cloneNode(true);
var scripts= clone.getElementsByTagName("SCRIPT");
for(var i=0; i< scripts.length; i++){
var s= scripts[i];
s.parentNode.removeChild(s);}
node.appendChild(clone);}}
function continuTypeFace(elements, i){
var perf= 200;
if(i< elements.length){
while(i< elements.length && perf> 0){
var e= elements[i];
if(e.className.match(/(^|\s)typeface-js(\s|$)/) || e.tagName.match(/^(H1|H2|H3|H4|H5|H6)$/)){
_typeface_js.replaceText(e);
e.style.visibility='visible';
perf-=75;}
perf--;
i++;}
setTimeout(function(){
continuTypeFace(elements, i);}, 100);} else{
if(_typeface_js.vectorBackend=='vml' ){
try{
var dummyShape= document.createElement('v:shape');
dummyShape.style.display='none';
document.body.appendChild(dummyShape);} catch(e){}}}}

this.fixTypeFace= function(node){
var elements= node.getElementsByTagName('*');
continuTypeFace(elements, 0);}
function insertContentEvalMode(node, html){
var dw= document.write;
document.write= function(c){
alert("Tentative d'utilisation de document.write dans du contenu injecté. Voici le contenu écrit "+ c);}
jQuery(node).empty().append(html);
document.write= dw;}

this.setContenu= function(html){
var node= document.getElementById(idCible);
if(node){
if(javascriptMode== DynamicZoneJavascriptWrite){
creerFrame();
genererDansFrame(html);
putFrameInNode(node);} else if(javascriptMode== DynamicZoneJavascriptEval){
insertContentEvalMode(node, html);} else{
node.innerHTML= html;}
Tracking.enable($j(node));
try{
if(_typeface_js){
this.fixTypeFace(node);}} catch(err){}
this.customFix(node);}}}
DynamicZone.prototype.customFix= function(){};




var historique;
function Historique(){
this.onchange=null;
this.ancre= this.getAncre();
this.ancancre= null;
this.nextcode= null;
if(this.check!=null){
setInterval(this.check,200);}}

Historique.prototype.remplacerCodeCourant= function(code){
this.nextcode= code;
try{
YAHOO.util.Event.onDOMReady(this.remplacerCodeCourantDefer, this, true);} catch(e){
jQuery(document).ready(function(){
historique.remplacerCodeCourantDefer();});}}

Historique.prototype.remplacerCodeCourantDefer= function(){
if(this.nextcode){
var url= window.location.pathname;
if(location.search){
url+= location.search;}
url+="#"+ this.nextcode;
window.location.replace( url );
this.ancre=this.nextcode;}
this.nextcode= null;}

Historique.prototype.getAncre= function(){
var c= window.location.hash;
if((c!=null)&&(c.length>0)){
return c.substr(1);}
return null;}

Historique.prototype.setUpAnchor= function(code){
var ancres=document.getElementsByName(code);
var ancre=null;
if(ancres.length>0){
ancre=ancres[0];} else{
ancre=document.createElement("a");
ancre.setAttribute("name", code);
ancre.style.position="absolute";
ancre.style.display="block";
document.body.insertBefore(ancre, document.body.firstChild);}
ancre.style.top= this.getScrollTop()+"px";
ancre.style.left= this.getScrollLeft()+"px";}
Historique.prototype.getScrollTop= function(){
if(window.pageYOffset){
return window.pageYOffset;} else{
return document.documentElement.scrollTop;}}
Historique.prototype.getScrollLeft= function(){
if(window.pageXOffset){
return window.pageXOffset;} else{
return document.documentElement.scrollLeft;}}
function historiqueDetectIE(){
try{
return YAHOO.env.ua.ie;} catch(e){
return jQuery.browser.msie;}}

if( historiqueDetectIE() ){
Historique.prototype.check= null;
Historique.prototype.creerFrame= function(){
var frame= document.createElement("iframe");
frame.id="history_manager_fram";
frame.name="history_manager_fram";
frame.setAttribute("src",'javascript:;' );
frame.style.position="absolute";
frame.style.visibility="hidden";
document.body.insertBefore(frame, document.body.firstChild);

this.setFrameCode(this.getAncre() );}
Historique.prototype.setFrameCode= function(code){
frame=frames["history_manager_fram"];
var d= frame.document;
d.open("text/html");
d.write("<html><head></head>");
d.write('<body onload="parent.window.historique.setCodeFromFrame('+"'"+code+"'"+')">');
d.write(code);
d.write("</body></html>");
d.close();}
Historique.prototype.setCodeFromFrame= function(code){
if(this.ancre!=code){
this.ancre=code;
if(this.onchange!=null){
this.onchange();}}}

Historique.prototype.getCode= function(){
return this.ancre;}

Historique.prototype.ajouter= function(code){
if(code!=this.ancre){
var frame=frames["history_manager_fram"];
if(frame==null){
this.creerFrame();}
this.setUpAnchor(code);
window.location.hash= code;
this.ancre=code;
this.setFrameCode(code);}}} else{
Historique.prototype.setFrameCode=null;

Historique.prototype.check= function(){
var nancre= historique.getCode();
if(historique.ancancre!=null){
if(historique.ancancre==nancre){
return;} else{
historique.ancancre=null;}}
if(nancre!=historique.ancre){
historique.ancre=nancre;
if(historique.onchange!=null){
historique.onchange();}}}
Historique.prototype.getCode= function(){
return this.getAncre();}

Historique.prototype.ajouter= function(code){
if(code!=this.ancre){
this.setUpAnchor(code);
window.location.hash= code;
if(historique.getCode() != code){
this.ancancre=this.ancre;}
this.ancre=code;}}}
historique= new Historique();




function Navigateur(){

this.suivant= function(){
this.nav(1);}

this.precedent= function(){
this.nav(-1);}

this.getCurItem= function(){
return this.get(this.getIndex());}

this.getTitreNext= function(){
return this.getTitreNav(1);}

this.getTitrePrev= function(){
return this.getTitreNav(-1);}
this.getTitreNav= function(dir){
dir=(dir== 1) ? 1 :-1;
var it= this.getCurItem();
if(it){
if(it["getTitreNav"]){
var titre= it.getTitreNav(dir);
if(titre){
return titre;}}
if(this["getIndex"]){
var n= this.getIndex()+ dir;
if((n>= 0)&&(n< this.getNbItems())){
it= this.get(n);
if(it){
return it.titre;}}}}
return null;}}
var OngletNavigateurs= new function(){
Navigateur.call(this);
var me= this;
var ncourant= null;
var navigateurs=[];
var links=[];
var hLock= 0;
this.keepOnglets= false;
this.javascriptMode= 1;
this.enabled= true;
this.getCurItem= function(){
return navigateurs[ncourant];}

this.nav= function(dir){
dir=(dir== 1) ? 1 :-1;
var n= me.getCurItem();
if(n && n.nav(dir)){} else{
if(links[dir]){
var url= links[dir][0];
if(dir==-1){
url+="#99;99";}
window.location.href= url;} }}

this.hlock= function(){
hLock++;}

this.uhlock= function(){
hLock--;}

this.updateHisto= function(){
if(hLock==0){
var oldState= historique.getCode();
var newState= this.getCurState();
if(newState!=oldState){
historique.ajouter(newState);
this.track();}}
this.updateFleche();}
this.track= function(){
var n= this.getCurItem();
if(n){
var o= n.getCurItem();
if(o){
var s= o.getCurItem();
var t= o.titre;
if(s){
t+="/"+ s.titre;}
Tracking.onglet(t);}}}

this.setNextPage= function(url, titre){
links[1]=[url, titre];}

this.setPrevPage= function(url, titre){
links[-1]=[url, titre];}

this.addNavigateur= function(nom, onglets, index, sousIndex){
navigateurs[nom]= new OngletNavigateur(nom, onglets, index, sousIndex);
ncourant= nom;}

this.get= function(nom){
return navigateurs[nom];}

this.set= function(nom, onglet, sousonglet){
var nav;
if(nom){
nav= this.get(nom);} else{
nav= this.getCurItem();}
nav.set(onglet, sousonglet);}

var parentGetTitreNav= this.getTitreNav;
this.getTitreNav= function(dir){
var titre= parentGetTitreNav.call(this, dir);
if(titre){
return titre;}
dir=(dir== 1) ? 1 :-1;
if(links[dir]){
return links[dir][1];}
return null;}

this.readUrlParams= function(){
var nav= me.getCurItem();
var code= historique.getCode();
if(code!=null){
this.hlock();
els= code.split(";");
if(els.length==2){
nav.setIndex(parseInt(els[0]));
nav.getCurItem().setIndex(parseInt(els[1]));
this.track();} else{
historique.remplacerCodeCourant(getCurStateCode());}
this.uhlock();} else{
historique.remplacerCodeCourant(this.getCurState());}}

this.getCurState= function(){
var nav= me.getCurItem();
if(nav){
var onglet= nav.getCurItem();
return nav.getIndex()+";"+ onglet.getIndex();}
return"";}

this.updateFleche= function(){
var html='';
var p= this.getTitrePrev();
var n= this.getTitreNext();
if(p){
html+='<a class="titre-precedent" href="#" onclick="OngletNavigateurs.precedent(); return false;">'+p+'</a>';}
html+="<ul><li>";
if(p){
html+='<a title="'+_TR("all.precedent","Previous" )+'" class="precedent" href="#" onclick="OngletNavigateurs.precedent(); return false;">';} else{
html+='<a class="precedent">';}
html+="</a></li><li>";
if(n){
html+='<a title="'+_TR("all.suivant","Next" )+'" class="suivant" href="#" onclick="OngletNavigateurs.suivant(); return false;">'+ n;} else{
html+='<a class="suivant">';}
html+="</a></li></ul>";
if(n){
html+='<a class="titre-suivant" href="#" onclick="OngletNavigateurs.suivant(); return false;">'+n+'</a>';}
if($w("navigation")){
$w("navigation").innerHTML= html;
Tracking.enable($j("#navigation"));}}
var init= function(){
if(me.enabled){
me.updateFleche();
if(me.getCurItem()){
me.readUrlParams();
historique.onchange= function(){
me.readUrlParams();}}}}
try{
YAHOO.util.Event.onDOMReady(init);} catch(e){
jQuery(init);}}

function OngletNavigateur(nom, data, i, curSousIndex){
Navigateur.call(this);
var onglets=[];
var index=i;
var me= this;
this.getNom= function(){
return nom;}
this.getNbItems= function(){
return onglets.length;}
this.getIndex= function(){
return index;}

this.get= function(index){
return onglets[index];}

this.setIndex= function(i, noh){
if(i> onglets.length-1){
i=onglets.length-1;}
if(i!=index){
var s="onglet_"+ nom+"_menu_item_";
try{
if(index>0){
$j("#"+ s+(index- 1) ).removeClass("beforeSelected");}
$j("#"+ s+ index ).removeClass("selected");
if(index<onglets.length-1){
$j("#"+ s+(index+ 1) ).removeClass("afterSelected");}
if(i> 0){
$j("#"+ s+(i- 1) ).addClass("beforeSelected");}
$j("#"+ s+ i ).addClass("selected");
if(i<onglets.length-1){
$j("#"+ s+(i+ 1) ).addClass("afterSelected");}} catch(e){}
var o= this.getCurItem();
o.hide();
index= i;
o= this.getCurItem();
o.show($w("onglet_contenu_"+ nom));
document.title= o.titre+" | "+ _TR("adc.accueil.titre1","Artisans du Changement" );
if(noh){} else{
OngletNavigateurs.updateHisto();}}}
this.set= function(onglet, sousonglet){
if(sousonglet>= 0){
this.get(onglet).setIndex(sousonglet);}
this.setIndex(onglet);}
this.replaceContent= function(cato, data){
if((cato< onglets.length) &&(cato>= 0)){
var o= this.get(cato);;
var oid= o.getNodeId();
if($w(oid)){
var dz= new DynamicZone(oid, OngletNavigateurs.javascriptMode);
dz.setContenu(data);
o.create();}
o.contenu= data;
o.show();}}
this.nav= function(dir){
dir=(dir== 1) ? 1 :-1;
var onglet= onglets[index];
if(onglet){
if(onglet.nav(dir)){
return true;}
var n= index+ dir;
if((n>=0)&&(n< onglets.length)){
this.setIndex(n, true);
onglets[index].pnava(dir);
OngletNavigateurs.updateHisto();
return true;}}
return false;}
function init(){
for(var i=0; i< data.length; i++){
var oid="onglet_contenu_"+ nom+"_"+ i;
var o= new Onglet(data[i][0], data[i][1], data[i][2], oid, me, i,(i==index) ? curSousIndex : 0);
onglets[onglets.length]= o;
var s="onglet_"+ nom+"_menu_item_"+ i;
$w(s).ongletI= i;
$w(s).click= function(){
me.setIndex(me.ongletI);
return false;};}}
init();}
function OngletBase(){
this.onShow= function(){};
this.onHide= function(){};
this.onCreate= function(){};
this.onChange= function(){};}

function Onglet(t, c, sous, nodeId, parent, parentIndex, curIndex){
Navigateur.call(this);
OngletBase.call(this);
var me= this;
var rendu= curIndex;
var subs=[];
this.titre= t;
this.contenu= c;
this.getIndex= function(){
return rendu;}
this.getNbItems= function(){
return subs.length;}
this.getId= function(){
return parentIndex;}

this.get= function(index){
return(index>= 0) ? subs[index] : null;}

this.nav= function(dir){
dir=(dir== 1) ? 1 :-1;
var n= rendu+ dir;
if((n>= 0)&&(n< subs.length)){
this.setIndex(n);
return true;}
return false;}

this.pnava= function(dir){
var to= 0;
if(dir==-1){
to= subs.length-1;}
this.setIndex(to, true);}

this.getNode= function(){
return $w(nodeId);}

this.getNodeId= function(){
return nodeId;}

this.hide= function(){
var so= me.getCurItem();
if(so){
so.onHide();}
var node= this.getNode();
if(node){
if(OngletNavigateurs.keepOnglets){
node.style.display="none";} else{
node.parentNode.removeChild(node);}}
this.onHide();}

this.show= function(conteneur){
if(conteneur){
var oid= me.getNodeId();
var node= $w(oid);
if(node){
node.style.display="";} else{
var dz;
node= document.createElement("div");
node.style.visible= false;
node.id= oid;
conteneur.appendChild(node);
dz= new DynamicZone(oid, OngletNavigateurs.javascriptMode);
dz.setContenu(me.contenu);
me.create();
node.style.visible= true;}}
var so= me.getCurItem();
if(so){
so.onShow();}
this.onShow();
me.change();}

this.create= function(){
var mi="onglet_"+ parent.getNom()+"_menu_item_"+ parentIndex;

var o= rendu;
rendu= curIndex;
this.setIndex(o, true);
this.onCreate();}
	
this.change= function(){
this.onChange();}

this.setIndex= function(index,s){
if(index>= subs.length){
index=subs.length-1;}
if((index!=rendu)&&(index>=0)){
var it= me.getCurItem();
it.hide();
rendu= index;
it= me.getCurItem();
var ipoint="sous_onglet_contenu_"+ parent.getNom()+"_"+ parentIndex;
it.show($w(ipoint));
me.change();
if(s){} else{
OngletNavigateurs.updateHisto();}}}
function init(){
if(sous && sous.length> 0){
var nav= OngletNavigateurs.getCurItem();
var soc="sous_onglet_contenu_"+ parent.getNom()+"_"+ parentIndex;
var nsubs=[];
for(var i=0; i< sous.length; i++){
var s= sous[i];
var soci= soc+"_"+ i;
nsubs[nsubs.length]= new SousOnglet(s[0], s[1], soci);}
subs= nsubs;}}
init();}
function SousOnglet(titre, contenu, nodeId){
OngletBase.call(this);
this.titre= titre;
this.contenu= contenu;
this.onShow= function(){}
this.onHide= function(){}
this.onCreate= function(){}

this.getNode= function(){
return $w(nodeId);}

this.getNodeId= function(){
return nodeId;}
this.create= function(){
this.onCreate();
this.onChange();}
this.show= function(conteneur){
if(conteneur){
var oid= this.getNodeId();
var node= $w(oid);
if(node){
node.style.display="";} else{
var dz;
node= document.createElement("div");
node.id= oid;
conteneur.appendChild(node);
dz= new DynamicZone(oid, OngletNavigateurs.javascriptMode);
dz.setContenu(this.contenu);
this.create();}}
this.onShow();}
this.hide= function(){
node= this.getNode();
if(node){
if(OngletNavigateurs.keepOnglets){
node.style.display="none";} else{
node.parentNode.removeChild(node);}}
this.onHide();}}


/*	ColorBox v1.3.0 - a full featured, light-weight, customizable lightbox based on jQuery 1.3 */
(function(A){var p="colorbox",m="hover",w=true,R=false,V,o=A.browser.msie&&A.browser.version<7?w:R,x="cbox_open",L="cbox_load",s="cbox_complete",K="cbox_cleanup",l="cbox_closed",O="resize.cbox_resize",I="resize.cboxie6 scroll.cboxie6",F,T,U,d,y,i,b,E,c,P,C,f,q,h,k,M,j,H,r,W,g,e,a,v,N,n,z,Q,u,G,B={transition:"elastic",speed:350,width:R,height:R,initialWidth:"400",initialHeight:"400",maxWidth:R,maxHeight:R,scalePhotos:w,scrollbars:R,inline:R,html:R,iframe:R,photo:R,href:R,title:R,rel:R,opacity:0.9,preloading:w,current:"image {current} of {total}",previous:"previous",next:"next",close:"close",open:R,overlayClose:w,slideshow:R,slideshowAuto:w,slideshowSpeed:2500,slideshowStart:"start slideshow",slideshowStop:"stop slideshow"};function J(X){if(X.keyCode===37){X.preventDefault();H.click()}else{if(X.keyCode===39){X.preventDefault();j.click()}}}function D(X,Y){Y=Y==="x"?document.documentElement.clientWidth:document.documentElement.clientHeight;return(typeof X==="string")?(X.match(/%/)?(Y/100)*parseInt(X,10):parseInt(X,10)):X}function t(X){return Q.photo||X.match(/\.(gif|png|jpg|jpeg|bmp)(?:\?([^#]*))?(?:#(\.*))?$/i)}function S(){for(var X in Q){if(typeof(Q[X])==="function"){Q[X]=Q[X].call(n)}}}V=A.fn.colorbox=function(Y,X){if(this.length){this.each(function(){var Z=A(this).data(p)?A.extend({},A(this).data(p),Y):A.extend({},B,Y);A(this).data(p,Z).addClass("cboxelement")})}else{A(this).data(p,A.extend({},B,Y))}A(this).unbind("click.colorbox").bind("click.colorbox",function(aa){n=this;Q=A(n).data(p);S();A().bind("keydown.cbox_close",function(ab){if(ab.keyCode===27){ab.preventDefault();V.close()}});if(Q.overlayClose){F.css({cursor:"pointer"}).one("click",V.close)}n.blur();G=X||R;var Z=Q.rel||n.rel;if(Z&&Z!=="nofollow"){c=A(".cboxelement").filter(function(){var ab=A(this).data(p).rel||this.rel;return(ab===Z)});z=c.index(n);if(z<0){c=c.add(n);z=c.length-1}}else{c=A(n);z=0}if(!u){u=w;A.event.trigger(x);r.html(Q.close);F.css({opacity:Q.opacity}).show();V.position(D(Q.initialWidth,"x"),D(Q.initialHeight,"y"),0);if(o){P.bind(I,function(){F.css({width:P.width(),height:P.height(),top:P.scrollTop(),left:P.scrollLeft()})}).trigger(I)}}V.slideshow();V.load();aa.preventDefault()});if(Y&&Y.open){A(this).triggerHandler("click.colorbox")}return this};V.init=function(){function X(Y){return A('<div id="cbox'+Y+'"/>')}P=A(window);T=A('<div id="colorbox"/>');F=X("Overlay").hide();U=X("Wrapper");d=X("Content").append(C=X("LoadedContent").css({width:0,height:0}),f=X("LoadingOverlay"),q=X("LoadingGraphic"),h=X("Title"),k=X("Current"),M=X("Slideshow"),j=X("Next"),H=X("Previous"),r=X("Close"));U.append(A("<div/>").append(X("TopLeft"),y=X("TopCenter"),X("TopRight")),A("<div/>").append(i=X("MiddleLeft"),d,b=X("MiddleRight")),A("<div/>").append(X("BottomLeft"),E=X("BottomCenter"),X("BottomRight"))).children().children().css({"float":"left"});A("body").prepend(F,T.append(U));if(o){F.css("position","absolute")}d.children().addClass(m).mouseover(function(){A(this).addClass(m)}).mouseout(function(){A(this).removeClass(m)}).hide();W=y.height()+E.height()+d.outerHeight(w)-d.height();g=i.width()+b.width()+d.outerWidth(w)-d.width();e=C.outerHeight(w);a=C.outerWidth(w);T.css({"padding-bottom":W,"padding-right":g}).hide();j.click(V.next);H.click(V.prev);r.click(V.close);d.children().removeClass(m)};V.position=function(aa,Z,Y,ab){var ac=document.documentElement.clientHeight,ae=ac/2-Z/2,ad=document.documentElement.clientWidth/2-aa/2,X;if(Z>ac){ae-=(Z-ac)}if(ae<0){ae=0}if(ad<0){ad=0}ae+=P.scrollTop();ad+=P.scrollLeft();aa=aa-g;Z=Z-W;X=(T.width()===aa&&T.height()===Z)?0:Y;U[0].style.width=U[0].style.height="9999px";function af(ag){y[0].style.width=E[0].style.width=d[0].style.width=ag.style.width;q[0].style.height=f[0].style.height=d[0].style.height=i[0].style.height=b[0].style.height=ag.style.height}T.dequeue().animate({height:Z,width:aa,top:ae,left:ad},{duration:X,complete:function(){af(this);U[0].style.width=(aa+g)+"px";U[0].style.height=(Z+W)+"px";if(ab){ab()}},step:function(){af(this)}})};V.resize=function(ac){if(!u){return}var Y,ai,ad,ab,Z,af,ak,X,aa=Q.transition==="none"?0:Q.speed;P.unbind(O);if(!ac){var aj=setTimeout(function(){ai=C.children().outerHeight(w);C[0].style.height=ai+"px";V.position(C.width()+a+g,ai+e+W,aa)},1)}else{C.remove();C=A(ac);C.load(function(){alert()});function ag(){Y=Q.width?v:v&&v<C.width()?v:C.width();return Y}function ae(){ai=Q.height?N:N&&N<C.height()?N:C.height();return ai}if(Q.scrollbars){C.css({overflow:"auto"})}C.hide().appendTo("body").attr({id:"cboxLoadedContent"}).css({width:ag()}).css({height:ae()}).prependTo(d);if(o){A("select:not(#colorbox select)").filter(function(){return A(this).css("visibility")!=="hidden"}).css({visibility:"hidden"}).one(K,function(){A(this).css({visibility:"inherit"})})}X=A("#cboxPhoto")[0];if(X&&Q.height){ad=(ai-parseInt(X.style.height,10))/2;X.style.marginTop=(ad>0?ad:0)+"px"}function ah(am){var al=Y+a+g,an=ai+e+W;A().unbind("keydown",J);V.position(al,an,am,function(){if(!u){return}if(A.browser.msie){if(X){C.fadeIn(100)}T[0].style.removeAttribute("filter")}d.children().show();A("#cboxIframeTemp").after("<iframe id='cboxIframe' name='iframe_"+new Date().getTime()+"' frameborder=0 src='"+(Q.href||n.href)+"' />").remove();f.hide();q.hide();M.hide();if(c.length>1){k.html(Q.current.replace(/\{current\}/,z+1).replace(/\{total\}/,c.length));j.html(Q.next);H.html(Q.previous);A().bind("keydown",J);if(Q.slideshow){M.show()}}else{k.hide();j.hide();H.hide()}h.html(Q.title||n.title);A.event.trigger(s);if(G){G.call(n)}if(Q.transition==="fade"){T.fadeTo(aa,1,function(){if(A.browser.msie){T[0].style.removeAttribute("filter")}})}P.bind(O,function(){V.position(al,an,0)})})}if((Q.transition==="fade"&&T.fadeTo(aa,0,function(){ah(0)}))||ah(aa)){}if(Q.preloading&&c.length>1){ab=z>0?c[z-1]:c[c.length-1];af=z<c.length-1?c[z+1]:c[0];ak=A(af).data(p).href||af.href;Z=A(ab).data(p).href||ab.href;if(t(ak)){A("<img />").attr("src",ak)}if(t(Z)){A("<img />").attr("src",Z)}}}};V.load=function(){var X,ab,Y,aa,Z=V.resize;n=c[z];Q=A(n).data(p);S();A.event.trigger(L);X=Q.height?D(Q.height,"y")-e-W:R;ab=Q.width?D(Q.width,"x")-a-g:R;Y=Q.href||n.href;f.show();q.show();r.show();if(Q.maxHeight){N=Q.maxHeight?D(Q.maxHeight,"y")-e-W:R;X=X&&X<N?X:N}if(Q.maxWidth){v=Q.maxWidth?D(Q.maxWidth,"x")-a-g:R;ab=ab&&ab<v?ab:v}N=X;v=ab;if(Q.inline){A('<div id="cboxInlineTemp" />').hide().insertBefore(A(Y)[0]).bind(L+" "+K,function(){C.children().insertBefore(this);A(this).remove()});Z(A(Y).wrapAll("<div/>").parent())}else{if(Q.iframe){Z(A("<div><div id='cboxIframeTemp' /></div>"))}else{if(Q.html){Z(A("<div/>").html(Q.html))}else{if(t(Y)){aa=new Image();aa.onload=function(){aa.onload=null;if((N||v)&&Q.scalePhotos){var ae=this.width,ac=this.height,ag=0,af=this,ad=function(){ac+=ac*ag;ae+=ae*ag;af.height=ac;af.width=ae};if(v&&ae>v){ag=(v-ae)/ae;ad()}if(N&&ac>N){ag=(N-ac)/ac;ad()}}Z(A("<div />").css({width:this.width,height:this.height}).append(A(this).css({width:this.width,height:this.height,display:"block",margin:"auto",border:0}).attr("id","cboxPhoto")));if(c.length>1){A(this).css({cursor:"pointer"}).click(V.next)}if(A.browser.msie&&A.browser.version==7){this.style.msInterpolationMode="bicubic"}};aa.src=Y}else{A("<div />").load(Y,function(ac,ad){if(ad==="success"){Z(A(this))}else{Z(A("<p>Request unsuccessful.</p>"))}})}}}}};V.next=function(){z=z<c.length-1?z+1:0;V.load()};V.prev=function(){z=z>0?z-1:c.length-1;V.load()};V.slideshow=function(){var Y,X,Z="cboxSlideshow_";M.bind(K,function(){clearTimeout(X);M.unbind(s+" "+L+" click")});function aa(){M.text(Q.slideshowStop).bind(s,function(){X=setTimeout(V.next,Q.slideshowSpeed)}).bind(L,function(){clearTimeout(X)}).one("click",function(){Y();A(this).removeClass(m)});T.removeClass(Z+"off").addClass(Z+"on")}Y=function(){clearTimeout(X);M.text(Q.slideshowStart).unbind(s+" "+L).one("click",function(){aa();X=setTimeout(V.next,Q.slideshowSpeed);A(this).removeClass(m)});T.removeClass(Z+"on").addClass(Z+"off")};if(Q.slideshow&&c.length>1){if(Q.slideshowAuto){aa()}else{Y()}}};V.close=function(){A.event.trigger(K);u=R;A().unbind("keydown",J).unbind("keydown.cbox_close");P.unbind(O+" "+I);F.css({cursor:"auto"}).fadeOut("fast");T.stop(w,R).removeClass().fadeOut("fast",function(){C.remove();T.css({opacity:1});d.children().hide();A.event.trigger(l)})};V.element=function(){return n};V.settings=B;A(V.init)}(jQuery));


var parentGetTitreNav= OngletNavigateurs.getTitreNav;
OngletNavigateurs.getTitreNav= function(dir){
var nav= this.getCurItem();
var ne= nav.getIndex();
var o= nav.getCurItem();
var nse= o.getIndex()+ dir;
if(nse< 0){
ne--;
if(ne< 0){
return parentGetTitreNav.call(this, dir);}
o= nav.get(ne);
nse= o.getNbItems()- 1;} else if(nse>= o.getNbItems()){
ne++;
if(ne>= nav.getNbItems()){
return parentGetTitreNav.call(this, dir);}
o= nav.get(ne);
nse= 0;}
var so= o.get(nse);
var up=($j("<div>"+ o.contenu+"</div>" ).find("h3").html());
if(Langue.getId()== 1){
var images={"Vidéo"
:"video","Images"
:"images","Biographie"
:"biographie","Problématique"
:"problematique","Solution"
:"solution"}}
if(Langue.getId()== 2){
var images={"Summary"
:"video","Pictures"
:"images","Biography"
:"biographie","Issue"
:"problematique","Solution"
:"solution"}}
var imgStr='<span class="icon '+images[so.titre]+'" ></span>';
return(up ? up : o.titre)+"<br />"+((dir==1)?imgStr:"")+ so.titre+((dir==-1)?imgStr:"");}
OngletNavigateurs.updateFleche= function(){
var html='';
var p= this.getTitrePrev();
var n= this.getTitreNext();
html+='<p style="text-align:right;">';
if(p){
html+='<a class="titre-precedent" href="#" onclick="OngletNavigateurs.precedent(); return false;" >'+p+'</a>';}
html+='</p>';
if(p){
html+='<a id="precedant" title="'+_TR("all.precedent","Previous" )+'" href="javascript: OngletNavigateurs.precedent()">';} else{
html+='<a id="precedant" style="visibility:hidden" >';}
html+="</a>";
if(n){
html+='<a title="'+_TR("all.suivant","Next" )+'" id="suivant" href="#" onclick="OngletNavigateurs.suivant(); return false;">';} else{
html+='<a id="suivant"  style="visibility:hidden" >';}
html+="</a>";
if(n){
html+='<p style="text-align:left;"><a class="titre-suivant" href="#" onclick="OngletNavigateurs.suivant(); return false;">'+n+'</a></p>';}
if($w("navigation")){
$w("navigation").innerHTML= html;
Tracking.enable($j("#navigation"));
$j(".titre-suivant .icon, .titre-precedent .icon").css("display","block");
$j(".titre-suivant .icon").css("float","left");
$j(".titre-precedent .icon").css("float","right");
$j(".titre-suivant .icon").css({"margin-right":"10px","margin-top":"4px"});
$j(".titre-precedent .icon").css({"margin-left":"10px","margin-top":"4px"});
$j('.titre-suivant .video, .titre-precedent .video').css({"background-image"
:"url(/images/vidPrevNext.png)","height"
:"15px","width"
:"14px"});
$j('.titre-suivant .images, .titre-precedent .images').css({"background-image"
:"url(/images/galPrevNext.png)","height"
:"18px","width"
:"23px"});
$j('.titre-suivant .biographie, .titre-precedent .biographie').css({"background-image"
:"url(/images/bioPrevNext.png)","height"
:"15px","width"
:"12px"});
$j('.titre-suivant .problematique, .titre-precedent .problematique').css({"background-image"
:"url(/images/probPrevNext.png)","height"
:"15px","width"
:"16px"});
$j('.titre-suivant .solution, .titre-precedent .solution').css({"background-image"
:"url(/images/solPrevNext.png)","height"
:"18px","width"
:"18px"});}}
$j(function(){
function desactiver(){
$j(".brackRight").css('background','url(/images/borderMenuItem.png) no-repeat right 10px');
$j(".dernierBrack").css('background','');
$j(".brackLeft").css('background','');
$j(".activeBig").parent().css('background','');
$j(".activeBig").css('color','#ffffff');
$j(".minBtn").css('background-position','0px 0px');
$j(".activeBig").removeClass("activeBig");
$j(".activeMin").removeClass("activeMin");
$j(".premNiv p").text('');}
function overBig(){
var t= $j(this);
if(t.hasClass("activeBig")){
t.css('color','#ac9b25');} else{
t.css('color','#ac9b25');}}
function outBig(){
var t= $j(this);
if(t.hasClass("activeBig")){
t.css('color','#ac9b25');} else{
t.css('color','#ffffff');}}
function overMin(){
var t= $j(this);
var p= t.parent().parent().siblings("a");
if(p.hasClass("activeBig")){
if(t.hasClass("activeMin")){
t.css('background-position','0px -41px');} else{
t.css('background-position','0px -41px');}} else{
t.css('background-position','0px -41px');}}
function outMin(){
var t= $j(this);
var p= t.parent().parent().siblings("a");
if(p.hasClass("activeBig")){
if(t.hasClass("activeMin")){
t.css('background-position','0px -41px');} else{
if(p.parent().hasClass("btnNorm")){
t.css('background-position','0px 0px');} else{
t.css('background-position','0px -82px');}}} else{
t.css('background-position','0px 0px');}}
function updateSelection(){
desactiver();
var nav= OngletNavigateurs.getCurItem();
if(nav){
var index= nav.getIndex();
var s="onglet_"+ nav.getNom()+"_menu_item_";
var li= $j("#"+ s+ index);
var a= li.children("a");
a.addClass("activeBig").css('color','#ac9b25');
li.prev("li.brackLeft").css('background','url(/images/btns/bracketMenuSelGauche.png) no-repeat');
li.next("li.brackRight").css('background','url(/images/btns/bracketMenuSelDroite.png) no-repeat');
li.css('background','url(/images/btns/bgMenuSel.png) repeat-x');
li.find("ul li a").css('background-position','0px -82px');
updateSousSelection();
$j(".colorbox").colorbox({transition:'elastic', rel:'photo-group', current:'{current} de {total}'});}}
function updateSousSelection(){
var nav= OngletNavigateurs.getCurItem();
var o= nav.getCurItem();
var si= nav.getIndex();
var s="onglet_menu_item_"+ nav.getIndex()+"_";
var li= $j("#"+ s+ o.getIndex());
var a= li.children("a");
var so= o.getCurItem();
a.addClass("activeMin").css('background-position','0px -41px');
var classToDetect= a.attr("class");
var textField= a.parent().parent().siblings("p");
textField.text(so.titre);}
if( $j.browser.msie &&( parseFloat($j.browser.version)< 7 ) ){} else{
updateSelection();
var nav= OngletNavigateurs.getCurItem();
for(var i=0; i< nav.getNbItems(); i++){
var o= nav.get(i);
o.onShow= updateSelection;
o.onChange= updateSelection;}
$j(".bigBtn").hover(overBig, outBig);
$j(".minBtn").hover(overMin, outMin);
if( $j.browser.msie &&( parseFloat($j.browser.version)< 7 ) ){} else{
$j(window).keydown(function(e){
if($j("#cboxOverlay:visible").length==0){
switch(e.keyCode){
case 37:
OngletNavigateurs.precedent()
break;
case 39:
OngletNavigateurs.suivant()
break;}}});}
DynamicZone.prototype.customFix= function(node){
enableOvers($j(node));}}});
function setOnglet(nid, oid, sousid){
if( $j.browser.msie &&( parseFloat($j.browser.version)< 7 ) ){} else{
OngletNavigateurs.set(nid, oid, sousid);
return false;}}
if( $j.browser.msie &&( parseFloat($j.browser.version)< 7 ) ){
OngletNavigateurs.enabled= false;}
function popupContact(pageId){
$j('body').append('<div id="overlay"></div>');
$j('#overlay').css({
position:'absolute' ,
top:'0' ,
left:'0' ,
zIndex:'90' ,
opacity:'0' ,
background:'#000' ,
width:'100%' ,
height: $j(document).height()+'px'}).fadeTo(600, 0.75,function(){
$j('#formContact .b-fermer').click(function(){
$j('#formContact .b-fermer').hide();
$j('#formContact').html('');
$j('#formContact').hide();
$j('#overlay').fadeOut(800, function(){
$j('#formContact .b-fermer').unbind();
$j('#overlay').remove();
$j('#formContact').remove();
$j.clearMessages();});});});
$j('body').append('<div id="formContact"></div>');
var ov= $j('#formContact').css({zIndex:'91'}).center(true);
var form='';
form+='<h3 class="typeface-js">Contacter cet intervenant</h3>';
form+='<form id="comm_form" action="javascript: Intervenant.envoyer()" >';
form+='<ol>';
form+='<li class="formItem">';
form+='<label for="auteur">'+_TR("con.votre_nom","Votre nom :" )+'</label><input id="auteur" name="auteur" type="text" maxlength="45" />';
form+='<input type="hidden" name="pageId" id="pageId" value="'+pageId+'" />';
form+='</li>';
form+='<li class="formItem"><label for="courriel">'+_TR("all.courriel","Courriel" )+' :</label><input type="text" id="courriel" name="courriel" /></li>';
form+='<li class="formItem"><label id="labelComm" for="texte">'+_TR("adc.serie.comm","Commentaire" )+' :</label><textarea id="texte" name="texte"></textarea></li>';
form+='<li><input id="sendComm" type="submit" /></li>';
form+='</ol>';
form+='<p id="com_msg_succes" style="display: none; margin: 20px; font-size: 11px; text-align: center;">'+ _TR("commentaire.envoye","Votre commentaire a été envoyé." )+'</p>';
form+='</form>';
form+='<a class="b-fermer" href="#"/>';
ov.html(form);}
var Intervenant={
working: false,
envoyer: function(){
if(!this.working){
$j.clearMessages();
this.working= true;
var data= formToJSON($w("comm_form"));
data.action="envoyer";
data.plugin="contacterintervenant";
$j.get("/plugin.php", data, function(r){
Intervenant.working= false;
if(r.succes=="true" ){
$j("#comm_form ol").hide();
$j("#com_msg_succes").show();} else{
$j.each(r.erreurs, function(i, n){
$j("#"+n[0]).message(n[3]);});}},"json" );}}};