<!--
xtdm = "";	//cookie domain (.xxxxxx.com)
xt_idprior = 0;
xtanrm = 3650 ; 		//xtan remanence (number of days)
xttdrm = new Array;;		//remanence (number of days)
xttdrm["sec"]="30";		
xttdrm["rss"]="30";		
xttdrm["epr"]="30";		
xttdrm["erec"]="30";		
xttdrm["adi"]="30";		
xttdrm["adc"]="30";
xttdrm["al"]="30";
xto_force = null;      	//to fix your own independant xtor

var xtdr = 30;
var xw = window;
var xd = document;
xtdm = (xw.xtdm!=null && xw.xtdm!='') ? ";domain=" + xw.xtdm  : "" ;
xtnv = (xw.xtnv!=null) ? xw.xtnv : xd ;
xtsd = (xw.xtsd!=null) ? xw.xtsd : "http://logi3" ;
xtsite = (xw.xtsite!=null) ? xw.xtsite : 0;
xtn2 = (xw.xtn2!=null) ? '&s2='+xw.xtn2 : '';
xtp = (xw.xtpage!=null) ? xw.xtpage : "";
xtrd = (xtsite=="redirect") ? true : false;
xtdi = ((xw.xtdi!=null)&&(xw.xtdi!="")) ? "&di=" + xw.xtdi : "";
xtm = (xw.xtparam!=null) ? xw.xtparam : "";
xtoid = (xw.xt_orderid!=null) ? xw.xt_orderid : "";
xtcart = (xw.xtcart!=null) ? xw.xtcart : "";	

xtrmt = ((xw.roimt!=null)&&(xw.roimt!="")&&(xtm.indexOf("&roimt",0)<0)) ? "&roimt=" + xw.roimt : "";
xter = ((xw.xterr!=null)&&(xw.xterr!="")&&(xtm.indexOf("&err",0)<0)) ? "&err=" + xw.xterr : "";
xtmc = ((xw.xtmc!=null)&&(xw.xtmc!="")&&(xtm.indexOf("&mc",0)<0)) ? "&mc=" + xw.xtmc : "";
xtac = ((xw.xtac!=null)&&(xw.xtac!="")&&(xtm.indexOf("&ac",0)<0)) ? "&ac=" + xw.xtac : "";
xtan = ((xw.xtan!=null)&&(xw.xtan!="")&&(xtm.indexOf("&an",0)<0)) ? "&an=" + xw.xtan : "";
xtnp = ((xw.xtnp!=null)&&(xw.xtnp!="")&&(xtm.indexOf("&np",0)<0)) ? "&np=" + xw.xtnp : "";
xtprm = ((xw.xtprm!=null)&&(xtm.indexOf("&x",0)<0)) ? xw.xtprm : "";
xtm += xtrmt+xter+xtmc+xtac+xtan+xtnp+xtprm;	
try {xt_rfr = top.document.referrer;}
catch(e) {xt_rfr = xtnv.referrer; }
xts = screen;
var xtdate = new Date();
var xtheureh = xtdate.getTime() / (1000*3600);	

function xtclURL(ch)
{return ch.replace(/%3C/g,'<').replace(/%3E/g,'>').replace(/[<>]/g,'');}

function Getxtorcookie(nom)
{
		var arg = nom + "=";
		var i = 0 ;
		while (i<xd.cookie.length)
		{
			var j = i + arg.length;
			if (xd.cookie.substring(i,j) == arg) {return valeurxtorcook(j);}
			i = xd.cookie.indexOf(" ",i) + 1;
			if (i==0) {break;}
		}
		return null;}

function valeurxtorcook(index)
{
		var fin = xd.cookie.indexOf(";",index);
		if (fin==-1) {fin=xd.cookie.length;};
		return unescape(xtclURL(xd.cookie.substring(index,fin)));
}

function wcookie(p1,p2,p3,p4,fmt)
{
	p2 = (fmt==0) ? p2 : escape(p2);
	xd.cookie = p1 + "=" + p2 + ";expires=" + p3.toGMTString() + " ;path=/" + p4;
}
function recupxtor(param,chba)
{
		if ((chba==null)||(chba==undefined)) 
		{var xturl = xtclURL(xtnv.location.href.toLowerCase().replace(/%3d/g,'='));}
		else
		{var xturl = chba;}	
		xtpos = xturl.indexOf(param+"=");
		if (xtpos > 0)
		{
			chq = xturl.substring(1, xturl.length);
			mq = chq.substring(chq.indexOf(param+"="), chq.length);
			pos3 = mq.indexOf("&");
			if (pos3 == -1) pos3 = mq.indexOf("%26")
			if (pos3 == -1) pos3 = mq.length;
			return mq.substring(mq.indexOf("=")+1, pos3);
		}
		else{  return null; }
}

