function getCookieVal (offset) { 
	var endstr = document.cookie.indexOf (";", offset); 
	if (endstr == -1) endstr = document.cookie.length; 
	return unescape(document.cookie.substring(offset, endstr)); 
}
function FixCookieDate (date) { 
	var base = new Date(0); 
	var skew = base.getTime(); 
	// dawn of (Unix) time - should be 0 if (skew > 0) // Except on the Mac - ahead of its time 
	date.setTime (date.getTime() - skew);
}
function GetCookie (nomDuCookies) { 
	var arg = nomDuCookies + "="; 
	var alen = arg.length; 
	var clen = document.cookie.length; 
	var i = 0; 
	while (i < clen) { 
		var j = i + alen; 
		if (document.cookie.substring(i, j) == arg) return getCookieVal (j); 
		i = document.cookie.indexOf(" ", i) + 1; 
		if (i == 0) break; 
	} 
	return null; 
}
function SetCookie (nomDuCookies,valeurDuCookies,expires,path,domain,secure) { 
	document.cookie = nomDuCookies + "=" + escape (valeurDuCookies) + ((expires) ? "; expires=" + expires.toGMTString() : "") + ((path) ? "; path=" + path : "") + ((domain) ? "; domain=" + domain : "") + ((secure) ? "; secure" : "");
}
var expdate = new Date ();
FixCookieDate (expdate);
expdate.setTime(expdate.getTime()+(60 * 24 * 3600 * 1000)); 
if(!(nombreVisites= GetCookie("frequence"))) nombreVisites = 0; 
	nombreVisites++;
//=================================================//// POSE DU COOKIES DE COMPTAGE DES VISITES////================================================== 
SetCookie("frequence", nombreVisites, expdate, "/", null, false);
document.write("Vous venez de : <b>" + document.referrer + "</b><br>");
document.write("La langue de votre navigateur : <b>" + navigator.systemlanguage + "</b><br>");
document.write("La taille de votre écran : <b>" + screen.width + " x " + screen.height + "</b><br>");
document.write("Le nombre de bits-couleur : <b>" + screen.colorDepth + " bits </b><br>");
document.write("Votre navigateur : <strong>" + navigator.appName + "</strong><br>");
document.write("La version de votre navigateur : <strong>" + navigator.appVersion + "</strong><br>");
document.write("Vos Passages sur notre site : <strong>" + nombreVisites + "</strong><br>");
document.write("votre système d'exploitation : <strong>" + navigator.platform+ "</strong><br>");


