/******************************************************/
//This Lib is Provide As IF By S.Bernard and result of
//compatibility module for Xiti All Tag In One project         v.2.5.a Prod
/******************************************************/

var xtnv = "";
var xtsd = "";
var xtsite = "";
var xtn2 = "";
var xtpage = "";
var xtmcl = "";
var xt_npg = "";

//Gestion des differents domaines
var vsDomainName = window.location.hostname 
var vsDomainId = "1" // Par defaut 1 soit Carrefour.fr

function XitiProject(vsXTSD,vsXTSITE)
{
	//Variables Xiti
	xtsd = vsXTSD;
	xtsite = vsXTSITE;
	
	//Variables permettant de gerer les chapitrages et niveau 2 du site.
	this.arraySiteLevel2Name = new Array();
	this.arraySiteLevel2ID = new Array();
	this.arraySearchName = new Array();
	this.arraySearchID = new Array();
	
	// ----------------------------------------------------------------
	
	//Les informations propres a l'URL
	this.vsRealURL = ""+document.location;
	this.vsURL = this.vsRealURL;
	this.arrayURL = null;
	this.vsParameter = '';

	//Les informations propres au moteur de recherche
	this.vsSearchTerm = ''; //terme recherche
	this.viIDUniversSeach = ''; //univers de recherche
	this.viNbResult = ''; //nombre de resultat


	//Informations propre a Xiti
	this.vsLevel = 0; // Par defaut le site de niveau 2 est 0 soit "Pages Non Classees".
	this.vsPage = ""; //Le chapitrage de la page ou la page elle meme.

	//**********************//
	// FONCTIONS 'EXTERNES' //
	//**********************//
	
	//Cette fonction permet de 'rendre conforme' une URL.
	this.URLNormalize = function(vsURL){ try { return DoXiti_URLNormalize(vsURL); } catch(e) { return vsURL; } }
	
	//Cette fonction permet d'extraire les informations du moteur de recherche
	this.extractRechercheInfo = function () { try { DoXiti_GetSearchParam(this); } catch(e) {}; }

	//Parametrage des URLs cles.
	this.paramURLsKey = function() { try { DoXiti_paramURLsKey(this); } catch(e) {}; }
	
	//Parametrage des index du moteur de recherche
	this.paramIndexSearch = function() { try { DoXiti_paramIndexSearch(this); } catch(e) {}; }

	//Cette fonction permet d'ajouter des regles lors de la decoupe d'une URL specifique au site.
	this.arrayForUrlExtra = function(name,vsParameter,index,maxi) { try { return DoXiti_ArrayForUrlExtra(name,vsParameter,index,maxi); } catch(e) { return name; }; }


	//*************************//
	// FONCTIONS REUTILISABLES //
	//*************************//

	//retrait des espaces sur une chaine.
	this.trim = function (vsString) { return vsString.replace(/^\s+|\s+$/, ''); };

	//formalisation d'une chaine de caractere (remplace les accents)
	this.formaliseString = function (vsString) { eval(unescape("%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%E0%E1%E2%E3%E4%E5%E6%5D%2F%67%69%2C%22%61%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%E8%E9%EA%EB%5D%2F%67%69%2C%22%65%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%EC%ED%EE%EF%5D%2F%67%69%2C%22%69%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%F2%F3%F4%F5%F6%F8%5D%2F%67%69%2C%22%6F%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%F9%FA%FB%FC%5D%2F%67%69%2C%22%75%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%E7%5D%2F%67%69%2C%22%63%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%FF%FD%FE%5D%2F%67%69%2C%22%79%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%5B%F1%5D%2F%67%69%2C%22%6E%22%29%3B%20%76%73%53%74%72%69%6E%67%3D%76%73%53%74%72%69%6E%67%2E%72%65%70%6C%61%63%65%28%2F%20%2F%67%69%2C%22%5F%22%29%3B")); return vsString; }
	
	//Cette fonction permet de decoder un texte en UTF-8
	this._utf8_decode = function (utftext) { var string = ""; var i = c = c1 = c2 = 0;  while ( i < utftext.length )  { c = utftext.charCodeAt(i); if (c < 128)  { string += String.fromCharCode(c); i++; }  else  if((c > 191) && (c < 224))  { c2 = utftext.charCodeAt(i+1); string += String.fromCharCode(((c & 31) << 6) | (c2 & 63)); i += 2; }  else  { c2 = utftext.charCodeAt(i+1); c3 = utftext.charCodeAt(i+2); string += String.fromCharCode(((c & 15) << 12) | ((c2 & 63) << 6) | (c3 & 63)); i += 3; } } return string; }

	//****************************//
	// LES FONCTIONS DE LA CLASSE //
	//****************************//
	
	//Cette fonction permet de retourner un tableau en rapport ?  une chaine de caractere avec pour separateur un '/'.
	this.newArrayForUrl = function (vsString) 
	{ 
		var arrayTmp = vsString.split('/');  
		var arrayReturn = new Array();  
		
		for(i=2;i<arrayTmp.length;i++) 
		{ 
			vsArray2 = arrayTmp[i].split('?'); 
			if(vsArray2.length > 1) this.vsParameter = this.trim(unescape(vsArray2[1]));  
			
			arrayReturn[i-2] = this.arrayForUrlExtra(this.trim(vsArray2[0]),this.vsParameter,i,arrayTmp.length);
		} 
		
		return arrayReturn; 
	}


	//Cette fonction permet de retourner la page avec au besoin le chapitrage.
	this.initPage = function()
	{
		this.vsPage = '';
		
		try
		{
			this.vsPage = '';
			for(i=1;i<this.arrayURL.length;i++)
			{
				if(this.arrayURL[i] != '')
				{
					if(this.vsPage != '')
						this.vsPage = this.vsPage+'::';
				
					this.vsPage = this.vsPage+this.arrayURL[i];
				}
			}
			
			this.extractRechercheInfo();
			
			if(this.vsPage == '')
			{
				if(this.vsLevel == 1)
					this.vsPage = 'Accueil';
				else
					this.vsPage = document.title;
			}
		}
		catch(e) { this.vsPage = '';}

		this.vsPage = this.formaliseString(this.vsPage);
	}

	//Cette methode ?  pour finalite d'initialiser l'objet.
	this.init = function () 
	{
		//Nous considerons que l'url ne doit pas prendre en compte certaines informations.
		this.vsURL = this.URLNormalize(this.vsURL);
		
		//Nous initialisons les URLs cles qui permettent de remonter page, niveau et chapitrage.
		this.paramURLsKey();
		
		//Nous initialisons les index cles sur le moteur de recherche
		this.paramIndexSearch();
		
		//Nous construisons le tableau de reference des URLS.
		this.arrayURL = this.newArrayForUrl(this.vsURL);
		
		//L'ensemble des objets etant initialise, nous recherchons le numero de site de niveau 2
		this.initLevel();

		//Nous initialisons le nom de la page et son chapitrage.
		this.initPage();
	}
	
	
	//Cette fonction initialise le numero du site de niveau 2
	this.initLevel = function ()
	{
		//Par defaut le niveau est 0 (Pages Non Classees) 
		this.vsLevel = 0;
		try
		{
			//Nous cherchons le niveau a atteindre.
			
			// Cas specifique des minisites int?gr?s au portail C4.fr (ex : ideesetrecettes ou monjardin)
			switch(vsDomainId)
			{
				case "2": 
					this.vsLevel = '7'; 
					i = this.arraySiteLevel2Name.length;
					break;
			   case "3": 
					this.vsLevel = '8'; 
					i = this.arraySiteLevel2Name.length;
					break;
			}			
			
			for(i=0;i<this.arraySiteLevel2Name.length;i++)
			{
				vsCmp = (this.arrayURL[1] == '')?this.arrayURL[0]:this.arrayURL[1];
				if(vsCmp == this.arraySiteLevel2Name[i]) 
					{ 
						this.vsLevel = this.arraySiteLevel2ID[i]; 
						i = this.arraySiteLevel2Name.length;
					} 
			}
		}
		catch(e) { this.vsLevel = 0; }
	}

	//Cette fonction permet de mettre en place le tag Xiti.
	this.DoXiti = function() 
	{ 
		xtnv = document;
		xtn2 = this.vsLevel;
		xtpage = this.vsPage;
		
		//Integration du moteur de recherche si nous sommes dans la recherche (var vsSearchTerm)
		//do not modify below 
		if(this.vsSearchTerm != '')
		{
			// Niveau 2 dedie aux recherches
			this.vsLevel = 50 ;
			xtn2 = "50" ; 
			xtpage = "Resultat_Recherche" ;
			
			//positionnement du moteur de recherche
			xt_form = "&f1="+this.vsSearchTerm+"&f2="+this.viIDUniversSeach+"&f3="+this.viNbResult+"&f4=&f5=&f6=&f7=&f8=&f9=&f10="; 
		
			if (window.xtparam!=null)
			{
				window.xtparam+=xt_form;
			} 
			else
			{
				window.xtparam = xt_form;
			};
		
			xt_mtcl = this.vsSearchTerm;        //keyword value
			xt_npg = this.viNbResult;        //result page number (0 when no result)
			//do not modify below
			if (window.xtparam!=null){window.xtparam+="&mc="+xt_mtcl+"&np="+xt_npg;}
			else{window.xtparam ="&mc="+xt_mtcl+"&np="+xt_npg;};
		}
		//end do not modify
	}

	//Cette fonction permet d'indiquer un nouveau site de niveau 2.
	this.addLevel = function (name,index) { var i = this.arraySiteLevel2Name.length; this.arraySiteLevel2Name[i] = name; this.arraySiteLevel2ID[i] = index; }
	
	//Cette fonction permet d'indiquer un univers de recherche
	this.addSearchUnivers = function (name,index) { var i = this.arraySearchName.length; this.arraySearchName[i] = name; this.arraySearchID[i] = index; }
	
	//***********************//
	//LANCEMENT DE LA CLASSE //
	//***********************//

	//Initialisation de l'objet
	this.init();

	//Une fois l'objet configure, nous pouvons appeler notre methode.
	this.DoXiti();
}

