function insertAfter(parent,node,referenceNode){parent.insertBefore(node,referenceNode.nextSibling);}function getElementsByClass(searchClass,node,tag){if(node==null)node=document;if(tag==null)tag='*';return getElementsByClassName(node,tag,searchClass);}function isClass(element,classe){return hasClass(element,classe);}function whichClass(element,classes){var s=" "+element.className+" ";for(var i=0;i=0)return i;return-1;}function hasClass(node,className){var haystack=node.className;if(!haystack)return false;if(className===haystack){return true;}return(" "+haystack+" ").indexOf(" "+className+" ")>-1;}function addClass(node,className){if(hasClass(node,className)){return false;}var cache=node.className;if(cache){node.className=cache+' '+className;}else{node.className=className;}return true;}function removeClass(node,className){if(!hasClass(node,className)){return false;}node.className=eregReplace('(^|\\s+)'+className+'($|\\s+)',' ',node. className);return true;}function eregReplace(search,replace,subject){return subject.replace(new RegExp(search,'g'),replace);}function getCookieVal(name){var cookiePos=document.cookie.indexOf(name+"=");var cookieValue=false;if(cookiePos>-1){cookiePos+=name.length+1;var endPos=document.cookie.indexOf(";",cookiePos);if(endPos>-1)cookieValue=document.cookie.substring(cookiePos,endPos);else cookieValue=document.cookie.substring(cookiePos);}return cookieValue;}function getTextContent(oNode){if(!oNode)return null;if(typeof(oNode.textContent)!="undefined"){return oNode.textContent;}switch(oNode.nodeType){case 3:case 4:return oNode.nodeValue;break;case 7:case 8:if(getTextContent.caller!=getTextContent){return oNode.nodeValue;}break;case 9:case 10:case 12:return null;break;}var _textContent="";oNode=oNode.firstChild;while(oNode){_textContent+=getTextContent(oNode);oNode=oNode.nextSibling;}return _textContent;}if(!Array.prototype.indexOf){Array.prototype.indexOf=function(obj){for(var i=0;i','"');var entities=new Array('amp','lt','gt','quot');var string=this;for(var i=0;i';insertAfter(h1.parentNode,avert,h1);}}}}addOnloadHook(rewritePageH1);function IconesDeTitre(){var h1=document.getElementById('firstHeading');if(!h1)h1=document.getElementsByTagName('h1')[0];if(!h1)return;var icones=getElementsByClass("icone_de_titre",document,"div");for(var j=icones.length;j>0;--j){icones[j-1].style.display="block";if((skin=="modern")||(skin=="vector")){icones[j-1].style.marginTop="0em";}h1.parentNode.insertBefore(icones[j-1],h1);}}addOnloadHook(IconesDeTitre);function moveCoord(){var h1=document.getElementById('firstHeading');if(!h1)h1=document.getElementsByTagName('h1')[0];var coord=document.getElementById('coordinates');if(!coord||!h1)return;coord.id="coordinates-title";h1.parentNode.insertBefore(coord,h1);}addOnloadHook(moveCoord);if(typeof(MoveResizeAbsolute_AddMoveArea)!="function")obtenir('MoveResizeAbsolute');function openStreetMap_Init(){var c=document.getElementById('coordinates-title');if(!c)return;var a=c.getElementsByTagName('a');var geohack=false;for(var i=0;iPalette_max&&hasClass(Table,"autocollapse")))Palette_toggle(index);}}addOnloadHook(Palette);var BoiteDeroulante_Enrouler='[masquer]';var BoiteDeroulante_Derouler='[afficher]';var BoiteDeroulante_max=0;var BoiteDeroulante_index=-1;function BoiteDeroulante_toggle(indexBoiteDeroulante){var NavFrame=document.getElementById("NavFrame"+indexBoiteDeroulante);var NavToggle=document.getElementById("NavToggle"+indexBoiteDeroulante);var CaptionContainer=document.getElementById("NavCaption"+indexBoiteDeroulante);if(!NavFrame||!NavToggle||!CaptionContainer)return;var caption=new Array();var CaptionSpans=CaptionContainer.getElementsByTagName('span');caption[0]=CaptionSpans[0].innerHTML;caption[1]=CaptionSpans[1].innerHTML;var Contents=NavFrame.getElementsByTagName('div');if(NavToggle.innerHTML==caption[1]){NavToggle.innerHTML=caption[0];for(var a=0,m=Contents.length;a'+Derouler+''+Enrouler+'';NavFrame.appendChild(CaptionContainer);var NavToggle=document.createElement("a");NavToggle.className='NavToggle';NavToggle.id='NavToggle'+BoiteDeroulante_index;NavToggle.href='javascript:BoiteDeroulante_toggle('+BoiteDeroulante_index+');';var NavToggleText=document.createTextNode(Enrouler);NavToggle.appendChild(NavToggleText); NavFrame.insertBefore(NavToggle,NavFrame.firstChild);NavFrame.id='NavFrame'+BoiteDeroulante_index;if(BoiteDeroulante_max<=NavFrameCount){BoiteDeroulante_toggle(BoiteDeroulante_index);}}}}addOnloadHook(BoiteDeroulante);function toggleImage(group,remindex,shwindex){document.getElementById('ImageGroupsGr'+group+'Im'+remindex).style.display='none';document.getElementById('ImageGroupsGr'+group+'Im'+shwindex).style.display='block';}function imageGroup(cible){if(/^[^#]*[?&](%20)*printable=[^&#]/.test(document.URL)){return;}var conteneur;if(cible){conteneur=cible;}else{conteneur=document.getElementById('bodyContent');if(!conteneur){conteneur=document.getElementById('mw_contentholder');}if(!conteneur){conteneur=document.getElementById('article');}if(!conteneur){return;}}var jGroups=$(conteneur).find('div.ImageGroup');var i,il,j,jl;var jUnits;var currentimage;for(i=0,il=jGroups.length;i0){leftArrow.alt='Précédent';var leftLink=document.createElement('a');leftLink.href='javascript:toggleImage('+i+','+j+','+(j-1)+');';leftLink.title='Image précédente';leftLink.appendChild(leftArrow);imghead.appendChild(leftLink);}else{leftArrow.style.visibility='hidden';imghead.appendChild(leftArrow);}$(imghead).append(' ('+(j+1)+'/'+jl+') ');var rightArrow=document.createElement('img');rightArrow.src='//upload.wikimedia.org/wikipedia/commons/thumb/1/10/ArrowRightNavbox.svg/12px-ArrowRightNavbox.svg.png';rightArrow.width='12';rightArrow.height='12';if(j0){sortValue+=dataSortValue(elChild);}else{sortValue+=elChild.textContent||elChild.innerText||'';}}return sortValue;}function Add_dataSortValue(){var i,j,cellNodesList,sortTables=getElementsByClassName(document.body,'table',"sortable");if(!sortTables||getElementsByClassName(document.body,'span' ,"datasortkey").length===0){return;}for(i=0;i0){cellNodesList[j].setAttribute("data-sort-value",dataSortValue(cellNodesList[j]));}}cellNodesList=sortTables[i].getElementsByTagName('th');for(j=0;j0){cellNodesList[j].setAttribute("data-sort-value",dataSortValue(cellNodesList[j]));}}}}addOnloadHook(Add_dataSortValue);var Diaporama=new Object();Diaporama.Params=new Object();Diaporama.Fonctions=new Object();Diaporama.Params.DiaporamaIndex=0;Diaporama.Params.ImageDelay=1;Diaporama.Params.Paused=new Array();Diaporama.Params.Visible=new Array();Diaporama.Params.Length=new Array();Diaporama.Params.Delay=new Array();Diaporama.Params.Timeout=new Array();Diaporama.Fonctions.Init=function(node){if(!node)node= document;var Diaporamas=getElementsByClassName(node,"div","diaporama");for(var a=0,l=Diaporamas.length;a0)Diaporama.Params.Delay[index]=ParamDelay;}Diaporama.Fonctions.ShowThisDiapo(index,0);var ControlLinks=DiaporamaControl.getElementsByTagName("a");ControlLinks[0].firstChild.id="DiaporamaPlay"+index;ControlLinks[0].href="javascript:Diaporama.Fonctions.Play("+index+");";ControlLinks[1].firstChild.id="DiaporamaPause"+index;ControlLinks[1].href="javascript:Diaporama.Fonctions.Pause("+index+");";ControlLinks[2].firstChild.id="DiaporamaStop"+index;ControlLinks[2].href="javascript:Diaporama.Fonctions.Stop("+index+");";ControlLinks[3].firstChild.id="DiaporamaLast"+index;ControlLinks[3].href="javascript:Diaporama.Fonctions.ToggleDiapo("+index+",-1);";ControlLinks[4 ].firstChild.id="DiaporamaNext"+index;ControlLinks[4].href="javascript:Diaporama.Fonctions.ToggleDiapo("+index+", 1);";ControlLinks[5].parentNode.appendChild(Diaporama.Fonctions.CreateSelect(index,ControlLinks[5].title));ControlLinks[5].parentNode.removeChild(ControlLinks[5]);for(var e=0,t=ControlLinks.length;e100)Percent=100;var DiaporamaControl=document.getElementById("DiaporamaControl_"+index);var DiaporamaScrollBar=getElementsByClassName(DiaporamaControl,"div","ScrollBar")[0];DiaporamaScrollBar.style.width=Percent+"%";} Diaporama.Fonctions.Onclick=function(Link){var Image=Link.getElementsByTagName('img')[0];Image.style.backgroundColor="gray";} Diaporama.Fonctions.Offclick=function(Link,index){var Span=Link.parentNode;var SpanClass=Span.className;var Image=Link.getElementsByTagName('img')[0];var DiapoState=Diaporama.Params.Paused[index];if((hasClass("Play",Span)&&DiapoState==false)||((hasClass("Pause",Span)||hasClass("Stop",Span))&&DiapoState==true)){Image.style.backgroundColor="silver";}else{Image.style.backgroundColor="white";}} Diaporama.Fonctions.getIndex=function(Element){return parseInt(Element.id.replace(/[^0-9]/g,""));} $(document).ready(function($){Diaporama.Fonctions.Init();});function lienAdQouBAouPdQ(){if(document.getElementById("p-lang")){var InterwikiLinks=document.getElementById("p-lang").getElementsByTagName("li");for(var i=0;i'+helpPageURL.innerHTML+'';helpPage.style.display="none";}}}catch(e){}}addOnloadHook(rewritePageH1bis);function addcache(element){if(typeof no_external_cache!=="undefined"&&no_external_cache){return;}var liens=element?$(element).find('ol.references').find('a.external'):$('ol.references').find('a.external');for(var i=0,l=liens.length;i-1||chemin.indexOf("http://web.archive.org/web/")>-1||chemin.indexOf("wikipedia.org")>-1||chemin.indexOf("wikimedia.org")>-1||chemin. indexOf("stable.toolserver.org")>-1){continue;}var element_parent=lien_en_cours.parentNode;if(hasClass(element_parent,"noarchive")){continue;}var titre=getTextContent(lien_en_cours);var last=document.createElement("small");last.className="cachelinks";last.appendChild(document.createTextNode("\u00a0["));var link=document.createElement("a");link.setAttribute("href","http://archive.wikiwix.com/cache/?url="+chemin.replace(/%/g,"%25").replace(/&/g,"%26")+"&title="+encodeURIComponent(titre));link.setAttribute("title","archive de "+titre);link.appendChild(document.createTextNode("archive"));last.appendChild(link);last.appendChild(document.createTextNode("]"));element_parent.insertBefore(last,lien_en_cours.nextSibling);}}if(mw.config.get('wgNamespaceNumber')===0){addOnloadHook(addcache);}$(document).ready(function($){$('.sortable th').attr('tabindex',0).keypress(function(event){if(event.which==13){$(this).click()}});if($.browser.msie&&$.browser.version<9){$( 'table.alternance tr:nth-child(odd), table.alternance2 tr:nth-child(odd)').addClass('odd');}});if(mw.config.get('wgFormattedNamespaces')[mw.config.get('wgNamespaceNumber')]+":"+mw.config.get('wgTitle')==mw.config.get('wgMainPageTitle')){function mainPageTransform(){$('#ca-nstab-project a').text('Accueil');addPortletLink('p-lang','//www.wikipedia.org/','Liste complète','interwiki-listecomplete','Liste complète des Wikipédias');}addOnloadHook(mainPageTransform);}if(mw.config.get('wgNamespaceNumber')==-1){function externalSearchEngines(){if(typeof SpecialSearchEnhanced2Disabled!='undefined')return;if(mw.config.get('wgCanonicalSpecialPageName')!="Search")return;var mainNode=document.getElementById("powersearch");if(!mainNode)mainNode=document.getElementById("search");if(!mainNode)return;var beforeNode=document.getElementById("mw-search-top-table");if(!beforeNode)return;beforeNode=beforeNode.nextSibling;if(!beforeNode)return;var firstEngine="mediawiki";var choices=document.createElement( "div");choices.setAttribute("id","searchengineChoices");choices.style.textAlign="center";var lsearchbox=document.getElementById("searchText");if(!lsearchbox)return;var initValue=lsearchbox.value;var space="";for(var id in searchEngines){var engine=searchEngines[id];if(engine.ShortName){if(space)choices.appendChild(space);space=document.createTextNode(" ");var attr={type:"radio",name:"searchengineselect",value:id,onFocus:"changeSearchEngine(this.value)",id:"searchengineRadio-"+id};var html="'+''+''+''+''+''+'';specialBib.innerHTML=specialBib.innerHTML+menu;chooseBibSubset(0);}function chooseBibSubset(s){var l=document.getElementsByTagName('div');for(var i=0;i1){TempsRestant=TempsRestant+TempsRestantJ+" jours ";}TempsRestant=TempsRestant+TempsRestantH+" h "+TempsRestantM+" min "+TempsRestantS+" s";document.getElementById("rebours").innerHTML=TempsRestant;setTimeout("Rebours()",1000)}}catch(e){}}addOnloadHook(Rebours);function LastModCopy(){var LastModSpan=document.getElementById('lastmod');if(!LastModSpan)LastModSpan=document.getElementById('footer-info-lastmod');var LastModBandeau=document.getElementById("lastmodcopy");if((!LastModSpan)||(!LastModBandeau))return;LastModBandeau.innerHTML=LastModSpan.innerHTML;} addOnloadHook(LastModCopy);function getVarValue(nom_variable,val_defaut){var result=null;try{result=eval(nom_variable.toString());}catch(e){result=val_defaut;}return(result);}function getStrDateToday(format){var str_mois=new Array();with(str_mois){push("janvier");push("février");push("mars");push("avril");push("mai");push("juin");push("juillet");push("août");push("septembre");push("octobre");push("novembre");push("décembre");}var today=new Date();var day=today.getDate();var year=today.getYear();if(year<2000){year=year+1900;}var str_date=format;var regex=/j/gi;str_date=str_date.replace(regex,day.toString());regex=/a/gi;str_date=str_date.replace(regex,year.toString());regex=/m/gi;str_date=str_date.replace(regex,str_mois[today.getMonth()]);return(str_date);}function urgentSynchroneJsLoad(){if(document.getElementById('urgentsynchronejs')){jsname="MediaWiki:Common.js/"+document.getElementById('urgentsynchronejs').title;importScript(jsname);}}addOnloadHook(urgentSynchroneJsLoad);function createAdressNode(href,texte,onclick){var a=document.createElement('a') a.href=href a.appendChild(document.createTextNode(texte)) if(arguments.length==3){a.setAttribute("onclick",onclick)}return a}function setCookie(nom,valeur,duree){var expDate=new Date() expDate.setTime(expDate.getTime()+(duree*24*60*60*1000)) document.cookie=nom+"="+escape(valeur)+";expires="+expDate.toGMTString()+";path=/"};mw.loader.state({"site":"ready"}); /* cache key: frwiki:resourceloader:filter:minify-js:7:7513f7210519344ac78984c4aaf89c80 */