function setActiveStyleSheet(title) {  var i, a, main;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title")) {      a.disabled = true;      if(a.getAttribute("title") == title) a.disabled = false;    }  }}function getActiveStyleSheet() {  var i, a;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1 && a.getAttribute("title") && !a.disabled) return a.getAttribute("title");  }  return null;}function getPreferredStyleSheet() {  var i, a;  for(i=0; (a = document.getElementsByTagName("link")[i]); i++) {    if(a.getAttribute("rel").indexOf("style") != -1       && a.getAttribute("rel").indexOf("alt") == -1       && a.getAttribute("title")       ) return a.getAttribute("title");  }  return null;}function createCookie(name,value,days) {  if (days) {    var date = new Date();    date.setTime(date.getTime()+(days*24*60*60*1000));    var expires = "; expires="+date.toGMTString();  }  else expires = "";  document.cookie = name+"="+value+expires+"; path=/";}function readCookie(name) {  var nameEQ = name + "=";  var ca = document.cookie.split(';');  for(var i=0;i < ca.length;i++) {    var c = ca[i];    while (c.charAt(0)==' ') c = c.substring(1,c.length);    if (c.indexOf(nameEQ) == 0) return c.substring(nameEQ.length,c.length);  }  return null;}window.onload = function(e) {  var cookie = readCookie("style");  var title = cookie ? cookie : getPreferredStyleSheet();  setActiveStyleSheet(title);}window.onunload = function(e) {  var title = getActiveStyleSheet();  createCookie("style", title, 365);}var cookie = readCookie("style");var title = cookie ? cookie : getPreferredStyleSheet();setActiveStyleSheet(title);


// location=yes/no : affiche ou non la barre d'adresse, // toolbar=yes/no : affiche ou non la barre de boutons, // directories=yes/no : affiche ou non la barre de boutons 'Nouveautes'..., // menubar=yes/no : affiche ou non la barre des menus (Fichier, Edition...), // resizable=yes/no : permet ou non le redimensionnement de la fenetre, // screenX= : placement de la fenetre en abcisse, // screenY= : placement de la fenetre en ordonnee, // scrollbars=yes/no : affiche ou non les ascenceurs, // status=yes/no : affiche ou non la barre d'etat, // width : donne la largeur de la fenetre en pixels, // height : donne la hauteur de la fenetre en pixels.// fonction utilisable pour plusieurs fichiers dans la meme fenetre 'popup'function popup(adresse){	window.open(adresse,'nom_de_la_fenetre','location=no,toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,status=no,width=200,height=150,screenY=200,screenX=200');}// fonction utilisable pour plusieurs fichiers dans des fenetres differentes, de tailles et positions differentesfunction popupmodulo(adresse, name, x, y, top, left){	window.open(adresse,name,'location=no,toolbar=no,directories=no,menubar=no,resizable=yes,scrollbars=yes,status=yes,width='+x+',height='+y+'screenY='+top+',screenX='+left);}