//Normalisation de l'URL -> nous retirons certaines informations.
function DoXiti_URLNormalize(vsURL)
{
	vsURL = vsURL.replace("/portal/site/carrefour/","/");
	vsURL = vsURL.replace("/portal/site/carrefour","/");				
	vsURL = vsURL.replace("/template.PAGE/","/");  						
	vsURL = vsURL.replace("/content/","/");								
	vsURL = vsURL.replace("/view/","/");								
	if (vsURL.substr(vsURL.length-1,vsURL.length-1) == "#") {vsURL = vsURL.substr(0, vsURL.length-1);}
	return vsURL;
}

//Cette fonction est appellee par l'objet Xiti elle permet de mettre en place les index du moteur de recherche
function DoXiti_paramIndexSearch(obj)
{
	//Nous positionnons les noms des index du moteur de recherche
	obj.addSearchUnivers("",0);
	obj.addSearchUnivers("1",1);
	obj.addSearchUnivers("CASSURENLIGNE",2);
	obj.addSearchUnivers("CDIRECTENLIGNE",3);
	obj.addSearchUnivers("CFRENLIGNE",4);
	obj.addSearchUnivers("CMOBILEENLIGNE",5);
	obj.addSearchUnivers("CONLINEENLIGNE",6);
	obj.addSearchUnivers("CPASSENLIGNE",7);
	obj.addSearchUnivers("CSPECTENLIGNE",8);
	obj.addSearchUnivers("CVOYAGESENLIGNE",9);
	obj.addSearchUnivers("VODENLIGNE",10);
	obj.addSearchUnivers("2",11);
	obj.addSearchUnivers("CFRCATALOGUES",12);
	obj.addSearchUnivers("CFRPROMOTION",13);
	obj.addSearchUnivers("CFREVENMENT",14);
	obj.addSearchUnivers("CFRMAGASIN",15);
	obj.addSearchUnivers("3",16);
}