function xt_med(type,section,page,x1,x2,x3,x4,x5)
{
	xt_img = new Image();
	var xtdmed = new Date();
	xt_ajout = (type=='F') ? '' : (type=='M') ? '&a='+x1+'&m1='+x2+'&m2='+x3+'&m3='+x4+'&m4='+x5 : '&clic='+x1;
	Xt_im = xtsd+'.xiti.com/hit.xiti?s='+xtsite+'&s2='+section;
	Xt_im += '&p='+page+xt_ajout+'&hl=' + xtdmed.getHours() + 'x' + xtdmed.getMinutes() + 'x' + xtdmed.getSeconds();
	if(parseFloat(navigator.appVersion)>=4)
	{Xt_im += '&r=' + xts.width + 'x' + xts.height + 'x' + xts.pixelDepth + 'x' + xts.colorDepth;}
	xt_img.src = Xt_im;
	if ((x2 != null)&&(x2!=undefined)&&(type=='C'))
	{ if ((x3=='')||(x3==null)) { document.location = x2} else {xfen = window.open(x2,'xfen',''); xfen.focus();}}
	else
	{return;}
}

xtnbPts=0;
function xt_addProduct(rg,pdt,qtt,unp,dsc,dscc) {
	xtnbPts++;
	xtcart+="&pdt"+xtnbPts+"=";
	xtcart+=((rg!=null)&&(rg!="")&&(rg!=undefined)) ? rg+"::" : "";
	xtcart+=((pdt!=null)&&(pdt!="")&&(pdt!=undefined)) ? pdt : "";
	xtcart+=((qtt!=null)&&(qtt!="")&&(qtt!=undefined)) ? "&qte"+xtnbPts+"="+qtt : "";
	xtcart+=((unp!=null)&&(unp!="")&&(unp!=undefined)) ? "&mt"+xtnbPts+"="+unp : "";
	xtcart+=((dsc!=null)&&(dsc!="")&&(dsc!=undefined)) ? "&dsc"+xtnbPts+"="+dsc: "";
	xtcart+=((dscc!=null)&&(dscc!="")&&(dscc!=undefined)) ? "&pcode"+xtnbPts+"="+dscc : "";
}
try {xt_cart();}
catch(e) {xtcart=""; }
function xt_ParseUrl(hit,xtch) {
	var tabUrl=new Array;
	if ((xtch.length>0)&&(xtoid!="")) {
		var xtlg=1600;
		var i=0;
		var j=0;
		while (xtch.lastIndexOf("&",xtlg)!=-1 && xtch.length>xtlg) {
	      tabUrl[i]=xtch.substring(0,xtch.lastIndexOf("&",xtlg));
	      xtch=xtch.substring(xtch.lastIndexOf("&",xtlg),xtch.length);
			i++;
		}
		tabUrl[i]=xtch;
		for (j=0 ; j <= i ; j++){
			if (i>0){tabUrl[j]+="&idhit="+(j+1)+"-"+(i+1)+"-"+xtsite+"-"+xtoid;}
			xd.write(hit+tabUrl[j]+'">');}
	}
}

