var css="/Entreprise/ObjCommun/css/ie.css";
if (navigator.appName=="Netscape") {
if (navigator.appVersion.indexOf('4.78')!=-1){css="/Entreprise/ObjCommun/css/ns.css";}
else if (navigator.appVersion.indexOf('5')!=-1){css="/Entreprise/ObjCommun/css/ie.css";}
else {css="/Entreprise/ObjCommun/css/ns.css";}
}
if (navigator.appName=="Microsoft Internet Explorer") {css="/Entreprise/ObjCommun/css/ie.css";}
document.write("<LINK rel='StyleSheet' type='text/css' href='"+css+"'>");
function swap(objName,picName){
objName.src=picName;
}
function setCookieSite(nom, valeur, duree){
var today = new Date();
var expdate = new Date();
expdate = new Date(today.getTime() + (duree)); 
document.cookie = nom + "=" + escape(valeur) + ((expdate == null)?"":("; expires=" + expdate.toGMTString())) + ";path=/";
}
function getCookieSite(nom) {
var recherche = nom + "=";
if (document.cookie.length > 0) {
var offset=document.cookie.indexOf(recherche);
if (offset != -1) {
offset += recherche.length;
var fin = document.cookie.indexOf(";", offset);
if (fin == -1)
fin = document.cookie.length;
return unescape(document.cookie.substring(offset, fin));
}
}
}
function xt_tag(s, s2, p){
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
hsi = '<img width="1" height="1" src="http://logc8.xiti.com/hit.xiti?s=' + s + '&s2=' + s2;
hsi += '&p=' + p;
hsi += '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion) >= 4){
	Xiti_s = screen;
	hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;
}
hsd.writeln(hsi + '&ref=' + hsr.replace(/&/g, '$') + '">');
	// ajout pour verif xiti
	//alert ("xt_tag hsi=" + hsi);
	//fin ajout pour verif xiti
}
function xt_tagAndClic(s, s2, p){
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
xt_img = new Image();
hsi = 'http://logc8.xiti.com/hit.xiti?s=' + s_un + '&s2=' + s2;
hsi += '&p=' + p + '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion) >= 4){
	Xiti_s = screen;
	hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;
}
hsi += '&ref=' + hsr.replace(/&/g, '$');
	// ajout pour verif xiti
	//alert ("xt_tagAndClic hsi=" + hsi);
	//fin ajout pour verif xiti
xt_img.src = hsi;
}
function xt_clic(typecl, page, url){
xt_clic(typecl, page, url, "");
}
function xt_clic(typecl, page, url, nvlle){
hsh = new Date();
hsd = document;
hsr = hsd.referrer.replace(/[<>]/g, '');
xt_img = new Image();
hsi = 'http://logc8.xiti.com/hit.xiti?s=' + s_un;
hsi += '&p=EE_' + page + '&clic=' + typecl + '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
if(parseFloat(navigator.appVersion) >= 4){
	Xiti_s = screen;
	hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;
}
hsi += '&ref=' + hsr.replace(/&/g, '$');
	// ajout pour verif xiti
	//alert ("xt_clic hsi=" + hsi);
	//fin ajout pour verif xiti
xt_img.src = hsi;
if (url != null){
	if ((nvlle == '') || (nvlle == null)) { 
		hsd.location = url;
	}else{
		xfen = window.open(url, 'xfen', ''); 
		xfen.focus();
	}
}
}
function xt_flash(typefl, page){
	hsh = new Date();
	hsd = document;
	hsr = hsd.referrer.replace(/[<>]/g, '');
	xt_img = new Image();
	hsi = 'http://logc8.xiti.com/hit.xiti?s=' + s_un + '&s2=' + s_deux;
	hsi += '&p=' + page + '&type=' + typefl + '&hl=' + hsh.getHours() + 'x' + hsh.getMinutes() + 'x' + hsh.getSeconds();
	if(parseFloat(navigator.appVersion) >= 4){
		Xiti_s = screen;
		hsi += '&r=' + Xiti_s.width + 'x' + Xiti_s.height + 'x' + Xiti_s.pixelDepth + 'x' + Xiti_s.colorDepth;
	}
	hsi += '&ref=' + hsr.replace(/&/g, '$');
	// ajout pour verif xiti
	//alert ("xt_FLASH hsi=" + hsi);
	//fin ajout pour verif xiti
	xt_img.src = hsi;
	return;
}
