if (deficient == "") { 
  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.avh.asso.fr/themes/default/style/links.css\" />");
  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.avh.asso.fr/themes/default/style/accueil_iquesta.css\" />");
  document.write("<script src=\"http://www.avh.asso.fr/includes/javascript.js\" type=\"text/javascript\"></script>");
  document.write("<script src=\"http://www.avh.asso.fr/module_theme_menu.js\" type=\"text/javascript\"></script>");
}else if (deficient == 1) {


  document.write("<link rel=\"stylesheet\" type=\"text/css\" href=\"http://www.avh.asso.fr/themes/default/style/accueil_blind.css\" />");
  document.write("<script src=\"http://www.avh.asso.fr/includes/javascript.js\" type=\"text/javascript\"></script>");


function getCookieM (nom) {
  var arg = nom + "=";
  var alen = arg.length;
  var i = 0;
  
  
  while (i < document.cookie.length) {
    var j = i + alen;
    if (document.cookie.substring(i, j) == arg) {
      var endstr = document.cookie.indexOf (";", j);
      if (endstr == -1) endstr = document.cookie.length;
      return unescape(document.cookie.substring(j, endstr));
    }
    i = document.cookie.indexOf(" ", i) + 1; 
    if (i == 0) break; 
  }
  return null;
}


compt = getCookieM('zzAViq');

if (compt != null) { 
  dc = compt.split(':');
  tailleTexte = dc[0];
  colorTexte = dc[1];
  colorFond = dc[2];
}
  
  document.write("<style type=\"text/css\">");
  document.write("html, body { background: #"+colorFond+";	color: #"+colorTexte+"; }");
  document.write("input, textarea, select { background: #"+colorFond+"; color: #"+colorTexte+"; font-size: "+tailleTexte+"px; border: 2px solid #"+colorTexte+"}");
  document.write("h1, h2, h3, h4, h5, h6, p, .small, .smallsmall, div ul, div li, span, tr, td { font-size: "+tailleTexte+"px;}");
  document.write("h1, h2, h3, h4, .cadreMenu { width:100%; clear:both; border:0px; border-left: 10px solid #" + colorTexte + "; border-bottom: 2px solid #" + colorTexte + "; padding:5px 5px 8px 10px; text-align:left; margin-top:50px; }");
  document.write(".copyright { font-size: "+tailleTexte+"px; }");
  document.write(".date { font-size: "+tailleTexte+"px; }");
  document.write(".publication { font-size: "+(tailleTexte-1)+"px; }");
  document.write("a { font-size: "+tailleTexte+"px; color: #"+colorTexte+"; font-weight: bolder;  text-decoration: underline; }");
  document.write("a:hover { text-decoration: none; }");
  document.write(".infosSearch, .infosSearchPage { color: #"+colorTexte+"; font-size:"+tailleTexte+"px; }	.search label { font-size: "+tailleTexte+"px; }");
  document.write(".search input { color:#"+colorTexte+"; background:#"+colorFond+"; font-size: "+tailleTexte+"px; }");
  
  document.write(".tablo { width:90%; border: 1px solid #"+colorTexte+" }");
  document.write(".tabloCaption { font-size: "+tailleTexte+"px; }");
  document.write("span.cadrePhoto img { border: 2px solid #"+colorTexte+"; background: #"+colorFond+"; }");
  document.write("span.zoneTest {  border: 2px solid #"+colorTexte+" }");

  document.write('table, tr, td, th { border:none; }');
  document.write('.tabloContentIQ, .annonceIQ, #imgcenter, .descIQ, .descjustifIQ, .caracIQ, .caracgaucheIQ, .caracdroiteIQ, .caracdroiterefIQ, .caracdroiterefIQ div { text-align:left; padding:0px; margin:0px; float:left; }');
document.write('  img, hr { display:none; }');

  document.write("BODY {");
  document.write("scrollbar-face-color:#"+colorTexte+";");
  document.write("scrollbar-arrow-color:#"+colorFond+";");
  document.write("scrollbar-track-color:#"+colorFond+";");
  document.write("scrollbar-highlight-color:#"+colorFond+";");
  document.write("scrollbar-3dlight-color:#"+colorFond+";");
  document.write("scrollbar-shadow-color:#"+colorFond+";");
  document.write("}");
  document.write("</style>");
}