if((xtsite!=0)||(xtrd))
{
		xtpm = "xtor" + xtsite ;
		xtpmd = "xtdate" + xtsite ;
		xtpmr = "xtorrf" + xtsite;
		xtpan = "xtan" + xtsite;
		xtpant = "xtant" + xtsite;			
		xtourl = recupxtor("xtor");
		xto = (xto_force!=null) ? xto_force : (xtourl!=null) ? xtourl : (!xtrd) ? Getxtorcookie("xtord") : null;
		xplus = (xto==null) ? "" : "&xto="+xto;
		if (xto!=null){tmpxto=xto.substring(0,xto.indexOf("-"));xtdrm=xttdrm[tmpxto];}else{xtdrm="1"}	
		var xtxp = new Date();
		var xtxpan = new Date();
		if (!xtrd) {xtxp.setTime(xtxp.getTime()+(xtdrm*24*3600*1000));xtxpan.setTime(xtxpan.getTime()+(xtanrm*24*3600*1000))}
		else {xtxp.setTime(xtxp.getTime()+(xtdr*1000));}
		xtanurl = recupxtor("xtan");xtantag = recupxtor("an",xtm);xtactag = recupxtor("ac",xtm);
		if((xtanurl==null)&&(!xtrd)){xtanurl=Getxtorcookie("xtanrd")}
		xtanc = Getxtorcookie(xtpan);xtanct = Getxtorcookie(xtpant);
		xtanpos = (xtanurl!=null) ? xtanurl.indexOf("-") : 0;
		xtan2 = (xtantag!=null) ? "" : ((xtanurl!=null)&&(xtanpos>0)) ? "&ac="+xtanurl.substring(0,xtanpos)+"&ant=0&&an="+xtanurl.substring(xtanpos+1,xtanurl.length) : (xtanc!=null) ? "&anc="+xtanc+"&anct="+xtanct : ""
		xplus += xtan2
		if (xtantag!=null){wcookie(xtpan,xtactag+"-"+xtantag,xtxpan,xtdm,1);wcookie(xtpant,"1",xtxpan,xtdm,1);}
		else{if ((xtanurl!=null)&&(xtanct!="1")){wcookie(xtpan,xtanurl,xtxpan,xtdm,1);wcookie(xtpant,"0",xtxpan,xtdm,1);}}			
		xtor = Getxtorcookie(xtpm);
		xtor_duree = Getxtorcookie(xtpmd);
		xtor_ref = Getxtorcookie(xtpmr);
		xtdate2 = (xtor_duree!=null) ? new Date(xtor_duree) : new Date();
		xtheureavant = xtdate2.getTime() / (1000*3600);
		xtecart = (Math.floor(xtheureh - xtheureavant)>=0) ? Math.floor(xtheureh - xtheureavant) : 0;
		xplus += (xtor==null) ? "" : "&xtor="+xtor+"&roinbh="+xtecart;
		xplus2 = (xtor==null) ? "" : (xtor_ref!=null) ? "&xtorrf="+xtor_ref.replace(/[<>]/g, '').replace(/&/g, '$') : "&xtorrf=direct";
		xtourl_rf = recupxtor("xtref");

	    Xt_r = (xtourl_rf!=null) ? xtourl_rf.replace(/[<>]/g, '') : Getxtorcookie('xtref') ;
		if(Xt_r==null)	{Xt_r = xt_rfr.replace(/[<>]/g, '');}
		if (!xtrd)
		{
			var xtnav = navigator.appName+" "+navigator.appVersion;
			var xtIE = (xtnav.indexOf('MSIE'));
			if (xtIE>=0) {xtvers = parseInt(xtnav.substr(xtIE+5));xtIE=true;}
			else {xtvers = parseFloat(navigator.appVersion);xtIE=false;}
			var xtnet=(xtnav.indexOf('Netscape') >=0);
			var xtmac=(xtnav.indexOf('Mac') >=0);
			var xtOP=(navigator.userAgent.indexOf('Opera') >=0);
			if((xtIE)&&(xtvers >=5)&&(!xtmac)&&(!xtOP)&&(!xtrd))
	 		{
	   	 	xd.body.addBehavior("#default#clientCaps");
	    		xtconn = '&cn=' + xd.body.connectionType;
	    		xtconn += '&ul=' + xd.body.UserLanguage;
	    		xd.body.addBehavior("#default#homePage");
	    		xthome = (xd.body.isHomePage(location.href))? '&hm=1': '&hm=0';
	    		xtresr = '&re='+xd.body.offsetWidth+'x'+xd.body.offsetHeight;
	 		}
			else
	 		{xtconn = ''; xthome='';if(xtvers >=5){xtresr = '&re='+xw.innerWidth+'x'+xw.innerHeight;}else{xtresr =''};}
			if((xtnet)&&(xtvers >=4)||(xtOP)){var xtlang = '&lng=' + navigator.language;}
			else {if((xtIE)&&(xtvers >=4)&&(!xtOP)){var xtlang = '&lng=' +navigator.userLanguage;} else {xtlang = '';}}

			wcookie("xtord","",xtdate,xtdm,1);
			if ((xtor==null)&&(xto!=null))
			{	
				wcookie(xtpm,xto,xtxp,xtdm,1);wcookie(xtpmd,xtdate,xtxp,xtdm,0);
				if (Xt_r!="") {wcookie(xtpmr,Xt_r.replace(/&/g, '$'),xtxp,xtdm,0);} else {wcookie(xtpmr,"direct",xtxp,xtdm,0);}
			}
			Xt_param = 's='+xtsite+xtn2+'&p='+xtp+'&hl='+xtdate.getHours() + 'x' + xtdate.getMinutes() + 'x' + xtdate.getSeconds();
			Xt_param += xtdi+xplus+xtm+xtconn+xthome+xtlang;
			Xt_id = '<img width="1" height="1" alt="" src="'+xtsd+'.xiti.com/hit.xiti?';
			Xt_i = Xt_id+Xt_param;		
			if(xtvers >=4)
			{xplus2 += '&r=' + xts.width + 'x' + xts.height + 'x' + xts.pixelDepth + 'x' + xts.colorDepth;}
			Xt_i += xplus2;
			if (xw.xtcart==""){xd.write(Xt_i+xtresr+'&ref='+Xt_r.replace(/&/g, '$') + '">');}
			else{xt_ParseUrl(Xt_id,Xt_param+xplus2+xtresr+xtcart+'&ref='+Xt_r.replace(/&/g, '$'));}
		}
		else
		{
			if (xto!=null) {wcookie("xtord",xto,xtxp,xtdm,1);}
			if (xtanurl!=null) {wcookie("xtanrd",xtanurl,xtxp,xtdm,1);}			
         if (Xt_r!="")	{wcookie("xtref",Xt_r.replace(/&/g, '$'),xtxp,xtdm,0);}
			if(xw.xtloc!=null)	{xtnv.location=xw.xtloc;}
		}
}
//-->
