var splash_lang=new Array();splash_lang['fr']="Français";splash_lang['es']="Español";splash_lang['de']="Deutsch";splash_lang['en']="English";splash_lang['nav_ie']="Internet Explorer";splash_lang['nav_firefox']="Mozilla Firefox";splash_lang['nav_opera']="Opera";splash_lang['nav_konqueror']="Konqueror";splash_lang['nav_safari']="Safari";splash_lang['os_windows']="Microsoft Windows";splash_lang['os_mac']="MacOS";splash_lang['os_linux']="Linux";splash_lang['os_freebsd']="FreeBSD";splash_lang['os_sun']="SunOS";splash_lang['language1_fr']="Language détecté";splash_lang['language1_es']="Lenguaje detectado";splash_lang['language1_de']="Ermittelte Sprache";splash_lang['language1_en']="Detected language";splash_lang['language2_en']="Unsupported language detected, switched to english automaticaly.<br>";splash_lang['language3_fr']="Language choisi par l'utilisateur";splash_lang['language3_es']="Lenguaje elegido por el usario";splash_lang['language3_de']="Sprache gewählt vom Benutzer";splash_lang['language3_en']="Language chosen by user";splash_lang['os1_fr']="Système d'exploitation détecté";splash_lang['os1_es']="Sistema operativo detectado";splash_lang['os1_de']="Ermitteltes Betriebssystem";splash_lang['os1_en']="Detected operating system";splash_lang['unknown_fr']="inconnu";splash_lang['unknown_es']="desconosido";splash_lang['unknown_de']="unbekannt";splash_lang['unknown_en']="unknown";splash_lang['browser1_fr']="Navigateur détecté";splash_lang['browser1_es']="Navigator detectado";splash_lang['browser1_de']="Ermittelte Datenbanksuchroutine";splash_lang['browser1_en']="Detected browser";splash_lang['flash1_fr']="Version Flash détectée";splash_lang['flash1_es']="Versiòn Flash detectado";splash_lang['flash1_de']="Ermittelte Flash Version";splash_lang['flash1_en']="Detected Flash version";splash_lang['detectOS_fr']="Détection du systeme d'exploitation";splash_lang['detectOS_es']="Détecciòn del systema operativo";splash_lang['detectOS_de']="Betriebssystemabfragung";splash_lang['detectOS_en']="OS/plateform detection";splash_lang['detectBR_fr']="Détection navigateur";splash_lang['detectBR_es']="Détecciòn del navigator";splash_lang['detectBR_de']="Ermitteln von Datenbanksuchroutine";splash_lang['detectBR_en']="Detecting browser";splash_lang['detectFL_fr']="Détection du plugin Flash";splash_lang['detectFL_es']="Détecciòn del extensiòn flash";splash_lang['detectFL_de']="Ermitteln flash steckbares";splash_lang['detectFL_en']="Detecting flash plugin";splash_lang['erreurFL_fr']="Erreure du plugin flash détectée";splash_lang['erreurFL_es']="Fallo del extensiòn flash";splash_lang['erreurFL_de']="Flash steckbare Störung ermittelte";splash_lang['erreurFL_en']="Flash plugin error detected";splash_lang['loadingpic_fr']="Chargement des images";splash_lang['loadingpic_es']="Cargando las ìmagenes";splash_lang['loadingpic_de']="Ladenabbildungen";splash_lang['loadingpic_en']="Loading pictures";splash_lang['Init_fr']="Initialisation du site";splash_lang['Init_es']="Iniciando";splash_lang['Init_de']="Initialisierung";splash_lang['Init_en']="Initialising";splash_lang['SpCk_fr']="Informations supplémentaires";splash_lang['SpCk_es']="Informaciones suplementario";splash_lang['SpCk_de']="Beginnen Sie nach Abfragungen";splash_lang['SpCk_en']="Additional informations";var pageLang=new Array();pageLang['loading_fr']="Chargement";pageLang['loading_en']="Loading";pageLang['loading_de']="Laden";pageLang['loading_es']="Cargando";function resizer(){if(imgViewer){imgViewer.refreshImg();}}var agt=navigator.userAgent.toLowerCase();var is_major=parseInt(navigator.appVersion);var is_minor=parseFloat(navigator.appVersion);var is_nav=((agt.indexOf('mozilla')!=-1)&&(agt.indexOf('spoofer')==-1)
&&(agt.indexOf('compatible')== -1)&&(agt.indexOf('opera')==-1)
&&(agt.indexOf('webtv')==-1));var is_nav2=(is_nav&&(is_major==2));var is_nav3=(is_nav&&(is_major==3));var is_nav4=(is_nav&&(is_major==4));var is_nav4up=(is_nav&&(is_major>=4));var is_navonly=(is_nav&&((agt.indexOf(";nav")!= -1)||(agt.indexOf("; nav")!= -1)));var is_nav5=(is_nav&&(is_major==5));var is_nav5up=(is_nav&&(is_major>=5));var is_ie=(agt.indexOf("msie")!= -1);var is_ie3=(is_ie&&(is_major<4));var is_ie4=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")==-1));var is_ie4up=(is_ie&&(is_major>=4));var is_ie5=(is_ie&&(is_major==4)&&(agt.indexOf("msie 5.0")!=-1));var is_ie5up=(is_ie&&!is_ie3&&!is_ie4);var is_ie7=(is_ie&&(is_major==4)&&(agt.indexOf("msie 7.0")!=-1));var is_aol=(agt.indexOf("aol")!= -1);var is_aol3=(is_aol&&is_ie3);var is_aol4=(is_aol&&is_ie4);var is_opera=(agt.indexOf("opera")!= -1);var is_webtv=(agt.indexOf("webtv")!= -1);var is_safari=(agt.indexOf("safari")!= -1);var is_konqueror=(agt.indexOf("konqueror")!= -1);var is_firefox=(agt.indexOf("firefox")!= -1);var is_js;if(is_nav2||is_ie3)is_js=1.0;else if(is_nav3||is_opera)is_js=1.1;else if((is_nav4&&(is_minor<=4.05))||is_ie4)is_js=1.2;else if((is_nav4&&(is_minor>4.05))||is_ie5)is_js=1.3;else if(is_nav5)is_js=1.4;else if(is_nav&&(is_major>5))is_js=1.4;else if(is_ie&&(is_major>5))is_js=1.3;else is_js=0.0;var is_win=((agt.indexOf("win")!=-1)||(agt.indexOf("16bit")!=-1));var is_win95=((agt.indexOf("win95")!=-1)||(agt.indexOf("windows 95")!=-1));var is_win16=((agt.indexOf("win16")!=-1)||(agt.indexOf("16bit")!=-1)||(agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("windows 16-bit")!=-1));var is_win31=((agt.indexOf("windows 3.1")!=-1)||(agt.indexOf("win16")!=-1)||(agt.indexOf("windows 16-bit")!=-1));var is_win98=((agt.indexOf("win98")!=-1)||(agt.indexOf("windows 98")!=-1));var is_winnt=((agt.indexOf("winnt")!=-1)||(agt.indexOf("windows nt")!=-1));var is_win32=(is_win95||is_winnt||is_win98||((is_major>=4)&&(navigator.platform=="Win32"))||(agt.indexOf("win32")!=-1)||(agt.indexOf("32bit")!=-1));var is_os2=((agt.indexOf("os/2")!=-1)||(navigator.appVersion.indexOf("OS/2")!=-1)||(agt.indexOf("ibm-webexplorer")!=-1));var is_mac=(agt.indexOf("mac")!=-1);var is_mac68k=(is_mac&&((agt.indexOf("68k")!=-1)||(agt.indexOf("68000")!=-1)));var is_macppc=(is_mac&&((agt.indexOf("ppc")!=-1)||(agt.indexOf("powerpc")!=-1)));var is_sun=(agt.indexOf("sunos")!=-1);var is_sun4=(agt.indexOf("sunos 4")!=-1);var is_sun5=(agt.indexOf("sunos 5")!=-1);var is_suni86=(is_sun&&(agt.indexOf("i86")!=-1));var is_irix=(agt.indexOf("irix")!=-1);var is_irix5=(agt.indexOf("irix 5")!=-1);var is_irix6=((agt.indexOf("irix 6")!=-1)||(agt.indexOf("irix6")!=-1));var is_hpux=(agt.indexOf("hp-ux")!=-1);var is_hpux9=(is_hpux&&(agt.indexOf("09.")!=-1));var is_hpux10=(is_hpux&&(agt.indexOf("10.")!=-1));var is_aix=(agt.indexOf("aix")!=-1);var is_aix1=(agt.indexOf("aix 1")!=-1);var is_aix2=(agt.indexOf("aix 2")!=-1);var is_aix3=(agt.indexOf("aix 3")!=-1);var is_aix4=(agt.indexOf("aix 4")!=-1);var is_linux=(agt.indexOf("inux")!=-1);var is_sco=(agt.indexOf("sco")!=-1)||(agt.indexOf("unix_sv")!=-1);var is_unixware=(agt.indexOf("unix_system_v")!=-1);var is_mpras=(agt.indexOf("ncr")!=-1);var is_reliant=(agt.indexOf("reliantunix")!=-1);var is_dec=((agt.indexOf("dec")!=-1)||(agt.indexOf("osf1")!=-1)||(agt.indexOf("dec_alpha")!=-1)||(agt.indexOf("alphaserver")!=-1)||(agt.indexOf("ultrix")!=-1)||(agt.indexOf("alphastation")!=-1));var is_sinix=(agt.indexOf("sinix")!=-1);var is_freebsd=(agt.indexOf("freebsd")!=-1);var is_bsd=(agt.indexOf("bsd")!=-1);var is_unix=((agt.indexOf("x11")!=-1)||is_sun||is_irix||is_hpux||is_sco||is_unixware||is_mpras||is_reliant||is_dec||is_sinix||is_aix||is_linux||is_bsd||is_freebsd);var is_vms=((agt.indexOf("vax")!=-1)||(agt.indexOf("openvms")!=-1));var detectTimeout;var defaultTimeout=200;window.onload=function(){if(!document.all||is_opera){document.getElementById("FFB").style.border="1px solid transparent";}show_splash();mouseLoading.remove();setSplashText("Detecting language...");detectTimeout=setTimeout(detect_lang,defaultTimeout);if(document.all&&!is_opera){document.body.click();}window.onload=null;};function show_splash(){var splashCont=document.getElementById("splashContainer");splashCont.style.position="relative";splashCont.style.visibility="visible";}function setSplashText(Text){Obj=document.getElementById("splashText");Obj.innerHTML=Text;}var nextAction=false;function loadLangIcon(){if(currentLang!="fr"&&currentLang!="de"&&currentLang!="en"&&currentLang!="es"){document.write('<img src="splashscreen/icones/language_exclam.png" />');}else{document.write('<img src="splashscreen/icones/language_'+currentLang+'.png" />');}}function splash_set_language(Lang){currentLang=Lang;document.getElementById("sIcoLang").innerHTML='<img src="splashscreen/icones/language_'+currentLang+'.png" width="70" height="96" />';document.getElementById("repLangImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_ok.png">';document.getElementById("repLang").innerHTML=splash_lang['language3_'+currentLang]+" : "+splash_lang[currentLang];ckbx.setText(splash_lang['SpCk_'+currentLang]);ckbx.swap();eval(nextAction);}function detect_lang(){Cont=document.getElementById("sIcoLang");if(currentLang!="fr"&&currentLang!="en"&&currentLang!="es"){Cont.innerHTML='<img src="splashscreen/icones/language_exclam.png" width="70" height="96" />';document.getElementById("repLangImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_nok.png">';document.getElementById("repLang").innerHTML=splash_lang['language2_en']+"<span id='langSel'></span>";nextAction="detectTimeout = setTimeout("+detect_Os+", "+defaultTimeout+"); setSplashText(splash_lang['detectOS_'+currentLang]+'...');";dynSel=new dynSelect("langSel","langsel_","splashscreen/images/selbox/country_bottom.png","153");dynSel.setText("Choose your language");dynSel.addItem("English","images/icones/flags/us.jpg","splash_set_language('en');");dynSel.addItem("Español","images/icones/flags/es.jpg","splash_set_language('es');");dynSel.addItem("Français","images/icones/flags/fr.jpg","splash_set_language('fr');");var idLang;if(currentLang=="fr"){idLang="3";}else if(currentLang=="en"){idLang="0";}else if(currentLang=="de"){idLang="2";}else if(currentLang=="es"){idLang="1";}dynSel.init();currentLang="en";ckbx.setText(splash_lang['SpCk_'+currentLang]);ckbx.swap();}else{Cont.innerHTML='<img src="splashscreen/icones/language_'+currentLang+'.png" width="70" height="96" />';document.getElementById("repLangImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_ok.png">';document.getElementById("repLang").innerHTML=splash_lang['language1_'+currentLang]+" : "+splash_lang[currentLang];clearTimeout(detectTimeout);ckbx.setText(splash_lang['SpCk_'+currentLang]);setSplashText(splash_lang['detectOS_'+currentLang]+"...");detectTimeout=setTimeout(detect_Os,defaultTimeout);}return true;}function loadOsIcon(){if(is_win){document.write('<img src="splashscreen/icones/windows.png" />');}else if(is_mac){document.write('<img src="splashscreen/icones/mac.png" />');}else if(is_linux){document.write('<img src="splashscreen/icones/linux.png" />');}else if(is_freebsd){document.write('<img src="splashscreen/icones/freebsd.png" />');}else if(is_sun){document.write('<img src="splashscreen/icones/sun.png" />');}else document.write('<img src="splashscreen/icones/os_interro.png" />');}function detect_Os(){Cont=document.getElementById("sIcoOs");var Os;if(is_win){Os="windows";}else if(is_mac){Os="mac";}else if(is_linux){Os="linux";}else if(is_freebsd){Os="freebsd";}else if(is_sun){Os="sun";}else{Os="os_interro";document.getElementById("repOsImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_nok.png">';document.getElementById("repOs").innerHTML=splash_lang['os1_'+currentLang]+" : "+splash_lang['unknown_'+currentLang];}if(Os!="os_interro"){document.getElementById("repOsImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_ok.png">';document.getElementById("repOs").innerHTML=splash_lang['os1_'+currentLang]+" : "+splash_lang['os_'+Os];}Cont.innerHTML='<img src="splashscreen/icones/'+Os+'.png" width="70" height="96" />';clearTimeout(detectTimeout);setSplashText(splash_lang['detectBR_'+currentLang]+"...");detectTimeout=setTimeout(detect_Br,defaultTimeout);return true;}function loadBrIcon(){if(is_ie){document.write('<img src="splashscreen/icones/ie.png" />');}else if(is_firefox){document.write('<img src="splashscreen/icones/firefox.png" />');}else if(is_opera){document.write('<img src="splashscreen/icones/opera.png" />');}else if(is_safari){document.write('<img src="splashscreen/icones/safari.png" />');}else if(is_konqueror){document.write('<img src="splashscreen/icones/konqueror.png" />');}else{document.write('<img src="splashscreen/icones/os_interro.png" />');}}function detect_Br(){Cont=document.getElementById("sIcoBr");var Browser;if(is_ie){Browser="ie";}else if(is_nav){Browser="firefox";}else if(is_opera){Browser="opera";}else if(is_safari){Browser="safari";}else if(is_konqueror){Browser="konqueror";}else{Browser="os_interro";document.getElementById("repNavImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_nok.png">';document.getElementById("repNav").innerHTML=splash_lang['browser1_'+currentLang]+" : "+splash_lang['unknown_'+currentLang];}if(Browser!="os_interro"){document.getElementById("repNavImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_ok.png">';document.getElementById("repNav").innerHTML=splash_lang['browser1_'+currentLang]+" : "+splash_lang['nav_'+Browser];}Cont.innerHTML='<img src="splashscreen/icones/'+Browser+'.png" width="70" height="96" />';clearTimeout(detectTimeout);setSplashText(splash_lang['detectFL_'+currentLang]+"...");detectTimeout=setTimeout(detect_Fl,defaultTimeout);return true;}var min_Flash=7;function loadFlIcon(){var version=com.deconcept.FlashObjectUtil.getPlayerVersion();var is_flash="flash_exclam";if(version['major']>=min_Flash){is_flash="flash";}document.write('<img src="splashscreen/icones/'+is_flash+'.png" />');if(is_ie){document.write('<img src="splashscreen/icones/flash.png" />');}}function detect_Fl(){Cont=document.getElementById("sIcoFl");var version=com.deconcept.FlashObjectUtil.getPlayerVersion();var is_flash="flash_exclam";if(version['major']>=min_Flash){is_flash="flash";}Cont.innerHTML='<img src="splashscreen/icones/'+is_flash+'.png" width="70" height="96" />';if(version['major']>=min_Flash){clearTimeout(detectTimeout);setSplashText(splash_lang['loadingpic_'+currentLang]+"...");detectTimeout=setTimeout(wInitLoad,defaultTimeout);document.getElementById("repFlashImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_ok.png">';document.getElementById("repFlash").innerHTML=splash_lang['flash1_'+currentLang]+" : "+version['major']+"."+version['minor']+"."+version['rev'];}else{clearTimeout(detectTimeout);nextAction="setSplashText(splash_lang['loadingpic_'+currentLang]+'...'); setTimeout(wInitLoad, defaultTimeout);";var error="";if(version['major']>0){error="v"+version['major']+"."+version['minor']+"."+version['rev']+" detected, need "+min_Flash+' at least, <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="blank">Upgrade Flash Player</a>';}else{error='no flash plugin, <a href="http://www.macromedia.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash" target="blank">Get Flash Player</a>';}setSplashText(splash_lang['erreurFL_'+currentLang]+"...");document.getElementById("repFlashImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_nok.png">';if(is_ie){error+=", then refresh this page.";}document.getElementById("repFlash").innerHTML=error;if(is_ie||(is_firefox&&(is_win||is_mac))){document.getElementById("flDetectDiv").innerHTML='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="32" height="32"> <param name="movie" value="flash/empty.swf" /> <param name="quality" value="high" /> <embed src="flash/empty.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="32" height="32"></embed></object>';}ckbx.swap();}return true;}function flash_refresh_page(){var version=com.deconcept.FlashObjectUtil.getPlayerVersion();document.getElementById("sIcoFl").innerHTML='<img src="splashscreen/icones/flash.png" width="70" height="96" />';document.getElementById("repFlashImg").innerHTML='<img width="16" height="16" border="0" src="splashscreen/images/repport_ok.png">';document.getElementById("repFlash").innerHTML=splash_lang['flash1_'+currentLang]+" : "+version['major']+"."+version['minor']+"."+version['rev'];eval(nextAction);ckbx.swap();}function wInitLoad(){Cont=document.getElementById("sIcoLo");Cont.innerHTML='<img src="splashscreen/icones/loading.png" width="70" height="96" />';ImgLoader=new ImageLoader();ImgLoader.onLoad=function(){document.getElementById('LoadBar').style.width="100%";setSplashText(splash_lang['Init_'+currentLang]+"...");launchSite();};ImgLoader.onImgLoad=function(){if(this.__percentLoaded<100){document.getElementById('LoadBar').style.width=this.__percentLoaded+"%";}};ImgLoader.load("images/images.xml");}var enterOnLoad=true;function launchSite(){if(enterOnLoad){xml_loader("content/body.php",function(xml){init_Site(xml);});}}var dynSel,imgViewer,mainMenu,menuBottom,flashViewer;function setViewerContent(Xml,Selected){imgViewer.setContent(Xml,Selected);imgViewer.show();}function init_Site(Xml){document.getElementById('divContainer').innerHTML=Xml.getElementsByTagName("structure")[0].firstChild.nodeValue;swapCss(defaultSkin);xmlMenu=xml_loader("content/"+currentLang+"/menu.php",make_menu);function make_menu(xmlMenu){mainMenu=new dynMenu(xmlMenu);menuBottom=new dynMenuBot(xmlMenu);dynSel=new dynSelect("mainMenuLangue","dynsel_");dynSel.addItem("English","images/icones/flags/us.jpg","change_language('en')");dynSel.addItem("Español","images/icones/flags/es.jpg","change_language('es')");dynSel.addItem("Deutsch","images/icones/flags/de.jpg","return false;");dynSel.addItem("Français","images/icones/flags/fr.jpg","change_language('fr')");var idLang;if(currentLang=="fr"){idLang="3";}else if(currentLang=="en"){idLang="0";}else if(currentLang=="de"){idLang="2";}else if(currentLang=="es"){idLang="1";}dynSel.init(idLang);imgViewer=new imgviewer(document.body);imgViewer.make();flashViewer=new flashviewer(document.body);flashViewer.make();if(defaultSkin!="white"){if(document.dynMenus&&document.dynMenus.length>0){for(var i=0;document.dynMenus[i];i++){document.dynMenus[i].swapSkin(defaultSkin);}}if(document.dynSelect&&document.dynSelect.length>0){for(var i=0;document.dynSelect[i];i++){document.dynSelect[i].swapSkin(defaultSkin);}}}change_page(defaultPage);}if(!document.all||is_opera){var mouseLoading=new mouse_loading(pageLang['loading_'+currentLang]+"...","divContainer");}document.body.style.overflowY="scroll";}var xmlPage,xmlContent
document.AjaxHandler=function(){};function createRequestObject()
{var xhr;if(window.XMLHttpRequest){xhr=new XMLHttpRequest();}else if(window.ActiveXObject){xhr=new ActiveXObject("Microsoft.XMLHTTP");}return xhr;}function xml_loader(Page,handler,Datas){var http=window.XMLHttpRequest ? new XMLHttpRequest(): new ActiveXObject("Microsoft.XMLHTTP");var todo=handler ? handler : function(){};http.onreadystatechange=function(e){if(http.readyState==4){if(http.status==200){var response={Xml: http.responseXML,
Text: http.responseText
};todo(http.responseXML);}else{window.status='Ajax Engine error';}}};if(arguments.length==1||!Datas||Datas.length==0){http.open('GET',Page,true);http.send(null);}else{http.open('POST',Page,true);http.setRequestHeader("Content-Type","application/x-www-form-urlencoded");http.send(Datas);}}var currentArgs;var isPageReady=true;function change_page(page,additiv_arg){isPageReady=false;if(arguments.length>1){var args=additiv_arg.replace("|","&").replace("|","&");}if(currentPage!=page||(arguments.length>1&&args!=currentArgs)){var toLoad;if(arguments.length>1){toLoad="content/structure_loader.php?page="+page+args;currentArgs=args;}else{toLoad="content/structure_loader.php?page="+page;currentArgs="";}if(document.mouseLoader){document.mouseLoader.show();}xmlPage=xml_loader(toLoad,make_structure);currentPage=page;}return true;}function make_structure(xmlPage){var container=document.getElementById("bodyPage");if(container){container.innerHTML=xmlPage.getElementsByTagName("structure")[0].firstChild.nodeValue;}else{if(document.mouseLoader){document.mouseLoader.hide();}}xmlContent=xml_loader("content/content_loader.php?page="+currentLang+"/"+currentPage,function(Xml){make_content(Xml);});}function change_language(Language){if(currentLang==Language){return false;}currentLang=Language;xmlContent=xml_loader("content/content_loader.php?page="+currentLang+"/"+currentPage,make_content);if(!document.all&&document.mouseLoader){document.mouseLoader.setText(pageLang['loading_'+Language]+"...");}if(document.dynMenus&&document.dynMenus.length>0){xmlMenu=xml_loader("content/"+currentLang+"/menu.php",function(Xml){document.dynMenus[0].update(Xml);document.dynMenuBots[0].update(Xml);});}}function make_content(xmlContent){if(xmlContent.getElementsByTagName("script")){for(var i=0;xmlContent.getElementsByTagName("script")[i];i++){eval(xmlContent.getElementsByTagName("script")[i].firstChild.nodeValue);}}var Container;var Content=xmlContent.getElementsByTagName("contenu")[0];for(var i=0;Content.childNodes[i];i++){if(Content.childNodes[i].tagName=="text"){Container=document.getElementById(Content.childNodes[i].getAttribute("container"));if(Container){Container.innerHTML=Content.childNodes[i].firstChild.nodeValue;}}else if(Content.childNodes[i].tagName=="image"){Container=document.getElementById(Content.childNodes[i].getAttribute("container"));if(Container){Container.src=Content.childNodes[i].firstChild.nodeValue;}}else if(Content.childNodes[i].tagName=="input"){Container=document.getElementById(Content.childNodes[i].getAttribute("container"));if(Container){Container.value=Content.childNodes[i].firstChild.nodeValue;}}else if(Content.childNodes[i].tagName=="select"){Container=document.getElementById(Content.childNodes[i].getAttribute("container"));if(Container){var Index=Container.selectedIndex;var defaultIndex=false;Container.options.length=0;for(var z=0;Content.childNodes[i].childNodes[z];z++){if(z==Index){defaultIndex=true}else{defaultIndex=false;}Container.options[z]=new Option(Content.childNodes[i].childNodes[z].firstChild.nodeValue,Content.childNodes[i].childNodes[z].getAttribute("value"),false,defaultIndex);}}}}isPageReady=true;if(document.mouseLoader){document.mouseLoader.hide();}}var mouse_X=0
var mouse_Y=0;function mouse_loading(Text){Container=document.getElementById("divContainer");document.mouseLoader=this;this.visible=false;this.Container=Container;this.Left=0;this.Top=0;this.div=document.createElement("DIV");this.div.style.position="absolute";this.div.style.visibility="hidden";this.div.style.fontSize="10px";this.div.style.fontFamily="arial";this.div.style.color="white";this.div.style.zIndex="1000";this.div.innerHTML=Text;Container.mouse_loading=this;Container.onmousemove=function(e){if(!document.all||is_opera){event=e;}mouse_X=event.clientX;mouse_Y=event.clientY;if(document.mouseLoader){var mainDiv=document.getElementById('divContainer');document.mouseLoader.Left=(eval(mouse_X)+14);document.mouseLoader.Top=(eval(mouse_Y)+eval(mainDiv.scrollTop)+14);if(document.mouseLoader.visible){document.mouseLoader.div.style.left=(eval(mouse_X)+14)+"px";document.mouseLoader.div.style.top=(eval(mouse_Y)+eval(document.body.scrollTop)+14)+"px";}}};Container.appendChild(this.div);}mouse_loading.prototype.remove=function(){this.Container.onmousemove=null;this.Container.removeChild(this.div);};mouse_loading.prototype.setText=function(Text){this.div.innerHTML=Text;};mouse_loading.prototype.show=function(){this.div.style.left=this.Left+"px";this.div.style.top=this.Top+"px";this.visible=true;this.div.style.visibility="visible";};mouse_loading.prototype.hide=function(){this.visible=false;this.div.style.visibility="hidden";};function swapCss(skin){if(currentSkin==skin){return true;}var CSS=document.getElementById("mainCSS");var CSS2=document.getElementById("menuCSS");CSS._oldHref=CSS.href;CSS2.href="skins/"+skin+"/menu.css";CSS.href="skins/"+skin+"/style.css";currentSkin=skin;if(document.dynMenus&&document.dynMenus.length>0){for(var i=0;document.dynMenus[i];i++){document.dynMenus[i].swapSkin(skin);}}if(document.dynSelect&&document.dynSelect.length>0){for(var i=0;document.dynSelect[i];i++){document.dynSelect[i].swapSkin(skin);}}return true;}function ImageLoader(){document.body.ImageLoader=this;this._images=new Array();this.__percentLoaded=0;this.__imgLoaded=0;this.onImgLoad=false;this.onLoad=false;this.make();}ImageLoader.prototype.make=function(){this.div=document.createElement("DIV");this.div.style.overflow="hidden";this.div.style.width="1px";this.div.style.height="1px";this.div.style.position="relative";this.div.style.visibility="hidden";document.body.appendChild(this.div);};ImageLoader.prototype.load=function(Xml){xml_loader(Xml,function(xml){document.body.ImageLoader.build(xml);});if(arguments.length>1){arguments[1]();}};ImageLoader.prototype.clean=function(){this.div.innerHTML="";this._images=null;this._images=new Array();this.__percentLoaded=0;};ImageLoader.prototype.increment=function(of){this.__imgLoaded+=1;this.__percentLoaded=(100/this.nbImg)*this.__imgLoaded;if(this.__imgLoaded==this.nbImg&&this.onLoad)
this.onLoad();else if(this.__imgLoaded!=this.nbImg&&this.onImgLoad){this.onImgLoad();}};ImageLoader.prototype.getLoadPercent=function(){return this.__percentLoaded;};ImageLoader.prototype.build=function(Xml){if(this.div.childNodes.length){this.clean();}this.Xml=Xml;this.skinspath=Xml.getElementsByTagName("path")[0].firstChild.nodeValue;this.nbSkins=Xml.getElementsByTagName("skins")[0].childNodes.length;this.nbImgS=Xml.getElementsByTagName("skinImages")[0].childNodes.length;this.nbImgA=Xml.getElementsByTagName("images")[0].childNodes.length;this.nbImg=eval(this.nbImgA)+(eval(this.nbSkins)*eval(this.nbImgS));this.skinsChild=Xml.getElementsByTagName("skins")[0];this.skinIChild=Xml.getElementsByTagName("skinImages")[0];this.aImagesChild=Xml.getElementsByTagName("images")[0];for(var i=0;this.skinsChild.childNodes[i];i++){for(var z=0;this.skinIChild.childNodes[z];z++){var Image=document.createElement("IMG");Image.nodeElement=this;if(document.all&&!is_opera){Image.onreadystatechange=function(){if(this.readyState=="complete"){this.nodeElement.increment();}};}else{Image.onload=function(){this.nodeElement.increment();};}Image.src=this.skinspath+this.skinsChild.childNodes[i].getAttribute("name")+"/"+this.skinIChild.childNodes[z].firstChild.nodeValue;Image.border="0";Image.width="1";Image.height="1";this._images[i]=Image;this.div.appendChild(Image);}}for(var i=0;this.aImagesChild.childNodes[i];i++){var Image=document.createElement("IMG");Image.nodeElement=this;if(document.all&&!is_opera){Image.onreadystatechange=function(){if(this.readyState=="complete"){this.nodeElement.increment();}};}else{Image.onload=function(){this.nodeElement.increment();};}Image.border="0";Image.width="1";Image.height="1";Image.src=this.aImagesChild.childNodes[i].firstChild.nodeValue;this._images[i]=Image;this.div.appendChild(Image);}return true;};if(document.all&&!is_ie7&&!is_opera){document.write('<style type="text/css"><!-- img{ behavior: url(js/png.htc); } --></style>');}function addeventHandler(element){element._keyObject=new Array();element.addMouseDown=function(action){element._keyObject["mousedown"]=action;};element.removeMouseDown=function(){element._keyObject["mousedown"]=null;};element.addMouseUp=function(action){element._keyObject["mouseup"]=action;};element.removeMouseUp=function(){element._keyObject["mouseup"]=null;};element.addMouseMove=function(action){element._keyObject["mousemove"]=action;};element.removeMouseMove=function(){element._keyObject["mousemove"]=null;};function handlemouseEvent(evt){if(document.all){var type=event.type;var code=event.keyCode;}else{var type=evt.type;var code=evt.keyCode;}if(element._keyObject[type]!=null)
element._keyObject[type](evt);}element.onmousedown=handlemouseEvent;element.onmouseup=handlemouseEvent;element.onmousemove=handlemouseEvent;}var inDrag=null;var dragObj_x=0;var dragObj_y=0;function mousedowndrag(evt){var dragIt=null
var mainDiv=document.getElementById('divContainer');if(document.all&&!is_opera){dragIt=event.srcElement;cltX=event.clientX;cltY=event.clientY;}else{dragIt=evt.target;cltX=evt.clientX;cltY=evt.clientY;}if(!dragIt.nodeElement.menuDiv){return false;}inDrag=dragIt.nodeElement.menuDiv;dragObj_x=(cltX+mainDiv.scrollLeft)-inDrag.offsetLeft;dragObj_y=(cltY+mainDiv.scrollTop)-inDrag.offsetTop;return true;};function mousemovedrag(evt){if(inDrag==null){return true;}var mainDiv=document.getElementById('divContainer');if(document.all&&!is_opera){var decal_x= -20;var decal_y=0;var newX=(event.clientX+mainDiv.scrollLeft);var newY=(event.clientY+mainDiv.scrollTop);}else{var decal_x=0;var decal_y=0;var newX=(evt.clientX+mainDiv.scrollLeft);var newY=(evt.clientY+mainDiv.scrollTop);}distanceX=newX-dragObj_x;distanceY=newY-dragObj_y;newLeft=eval(inDrag.offsetLeft)+distanceX;newTop=eval(inDrag.offsetTop)+distanceY;if(distanceX<0){distanceX=0;}if(distanceY<0){distanceY=0;}if((distanceX+eval(inDrag.offsetWidth)-decal_x)>mainDiv.offsetWidth){distanceX=mainDiv.offsetWidth-eval(inDrag.offsetWidth)+decal_x;}if((distanceY+eval(inDrag.offsetHeight)-decal_y)>mainDiv.offsetHeight){distanceY=mainDiv.offsetHeight-eval(inDrag.offsetHeight)+decal_y;}inDrag.style.left=distanceX+"px";inDrag.style.top=distanceY+"px";return false;};function mouseupdrag(evt){inDrag=null;return true;};document.onmousemove=mousemovedrag;document.onmouseup=function(){inDrag=null;return true;};window.onresize=function(){resizer();return true;};function imgviewer(Parent,container_id){if(typeof Parent=="object"){this._parent=Parent;}else{if((Parent&&Parent=="body")||!Parent){this._parent=document.body;}else{this._parent=document.getElementById(Parent);}}this._container_id=container_id||'viewerDivM';this.type="imgviewer";this.built=false;this.Xml=false;this.inload=false;this.hidded=true;this.selected=false;this.nbImg=false;this.flyMenu=false;this.skinedcadre=true;this.bottomMenu=true;}imgviewer.prototype.make=function(){this.Div=document.createElement("DIV");this.Div.id=this._container_id;this.Div.verticalAlign="middle";this.Div.align="center";this.DivC=document.createElement("DIV");this.DivC.id="viewerDivContainer";if(this.skinedcadre){this.DivC.style.top="0px";this.DivC.style.left="0px";this.DivC.style.visibility="hidden";this.DivC.style.position="absolute";this.DivC.style.zIndex="16";}else{this.DivC.className="viewerDivContainer";}this.DivC.verticalAlign="top";if(document.all){this.DivC.onselectstart=function(){return false;};}if(this.skinedcadre){this.CmainTable=document.createElement("TABLE");this.CmainTable.cellSpacing="0";this.CmainTable.cellPadding="0";this.CmainTable.border="0";this.CmtR1=this.CmainTable.insertRow(0);this.CmtTL=document.createElement("TD");this.CmtTL.width="12";this.CmtTL.height="33";this.CmtR1.appendChild(this.CmtTL);this.CmtTLI=document.createElement("IMG");this.CmtTLI.src="skins/viewer_black/cadre_hg.png";this.CmtTL.appendChild(this.CmtTLI);this.CmtTM=document.createElement("TD");this.CmtTM.height="33";this.CmtTM.className="cadreHaut";this.CmtR1.appendChild(this.CmtTM);this.CmtTMTable=document.createElement("TABLE");this.CmtTMTable.cellSpacing="0";this.CmtTMTable.cellPadding="0";this.CmtTMTable.border="0";this.CmtTMTable.width="100%";this.CmdtTMTR1=this.CmtTMTable.insertRow(0);this.CmdtTMTL=document.createElement("TD");this.CmdtTMTL.width="61";this.CmdtTMTR1.appendChild(this.CmdtTMTL);this.CmdtTMTLI=document.createElement("IMG");this.CmdtTMTLI.src="skins/viewer_black/cadre_title.gif";this.CmdtTMTL.appendChild(this.CmdtTMTLI);this.CmdtTMTR=document.createElement("TD");this.CmdtTMTR.align="right";this.CmdtTMTR1.appendChild(this.CmdtTMTR);this.CmdtTMTRI=document.createElement("IMG");this.CmdtTMTRI.src="skins/viewer_black/cadre_close_out.gif";this.CmdtTMTRI.style.cursor="pointer";this.CmdtTMTRI.nodeElement=this;this.CmdtTMTRI.onmouseover=function(){this.src="skins/viewer_black/cadre_close_over.gif";};this.CmdtTMTRI.onmouseout=function(){this.src="skins/viewer_black/cadre_close_out.gif";};this.CmdtTMTRI.onclick=function(){this.nodeElement.hide();};this.CmdtTMTR.appendChild(this.CmdtTMTRI);this.CmtTM.appendChild(this.CmtTMTable);this.CmtTR=document.createElement("TD");this.CmtTR.height="33";this.CmtR1.appendChild(this.CmtTR);this.CmtTRI=document.createElement("IMG");this.CmtTRI.src="skins/viewer_black/cadre_hd.png";this.CmtTR.appendChild(this.CmtTRI);this.CmtR2=this.CmainTable.insertRow(1);this.CmtML=document.createElement("TD");this.CmtML.width="12";this.CmtML.className="cadreLeft";this.CmtR2.appendChild(this.CmtML);this.CmtMM=document.createElement("TD");this.CmtMM.vAlign="top";this.CmtMM.className="cadreBackground";this.CmtR2.appendChild(this.CmtMM);this.Img=document.createElement("IMG");this.Img.border=0;this.Img.nodeElement=this;this.Img.style.visibility="hidden";this.Img.onload=function(){this.nodeElement.CmtMM.innerHTML="";this.nodeElement.CmtMM.appendChild(this);if(!this.nodeElement.hidded){this.style.visibility="visible";}this.nodeElement.setInfo();this.nodeElement.resize();};this.Img.oncontextmenu=function(){return false;};this.Img.onclick=function(){this.nodeElement.hide();};this.CmtMM.appendChild(this.Img);this.CmtMR=document.createElement("TD");this.CmtMR.width="12";this.CmtMR.className="cadreRight",
this.CmtR2.appendChild(this.CmtMR);this.CmtR3=this.CmainTable.insertRow(2);this.CmtBL=document.createElement("TD");this.CmtBL.width="12";this.CmtBL.height="15";this.CmtBL.className="cadreBottom1";this.CmtR3.appendChild(this.CmtBL);this.CmtBM=document.createElement("TD");this.CmtBM.height="15";this.CmtBM.className="cadreBottom1";this.CmtR3.appendChild(this.CmtBM);this.CmtBR=document.createElement("TD");this.CmtBR.height="15";this.CmtBR.width="12";this.CmtBR.className="cadreBottom1";this.CmtR3.appendChild(this.CmtBR);this.CmtR4=this.CmainTable.insertRow(3);this.CmtBL=document.createElement("TD");this.CmtBL.width="12";this.CmtBL.height="11";this.CmtR4.appendChild(this.CmtBL);this.CmtBLI=document.createElement("IMG");this.CmtBLI.src="skins/viewer_black/cadre_bg.png";this.CmtBL.appendChild(this.CmtBLI);this.CmtBM=document.createElement("TD");this.CmtBM.className="cadreBottom2";this.CmtBM.height="11";this.CmtR4.appendChild(this.CmtBM);this.CmtBR=document.createElement("TD");this.CmtBR.width="12";this.CmtBR.height="11";this.CmtR4.appendChild(this.CmtBR);this.CmtBRI=document.createElement("IMG");this.CmtBRI.src="skins/viewer_black/cadre_bd.png";this.CmtBR.appendChild(this.CmtBRI);this.DivC.appendChild(this.CmainTable);}else{this.Img=document.createElement("IMG");this.Img.border=0;this.Img.nodeElement=this;this.Img.style.visibility="hidden";this.Img.oncontextmenu=function(){return false;};this.Img.onload=function(){this.nodeElement.DivC.innerHTML="";this.nodeElement.DivC.appendChild(this);if(!this.nodeElement.hidded){this.style.visibility="visible";}this.nodeElement.setInfo();this.nodeElement.resize();};this.Img.onclick=function(){this.nodeElement.hide();};this.DivC.appendChild(this.Img);}if(this.bottomMenu){this.bmenuDiv=document.createElement("DIV");this.bmenuDiv.id="viewerBMenuDiv";this.bmenuDiv.nodeElement=this;if(document.all){this.bmenuDiv.onselectstart=function(){return false;};}this.bmenuMT=document.createElement("TABLE");this.bmenuMT.cellSpacing="0";this.bmenuMT.cellPadding="0";this.bmenuMT.border="0";this.bmenuMT.width="100%";this.bmenuMT.height="48";this.bmenuDiv.appendChild(this.bmenuMT);this.bmenuMTR1=this.bmenuMT.insertRow(0);this.bmenuMTD1=document.createElement("TD");if(is_ie7){this.bmenuMTD1.background="skins/viewer_black/viewer_bg.png";this.bmenuMTD1.innerHTML="&nbsp;";}this.bmenuMTR1.appendChild(this.bmenuMTD1);if((document.all&&!is_ie7)||!document.all){this.bmenuMTD1I=document.createElement("IMG");this.bmenuMTD1I.height="48";this.bmenuMTD1I.src="skins/viewer_black/viewer_bg.png";this.bmenuMTD1.appendChild(this.bmenuMTD1I);}this.bmenuMTD2=document.createElement("TD");this.bmenuMTD2.width="312";this.bmenuMTR1.appendChild(this.bmenuMTD2);this.bmenuD2T=document.createElement("TABLE");this.bmenuD2T.cellSpacing="0";this.bmenuD2T.cellPadding="0";this.bmenuD2T.border="0";this.bmenuD2T.width="100%";this.bmenuD2T.height="48";this.bmenuMTD2.appendChild(this.bmenuD2T);this.bmenuD2TR1=this.bmenuD2T.insertRow(0);this.bmenuD2TD1=document.createElement("TD");this.bmenuD2TD1.width="121";this.bmenuD2TD1.nodeElement=this;this.bmenuD2TD1.style.position="relative";this.bmenuD2TD1.onmouseover=function(){this.nodeElement.bmenuD2TD1I.src="skins/viewer_black/viewer_bgprevious_over.png";};this.bmenuD2TD1.onmouseout=function(){this.nodeElement.bmenuD2TD1I.src="skins/viewer_black/viewer_bgprevious_out.png";};this.bmenuD2TD1.onclick=function(){this.nodeElement.prevImg();};this.bmenuD2TR1.appendChild(this.bmenuD2TD1);this.bmenuD2TD1I=document.createElement("IMG");this.bmenuD2TD1I.width="121";this.bmenuD2TD1I.height="48";this.bmenuD2TD1I.vAlign="top";this.bmenuD2TD1I.nodeElement=this;this.bmenuD2TD1I.style.position="absolute";this.bmenuD2TD1I.style.top="0";this.bmenuD2TD1I.style.cursor="pointer";this.bmenuD2TD1I.src="skins/viewer_black/viewer_bgprevious_out.png";this.bmenuD2TD1.appendChild(this.bmenuD2TD1I);this.bmenuD2TD1D=document.createElement("DIV");this.bmenuD2TD1D.className="cadreTextBlur";if(document.all){this.bmenuD2TD1D.style.top="15px";}this.bmenuD2TD1D.innerHTML="Previous";this.bmenuD2TD1.appendChild(this.bmenuD2TD1D);this.bmenuD2TD2=document.createElement("TD");this.bmenuD2TD2.width="70";this.bmenuD2TD2.height="48";if(is_ie7){this.bmenuD2TD2.background="skins/viewer_black/viewer_bg.png";}this.bmenuD2TR1.appendChild(this.bmenuD2TD2);if((document.all&&!is_ie7)||!document.all){this.bmenuD2TD2I=document.createElement("IMG");this.bmenuD2TD2I.width="70";this.bmenuD2TD2I.height="48";this.bmenuD2TD2I.style.position="absolute";this.bmenuD2TD2I.style.top="0";this.bmenuD2TD2.appendChild(this.bmenuD2TD2I);this.bmenuD2TD2I.src="skins/viewer_black/viewer_bg.png";}this.bmenuD2TD2D=document.createElement("DIV");this.bmenuD2TD2D.className="cadreTextCentre";if(document.all){this.bmenuD2TD2D.style.top="4px";}this.bmenuD2TD2D.width="70";this.bmenuD2TD2D.align="center";this.bmenuD2TD2.appendChild(this.bmenuD2TD2D);this.bmenuD2TD3=document.createElement("TD");this.bmenuD2TD3.width="121";this.bmenuD2TD3.nodeElement=this;this.bmenuD2TD3.onmouseover=function(){this.nodeElement.bmenuD2TD3I.src="skins/viewer_black/viewer_bgnext_over.png";};this.bmenuD2TD3.onmouseout=function(){this.nodeElement.bmenuD2TD3I.src="skins/viewer_black/viewer_bgnext_out.png";};this.bmenuD2TD3.onclick=function(){this.nodeElement.nextImg();};this.bmenuD2TR1.appendChild(this.bmenuD2TD3);this.bmenuD2TD3I=document.createElement("IMG");this.bmenuD2TD3I.width="121";this.bmenuD2TD3I.height="48";this.bmenuD2TD3I.nodeElement=this;this.bmenuD2TD3I.style.position="absolute";this.bmenuD2TD3I.style.top="0";this.bmenuD2TD3I.style.cursor="pointer";this.bmenuD2TD3I.src="skins/viewer_black/viewer_bgnext_out.png";this.bmenuD2TD3.appendChild(this.bmenuD2TD3I);this.bmenuD3TD3D=document.createElement("DIV");this.bmenuD3TD3D.className="cadreTextBlur";if(document.all){this.bmenuD3TD3D.style.top="4px";}this.bmenuD3TD3D.innerHTML="Next";this.bmenuD2TD3.appendChild(this.bmenuD3TD3D);this.bmenuMTD3=document.createElement("TD");if(is_ie7){this.bmenuMTD3.background="skins/viewer_black/viewer_bg.png";this.bmenuMTD3.innerHTML="&nbsp;";}this.bmenuMTR1.appendChild(this.bmenuMTD3);if((document.all&&!is_ie7)||!document.all){this.bmenuMTD3I=document.createElement("IMG");this.bmenuMTD3I.height="48";this.bmenuMTD3I.style.position="relative";this.bmenuMTD3I.src="skins/viewer_black/viewer_bg.png";this.bmenuMTD3.appendChild(this.bmenuMTD3I);}this.bmenuDiv.appendChild(this.bmenuMT);this.bmenuMTD4=document.createElement("TD");this.bmenuMTD4.width="100";this.bmenuMTD4.style.cursor="pointer";this.bmenuMTR1.appendChild(this.bmenuMTD4);if((document.all&&!is_ie7)||!document.all){this.bmenuMTD4I=document.createElement("IMG");this.bmenuMTD4I.width="100";this.bmenuMTD4I.height="48";this.bmenuMTD4I.style.position="absolute";this.bmenuMTD4I.style.top="0";this.bmenuMTD4.appendChild(this.bmenuMTD4I);this.bmenuMTD4I.src="skins/viewer_black/viewer_bg.png";}else{this.bmenuMTD4.background="skins/viewer_black/viewer_bg.png";}this.bmenuMTD4T=document.createElement("TABLE");this.bmenuMTD4T.cellSpacing="0";this.bmenuMTD4T.cellPadding="0";this.bmenuMTD4T.border="0";this.bmenuMTD4T.nodeElement=this;this.bmenuMTD4T.style.position="relative";this.bmenuMTD4T.width="100%";this.bmenuMTD4T.height="48";this.bmenuMTD4T.onmouseover=function(){this.nodeElement.bmenuMTD4D.className="cadreTextFocus";this.nodeElement.bmenuMTD4CI.src="skins/viewer_black/viewer_bgclose_over.png";};this.bmenuMTD4T.onmouseout=function(){this.nodeElement.bmenuMTD4D.className="cadreTextBlur";this.nodeElement.bmenuMTD4CI.src="skins/viewer_black/viewer_bgclose_out.png";};this.bmenuMTD4T.onclick=function(){this.nodeElement.hide();};this.bmenuMTD4.appendChild(this.bmenuMTD4T);this.bmenuMTD4TR1=this.bmenuMTD4T.insertRow(0);this.bmenuMTD4TD1=document.createElement("TD");this.bmenuMTD4TD1.width="70";this.bmenuMTD4TR1.appendChild(this.bmenuMTD4TD1);this.bmenuMTD4D=document.createElement("DIV");this.bmenuMTD4D.className="cadreTextBlur";if(document.all){this.bmenuMTD4D.style.top="4px";}this.bmenuMTD4D.style.left="10px";this.bmenuMTD4D.innerHTML="Close";this.bmenuMTD4TD1.appendChild(this.bmenuMTD4D);this.bmenuMTD4TD2=document.createElement("TD");this.bmenuMTD4TD2.align="left";this.bmenuMTD4TR1.appendChild(this.bmenuMTD4TD2);this.bmenuMTD4CI=document.createElement("IMG");this.bmenuMTD4CI.width="20";this.bmenuMTD4CI.height="48";this.bmenuMTD4TD2.appendChild(this.bmenuMTD4CI);this.bmenuMTD4CI.src="skins/viewer_black/viewer_bgclose_out.png";}if(this.flyMenu){this.menuDiv=document.createElement("DIV");this.menuDiv.id="viewerMenuDiv";this.menuDiv.nodeElement=this;if(document.all){this.menuDiv.onselectstart=function(){return false;};}this.menuBg=document.createElement("IMG");this.menuBg.src="skins/viewer_black/menu_bg.png";this.menuDiv.appendChild(this.menuBg);this.menuContainer=document.createElement("DIV");this.menuContainer.id="viewerMenuContainer";this.menuContainer.nodeElement=this;this.menuDiv.appendChild(this.menuContainer);this.menuCdragbar=document.createElement("DIV");this.menuCdragbar.id="viewerMenuCdrag";this.menuCdragbar.nodeElement=this;this.menuDiv.appendChild(this.menuCdragbar);addeventHandler(this.menuCdragbar);this.menuCdragbar.addMouseDown(mousedowndrag);this.menuCdragbar.addMouseMove(mousemovedrag);this.menuCdragbar.addMouseUp(mouseupdrag);this.menuPrec=document.createElement("IMG");this.menuPrec.id="viewerMenuPrec";this.menuPrec.src="skins/viewer_black/prec_out.png";this.menuPrec.nodeElement=this;this.menuPrec.alt="Previous";this.menuPrec.onclick=function(){this.nodeElement.prevImg();};this.menuPrec.onmouseover=function(){this.src="skins/viewer_black/prec_over.png";};this.menuPrec.onmouseout=function(){this.src="skins/viewer_black/prec_out.png";};this.menuDiv.appendChild(this.menuPrec);this.menuSuiv=document.createElement("IMG");this.menuSuiv.id="viewerMenuSuiv";this.menuSuiv.src="skins/viewer_black/suiv_out.png";this.menuSuiv.nodeElement=this;this.menuSuiv.alt="Next";this.menuSuiv.onclick=function(){this.nodeElement.nextImg();};this.menuSuiv.onmouseover=function(){this.src="skins/viewer_black/suiv_over.png";};this.menuSuiv.onmouseout=function(){this.src="skins/viewer_black/suiv_out.png";};this.menuDiv.appendChild(this.menuSuiv);this.menuClose=document.createElement("IMG");this.menuClose.id="viewerMenuClose";this.menuClose.src="skins/viewer_black/close_out.png";this.menuClose.nodeElement=this;this.menuClose.onclick=function(){this.nodeElement.hide();};this.menuClose.onmouseover=function(){this.src="skins/viewer_black/close_over.png";};this.menuClose.onmouseout=function(){this.src="skins/viewer_black/close_out.png";};this.menuDiv.appendChild(this.menuClose);this.menuDock=document.createElement("IMG");this.menuDock.id="viewerMenuDock";this.menuDock.src="skins/viewer_black/dock_out.png";this.menuDock.nodeElement=this;this.menuDock.onmouseover=function(){this.src="skins/viewer_black/dock_over.png";};this.menuDock.onmouseout=function(){this.src="skins/viewer_black/dock_out.png";};this.menuDiv.appendChild(this.menuDock);this.menuSep1=document.createElement("IMG");this.menuSep1.className="viewerMenuSeparateur";this.menuSep1.style.top="103px";this.menuSep1.src="skins/viewer_black/separation.png";this.menuDiv.appendChild(this.menuSep1);this.menuSep2=document.createElement("IMG");this.menuSep2.className="viewerMenuSeparateur";this.menuSep2.style.top="123px";this.menuSep2.src="skins/viewer_black/separation.png";this.menuDiv.appendChild(this.menuSep2);this.menuSep3=document.createElement("IMG");this.menuSep3.className="viewerMenuSeparateur";this.menuSep3.style.top="143px";this.menuSep3.src="skins/viewer_black/separation.png";this.menuDiv.appendChild(this.menuSep3);this.menuSep4=document.createElement("IMG");this.menuSep4.className="viewerMenuSeparateur";this.menuSep4.style.top="163px";this.menuSep4.src="skins/viewer_black/separation.png";this.menuDiv.appendChild(this.menuSep4);this.menuPuce1=document.createElement("IMG");this.menuPuce1.className="viewerMenuPuce";this.menuPuce1.style.top="111px";this.menuPuce1.src="skins/viewer_black/puce.png";this.menuDiv.appendChild(this.menuPuce1);this.menuPuce2=document.createElement("IMG");this.menuPuce2.className="viewerMenuPuce";this.menuPuce2.style.top="131px";this.menuPuce2.src="skins/viewer_black/puce.png";this.menuDiv.appendChild(this.menuPuce2);this.menuPuce3=document.createElement("IMG");this.menuPuce3.className="viewerMenuPuce";this.menuPuce3.style.top="151px";this.menuPuce3.src="skins/viewer_black/puce.png";this.menuDiv.appendChild(this.menuPuce3);this.menuTName=document.createElement("DIV");this.menuTName.className="viewerMenuText";this.menuTName.innerHTML="&nbsp;";this.menuTName.style.top="105px";this.menuDiv.appendChild(this.menuTName);this.menuTTaille=document.createElement("DIV");this.menuTTaille.className="viewerMenuText";this.menuTTaille.innerHTML="&nbsp;";this.menuTTaille.style.top="125px";this.menuDiv.appendChild(this.menuTTaille);this.menuTPoids=document.createElement("DIV");this.menuTPoids.className="viewerMenuText";this.menuTPoids.innerHTML="&nbsp;";this.menuTPoids.style.top="145px";this.menuDiv.appendChild(this.menuTPoids);}this._parent.appendChild(this.Div);this._parent.appendChild(this.DivC);if(this.flyMenu){this._parent.appendChild(this.menuDiv);}if(this.bottomMenu){this._parent.appendChild(this.bmenuDiv);}};imgviewer.prototype.hide=function(){var Obj=document.getElementById('divContainer');Obj.style.overflow='';Obj.style.height='100%';this.Img.src=null;if(!this.hidded){this.Div.style.visibility="hidden";this.DivC.style.visibility="hidden";this.Img.style.visibility="";if(this.flyMenu){this.menuDiv.style.visibility="hidden";}if(this.bottomMenu){this.bmenuDiv.style.visibility="hidden";}this.hidded=true;}};imgviewer.prototype.show=function(){var Obj=document.getElementById('divContainer');Obj.style.overflow='hidden';if(document.all){var decal=5;}else{var decal=2;}Obj.style.height=(Obj.offsetHeight-decal)+"px";if(this.hidded){this.Div.style.visibility="visible";this.DivC.style.visibility="visible";if(this.flyMenu){this.menuDiv.style.visibility="visible";}if(this.bottomMenu){this.bmenuDiv.style.visibility="visible";}this.hidded=false;}};imgviewer.prototype.clearContent=function(){if(this.built){this.Img.style.visibility="hidden";this.Img.src=null;}this.Xml=false;this.built=false;};imgviewer.prototype.setContent=function(Xml,Selected){this.clearContent();this.Xml=Xml.getElementsByTagName("viewer")[0];this._XmlParent=Xml;this._caption=this.Xml.getAttribute("pagetitle");this._imgfolder=this.Xml.getAttribute("imgfolder");this.nbImg=Xml.getElementsByTagName("image").length;if(arguments.length>1){this.setImg(Selected);}this.built=true;this.setimgnbInfo();return true;};imgviewer.prototype.refreshImg=function(){if(!this.hidded){this.setImg(this.selected);}};imgviewer.prototype.setImg=function(Id){if(this.Xml){var mainDiv=document.getElementById('divContainer');this.selected=Id;var flashLoad='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="400" height="300">';flashLoad+='<param name="movie" value="images/viewer/loading.swf" />';flashLoad+='<param name="quality" value="high" />';flashLoad+='<param name="wmode" value="transparent" />';flashLoad+='<embed src="images/viewer/loading.swf" width="400" height="300" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" wmode="transparent"></embed>';flashLoad+='</object>';this.Img.style.visibility="hidden";if(this.skinedcadre){this.CmtMM.innerHTML=flashLoad;}else{mainDiv.appendChild(this.DivC.removeChild(this.Img));this.DivC.innerHTML=flashLoad;}var Element=this.Xml.getElementsByTagName("image")[Id];if(this.flyMenu){this.menuTName.innerHTML="Loading image...";this.menuTTaille.innerHTML="";this.menuTPoids.innerHTML="";}this.Img.style.visibility="hidden";this.Img.src="content/viewer/resize.php?width="+(eval(mainDiv.offsetWidth)-40)+"&height="+(eval(mainDiv.offsetHeight)-80)+"&name="+this._imgfolder+Element.getElementsByTagName("source")[0].firstChild.nodeValue;this.resize();}};imgviewer.prototype.setInfo=function(Id){var Current=Id||this.selected;if(this.Xml){var Element=this.Xml.getElementsByTagName("image")[Current];if(this.flyMenu){this.menuTName.innerHTML=Element.getElementsByTagName("title")[0].childNodes[0].nodeValue;this.menuTTaille.innerHTML=Element.getElementsByTagName("width")[0].childNodes[0].nodeValue+' x '+Element.getElementsByTagName("height")[0].childNodes[0].nodeValue+' px';this.menuTPoids.innerHTML=Element.getElementsByTagName("poids")[0].childNodes[0].nodeValue;}}};imgviewer.prototype.resize=function(){var Obj=document.getElementById('divContainer');if(!this.hidded){Obj.style.overflow='hidden';Obj.style.height="100%";}if(this.skinedcadre){var Element=this.CmainTable;}else{var Element=this.Img;}this.DivC.style.width=eval(Element.offsetWidth)+"px";this.DivC.style.height=eval(Element.offsetHeight)+"px";var Dec=0;if(this.bottomMenu){Dec=20;this.bmenuDiv.style.top=eval(Obj.offsetHeight)-eval(this.bmenuDiv.offsetHeight)+"px";var BMtdSize=(eval(Obj.offsetWidth)-eval(this.bmenuMTD2.width))/2;if(!is_ie7){this.bmenuMTD1I.width=BMtdSize;this.bmenuMTD3I.width=BMtdSize-eval(this.bmenuMTD4.offsetWidth);}else{this.bmenuMTD1.width=BMtdSize;}}this.DivC.style.top=(eval(Obj.offsetHeight)/2)-(eval(this.DivC.offsetHeight)/2)-Dec+"px";this.DivC.style.left=(eval(Obj.offsetWidth)/2)-(eval(this.DivC.offsetWidth)/2)+"px";};imgviewer.prototype.setimgnbInfo=function(){if(this.bottomMenu){this.bmenuD2TD2D.innerHTML=(this.selected+1)+" / "+this.nbImg;}};imgviewer.prototype.nextImg=function(){if(this.Xml){if(this.selected+1>=this.nbImg){this.selected=0;this.setImg(this.selected);}else{this.selected++;this.setImg(this.selected);}this.setimgnbInfo();}};imgviewer.prototype.prevImg=function(){if(this.Xml){if(this.selected<=0){this.selected=this.nbImg-1;this.setImg(this.selected);}else{this.selected--;this.setImg(this.selected);}this.setimgnbInfo();}};function flashviewer(Parent,container_id){if(typeof Parent=="object"){this._parent=Parent;}else{if((Parent&&Parent=="body")||!Parent){this._parent=document.body;}else{this._parent=document.getElementById(Parent);}}this._container_id=container_id||'viewerDivM';this.type="flashviewer";this.built=false;this.inload=false;this.hidded=true;this.selected=false;}flashviewer.prototype.make=function(){this.Div=document.createElement("DIV");this.Div.id=this._container_id;this.Div.verticalAlign="middle";this.Div.align="center";this.DivC=document.createElement("DIV");this.DivC.id="viewerDivContainer";this.DivC.className="viewerDivContainer";this.DivC.verticalAlign="top";this.closeB=document.createElement("IMG");this.closeB.src="images/viewer/close_flash.png";this.closeB.style.position="relative";this.closeB.style.width="20px";this.closeB.style.height="20px";this.closeB.style.visibility="hidden";this.closeB.style.zIndex="20";this.closeB.style.cursor="pointer";this.closeB.parentEl=this;this.closeB.onclick=function(){this.parentEl.hide();};if(document.all){this.DivC.onselectstart=function(){return false;};}this._parent.appendChild(this.Div);this._parent.appendChild(this.DivC);this._parent.appendChild(this.closeB);};flashviewer.prototype.hide=function(){var Obj=document.getElementById('divContainer');Obj.style.overflow='';Obj.style.height='100%';this.clearContent();if(!this.hidded){this.Div.style.visibility="hidden";this.DivC.style.visibility="hidden";this.closeB.style.visibility="hidden";this.hidded=true;}};flashviewer.prototype.show=function(){var Obj=document.getElementById('divContainer');Obj.style.overflow='hidden';if(document.all){var decal=5;}else{var decal=2;}Obj.style.height=(Obj.offsetHeight-decal)+"px";if(this.hidded){this.Div.style.visibility="visible";this.DivC.style.visibility="visible";this.closeB.style.visibility="visible";this.hidded=false;}};flashviewer.prototype.clearContent=function(){if(this.built){this.DivC.innerHTML="";}this.built=false;};flashviewer.prototype.setContent=function(File,width,height){this.clearContent();this.width=width;this.height=height;var Flash_str='<object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="'+width+'" height="'+height+'" title="flashvideo">';Flash_str+='<param name="movie" value="'+File+'" />';Flash_str+='<param name="quality" value="high" />';Flash_str+='<embed src="'+File+'" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="'+width+'" height="'+height+'"></embed>';Flash_str+='</object>';this.DivC.innerHTML=Flash_str;this.resize();this.built=true;return true;};flashviewer.prototype.resize=function(){var Obj=document.getElementById('divContainer');if(!this.hidded){Obj.style.overflow='hidden';Obj.style.height="100%";}this.DivC.style.width=eval(this.width)+"px";this.DivC.style.height=eval(this.height)+"px";if(!document.all){this.DivC.style.top=(eval(Obj.offsetHeight)/2)-(eval(this.DivC.offsetHeight)/2)+"px";}else{this.DivC.style.top=(eval(Obj.offsetHeight)/2)-(eval(this.DivC.offsetHeight)/2)-100+"px";}this.DivC.style.left=(eval(Obj.offsetWidth)/2)-(eval(this.DivC.offsetWidth)/2)+"px";this.closeB.style.top=this.DivC.style.top;this.closeB.style.left=eval(this.DivC.offsetLeft)+eval(this.width)+21;};if(typeof com=="undefined"){var com=new Object();}if(typeof com.deconcept=="undefined"){com.deconcept=new Object();}if(typeof com.deconcept.util=="undefined"){com.deconcept.util=new Object();}if(typeof com.deconcept.FlashObjectUtil=="undefined"){com.deconcept.FlashObjectUtil=new Object();}com.deconcept.FlashObject=function(_1,id,w,h,_5,c,_7,_8,_9,_a,_b){if(!document.createElement||!document.getElementById){return;}this.DETECT_KEY=_b?_b:"detectflash";this.skipDetect=com.deconcept.util.getRequestParameter(this.DETECT_KEY);this.params=new Object();this.variables=new Object();this.attributes=new Array();this.useExpressInstall=_7;if(_1){this.setAttribute("swf",_1);}if(id){this.setAttribute("id",id);}if(w){this.setAttribute("width",w);}if(h){this.setAttribute("height",h);}if(_5){this.setAttribute("version",new com.deconcept.PlayerVersion(_5.toString().split(".")));}this.installedVer=com.deconcept.FlashObjectUtil.getPlayerVersion(this.getAttribute("version"),_7);if(c){this.addParam("bgcolor",c);}var q=_8?_8:"high";this.addParam("quality",q);var _d=(_9)?_9:window.location;this.setAttribute("xiRedirectUrl",_d);this.setAttribute("redirectUrl","");if(_a){this.setAttribute("redirectUrl",_a);}};com.deconcept.FlashObject.prototype={setAttribute:function(_e,_f){this.attributes[_e]=_f;},getAttribute:function(_10){return this.attributes[_10];},addParam:function(_11,_12){this.params[_11]=_12;},getParams:function(){return this.params;},addVariable:function(_13,_14){this.variables[_13]=_14;},getVariable:function(_15){return this.variables[_15];},getVariables:function(){return this.variables;},createParamTag:function(n,v){var p=document.createElement("param");p.setAttribute("name",n);p.setAttribute("value",v);return p;},getVariablePairs:function(){var _19=new Array();var key;var _1b=this.getVariables();for(key in _1b){_19.push(key+"="+_1b[key]);}return _19;},getFlashHTML:function(){var _1c="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","PlugIn");}_1c="<embed type=\"application/x-shockwave-flash\" src=\""+this.getAttribute("swf")+"\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\"";_1c+=" id=\""+this.getAttribute("id")+"\" name=\""+this.getAttribute("id")+"\" ";var _1d=this.getParams();for(var key in _1d){_1c+=[key]+"=\""+_1d[key]+"\" ";}var _1f=this.getVariablePairs().join("&");if(_1f.length>0){_1c+="flashvars=\""+_1f+"\"";}_1c+="/>";}else{if(this.getAttribute("doExpressInstall")){this.addVariable("MMplayerType","ActiveX");}_1c="<object id=\""+this.getAttribute("id")+"\" classid=\"clsid:D27CDB6E-AE6D-11cf-96B8-444553540000\" width=\""+this.getAttribute("width")+"\" height=\""+this.getAttribute("height")+"\">";_1c+="<param name=\"movie\" value=\""+this.getAttribute("swf")+"\" />";var _20=this.getParams();for(var key in _20){_1c+="<param name=\""+key+"\" value=\""+_20[key]+"\" />";}var _22=this.getVariablePairs().join("&");if(_22.length>0){_1c+="<param name=\"flashvars\" value=\""+_22+"\" />";}_1c+="</object>";}return _1c;},write:function(_23){if(this.useExpressInstall){var _24=new com.deconcept.PlayerVersion([6,0,65]);if(this.installedVer.versionIsValid(_24)&&!this.installedVer.versionIsValid(this.getAttribute("version"))){this.setAttribute("doExpressInstall",true);this.addVariable("MMredirectURL",escape(this.getAttribute("xiRedirectUrl")));document.title=document.title.slice(0,47)+" - Flash Player Installation";this.addVariable("MMdoctitle",document.title);}}else{this.setAttribute("doExpressInstall",false);}if(this.skipDetect||this.getAttribute("doExpressInstall")||this.installedVer.versionIsValid(this.getAttribute("version"))){var n=(typeof _23=="string")?document.getElementById(_23):_23;n.innerHTML=this.getFlashHTML();}else{if(this.getAttribute("redirectUrl")!=""){document.location.replace(this.getAttribute("redirectUrl"));}}}};com.deconcept.FlashObjectUtil.getPlayerVersion=function(_26,_27){var _28=new com.deconcept.PlayerVersion(0,0,0);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){_28=new com.deconcept.PlayerVersion(x.description.replace(/([a-z]|[A-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");for(var i=3;axo!=null;i++){axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+i);_28=new com.deconcept.PlayerVersion([i,0,0]);}}catch(e){}if(_26&&_28.major>_26.major){return _28;}if(!_26||((_26.minor!=0||_26.rev!=0)&&_28.major==_26.major)||_28.major!=6||_27){try{_28=new com.deconcept.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}catch(e){}}}return _28;};com.deconcept.PlayerVersion=function(_2c){this.major=parseInt(_2c[0])||0;this.minor=parseInt(_2c[1])||0;this.rev=parseInt(_2c[2])||0;};com.deconcept.PlayerVersion.prototype.versionIsValid=function(fv){if(this.major<fv.major){return false;}if(this.major>fv.major){return true;}if(this.minor<fv.minor){return false;}if(this.minor>fv.minor){return true;}if(this.rev<fv.rev){return false;}return true;};com.deconcept.util={getRequestParameter:function(_2e){var q=document.location.search||document.location.hash;if(q){var _30=q.indexOf(_2e+"=");var _31=(q.indexOf("&",_30)>-1)?q.indexOf("&",_30):q.length;if(q.length>1&&_30>-1){return q.substring(q.indexOf("=",_30)+1,_31);}}return"";},removeChildren:function(n){while(n.hasChildNodes()){n.removeChild(n.firstChild);}}};if(Array.prototype.push==null){Array.prototype.push=function(_33){this[this.length]=_33;return this.length;};}var getQueryParamValue=com.deconcept.util.getRequestParameter;var FlashObject=com.deconcept.FlashObject;var dynMenu_DefaultTimeOut=800;function dynMenu(Xml){if(!Xml.getElementsByTagName("menu")[0]){return false;}if(!document.dynMenus){document.dynMenus=new Array();document.hideMenus=function(){for(var i=0;document.dynMenus[i];i++){if(document.dynMenus[i].menuActive){document.dynMenus[i].hideSub();document.dynMenus[i].menuActive=false;}}};}this.Id=document.dynMenus.length;document.dynMenus[document.dynMenus.length]=this;this.Xml=Xml.getElementsByTagName("menu")[0];this._parent=this.Xml.getAttribute("parent")&&this.Xml.getAttribute("parent")!="body"? document.getElementById(this.Xml.getAttribute("parent")): document.body;this.items=new Array(0);this.menuActive=false;this.timeOut=false;this.positioned=false;this.currentSkin="white";this.make();if(!this.positioned){Menu_Positions(this);this.positioned=true;}}dynMenu.prototype.make=function(){this.mainDiv=document.createElement("DIV");this.mainDiv.className=this.Xml.getAttribute("class");this.mainDiv.nodeElement=this;if(document.all){this.mainDiv.onselectstart=function(){return false;}}this.mainDiv.onmouseover=function(){this.nodeElement.menuActive=true;clearTimeout(this.nodeElement.timeOut);};this.mainDiv.onmouseout=function(){this.nodeElement.timeOut=setTimeout("document.hideMenus()",dynMenu_DefaultTimeOut);};this.makeMain();this._parent.appendChild(this.mainDiv);};function Menu_Positions(Parent){for(var i=0;Parent.items[i];i++){var z;if(Parent.items[i].items.length&&Parent._parent){if(document.all){Parent.items[i].childNodes[1].style.top=Parent.items[i].offsetTop+"px";Parent.items[i].childNodes[1].style.left=Parent.items[i].offsetLeft-(Parent.items[i].childNodes[1].offsetWidth-Parent.items[i].offsetWidth)+"px";}else{Parent.items[i].childNodes[1].style.top=Parent.items[i].offsetTop+"px";Parent.items[i].childNodes[1].style.left=Parent.items[i].offsetLeft-(Parent.items[i].childNodes[1].offsetWidth-Parent.items[i].offsetWidth)+"px";}Menu_Positions(Parent.items[i]);}else if(Parent.items[i].items.length&&!Parent._parent){if(Parent.items[i].havPic){z=2;}else{z=1;}if(document.all){Parent.items[i].childNodes[z].style.top=Parent.items[i].childNodes[z].offsetTop-Parent.items[i].offsetHeight+2+"px";Parent.items[i].childNodes[z].style.left=eval(Parent.items[i].offsetLeft)-eval(Parent.items[i].Container.offsetWidth)+"px";}else{Parent.items[i].childNodes[z].style.top=Parent.items[i].childNodes[z].offsetTop-Parent.items[i].offsetHeight-14+"px";Parent.items[i].childNodes[z].style.left=eval(Parent.items[i].offsetLeft)-eval(Parent.items[i].Container.offsetWidth)+"px";}Menu_Positions(Parent.items[i]);}}}dynMenu.prototype.hideSub=function(){for(var i=0;this.items[i];i++){this.items[i].hide();}return true;};dynMenu.prototype.makeMain=function(){for(var i=0;this.Xml.childNodes[i];i++){this.Cell=document.createElement("DIV");this.Cell.cssClass=this.Xml.childNodes[i].getAttribute("class")
this.Cell.className=this.Cell.cssClass+"_out";this.Cell.clickAction=this.Xml.childNodes[i].getAttribute("onclick");this.Cell.nodeElement=this;this.Cell._id=i;this.Cell.hideSub=function(){for(var i=0;this.items[i];i++){this.items[i].hide();}return true;};this.Cell.hide=function(){if(this.childNodes[1]&&this.childNodes[1].style.visibility=="visible"){this.childNodes[1].style.visibility="hidden";this.hideSub();}return true;};this.Cell.onmouseover=function(){this.className=this.cssClass+"_over";this.nodeElement.hideSub();if(this.items.length){this.childNodes[1].style.visibility="visible";}return true;};this.Cell.onmouseout=function(){this.className=this.cssClass+"_out";return true;};var div=document.createElement("DIV");div.style.width="100%";div.innerHTML=this.Xml.childNodes[i].getAttribute("title");div.clickAction=this.Xml.childNodes[i].getAttribute("onclick");div.onclick=function(){eval(this.clickAction);return true;};this.Cell.appendChild(div);this.mainDiv.appendChild(this.Cell);this.items[this.items.length]=this.Cell;this.Cell.items=new Array(0);this.makeSub(this.Cell,this.Xml.childNodes[i]);}};dynMenu.prototype.makeSub=function(Parent,Xml){if(Xml.childNodes.length==0){return true;}var miniViewer=false;var Container=document.createElement("DIV");Parent.Container=Container;Container.style.visibility="hidden";Container.style.position="absolute";Container._Xml=Xml;if(Xml.getAttribute("miniviewer")&&Xml.getAttribute("miniviewer")=="yes"){miniViewer=true;}Container.miniViewer=miniViewer;if(Xml.getAttribute("timage")){Divt=document.createElement("DIV");Divt.style.position="relative";Divt.style.cursor="default";Imgt=document.createElement("IMG");Imgt.border="0";Imgt.src=Xml.getAttribute("timage");Divt.appendChild(Imgt);Container.appendChild(Divt);}var DivT=document.createElement("DIV");if(Xml.getAttribute("subClass")){DivT.className=Xml.getAttribute("subClass");}Container.appendChild(DivT);if(miniViewer){var viewerTable=document.createElement("TABLE");viewerTable.cellSpacing="0";viewerTable.cellPadding="0";viewerTable.width="100%";viewerTable.border="0";DivT.appendChild(viewerTable);viewerTr=viewerTable.insertRow(0);var viewerTdImg=document.createElement("TD");viewerTdImg.style.width="188px";viewerTdImg.align="center";viewerTdImg.onclick=function(e){if(this.Cell&&this.Cell.clickAction){eval(this.Cell.clickAction);if(!document.all){e.stopPropagation();}else{event.cancelBubble=true;}}return false;};viewerTr.appendChild(viewerTdImg);var viewerTdSep=document.createElement("TD");viewerTdSep.className="menu_subMenuProjetsSeparateur";viewerTdSep.style.width="2px";viewerTr.appendChild(viewerTdSep);var viewerTdmenu=document.createElement("TD");viewerTdmenu.style.width="140px";viewerTr.appendChild(viewerTdmenu);var viewerDivScroll=document.createElement("DIV");viewerDivScroll.style.overflow="hidden";viewerDivScroll.style.position="relative";viewerDivScroll.nbItems=Xml.childNodes.length;viewerDivScroll.maxItem=eval(Xml.getAttribute("maxItem"));viewerDivScroll.itemHeight=eval(Xml.getAttribute("itemHeight"));viewerDivScroll.vHeight=viewerDivScroll.itemHeight*viewerDivScroll.maxItem;viewerDivScroll.style.height=viewerDivScroll.vHeight+"px";var nbPaget=viewerDivScroll.nbItems/viewerDivScroll.maxItem;if(nbPaget>=10){nbPagetInt=nbPaget.toString().substring(0,2);}else{nbPagetInt=nbPaget.toString().substring(0,1);}viewerDivScroll.nbPage=eval(nbPagetInt)+1;if(viewerDivScroll.scrollTop!=0){viewerDivScroll.currentPage=eval(viewerDivScroll.scrollTop)/viewerDivScroll.vHeight;}viewerDivScroll.currentPage=1;viewerDivScroll.currentScroll=eval(viewerDivScroll.scrollTop);viewerDivScroll.previousPage=function(){if(this.currentPage==1){return false;}this.currentPage=this.currentPage-1;this.scrollTop=this.currentScroll=this.currentScroll-this.vHeight;if(this.currentPage==1){this.imgLeft.style.display="none";this.imgLeft.Active=false;}if(this.imgRight.style.display="none"){this.imgRight.Active=true;this.imgRight.style.display="block";}this.textNode.innerHTML=viewerDivScroll.currentPage+" / "+viewerDivScroll.nbPage;};viewerDivScroll.nextPage=function(){if(this.currentPage==this.nbPage){return false;}this.scrollTop=this.currentScroll=this.currentScroll+eval(this.vHeight);this.currentPage=eval(this.currentPage)+1;if(this.currentPage==this.nbPage){this.imgRight.style.display="none";this.imgRight.Active=false;}if(this.imgLeft.style.display="none"){this.imgLeft.Active=true;this.imgLeft.style.display="block";}this.textNode.innerHTML=viewerDivScroll.currentPage+" / "+viewerDivScroll.nbPage;};viewerTdmenu.appendChild(viewerDivScroll);if(viewerDivScroll.maxItem<viewerDivScroll.nbItems){var viewerDivScrollNav=document.createElement("DIV");viewerDivScrollNav.style.height="20px";viewerDivScrollNav.style.position="relative";viewerDivScrollNav.onclick=function(e){if(!document.all){e.stopPropagation();}else{event.cancelBubble=true;}};viewerTdmenu.appendChild(viewerDivScrollNav);var viewerArrowLeft=document.createElement("IMG");viewerDivScroll.imgLeft=viewerArrowLeft;viewerArrowLeft.nodeElement=viewerDivScroll;viewerArrowLeft.width="12";viewerArrowLeft.height="18";viewerArrowLeft.border="0";viewerArrowLeft.style.position="absolute";viewerArrowLeft.style.left="40px";viewerArrowLeft.img_src=Xml.getAttribute("arrowLeft");viewerArrowLeft.src=viewerArrowLeft.img_src+"_out.png";if(viewerDivScroll.nbPage<=1||viewerDivScroll.currentPage!=1){viewerArrowLeft.Active=true;}else{viewerArrowLeft.Active=false;viewerArrowLeft.style.display="none";}viewerArrowLeft.onclick=function(){this.nodeElement.previousPage();};viewerArrowLeft.onmouseover=function(){if(this.Active)
this.src=this.img_src+"_over.png";};viewerArrowLeft.onmouseout=function(){if(this.Active)
this.src=this.img_src+"_out.png";};viewerDivScrollNav.appendChild(viewerArrowLeft);var viewerArrowText=document.createElement("DIV");viewerDivScroll.textNode=viewerArrowText;viewerArrowText.className="Menu_miniviewerText";viewerArrowText.style.position="absolute";viewerArrowText.style.left="59px";viewerArrowText.innerHTML=viewerDivScroll.currentPage+" / "+viewerDivScroll.nbPage;viewerDivScrollNav.appendChild(viewerArrowText);var viewerArrowRight=document.createElement("IMG");viewerDivScroll.imgRight=viewerArrowRight;viewerArrowRight.nodeElement=viewerDivScroll;viewerArrowRight.width="12";viewerArrowRight.height="18";viewerArrowRight.border="0";viewerArrowRight.style.position="absolute";viewerArrowRight.style.left="89px";if(viewerDivScroll.nbPage>1||viewerDivScroll.currentPage!=viewerDivScroll.nbPage){viewerArrowRight.Active=true;}else{viewerArrowRight.Active=false;viewerArrowRight.style.display="none";}viewerArrowRight.img_src=Xml.getAttribute("arrowRight");viewerArrowRight.src=viewerArrowRight.img_src+"_out.png";viewerArrowRight.onclick=function(){this.nodeElement.nextPage();};viewerArrowRight.onmouseover=function(){if(this.Active)
this.src=this.img_src+"_over.png";};viewerArrowRight.onmouseout=function(){if(this.Active)
this.src=this.img_src+"_out.png";};viewerDivScrollNav.appendChild(viewerArrowRight);}}var table=document.createElement("TABLE");table.cellSpacing="0";table.cellPadding="0";table.width="100%";table.border="0";if(miniViewer){table.style.height=eval(viewerDivScroll.nbPage)*viewerDivScroll.vHeight+"px";viewerDivScroll.appendChild(table);}else{DivT.appendChild(table);}for(var i=Xml.childNodes.length-1;i>=0;i--){var tr=table.insertRow(0);var td=document.createElement("TD");if(miniViewer){td.height="18";}tr.appendChild(td);if(Xml.childNodes[i].tagName=="element"){var Cell=document.createElement("DIV");Cell._container=Container;Cell._id=i;Cell.cssClass=Xml.childNodes[i].getAttribute("class");Cell.clickAction=Xml.childNodes[i].getAttribute("onclick");Cell.className=Cell.cssClass+"_out";Cell.style.width="100%";Cell.nodeElement=Parent;Cell.mainMenu=this;Cell.miniViewer=miniViewer;Cell.hideSub=function(){for(var i=0;this.items[i];i++){this.items[i].hide();}};Cell.hide=function(){if(this._container&&(this._container.style.visibility=="visible"||this.nodeElement.nodeElement==this.mainMenu)){this.hideSub();this._container.style.visibility="hidden";}};Cell.onclick=function(e){eval(this.clickAction);if(!document.all){e.stopPropagation();}else{event.cancelBubble=true;}return false;};Cell.onmouseover=function(){var z;this.className=this.cssClass+"_over";this.nodeElement.hideSub();if(this.items.length){if(this.havPic){z=2;}else{z=1;}this.childNodes[z].style.visibility="visible";}if(!document.all&&this.havPic&&this.childNodes[0].osrc){this.childNodes[0].src=this.childNodes[0].osrc;}if(this.viewerImg){this.viewerImg.Cell=this;if(currentSkin=="black"&&this.viewerImgaSrc){this.viewerImg.innerHTML='<img src="'+this.viewerImgaSrc+'" border="0" width="185" height="100" />';}else{this.viewerImg.innerHTML='<img src="'+this.viewerImgSrc+'" border="0" width="185" height="100" />';}}};Cell.onmouseout=function(){this.className=this.cssClass+"_out";if(!document.all&&this.havPic&&this.childNodes[0].osrc){this.childNodes[0].src=this.childNodes[0].ssrc;}};if(Xml.childNodes[i].getAttribute("viewerImg")&&miniViewer){Cell.viewerImg=viewerTdImg;Cell.viewerImgSrc=Xml.childNodes[i].getAttribute("viewerImg");if(Xml.childNodes[i].getAttribute("vieweraImg")){Cell.viewerImgaSrc=Xml.childNodes[i].getAttribute("vieweraImg");}}if(Xml.childNodes[i].getAttribute("src")){Cell.havPic=true;Img=document.createElement("IMG");Img.ssrc=Xml.childNodes[i].getAttribute("src");Img.src=Img.ssrc
if(Xml.childNodes[i].getAttribute("osrc")){Img.osrc=Xml.childNodes[i].getAttribute("osrc");}if(Xml.childNodes[i].getAttribute("imgClass")){Img.className=Xml.childNodes[i].getAttribute("imgClass");}else{Img.style.position="absolute";Img.style.left="0px";Img.style.top="0px";}Cell._img=Img;Cell.appendChild(Img);}else{Cell.havPic=false;}if(Xml.childNodes[i].getAttribute("title")){if(document.all&&i==0&&Parent.nodeElement.nodeElement!=this){Cell.style.paddingLeft="4px";}var pre;if(i==0&&Parent.nodeElement.nodeElement!=this){pre="";}else{pre="&nbsp;&nbsp;";}if(Xml.childNodes[i].getAttribute("br")){pre="<br>";}Cell.innerHTML=Cell.innerHTML+pre+Xml.childNodes[i].getAttribute("title");}if(document.all&&Cell.innerHTML.length==0){Cell.innerHTML="<img src='images/blank.gif' width=1 height=1 border=0 />";}td.appendChild(Cell);Parent.items[Parent.items.length]=Cell;Cell.items=new Array(0);this.makeSub(Cell,Xml.childNodes[i]);}else if(Xml.childNodes[i].tagName=="image"){Div=document.createElement("DIV");Div.style.position="relative";Img=document.createElement("IMG");Img.border="0";Img.src=Xml.childNodes[i].getAttribute("src");Div.appendChild(Img);td.appendChild(Div);Parent.items[Parent.items.length]=Cell;Div.items=new Array(0);this.makeSub(Div,Xml.childNodes[i]);}}if(miniViewer){var tr=table.insertRow(table.rows.length);var td=document.createElement("TD");tr.appendChild(td);}if(Xml.getAttribute("bimage")){Div=document.createElement("DIV");Div.style.position="relative";Div.style.cursor="default";Img=document.createElement("IMG");Img.border="0";Img.src=Xml.getAttribute("bimage");Div.appendChild(Img);Container.appendChild(Div);}Parent.appendChild(Container);};dynMenu.prototype.swapSkin=function(skin){if(this.currentSkin==skin){return false;}var imgSrc,ext;for(var i=0;this.mainDiv.getElementsByTagName("IMG")[i];i++){imgSrc=this.mainDiv.getElementsByTagName("IMG")[i];if(document.all&&imgSrc.realSrc){ext="realSrc";}else{ext="src";}this.mainDiv.getElementsByTagName("IMG")[i].src=imgSrc[ext].replace(this.currentSkin,skin);}this.currentSkin=skin;};dynMenu.prototype.cleanUp=function(){if(document.all){this.mainDiv.innerHTML="";}else{while(this.mainDiv.childNodes.length>0){this.mainDiv.removeChild(this.mainDiv.firstChild);}}this.positioned=false;};dynMenu.prototype.update=function(Xml){this.cleanUp();this.Xml=Xml.getElementsByTagName("menu")[0];this.currentSkin="white";this.items=new Array(0);this.makeMain();this.swapSkin(currentSkin);if(!this.positioned){Menu_Positions(this);this.positioned=true;}};dynMenuBot_parent="menuBottom";function dynMenuBot(Xml){if(!Xml.getElementsByTagName("menu")[0]){return false;}if(!document.dynMenuBots){document.dynMenuBots=new Array();}this.Id=document.dynMenuBots.length;document.dynMenuBots[document.dynMenuBots.length]=this;this.Xml=Xml.getElementsByTagName("menu")[0];this._parent=document.getElementById(dynMenuBot_parent);this._parent.innerHTML="";this.items=new Array(0);this.mainDiv=document.createElement("DIV");this.mainDiv.style.width="100%";this.mainDiv.style.padding="0px 0px 8px 0px";this.mainDiv.nodeElement=this;this._parent.appendChild(this.mainDiv);if(document.all){this.mainDiv.onselectstart=function(){return false;}}this.make();}dynMenuBot.prototype.make=function(){for(var i=0;this.Xml.childNodes[i];i++){if(i>0){this.mainDiv.innerHTML=this.mainDiv.innerHTML+'<span class="menuBasSeparateur">&nbsp;&nbsp;|&nbsp;&nbsp;</span>';}this.mainDiv.innerHTML=this.mainDiv.innerHTML+'<span class="menuBas"><a href="#" onclick="'+this.Xml.childNodes[i].getAttribute('onclick')+'">'+this.Xml.childNodes[i].getAttribute('title')+'</a></span>';}};dynMenuBot.prototype.clean=function(){this.mainDiv.innerHTML="";};dynMenuBot.prototype.update=function(Xml){this.Xml=Xml.getElementsByTagName("menu")[0];this.clean();this.make();};var dynSelect_DefaultTimeOut=800;function dynSelect(Parent,Class,imgFooter,imgw){if(!document.dynSelect){document.dynSelect=new Array();document.hideSelects=function(){for(var i=0;document.dynSelect[i];i++){if(document.dynSelect[i].menuActive){document.dynSelect[i].desActivate();document.dynSelect[i].menuActive=false;}}};}this.Id=document.dynSelect.length;document.dynSelect[document.dynSelect.length]=this;this.Parent=Parent&&Parent!="body"? document.getElementById(Parent): document.body;this.items=new Array();this.selectedIndex=false;this.visible=false;this.menuActive=false;this.timeOut=false;this.clicked=false;this.skin="white";this.cssPrefix=Class;this.imgFooter=imgFooter ? imgFooter :"skins/"+this.skin+"/menu/references_bottom.png";this.imgw=imgw ? imgw :"110";this.make();this.posMenu();}dynSelect.prototype.swapSkin=function(skin){if(this.skin==skin){return false;}var imgSrc,ext;for(var i=0;this.mainDiv.getElementsByTagName("IMG")[i];i++){imgSrc=this.mainDiv.getElementsByTagName("IMG")[i];if(document.all&&imgSrc.realSrc){ext="realSrc";}else{ext="src";}this.mainDiv.getElementsByTagName("IMG")[i].src=imgSrc[ext].replace(this.skin,skin);}this.skin=skin;};dynSelect.prototype.posMenu=function(){this.subMenu.style.left=0;};dynSelect.prototype.showhide=function(){if(this.visible){this.hide();}else{this.show();}};dynSelect.prototype.show=function(){if(!this.visible){this.subMenu.style.visibility="visible";this.visible=true;}};dynSelect.prototype.hide=function(){if(this.visible){this.subMenu.style.visibility="hidden";this.visible=false;}};dynSelect.prototype.desActivate=function(){this.clicked=false;this.hide();this.out();};dynSelect.prototype.swap=function(){if(this.clicked){this.desActivate();}else{this.Activate();}};dynSelect.prototype.Activate=function(){this.clicked=true;this.show();this.leftTd.className=this.cssPrefix+"leftTD"+"_click";this.textTd.className=this.cssPrefix+"textTD"+"_click";this.rightTd.className=this.cssPrefix+"rightTD"+"_click";};dynSelect.prototype.over=function(){if(this.clicked){return true;}this.leftTd.className=this.cssPrefix+"leftTD"+"_over";this.textTd.className=this.cssPrefix+"textTD"+"_over";this.rightTd.className=this.cssPrefix+"rightTD"+"_over";};dynSelect.prototype.out=function(){if(this.clicked){return true;}this.leftTd.className=this.cssPrefix+"leftTD"+"_out";this.textTd.className=this.cssPrefix+"textTD"+"_out";this.rightTd.className=this.cssPrefix+"rightTD"+"_out";};dynSelect.prototype.make=function(){this.mainDiv=document.createElement("DIV");this.mainDiv.nodeElement=this;if(document.all){this.mainDiv.onselectstart=function(){return false;};}this.mainDiv.onmouseover=function(){clearTimeout(this.nodeElement.timeOut);this.nodeElement.menuActive=true;this.nodeElement.over();};this.mainDiv.onmouseout=function(){this.nodeElement.out();this.nodeElement.timeOut=setTimeout(document.hideSelects,dynSelect_DefaultTimeOut);};this.mainDiv.className=this.cssPrefix+"main";this.mainDiv.onclick=function(){this.nodeElement.swap();};this.mainTable=document.createElement("TABLE");this.mainTable.cellSpacing="0";this.mainTable.cellPadding="0";this.mainTable.border="0";this.mainTable.style.width="100%";this.mainTable.style.height="100%";this.mainDiv.appendChild(this.mainTable);this.mainTr=this.mainTable.insertRow(0);this.leftTd=document.createElement("TD");this.leftTd.className=this.cssPrefix+"leftTD"+"_out";this.mainTr.appendChild(this.leftTd);this.textTd=document.createElement("TD");this.textTd.className=this.cssPrefix+"textTD"+"_out";this.mainTr.appendChild(this.textTd);this.rightTd=document.createElement("TD");this.rightTd.className=this.cssPrefix+"rightTD"+"_out";this.mainTr.appendChild(this.rightTd);this.subMenu=document.createElement("DIV");this.subMenu.style.visibility="hidden";this.subMenu.style.zIndex="100";this.subMenu.style.position="absolute";this.mainDiv.appendChild(this.subMenu);this.Parent.appendChild(this.mainDiv);};dynSelect.prototype.makeSub2=function(){this.subMenu2=document.createElement("DIV");this.subMenu2.className=this.cssPrefix+"subMenu";this.subMenu.appendChild(this.subMenu2);};dynSelect.prototype.makeSep=function(){this.subMenuSep=document.createElement("DIV");this.subMenuSep.style.height="10px";if(document.all){this.subMenuSep.innerHTML='<img src="images/blank.gif" />';}this.subMenu2.appendChild(this.subMenuSep);};dynSelect.prototype.makeFooter=function(){this.Footer=document.createElement("DIV");this.subMenu.appendChild(this.Footer);this.FooterImg=document.createElement("IMG");this.FooterImg.width=this.imgw;this.FooterImg.height="6";this.FooterImg.src=this.imgFooter;this.Footer.appendChild(this.FooterImg);};dynSelect.prototype.addItem=function(Text,Img,Action){var Item=new dynSelect_item(this,Text,Img,Action);};dynSelect.prototype.init=function(Sel){this.makeSubs();if(this.items[this.selectedIndex]){this.items[this.selectedIndex].select();}else if(Sel){this.items[Sel].select();}};dynSelect.prototype.setText=function(Text){this.textTd.innerHTML=Text;};dynSelect.prototype.makeSubs=function(){this.subMenu.innerHTML="";this.makeSub2();this.makeSep();for(var i=0;this.items[i];i++){this.items[i].make();}this.makeFooter();};function dynSelect_item(Parent,Text,Img,Action){this.Parent=Parent;this.Id=this.Parent.items.length;this.Parent.items[this.Parent.items.length]=this;this.Text=Text;this.Img=Img;this.Action=Action;this.selected=false;}dynSelect_item.prototype.make=function(){this.Div=document.createElement("DIV");this.Div.className=this.Parent.cssPrefix+"subItems"+"_out";this.Div.nodeElement=this;this.Div.onclick=function(){eval(this.nodeElement.Action);this.nodeElement.select();};this.Div.onmouseover=function(){this.className=this.nodeElement.Parent.cssPrefix+"subItems"+"_over";};this.Div.onmouseout=function(){if(this.nodeElement.selected){this.className=this.nodeElement.Parent.cssPrefix+"subItems"+"_active";}else{this.className=this.nodeElement.Parent.cssPrefix+"subItems"+"_out";}};this.Div.innerHTML=this.Text;if(this.Img){this.Div.innerHTML="";this.dImg=document.createElement("IMG");this.dImg.width="23";this.dImg.height="14";this.dImg.border="0";this.dImg.style.verticalAlign="middle";this.dImg.src=this.Img;this.Div.appendChild(this.dImg);this.Div.innerHTML=this.Div.innerHTML+"&nbsp;"+this.Text;}this.Parent.subMenu2.appendChild(this.Div);};dynSelect_item.prototype.unselect=function(){this.selected=false;this.Div.className=this.Parent.cssPrefix+"subItems"+"_out";};dynSelect_item.prototype.select=function(){if(this.Parent.items[this.Parent.selectedIndex]){this.Parent.items[this.Parent.selectedIndex].unselect();}this.Parent.selectedIndex=this.Id;this.selected=true;this.Parent.textTd.innerHTML=this.Div.innerHTML;this.Div.className=this.Parent.cssPrefix+"subItems"+"_active";};function dynCheckBox(Parent,Text,img_checked,img_unchecked,activated){this._parent=Parent&&Parent!="body"? document.getElementById(Parent): document.body;this.onActivate=false;this.onDesactivate=false;if(arguments.length>4&&arguments[4]){this.activated=true;}else{this.activated=false;}this.img_checked=img_checked;this.img_unchecked=img_unchecked;this.Text=Text;this.mainDiv=document.createElement("DIV");this.mainDiv.nodeElement=this;this.mainDiv.style.cursor="pointer";this.mainDiv.style.height="16px";this.mainDiv.vAlign="top";if(document.all){this.mainDiv.onselectstart=function(){return false;};}this.mainDiv.onclick=function(){this.nodeElement.swap();};this.img=document.createElement("IMG");if(this.activated){this.img.src=this.img_checked;}else{this.img.src=this.img_unchecked;}this.img.style.border="0px solid white";this.img.style.width="9px";this.img.style.height="14px";this.mainDiv.appendChild(this.img);this.textDiv=document.createElement("SPAN");this.textDiv.style.padding="0px 0px 4px 4px";this.textDiv.style.fontFamily="arial";this.textDiv.style.fontSize="11px";this.textDiv.style.color="#333333";this.textDiv.innerHTML=this.Text;this.mainDiv.appendChild(this.textDiv);this.swap=function(){if(this.activated){if(this.onDesactivate){this.onDesactivate();}this.img.src=this.img_unchecked;this.activated=false;}else{if(this.onActivate){this.onActivate();}this.img.src=this.img_checked;this.activated=true;}};this._parent.appendChild(this.mainDiv);}dynCheckBox.prototype.setText=function(Text){this.textDiv.innerHTML=Text;};var Onglets;var Onglets_Page=false;function build_onglet(Xml,Default){if(!Onglets||!Onglets.projetTab){Onglets=new dynOnglets(Xml);Onglets.projetTab=true;}else{if(!document.all){Onglets.cleanItems();Onglets.Parent.removeChild(Onglets.mainDiv);}else{Onglets.Parent.innerHTML="";Onglets.items=new Array();}Onglets=new dynOnglets(Xml);Onglets.projetTab=true;}if(arguments.length>1){Onglets.select(Default);}else{Onglets.select("0");}}function dynOnglets(Xml){if(!Xml.getElementsByTagName("onglets")[0]){return false;}this.Xml=Xml.getElementsByTagName("onglets")[0];this.Parent=this.Xml.getAttribute("parent")&&this.Xml.getAttribute("parent")!="body"? document.getElementById(this.Xml.getAttribute("parent")): document.body;this.items=new Array(0);this.selected=false;this.decal=parseInt(this.Xml.getAttribute("decal"));this.img_active=this.Xml.getAttribute("img_active");this.img_desout=this.Xml.getAttribute("img_desout");this.img_desover=this.Xml.getAttribute("img_desover");this.defaultzIndex=15;this.currentzIndex=false;this.make();this.position();}dynOnglets.prototype.cleanItems=function(){for(var i=0;this.items[i];i++){this.mainDiv.removeChild(this.items[i].mainDiv);}this.items=new Array(0);};dynOnglets.prototype.position=function(){this.decalPoint=eval(this.mainDiv.offsetLeft)+21;this.currentzIndex=this.defaultzIndex-1;for(var i=0;this.items[i];i++){this.items[i].mainDiv.style.left=this.decalPoint+"px";this.items[i].mainDiv.style.zIndex=this.currentzIndex;this.items[i]._zIndex=this.currentzIndex;this.decalPoint+=this.decal;this.currentzIndex--;}};dynOnglets.prototype.select=function(Id){if(this.selected.Id==Id){return false;}if(this.selected){this.selected.active=false;this.selected.mainDiv.style.zIndex=this.selected._zIndex;this.selected.mainDiv.style.cursor="pointer";this.selected.bgImg.src=this.img_desout;this.selected.textDiv.className=this.selected.textClass+"_out";if(this.selected.hasImg){this.selected.imgDiv.className=this.selected.imgDiv.Css+"_out";}}this.selected=this.items[Id];this.selected.active=true;this.selected.bgImg.src=this.img_active;this.selected.mainDiv.style.zIndex=this.defaultzIndex+1;this.selected.mainDiv.style.cursor="default";this.selected.textDiv.className=this.selected.textClass+"_active";if(this.selected.hasImg){this.selected.imgDiv.className=this.selected.imgDiv.Css+"_active";}if(!is_ie7){this.shadowPic1.width=this.selected.mainDiv.offsetLeft;this.shadowTdC.width=this.selected.mainDiv.offsetWidth;this.shadowPic2.width=eval(this.bodyDiv.offsetWidth)-eval(this.selected.mainDiv.offsetLeft)-eval(this.selected.mainDiv.offsetWidth);}else{this.shadowTdL.width=this.selected.mainDiv.offsetLeft;this.shadowTdR.width=eval(this.bodyDiv.offsetWidth)-eval(this.selected.mainDiv.offsetLeft)-eval(this.selected.mainDiv.offsetWidth);}var toLoad="content/structure_loader.php?page="+this.selected.contentXml;if(document.getElementById("idProjet")){toLoad+="&id="+document.getElementById("idProjet").value;}if(this.selected.addVar){toLoad+="&"+this.selected.addVar.replace("|","&");}this.selected.Xmlbody=xml_loader(toLoad,function(Xml){Onglets.loadBody(Xml);});};dynOnglets.prototype.loadBody=function(Xml){if(!Xml.getElementsByTagName("structure")[0]){return false;}this.selected.Xmlbody=Xml.getElementsByTagName("structure")[0];this.bodyDiv.style.height="";this.bodyDiv.innerHTML=this.selected.Xmlbody.firstChild.nodeValue;if(eval(this.bodyDiv.offsetHeight)>300){this.mainDiv.style.height=eval(this.bodyDiv.offsetHeight)+38+"px";}else{this.mainDiv.style.height="338px";this.bodyDiv.style.height="300px";}};dynOnglets.prototype.make=function(){this.mainDiv=document.createElement("DIV");this.mainDiv.className="dynOnglets_main";this.Parent.appendChild(this.mainDiv);this.contDiv=document.createElement("DIV");this.contDiv.className="dynOnglet_content";this.contDiv.vAlign="top";this.contDiv.style.zIndex=this.defaultzIndex;this.contShadow=document.createElement("DIV");this.contShadow.style.position="relative";this.contDiv.appendChild(this.contShadow);this.shadowTable=document.createElement("TABLE");this.shadowTable.cellSpacing="0";this.shadowTable.cellPadding="0";this.shadowTable.border="0";this.shadowTable.width="100%";this.shadowTable.height="8";this.contShadow.appendChild(this.shadowTable);this.shadowTr=this.shadowTable.insertRow(0);this.shadowTdL=document.createElement("TD");this.shadowTr.appendChild(this.shadowTdL);this.shadowTdC=document.createElement("TD");this.shadowTdC.style.width="122px";this.shadowTr.appendChild(this.shadowTdC);this.shadowTdR=document.createElement("TD");this.shadowTr.appendChild(this.shadowTdR);if(!is_ie7){this.shadowPic1=document.createElement("IMG");this.shadowPic1.src=this.Xml.getAttribute("img_shadow");this.shadowPic1.width="10";this.shadowPic1.height="8";this.shadowPic1.border="0";this.shadowTdL.appendChild(this.shadowPic1);this.shadowPic2=document.createElement("IMG");this.shadowPic2.src=this.Xml.getAttribute("img_shadow");this.shadowPic2.width="10";this.shadowPic2.height="8";this.shadowPic2.border="0";this.shadowTdR.appendChild(this.shadowPic2);}else{this.shadowTdL.background=this.Xml.getAttribute("img_shadow");this.shadowTdR.background=this.Xml.getAttribute("img_shadow");}this.bodyDiv=document.createElement("DIV");this.bodyDiv.className="dynOnglet_body";this.contDiv.appendChild(this.bodyDiv);for(var i=0;this.Xml.childNodes[i];i++){var Obj=new Object();this.items[i]=Obj;Obj.Id=i;Obj.contentXml=this.Xml.childNodes[i].getAttribute("contentxml");Obj.addVar=this.Xml.childNodes[i].getAttribute("addVar");if(this.Xml.childNodes[i].getAttribute("onclick")){Obj.clickAction=this.Xml.childNodes[i].getAttribute("onclick");}Obj.active=false;Obj.nodeElement=this;Obj.textClass=this.Xml.childNodes[i].getAttribute("classtxt");Obj.hasImg=false;Obj.mainDiv=document.createElement("DIV");Obj.mainDiv.style.cursor="pointer";if(this.Xml.childNodes[i].getAttribute("classbg")){Obj.mainDiv.className=this.Xml.childNodes[i].getAttribute("classbg");}Obj.mainDiv.style.position="absolute";Obj.mainDiv.nodeElement=Obj;Obj.bgImg=document.createElement("IMG");Obj.bgImg.src=this.img_desout;Obj.bgImg.width="122";Obj.bgImg.height="38";Obj.mainDiv.appendChild(Obj.bgImg);Obj.textDiv=document.createElement("DIV");Obj.textDiv.className=Obj.textClass+"_out";Obj.textDiv.style.position="absolute";var Texte;Obj.textDiv.innerHTML=this.Xml.childNodes[i].getAttribute("title");if(document.all){Obj.textDiv.onselectstart=function(){return false;};}Obj.mainDiv.appendChild(Obj.textDiv);if(this.Xml.childNodes[i].getAttribute("img")){Obj.hasImg=true;Obj.imgDiv=document.createElement("IMG");Obj.imgDiv.className=this.Xml.childNodes[i].getAttribute("classimg")+"_out";Obj.imgDiv.border="0";Obj.imgDiv.Css=this.Xml.childNodes[i].getAttribute("classimg");Obj.imgDiv.style.position="absolute";Obj.imgDiv.src=this.Xml.childNodes[i].getAttribute("img");Obj.mainDiv.appendChild(Obj.imgDiv);}Obj.mainDiv.onclick=function(){if(this.nodeElement.nodeElement.selected!=this.nodeElement&&this.nodeElement.clickAction){eval(this.nodeElement.clickAction);}this.nodeElement.nodeElement.select(this.nodeElement.Id);};Obj.mainDiv.onmouseover=function(){if(!this.nodeElement.active){this.nodeElement.bgImg.src=this.nodeElement.nodeElement.img_desover;this.nodeElement.textDiv.className=this.nodeElement.textClass+"_over";}};Obj.mainDiv.onmouseout=function(){if(!this.nodeElement.active){this.nodeElement.bgImg.src=this.nodeElement.nodeElement.img_desout;this.nodeElement.textDiv.className=this.nodeElement.textClass+"_out";}};this.mainDiv.appendChild(Obj.mainDiv);}this.mainDiv.appendChild(this.contDiv);};