//Cette fonction est appellee par l'objet Xiti elle permet de mettre en place les URLs de recherche
function DoXiti_paramURLsKey(obj)
{
	//Correspondance Niv1 arbo site / Niveau 2 CUWA
	obj.addLevel('www.carrefour.fr',1); // Accueil
	obj.addLevel('5sur5',3); // Carte de fidelite
	obj.addLevel('accueil',1); // Accueil
	obj.addLevel('adherer_en_ligne',3); // Carte de fidelite
	obj.addLevel('baby_kids',7); // Actualites
	obj.addLevel('c_cadeaux',52); // Landing Pages
	obj.addLevel('carrefour-sans-gluten',7); // Actualites
	obj.addLevel('carte-fidelite',3); // Carte de fidelite
	obj.addLevel('c-lesport',25); // Cote Carrefour
	obj.addLevel('comptefidelite',3); // Carte de fidelite
	obj.addLevel('contact',19); // Pied de Page
	obj.addLevel('culture',52); // Landing Pages
	obj.addLevel('culture_loisirs',7); // Actualites
	obj.addLevel('dans-tous-les-magasins',22); // Promotions-Catalogues
	obj.addLevel('en-ce-moment',7); // Actualites
	obj.addLevel('engagements_carrefour_city',25); // Cote Carrefour
	obj.addLevel('EQC',7); // Actualites
	obj.addLevel('faq',99); // Autres
	obj.addLevel('infoconso',7); // Actualites
	obj.addLevel('innovation-multimedia',7); // Actualites
	obj.addLevel('jeux',26); // Jeux
	obj.addLevel('LD_actualites',7); // Actualites
	obj.addLevel('LD_cote_carrefour',25); // Cote Carrefour
	obj.addLevel('LD_magasins',16); // Magasins
	obj.addLevel('legal',19); // Pied de Page
	obj.addLevel('les-engagements-carrefour',25); // Cote Carrefour
	obj.addLevel('les-engagements-carrefour-contact',25); // Cote Carrefour
	obj.addLevel('les-engagements-carrefour-market',25); // Cote Carrefour
	obj.addLevel('les-engagements-sav-carrefour',25); // Cote Carrefour
	obj.addLevel('location_utilitaire',7); // Actualites
	obj.addLevel('magasin',16); // Magasins
	obj.addLevel('magasins',16); // Magasins
	obj.addLevel('maison-decoration',7); // Actualites
	obj.addLevel('mode_beaute',7);  // Actualites
	obj.addLevel('new-chez-carrefour',22); // Promotions-Catalogues
	obj.addLevel('new-chez-carrefour-market',22); // Promotions-Catalogues
	obj.addLevel('newsletter',99); // Autres
	obj.addLevel('piedpage',19); // Pied de Page
	obj.addLevel('plan',19); // Pied de Page
	obj.addLevel('plus-carrefour',25); // Cote Carrefour
	obj.addLevel('produits',25); // Cote Carrefour
	obj.addLevel('programme-fidelite',3); // Carte de fidelite
	obj.addLevel('promolibre',3); // Carte de fidelite
	obj.addLevel('promotions_ligne',22); // Promotions-Catalogues
	obj.addLevel('promotions-catalogues',22); // Promotions-Catalogues
	obj.addLevel('services_financiers_assurances',52); // Landing Pages
	obj.addLevel('servicesadomicile',7);  // Actualites
	obj.addLevel('services-en-magasin',16); // Magasins
	obj.addLevel('services-en-magasin-market',16); // Magasins
	obj.addLevel('Site carrefour',1); // Accueil
	obj.addLevel('solidarite',25); // Cote Carrefour
	obj.addLevel('static',22); // Promotions-Catalogues
	obj.addLevel('tout_savoir',3); // Carte de fidelite
	obj.addLevel('trouver',16); // Magasins
	obj.addLevel('votremagasin',16); // Magasins
	obj.addLevel('voyages_spectacles',52); // Landing Pages
	obj.addLevel('webmobile',7);  // Actualites
	obj.addLevel('tunnel',8); // Espace Perso
	obj.addLevel('Poweo',53); // Services en Ligne
	obj.addLevel('www.ideesetrecettes.carrefour.fr',7); // Actualites 
	obj.addLevel('promotion1_espace_perso',8); // Espace Perso
	obj.addLevel('promotion2_espace_perso',8); // Espace Perso
	obj.addLevel('promotion3_espace_perso',8); // Espace Perso
	obj.addLevel('promotion4_espace_perso',8); // Espace Perso
	obj.addLevel('promotions',22); // Promotions-Catalogues
	obj.addLevel('mon_espace_perso',8); // Espace Perso
	obj.addLevel('fidelite',3); // Carte de fidelite
	obj.addLevel('espaceperso',8); // Espace Perso
	obj.addLevel('espacetraiteur',16); // Magasins
	obj.addLevel('courses_en_ligne',52); // Landing Pages
	obj.addLevel('catalogues',22); // Promotions-Catalogues
	obj.addLevel('chez-carrefour-planet',22); // Promotions-Catalogues
	obj.addLevel('oublimdp',8); // Espace Perso
	obj.addLevel('choix_cheque_fid',8); // Espace Perso
	obj.addLevel('authentification',8); // Espace Perso
	obj.addLevel('menuitem.9f76c87a170b5e750c795d68b111f1a0',8); // "Login Failed" Espace Perso 
	obj.addLevel('modification_mot_de_passe',8); // Espace Perso
	obj.addLevel('mes_donnees_personnelles',8); // Espace Perso
	obj.addLevel('espace_fidelite',8); // Espace Perso
	obj.addLevel('services',16); // Magasins --> services en magasin
	obj.addLevel('encemoment',7); // Actualites
	obj.addLevel('etmoi',7); // Actualites
	obj.addLevel('puericulture',7); // Actualites
	obj.addLevel('promotions-et-catalogues',22); // Promotions-Catalogues
	obj.addLevel('yapyap',22); // Promotions-Catalogues
	obj.addLevel('espace-personnel',8); // Espace Perso
	obj.addLevel('espace-services',52); // Landing Pages
	obj.addLevel('presse',25); // Cote Carrefour
	obj.addLevel('search',99); // Autres
	obj.addLevel('translate_c',99); // Autres

}


//Cette fonction permet de remonter les informations du moteur de recherche
function DoXiti_GetSearchParam(obj)
{
		
	var vbIsRecherche = 0;

	if(obj.vsLevel == 0)
	{
		if(obj.arrayURL[1] == 'recherche')
		{
			vbIsRecherche=1;
		}
	}

	if(vbIsRecherche == 1)
	{
		var strSite = "";
		arrayTmp = obj.vsParameter.split('&');

		try
		{
			for(i=0;i<arrayTmp.length;i++)
			{
				arrayTmp2 = arrayTmp[i].split('=');
				if(arrayTmp2[0] == 'crText')
				{
					obj.vsSearchTerm = obj.formaliseString(obj._utf8_decode(arrayTmp2[1])); //terme
				}
				else
				if(arrayTmp2[0] == 'crSite')
				{
					strSite = arrayTmp2[1]; //univers
				}
			}
		}
		catch(e) { obj.vsSearchTerm = ''; }

		try
		{
			for(i=0;i<obj.arraySearchName.length;i++)
			{
				if(strSite == obj.arraySearchName[i])
				{
					obj.viIDUniversSeach = obj.arraySearchID[i];
					i = obj.arraySearchName.length;
				}
			}
		}
		catch(e) { obj.viIDUniversSeach = '0'; }

		try
		{
			var vsStringTmp = viewResultConteneur.innerText;
			viDep = vsStringTmp.indexOf('trouv');
			viFin = viDep;

			for(i=viDep;i>=0;i--)
			{
				if(vsStringTmp.charAt(i) == 'r')
				{
					viDep = i+1;
					i = -1;		
				}
			}

			obj.viNbResult = obj.trim(vsStringTmp.substr(viDep,(viFin-viDep)));
		}
		catch(e) { obj.viNbResult='0';}
	}
}

//Loyality -------------------------------------------------------------------
	function DoXiti_GetCookieVal(offset) {
		var endstr=document.cookie.indexOf (";", offset);
		if (endstr==-1)
				endstr=document.cookie.length;
		return unescape(document.cookie.substring(offset, endstr));
	}
	function DoXiti_GetCookie (name) {
		var arg=name+"=";
		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 DoXiti_GetCookieVal (j);
					i=document.cookie.indexOf(" ",i)+1;
							if (i==0) break;}
		return null;
	}
	
	var vsLoyId = "";
	var vsLoyGrp = "";
	var vsVigId = "";
	var vsLoyCook = DoXiti_GetCookie("carrefour");
	if (vsLoyCook == null)
	{
		vsLoyId = "[_Non%20identifie]"; vsLoyGrp = "";
	}
	else
	{
		var vtLoyCook = vsLoyCook.split("|");
		
		if ((vtLoyCook[0] == null) || (vtLoyCook[0] == "null"))
		{ vsLoyId = "[_Sans%20Carte%20Fid]"; vsLoyGrp = "2"; }
		else { vsLoyId = "[" + vtLoyCook[0] + "]"; vsLoyGrp = "1"; }
		
		if ((vtLoyCook[1] == null) || (vtLoyCook[1] == "null"))
		{ vsVigId = "[_Non%20identifie]"; }
		else { vsVigId = "[" + vtLoyCook[1] + "]"; }
	}


