<!--

var wysiCookieAccept = wysiIsCookiesAccepted();
var wysiEcran        = wysiGetScreenSize();

function wysistat(nom_client,frame,ParaWysistat,CompteurExtranet,ParaPage,ParaRoi,ParaProfiling) {
	
	var dateNoCache = new Date()

	if (!frame)		{ var frame=0; }
	if (!ParaWysistat)	{ var ParaWysistat=0; }
	if (!CompteurExtranet)	{ var CompteurExtranet=0; }

	if (!ParaPage)		{ var ParaPage=0; }
	else			{ ParaPage=escape(ParaPage); }

	if (!ParaRoi)		{ var ParaRoi=0; }
	else			{ ParaRoi=escape(ParaRoi); }

	if (!ParaProfiling)	{ var ParaProfiling=0; }
	else			{ ParaProfiling=escape(ParaProfiling); }
	
	if (wysi==1) {
		compteur = new Image(1,1);
	
		// Utilisation de www.wysistat.com pour le ssl + gestion cookie sur même domaine
		if (document.URL.substr(0,5).toLowerCase()=='https') {
			compteur.src = 'https://www.wysistat.com/images/'+nom_client+'/roi_compteur_v2.php?nom='+nom_client+'&frame='+frame+'&ecran='+wysiEcran+'&origine='+escape(document.referrer)+'&tps='+dateNoCache.getSeconds()+dateNoCache.getMinutes()+'&ParaWysistat='+ParaWysistat+'&CompteurExtranet='+CompteurExtranet+'&ParaPage='+ParaPage+'&ParaProfiling='+ParaProfiling+'&cookie='+wysiCookieAccept+'&page_js='+escape(location.href)+'&ParaRoi='+ParaRoi+'&ojd_version=2';
		}
		else {
			compteur.src = 'http://www.wysistat.com/images/'+nom_client+'/roi_compteur_v2.php?nom='+nom_client+'&frame='+frame+'&ecran='+wysiEcran+'&origine='+escape(document.referrer)+'&tps='+dateNoCache.getSeconds()+dateNoCache.getMinutes()+'&ParaWysistat='+ParaWysistat+'&CompteurExtranet='+CompteurExtranet+'&ParaPage='+ParaPage+'&ParaProfiling='+ParaProfiling+'&cookie='+wysiCookieAccept+'&page_js='+escape(location.href)+'&ParaRoi='+ParaRoi+'&ojd_version=2';
		}
	}
}

// Fonction de récupération de la taille d'écran
function wysiGetScreenSize() {
	var ecran=0;
	if (document.layers)	{ ecran = window.innerWidth; }
	if (document.all)	{ ecran = screen.width; }
	return ecran;
}

// Fonction indépendante de gestion de l'acceptation des cookies
function wysiIsCookiesAccepted() {
	var cookieAccept = 0;
	var cookieName   = "WysistatAcceptCookies";
	var cookieExpire = 30*24*60*60*1000;
	var cookieVal    = "Test de lecture des cookies";
	var dateActu     = new Date();
	var dateExpire   = new Date(dateActu.getTime()+ cookieExpire);

	document.cookie = cookieName + "=" + escape(cookieVal) + ";expires=" + dateExpire.toGMTString()+";path=/;";

	var test = document.cookie.indexOf(cookieName + '=' + escape(cookieVal));
	if (test >= 0) { cookieAccept = 1; }

	dateExpire = new Date(dateActu.getTime() - 8760);

	document.cookie = cookieName + "=" + ";expires=" + dateExpire.toGMTString()+";path=/;";

	return cookieAccept;
}

wysi=1;
//-->