h = screen.width;
pub = 560;
if (h < 1024) { taille = 1004;}else{ taille = eval(h-20); }

nvg = new RegExp("(MSIE 6)");
if (nvg.test([navigator.userAgent])==true) { selectNav = ""; }else{ selectNav = "_Firefox"; };

nvg = new RegExp("(MSIE 7)");
if (nvg.test([navigator.userAgent])==true) { selectNav = "_IE7"; }

liTaille = "style=\"height:22px;\"";
liTaille2 = "style=\"height:33px;\"";


var pathname='';
var myDomain=pathname.substring(0,pathname.lastIndexOf('/')) +'/';
var myDomain='';
var date_exp = new Date();
date_exp.setTime(date_exp.getTime()+(5184000));
var nomCookie='zzAViq';
	
function EcrireCookie(nom, valeur) {
  var argv=EcrireCookie.arguments;
  var argc=EcrireCookie.arguments.length;
  var expires=(argc > 2) ? argv[2] : null;
  var path=(argc > 3) ? argv[3] : null;
  var domain=(argc > 4) ? argv[4] : null;
  var secure=(argc > 5) ? argv[5] : false;
  
  document.cookie=nom+'='+escape(valeur)+
  ((expires==null) ? '' : ('; expires='+expires.toGMTString()))+
  ((path==null) ? '' : ('; path='+path))+
  ((domain==null) ? '' : ('; domain='+domain))+
  ((secure==true) ? '; secure' : '');
}



/*function getCookie (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;
}


compteur = getCookie('AVHiq');*/
//alert(compteur);






code = document.location.href;
modeDV = new RegExp("(deficient=1)");

if (modeDV.test([code])==true) {
  deficient = "1"; 
  
  lz = document.location.href.length;
  debut = document.location.href.indexOf('?', 0);
  part = document.location.href.substring(debut+1, lz);
  doc = document.location.href.split('&');
  
  rs = doc[1].split('=');
  tailleTexte = rs[1];
  
  rs = doc[2].split('=');
  colorTexte = rs[1];
  
  rs = doc[3].split('=');
  colorFond = rs[1];

  EcrireCookie(nomCookie, tailleTexte+':'+colorTexte+':'+colorFond);
}else{
  deficient = "";
};


//&tailleTexte=13&colorTexte=000000&colorFond=FFFFFF