//MAIN---------------------------------------------------------------------------------------------------------- 2.2.1
	var objXiti = null;
	var vsXiTiSiteId = "";
	var vsXiTiDomainName = ""; 
	//xt_multc = "&x2=" + vsLoyId + "&x4=" + vsVigId;		// PreProd
	xt_multc = "&x2=" + vsLoyId + "&x3=" + vsVigId;		// Prod
	xt_at = vsVigId;  //user ID
	xt_ac = vsLoyGrp;  //category ID
	//do not modify below
	if (window.xtparam!=null){window.xtparam+="&ac="+xt_ac+"&at="+xt_at+xt_multc;}
	else{window.xtparam = "&ac="+xt_ac+"&at="+xt_at+xt_multc;};
	//-->
	
	switch(vsDomainName)
	{
	   case "www.carrefour.fr": 
	       vsDomainId = "1";
	       break;
	   case "carrefour.fr": 
	       vsDomainId = "1";
	       break;
	   case "ideesetrecettes.carrefour.fr":
	       vsDomainId = "2";
	       break;
	   case "www.ideesetrecettes.carrefour.fr":
	       vsDomainId = "2";
	       break;
	   case "monjardin.carrefour.fr":
	       vsDomainId = "3";
	       break;
	   case "www.monjardin.carrefour.fr":
	       vsDomainId = "3";
	       break;
	   default:
	       vsDomainId = vsDomainId;
	       break;
	}
	
	if(document.location.protocol == 'http:')
		{ vsXiTiDomainName = "http://logc174"; }
	else
		{ vsXiTiDomainName = "https://logs128"; }
	
	switch(vsDomainId)
	{
		case "2": 
			//vsXiTiSiteId = "461467"; // PreProd
			vsXiTiSiteId = "461468"; // Prod
			break;
	   case "3": 
			//vsXiTiSiteId = "461467"; // PreProd
			vsXiTiSiteId = "461468"; // Prod
			break;
	   default:
			//vsXiTiSiteId = "437172"; // PreProd
			vsXiTiSiteId = "437171"; // Prod
			break;
	}

	objXiti = new XitiProject(vsXiTiDomainName, vsXiTiSiteId); 
//--------------------------------------------------------------------------------------------------------------------------


