var d="ENG",e="",f=new Array("ITA","ENG","FRA"),g=new Array("Dottorando","PhD Student","Doctorant"),h=new Array("MP","BIO","CV","WIP","Calendar","music"),l={},m="";for(i in h)for(j in f){l[f[j]+h[i]]=0;m+=f[j]+h[i]+"="+l[f[j]+h[i]]+"\n"}
function o(){if(window.XMLHttpRequest)return new XMLHttpRequest;if(window.a){var b=["Msxml2.XMLHTTP.6.0","Msxml2.XMLHTTP.3.0","Msxml2.XMLHTTP","Microsoft.XMLHTTP"];for(var c in b)try{return new ActiveXObject(b[c])}catch(n){}}window.alert("Votre navigateur ne prend pas en charge l'objet XMLHTTPRequest.");return null}function p(b){if(document.getElementById)return document.getElementById(b);else if(document.all){alert(document.all[b].id);return document.all[b]}alert("ERROR LOADING");return 0}
function q(b){e!=""&&r(d,e);d=b;b=p("profession");for(i in f)if(d==f[i]){b.innerHTML=g[i];p(f[i]).firstChild.style.width="28px"}else p(f[i]).firstChild.style.width="24px";s(e)}function t(){q(this.id)}function r(b,c){(b=p(b+"_"+c))&&b.setAttribute("class","hide");(c=p(c))&&c.parentNode.setAttribute("class","")}function u(b,c){(b=p(b+"_"+c))&&b.setAttribute("class","visible");(c=p(c))&&c.parentNode.setAttribute("class","active")}
function s(b){e!=""&&r(d,e);if(l[d+b]==0){l[d+b]=1;v(d,b)}else u(d,b);e=b}function w(){s(this.id)}function v(b,c){var n="./"+b+"_"+c+".html",k=o();k.open("GET",n,true);k.setRequestHeader("Content-type","application/x-www-form-urlencoded");k.onreadystatechange=function(){if(!(k.readyState<4)){p("corpusin").innerHTML+=k.responseText;u(b,c)}};k.send("")}
if(p(f[0]).addEventListener){for(i in f)p(f[i]).addEventListener("click",t,false);for(i in h)p(h[i]).addEventListener("click",w,false)}else{for(i in f)p(f[i]).attachEvent("onclick",t);for(i in h)p(h[i]).attachEvent("onclick",w)}q("ENG");s("MP");