//-- Copyright 2011 AT Internet, All Rights Reserved.
//-- AT Internet Tag 4.2.001
var xt1='.carrefour.fr',xtfirst=false,xtcode='',xt46='1',xt50='1',xt48='',xt54=false,xt58=false,xtdocl=false,xtud='undefined',xt2='0',xt3=3650,xtkwv='xtmc',xtkwp='xtnp',xtadch=new Array,xt4=new Array;xt4['sec']='20';xt4['rss']='20';xt4['epr']='20';xt4['erec']='20';xt4['adi']='20';xt4['adc']='20';xt4['al']='20';xt4['es']='20';xt4['ad']='20';
//do not modify below
var xtoid=new Array,xtkey=false,xt49=null,xt5=30,xw=window,xd=document,xtg=navigator,xtv=(xw.xtczv!=null)?'42001-'+xw.xtczv:'42001',xt1=xw.xtdmc?';domain='+xw.xtdmc:(xt1!='')?';domain='+xw.xt1:'',xt6=(xw.xtnv!=null)?xw.xtnv:xd,xt7=(xw.xtsd!=null)?xw.xtsd:(xd.location.protocol=='https:')?'https://logs128':'http://logc174',xt36=(xw.xtsts!=null)?xw.xtsts:0,xt37='';if(xt54){var xturl='';try{xturl=xt6.location.href;}catch(e){xturl=xw.location.href;}xt37=xtestr(xturl,/#.*/,1);xt37=xt37?'&sta='+encodeURIComponent(xtclURL(xt37)):'';}var xt38=(xw.xtcustom!=null)?xtserial(xw.xtcustom):'',xt8=(xw.xtsite!=null)?xw.xtsite:0,xt9=(xw.xtn2!=null)?'&s2='+xw.xtn2:'',xt8b=((xt8==0)?'':'s='+xt8)+((xt36==0)?'':((xt8==0)?'sts='+xt36:'&sts='+xt36)),xtp=(xw.xtpage!=null)?xw.xtpage:'',xt10=xw.xto_force?xw.xto_force.toLowerCase():null,xt11=(xt8=='redirect')?true:false,xtdi=xw.xtdi?'&di='+xw.xtdi:'',xt12=xw.xtidp?'&idpays='+xw.xtidp:'',xt13=xw.xtidprov?'&idprov='+xw.xtidprov:'',xtm=(xw.xtparam!=null)?xw.xtparam:'';xt46=((typeof(xw.xtnopage)!='undefined')&&(xw.xtnopage=='1'))?'0':xt46;xt50=((typeof(xw.xtergo)!='undefined')&&(xw.xtergo=='0'))?'0':xt50;var xtclzone=((typeof(xw.scriptOnClickZone)!='undefined')&&(xt50=='1'))?xw.scriptOnClickZone:0,xt15=(xw.xt_orderid!=null)?xw.xt_orderid:'',xt17=(xw.xtidcart!=null)?xw.xtidcart:'',xt44=(xw.xtprod_load!=null)?'&pdtl='+xw.xtprod_load:'',xt47=(xw.xtcode!='')?'&code='+xw.xtcode:'';
if(xw.addEventListener){xw.addEventListener('unload',function(){},false);}else if(xw.attachEvent){xw.attachEvent('onunload',function(){});}
if(xd.addEventListener){xd.addEventListener('keydown',function(){xtkey=true},false);xd.addEventListener('keyup',function(){xtkey=false},false);}else if(xd.attachEvent){xd.attachEvent('onkeydown',function(){xtkey=true});xd.attachEvent('onkeyup',function(){xtkey=false});}
var xt18=(xw.roimt&&(xtm.indexOf('&roimt',0)<0))?'&roimt='+xw.roimt:'',xtmc=(xtm.indexOf('&mc=',0)<0)?(xw.xtmc?'&mc='+xw.xtmc:xtf3(xtkwv)?'&mc='+xtf3(xtkwv):xtf3('xtmc')?'&mc='+xtf3('xtmc'):''):'',xtcr=xtf3('xtcr')?'&mcrg='+xtf3('xtcr'):'',xtac=(xw.xtac&&(xtm.indexOf('&ac=',0)<0))?'&ac='+xw.xtac:'',xtat=(xw.xtat&&(xtm.indexOf('&at=',0)<0))?'&at='+xw.xtat:'',xtan=(xw.xtan&&(xtm.indexOf('&an=',0)<0))?'&an='+xw.xtan:'',xtnp=(xtm.indexOf('&np=',0)<0)?(xw.xtnp?'&np='+xw.xtnp:xtf3(xtkwp)?'&np='+xtf3(xtkwp):xtf3('xtnp')?'&np='+xtf3('xtnp'):''):'',xt19=((xw.xtprm!=null)&&(xtm.indexOf('&x',0)<0))?xw.xtprm:'';xtm+=xt18+xtmc+xtcr+xtac+((xtan!='')?xtan:xtat)+xtnp+xt19+xt37;var xt20='';try{xt20=top.document.referrer;}catch(e){try{xt20=xt6.referrer;}catch(e){}};var xts=screen,xt21=new Date(),xt22=xt21.getTime()/(1000*3600);
function xtserial(obj){var t=typeof(obj);if (t!="object"||obj===null){if(t=="string")obj=encodeURIComponent('"'+obj+'"');return String(obj);}else{var n,v,json=[],arr=(obj&&obj.constructor==Array);for(n in obj){v=obj[n];t=typeof(v);if(t=="string")v=encodeURIComponent('"'+v+'"');else if(t=="object"&&v!==null)v=xtserial(v);json.push((arr?"":encodeURIComponent('"'+n+'":'))+String(v));}return(arr?"[":"{")+String(json)+(arr?"]":"}");}}
function xtclURL(ch){return ch.replace(/%3C/g,'<').replace(/%3E/g,'>').replace(/[<>]/g,'');}
function xtf1(nom,xtenc){xtenc=((xtenc!=null)&&(xtenc!=xtud))?xtenc:'0';var arg=nom+'=',i=0;while(i<xd.cookie.length){var j=i+arg.length;if(xd.cookie.substring(i,j)==arg){return xtf2(j,xtenc);}i=xd.cookie.indexOf(' ',i)+1;if(i==0){break;}}return null;}
function xtf2(index,xtenc){var fin=xd.cookie.indexOf(';',index);if(fin==-1){fin=xd.cookie.length;};if(xtenc!='1'){return unescape(xtclURL(xd.cookie.substring(index,fin)));}else{return xtclURL(xd.cookie.substring(index,fin));}}if(typeof(xt_adch)=='function'){xt_adch();}
function xt_addchain(val,varch){xtvarch=varch?varch:'abmv';itemp=(!xtadch[xtvarch])?0:xtadch[xtvarch];itemp++;xtm+='&'+xtvarch+''+itemp+'='+val;xtadch[xtvarch]=itemp;}
function wck(p1,p2,p3,p4,fmt){p2=(fmt==0)?p2:escape(p2);xd.cookie=p1+'='+p2+';expires='+p3.toGMTString()+';path=/'+p4;}
function xtf3(param,chba,a){var xtdeb='',xturl='';try{xtdeb=xt6.location.href}catch(e){xtdeb=xw.location.href}if((chba==null)||(chba==xtud)){xturl=xtclURL(xtdeb.toLowerCase().replace(/%3d/g,'='))}else{xturl=chba}var xtpos=xturl.indexOf(param+'=');if(xtpos>0){var chq=xturl.substring(1,xturl.length),mq=chq.substring(chq.indexOf(param+'='),chq.length);if(a==1){}else{try{mq=decodeURIComponent(mq)}catch(e){}}var cr=mq.match(/(\[[^\]]*\])/g);if(cr){var str='';for(var i=0;i<cr.length;i++){str=cr[i].substring(1,cr[i].length-1);mq=mq.replace(str,encodeURIComponent(str))}}var reg=new RegExp('&.[^&]+=','gi');var pos=mq.search(reg);if(pos==-1)pos=mq.length;if(a==1){return decodeURIComponent(mq.substring(mq.indexOf('=')+1,pos))}else{return mq.substring(mq.indexOf('=')+1,pos).replace('&','%26')}}else{return null}}
function xt_med(type,section,page,x1,x2,x3,x4,x5){xt_ajout=((type=='F')&&((x1==null)||(x1==xtud)))?'':(type=='M')?'&a='+x1+'&m1='+x2+'&m2='+x3+'&m3='+x4+'&m4='+x5:'&clic='+x1;xtf4(type,'&s2='+section+'&p='+page+xt_ajout,x2,x3);}
xtfirst=((xtg.userAgent.indexOf('Safari')!=-1&&xtg.userAgent.indexOf('Chrome')<0)||xtg.userAgent.indexOf('iPhone')!=-1||xtg.userAgent.indexOf('iPod')!=-1||xtg.userAgent.indexOf('iPad')!=-1||xtfirst);if(xtfirst){var xt40=(xw.xtidc)?xw.xtidc:xtf1('xtidc');if(xt40==null){var xt40=Math.floor(Math.random()*999999),xtane=xt21.getYear();if(xtane<100)xtane+=2000;if((xtane>100)&&(xtane<2000))xtane+=1900;var xt41=f_nb(xtane)+''+f_nb(xt21.getMonth())+''+f_nb(xt21.getDate())+''+f_nb(xt21.getHours())+''+f_nb(xt21.getMinutes())+''+f_nb(xt21.getSeconds());xt40=xt41+''+xt40}var xtdrc=new Date();xtdrc.setTime(xtdrc.getTime()+(315360000000));wck('xtidc',xt40,xtdrc,xt1,1);xt42=xtf1('xtidc');xt40+=((xt42==null)||(xt42!=xt40))?'-NO':''}
function xt_ad(x1,x2,x3){xtf4('AT','&atc='+x1+'&type=AT&patc='+xtp+'&s2atc='+xw.xtn2,x2,x3);}
function xt_adc(obj,x1,x2,x3){xtf4('AT','&atc='+x1+'&type=AT&patc='+xtp+'&s2atc='+xw.xtn2);var xtobj=null;if(obj.nodeName!='A'){var xelp=obj.parentNode;while(xelp){if(xelp.nodeName=='A'){xtobj=xelp;break;}xelp=xelp.parentNode;}}else{xtobj=obj;}if(xtobj){xtobj.target=xtobj.target||'_self';if(x2){xtobj.href=x2;if(x3){xtobj.target='_blank';}else{xtobj.target='_self';}}if(!xtkey){if(xtobj.target.toLowerCase()=='_self'){setTimeout('self.location.href="'+xtobj.href+'"',500);return false;}else if(xtobj.target.toLowerCase()=='_top'){setTimeout('top.location.href="'+xtobj.href+'"',500);return false;}else if(xtobj.target.toLowerCase()=='_parent'){setTimeout('parent.location.href="'+xtobj.href+'"',500);return false;}}}else if(x2){if(x3){setTimeout('(xw.open("'+x2+'","_blank")).focus();',500);}else{setTimeout('self.location.href="'+x2+'"',500);}}xtkey=false;return true;}
function xt_click(obj,type,n2,page,x1,x2,x3){xt_ajout=((type=='F')&&((x1==null)||(x1==xtud)))?'':'&clic='+x1;xtf4(type,'&s2='+n2+'&p='+page+xt_ajout);var xtobj=null;if(obj.nodeName!='A'){var xelp=obj.parentNode;while(xelp){if(xelp.nodeName=='A'){xtobj=xelp;break;}xelp=xelp.parentNode;}}else{xtobj=obj;}if(xtobj){xtobj.target=xtobj.target||'_self';if(x2){xtobj.href=x2;if(x3){xtobj.target='_blank';}else{xtobj.target='_self';}}if(!xtkey){if(xtobj.target.toLowerCase()=='_self'){setTimeout('self.location.href="'+xtobj.href+'"',500);return false;}else if(xtobj.target.toLowerCase()=='_top'){setTimeout('top.location.href="'+xtobj.href+'"',500);return false;}else if(xtobj.target.toLowerCase()=='_parent'){setTimeout('parent.location.href="'+xtobj.href+'"',500);return false;}}}else if(x2){if(x3){setTimeout('(xw.open("'+x2+'","_blank")).focus();',500);}else{setTimeout('self.location.href="'+x2+'"',500);}}xtkey=false;return true;}
function xt_form(obj,type,n2,page,x1,x2){xt_ajout=((type=='F')&&((x1==null)||(x1==xtud)))?'':'&clic='+x1;xtf4(type,'&s2='+n2+'&p='+page+xt_ajout);if(x2){setTimeout(function(){obj.submit();},500);}return false;}
function xt_rm(x1,x2,x3,x4,x5,x6,x7,x8,x9,x10,x11,x12,x13,x14){var rmprm='&p='+x3+'&s2='+x2+'&type='+x1+'&a='+x4+'&m5='+x11+'&m6='+x12;rmprm+=((x5!=null)&&(x5!='0'))?'&'+x5:'';rmprm+=((x7!=null)&&(x4!='pause')&&(x4!='stop'))?'&m1='+x7+'&'+x8+'&m3='+x9+'&m4='+x10+'&m7='+x13+'&m8='+x14+'&prich='+xtp+'&s2rich='+xw.xtn2:'';rmprm+=((x6!=null)&&(x6!='0')&&(x7!=null))?'&rfsh='+x6:'';xtf4(x1,rmprm);if((x6!=null)&&(x6!='0')&&((x4=='play')||(x4=='play&buf=1')||(x4=='refresh'))){xtrmdl=(Math.floor(x6)>1500)?1500000:(Math.floor(x6)<5)?5000:Math.floor(x6)*1000;xtoid[x1]=xw.setTimeout("xt_rm('"+x1+"','"+x2+"','"+x3+"','refresh','0','"+x6+"',null,'"+x8+"','"+x9+"','"+x10+"','"+x11+"','"+x12+"')",xtrmdl);}else if(((x4=='pause')||(x4=='stop'))&&(xw.xtoid!=null)){xw.clearTimeout(xtoid[x1]);}}
function xtf4(x1,x2,x3,x4){if(((xtclzone==0)||(xtclzone==3)||(x1!='C'))&&(x1!='P')){var xt_img=new Image();var xt22=new Date();xt_im=xt7+'.xiti.com/hit.xiti?'+xt8b+x2+'&hl='+xt22.getHours()+'x'+xt22.getMinutes()+'x'+xt22.getSeconds()+(xtfirst?'&idclient='+xt40:'');if(parseFloat(xtg.appVersion)>=4){try{xt_im+='&r='+xts.width+'x'+xts.height+'x'+xts.pixelDepth+'x'+xts.colorDepth;}catch(e){}}xt_img.src=xt_im;xt_img.onload=function(){xt_img.onload=null;};}if((x3!=null)&&(x3!=xtud)&&(x1!='M')){if((x4=='')||(x4==null)){xd.location=x3}else{xfen=window.open(x3,'xfen','');xfen.focus();}}else{return;}}
function f_nb(a){a=a-Math.floor(a/100)*100;if(a<10){return '0'+a;}else{return a;}}
var xtidpg=f_nb(xt21.getHours())+''+f_nb(xt21.getMinutes())+''+f_nb(xt21.getSeconds())+''+xt_rd(7),xt23=0,xt16='',xt43=0;
function xt_addProduct(rg,pdt,qtt,unp,dsc,dscc){xt23++;xt16+='&pdt'+xt23+'=';xt16+=rg?rg+'::':'';xt16+=pdt?pdt:'';xt16+=qtt?'&qte'+xt23+'='+qtt:'';xt16+=unp?'&mt'+xt23+'='+unp:'';xt16+=dsc?'&dsc'+xt23+'='+dsc:'';xt16+=dscc?'&pcode'+xt23+'='+dscc:'';}
function xt_rd(nb){return Math.floor(Math.random()*Math.pow(10,nb));}
function xt_addProduct_v2(rg,pdt,qtt,unp,unpht,dsc,dscht,dscc,roimtp){xt23++;xt16+='&pdt'+xt23+'=';xt16+=rg?rg+'::':'';xt16+=pdt?pdt:'';xt16+=qtt?'&qte'+xt23+'='+qtt:'';xt16+=unp?'&mt'+xt23+'='+unp:'';xt16+=unpht?'&mtht'+xt23+'='+unpht:'';xt16+=dsc?'&dsc'+xt23+'='+dsc:'';xt16+=dscht?'&dscht'+xt23+'='+dscht:'';xt16+=roimtp?'&roimt'+xt23+'='+roimtp:'';xt16+=dscc?'&pcode'+xt23+'='+dscc:'';}
function xt_addProduct_load(rg,pdt,xv){if(pdt){xt43++;xt44+=(xt43==1)?'&pdtl=':'|';xt44+=rg?rg+'::':'';xt44+=pdt;xt44+=xv?';'+xv:'';}}if(typeof(xt_cart)=='function'){xt_cart();}else{xt16='';}
function xt_ParseUrl(hit,xtch,xtrefP,thit){var tabUrl=new Array;if(xtch.length>0){var xtlg=1600-xtrefP.length,i=0,j=0,xtch_prec='',xterr=0;while((xtch.length>xtlg)&&(xtch_prec!=xtch)&&(xterr==0)){xtch_prec=xtch;var xsep='&pdt';if(xtch.lastIndexOf(xsep,xtlg)<=0){if(xtch.lastIndexOf('&',xtlg)<=0){xterr=1}else{xsep='&';}}if(xterr==1){tabUrl[i]=xtch.substring(0,1600)+'&mherr=1';}else{tabUrl[i]=xtch.substring(0,xtch.lastIndexOf(xsep,xtlg));xtch=xtch.substring(xtch.lastIndexOf(xsep,xtlg),xtch.length);i++;xtlg=1600;}}if(xterr==0){tabUrl[i]=xtch;if(xt38!=''){var stc='&stc=';if((stc.length+xt38.length+xtch.length)<xtlg){tabUrl[i]+=(stc+xt38);}else{i++;xt38=stc+xt38;while((xt38.length>xtlg)&&(xtch_prec!=xt38)){xtch_prec=xt38;var xsep=',';if(xt38.lastIndexOf(xsep,xtlg)<=5){xterr=1;}if(xterr==1){tabUrl[i]=xt38.substring(0,1600)+'&mherr=1';}else{tabUrl[i]=xt38.substring(0,xt38.lastIndexOf(xsep,xtlg));xt38=stc+xt38.substring(xt38.lastIndexOf(xsep,xtlg),xt38.length);i++;xtlg=1600;}}if(xterr==0){tabUrl[i]=xt38;}}}}for(j=0;j<=i;j++){if(i>0){tabUrl[j]+='&mh='+(j+1)+'-'+(i+1)+'-'+xtidpg;}if(j>0){tabUrl[j]=((xt15!='')||(xt17!=''))?xt8b+'&cmd='+xt15+'&idcart='+xt17+tabUrl[j]:xt8b+tabUrl[j];}else{tabUrl[j]+=xtrefP;}if((thit=='')||(thit==null)){xd.write('<img width="1" height="1" src="'+hit+tabUrl[j]+'">');}else if(thit=='1'){var xt_img=new Image();xt_img.src=hit+tabUrl[j];xt_img.onload=function(){xt_img.onload=null;};}}}}
function xt_ParseUrl3(str1,str2,nt,ntg,name,sep,idp){if(idp){}else{idp=xtidpg.substring(0,6)+xt_rd(8)}var xt_imgc=new Image(),lim=1500,mh='&mh='+nt+'-'+ntg+'-'+idp;if(str2.length>lim){var reg=new RegExp('['+sep+']','gi'),tab=str2.split(reg),hit='',l=tab[0].length,i=0;while((l<lim)&&(i<tab.length)){hit+=tab[i]+sep;if(i<tab.length-1)l+=(tab[i+1].length)+1;i+=1}ntg=(ntg==1)?Math.ceil(str2.length/lim):ntg;mh='&mh='+nt+'-'+ntg+'-'+idp;if(hit!=''){xt_imgc.src=str1+'&idp='+idp+mh+hit;xt_imgc.onload=function(){xt_imgc.onload=null}}else{xt_imgc.src=str1+'&idp='+idp+mh+str2.substring(0,lim)+'&mherr=1';xt_imgc.onload=function(){xt_imgc.onload=null};return}str2=name;for(var j=i;j<tab.length;j++){str2+=tab[j]+((j==(tab.length-1))?'':sep)}xt_ParseUrl3(str1,str2,nt+1,ntg,name,sep,idp)}else if(str2.length>name.length){xt_imgc.src=(nt==1)?str1+'&idp='+idp+str2:str1+'&idp='+idp+mh+str2;xt_imgc.onload=function(){xt_imgc.onload=null}}}
function xtestr(str,expr,pos){var xtid=null;try{xtid=str.match(expr)[pos-1];}catch(e){xtid=null}return xtid;}
function xtLhit(){if((!xtpre&&xtone)||(!xd.webkitHidden&&xtone)){xt_ParseUrl(Xt_id,Xt_param+(xtfirst?'&idclient='+xt40:''),'&ref='+Xt_r.replace(/&/g,'$'),xt46);if(xt44!=''){xt_ParseUrl3(Xt_id+xt8b+'&p='+xtp+(xtfirst?'&idclient='+xt40:'')+(xw.xt_pageID?'&pid='+xw.xt_pageID+'&pchap='+(xw.xt_chap||'')+'&pidt='+(xw.xt_pageDate||''):'')+'&type=PDT'+xthl,xt44,1,1,'&pdtl=','|')}if(xtati.length>1500){xt_ParseUrl3(Xt_id+xt8b+'&p='+xtp+'&s2='+xw.xtn2+'&type=AT'+(xtfirst?'&idclient='+xt40:''),'&ati='+xtati.replace(/&/g,'%26'),1,1,'&ati=',',')}(function(){if(typeof(xtscript)!='undefined'){var at=document.createElement('script');at.type='text/javascript';at.async=true;at.src=xtscript;(document.getElementsByTagName('head')[0]||document.getElementsByTagName('body')[0]||document.getElementsByTagName('script')[0].parentNode).insertBefore(at,null)}})();xtone=false}}
if((xt8!=0)||(xt36!=0)||(xt11)){if(xt48!=''){var xtvid=xtf1('xtvid');if(!xtvid){xtvid=xt21.getTime()+''+xt_rd(6);xt49=xtvid;}var xtexp=new Date();xtexp.setMinutes(xtexp.getMinutes()+30);wck('xtvid',xtvid,xtexp,'',1);}var xtpm='xtor'+ xt8,xtpmd='xtdate'+ xt8,xtpmc='xtocl'+ xt8,xtpan='xtan'+ xt8,xtpat='xtat'+ xt8,xtpant='xtant'+ xt8,xt24=xtf3('xtor'),xtdtgo=xtf3('xtdt'),xt25=xtf3('xtref'),xt26=xtf3('xtan'),xt55=xtf3('xtat'),xt27=xtf3('an',xtm),xt56=xtf3('at',xtm),xt28=xtf3('ac',xtm),xtocl=(xtf1(xtpmc)!=null)?xtf1(xtpmc):'$',xtord=(xtf1('xtgo')=='0')?xtf1('xtord'):null,xtgord=(xtf1('xtgo')!=null)?xtf1('xtgo'):'0',xtvrn=(xtf1('xtvrn')!=null)?xtf1('xtvrn'):'$',xtgmt=xt21.getTime()/60000,xtgo=(xtdtgo!=null)?(((xtgmt-xtdtgo)<30)&&(xtgmt-xtdtgo)>=0)?'2':'1':xtgord,xtpgt=(xtgord=='1')?'&pgt='+xtf1('xtord'):((xtgo=='1')&&(xt24!=null))?'&pgt='+xt24:'',xto=(xt10!=null)?xt10:((xt24!=null)&&(xtgo=='0'))?xt24:(!xt11)?xtord:null;
xto=((xtocl.indexOf('$'+xto+'$')<0)||(xtocl=='$'))?xto:null;var xtock=(xtgo=='0')?xto:(xtgord=='2')?xtf1('xtord'):(xtgo=='2')?xt24:null;if(xtock!=null){tmpxto=xtock.substring(0,xtock.indexOf('-'));var xtdrm=xt4[tmpxto];}else{xtdrm='1';}if((xtdrm==null)||(xtdrm==xtud)){xtdrm=xt4['ad'];}if((xt26==null)&&(!xt11)){xt26=xtf1('xtanrd');}if((xt55==null)&&(!xt11)){xt55=xtf1('xtatrd');}var xtanc=xtf1(xtpan),xtattc=xtf1(xtpat),xtanct=xtf1(xtpant),xtxp=new Date(),xt29=new Date(),xt30=new Date();
if(!xt11){xtxp.setTime(xtxp.getTime()+(xtdrm*24*3600*1000));}else{xtxp.setTime(xtxp.getTime()+(xt5*1000));}xt30.setTime(xt30.getTime()+1800000);xt29.setTime(xt29.getTime()+(xt3*24*3600*1000));var xt31=(xt26!=null)?xt26.indexOf('-'):0,xt57=(xt55!=null)?xt55.indexOf('-'):0,xtan2=(xt27!=null)?'':((xt26!=null)&&(xt31>0))?'&ac='+xt26.substring(0,xt31)+'&ant=0&an='+xt26.substring(xt31+1,xt26.length):(xtanc!=null)?'&anc='+xtanc+'&anct='+xtanct:'',xtat2=(xt56!=null)?'':((xt55!=null)&&(xt57>0))?'&ac='+xt55.substring(0,xt57)+'&ant=0&at='+xt55.substring(xt57+1,xt55.length):(xtattc!=null)?'&attc='+xtattc+'&anct='+xtanct:'',xt32=(xtvrn.indexOf('$'+xt8+'$')<0)?'&vrn=1':'',xt35=((xtf3('xtatc')!=null)&&(xtf3('atc',xtm)==null))?'&atc='+xtf3('xtatc'):'';
if(xt32!=''){wck('xtvrn',xtvrn+xt8+'$',xt29,xt1,0);}xt32+=(xto==null)?'':'&xto='+xto;xt32+=((xtan2!='')?xtan2:xtat2)+xtpgt+xt35;if(xt27!=null){wck(xtpan,xt28+'-'+xt27,xt29,xt1,1);wck(xtpant,'1',xt29,xt1,1);}else if((xt26!=null)&&(xtanct!='1')){wck(xtpan,xt26,xt29,xt1,1);wck(xtpant,'0',xt29,xt1,1);}if(xt56!=null){wck(xtpat,xt28+'-'+xt56,xt29,xt1,1);wck(xtpant,'1',xt29,xt1,1);}else if((xt55!=null)&&(xtanct!='1')){wck(xtpat,xt55,xt29,xt1,1);wck(xtpant,'0',xt29,xt1,1);}
var xtor=xtf1(xtpm),xtor_duree=xtf1(xtpmd),xtdate2=(xtor_duree!=null)?new Date(xtor_duree):new Date(),xt34=xtdate2.getTime()/(1000*3600),xtecart=(Math.floor(xt22-xt34)>=0)?Math.floor(xt22-xt34):0;xt32+=(xtor==null)?'':'&xtor='+xtor+'&roinbh='+xtecart;var xt33='',Xt_r=(xt25!=null)?xt25.replace(/[<>]/g,''):xtf1('xtref');if(Xt_r==null){Xt_r=xt20.replace(/[<>]/g,'');}if(Xt_r!=null)Xt_r=Xt_r.substring(0,1000);if (!xt11){if((xtock!=null)&&((xtocl.indexOf('$'+escape(xtock)+'$')<0)||(xtocl=='$'))){wck(xtpmc,xtocl+xtock+'$',xt30,xt1,1);}xt33+=xtg.javaEnabled()?'&jv=1':'&jv=0';var xtnav=xtg.appName+' '+xtg.appVersion,xtIE=(xtnav.indexOf('MSIE'));if(xtIE>=0){var xtvers=parseInt(xtnav.substr(xtIE+5));xtIE=true;}else{xtvers=parseFloat(xtg.appVersion);xtIE=false;}var xtnet=(xtnav.indexOf('Netscape')>=0),xtmac=(xtnav.indexOf('Mac')>=0),xtOP=(xtg.userAgent.indexOf('Opera')>=0);if((xtIE)&&(xtvers >=5)&&(!xtmac)&&(!xtOP)&&(!xt11)){try{xd.body.addBehavior('#default#clientCaps');}catch(e){}var xtconn='&cn='+xd.body.connectionType;xtconn+='&ul='+xd.body.UserLanguage;try{xd.body.addBehavior('#default#homePage');}catch(e){}var xthome='';try{xthome=(xd.body.isHomePage(location.href))?'&hm=1':'&hm=0';}catch(e){};var xtresr='&re='+xd.body.offsetWidth+'x'+xd.body.offsetHeight;}else{var xtconn='',xthome='';if(xtvers>=5){xtresr='&re='+xw.innerWidth+'x'+xw.innerHeight;}else{xtresr=''}}
if((xtnet)&&(xtvers >=4)||(xtOP)){var xtlang='&lng='+xtg.language;}else{if((xtIE)&&(xtvers >=4)&&(!xtOP)){var xtlang='&lng='+xtg.userLanguage;}else{xtlang='';}}wck('xtord','',xt21,xt1,1);if(xtock!=null){if((xtor==null)||(xt2=='1')){wck(xtpm,xtock,xtxp,xt1,1);wck(xtpmd,xt21,xtxp,xt1,1);}}var xthl='&hl='+xt21.getHours()+'x'+xt21.getMinutes()+'x'+xt21.getSeconds(),xt45=(xtdocl)?'&docl='+encodeURIComponent(xt6.location.href.replace(/&/g,'#ec#')):'',Xt_param=xt8b+xt9+'&p='+xtp+xthl+xtdi+xt12+xt13+xt32+xt45+xt47+xtm+xtconn+xthome+xtlang+'&vtag='+xtv+'&idp='+xtidpg;var xtvalCZ=xtf1('xtvalCZ',1);if(xtvalCZ!=null){Xt_param+=xtvalCZ;var xtdateo=new Date();xtdateo.setTime(xtdateo.getTime()-3600000);wck('xtvalCZ',xtvalCZ,xtdateo,xt1,1);}var Xt_id=xt7+'.xiti.com/hit.xiti?';if(xtvers >=4){try{xt33+='&r='+xts.width+'x'+xts.height+'x'+xts.pixelDepth+'x'+xts.colorDepth;}catch(e){}}
var xtide=xtf1('xtide');if(xtock!=null){switch(tmpxto.toLowerCase()){case 'erec':case 'epr':case 'es':var xtmpide=xtestr(xtock,/(\[[^\]]*\])|([^\-]+)/g,6);if(xtmpide!=null){xtide=xtmpide;wck('xtide',xtide,xt29,'',1);}break;default:break;}}Xt_param+=xt33+xtresr+xt16+((xtide!=null)?'&ide='+xtide:'');var Xt_i=Xt_id+Xt_param+'&ref='+Xt_r.replace(/&/g,'$');if(xt49){Xt_param+='&lnk='+xt48+'&vid='+xt49;}var xtati=xtf3('ati',Xt_param,1)||'';if(xtati.length>1500){Xt_param=Xt_param.replace('&ati='+xtati,'')}var xtpre=false,xtone=true;if(xd.webkitVisibilityState=="prerender"){xtpre=true;xd.addEventListener("webkitvisibilitychange",xtLhit,false)}else{xtLhit()}}else{wck('xtgo',xtgo,xtxp,xt1,1);if(xt24!=null){wck('xtord',xt24,xtxp,xt1,1);}if(xt26!=null){wck('xtanrd',xt26,xtxp,xt1,1);}if(xt55!=null){wck('xtatrd',xt55,xtxp,xt1,1);}if(Xt_r!=''){wck('xtref',Xt_r.replace(/&/g,'$'),xtxp,xt1,0);}if(xw.xtloc!=null){xt6.location=xw.xtloc;}}}
if((xtclzone>0)&&(typeof(xtNodesload)=='function')){if(!xt58){xtNodesload();}else if(xw.addEventListener){xw.addEventListener('load',xtNodesload,false);}else if(xw.attachEvent){xw.attachEvent('onload',xtNodesload);}}

