
















var _nav_sso=null;
















xtdm = ".laposte.net";	



var dbg = "";
var n2_sites=["HomePage", "Partenaires", "Services Laposte", "Pages Transverses", "Recherche", "WebMail"];
var n2_tab_idx = [ 1, 5, 3, 4, 6, 7]; 
var n2_idx = 10; 

var n2 = { 
"/":[0, null],
"http://laposte.antisearch.net/cgi-bin/":[4, null],
"http://recherche.laposte.net/cgi-bin/":[4, null],
"http://webmail.laposte.net/PerduMdp":[5, "PerduMdp"], 
"http://webmail.laposte.net/inscription":[5, "Inscription"],
"http://webmail.laposte.net/cgi-bin/ecrire/ecrire.pl":[5, "Ecrire"] , 
"http://webmail.laposte.net/sms/":[5, "SMS"] , 
"/services-pratiques/":[1, "Home Pratiques/Loisirs"], 
"http://laposte.lci.fr/":[1, "Actualites"], 
"http://laposte.lci.fr":[1, "Actualites"], 
"/services-pratiques/meteo/":[1, "Meteo"], 
"/services-pratiques/offres-emplois/":[1, "Offres Emploi"],
"http://www.trefle.com/laposte":[1, "Petites Annonces"],
"http://www.trefle.com/index.php?laposte=1":[1, "Petites Annonces"],
"http://www.trefle.com/":[1, "Petites Annonces"],
"/services-pratiques/plans-et-trajets/":[1, "Plans et trajets"],
"/services-pratiques/trafic/":[1, "Trafic"],
"/loisirs/":[1, "Loisirs"],
"http://www.adlpartner.fr/laposte":[1, "Abonnement Magazine"],
"http://www.adlpartner.fr/":[1, "Abonnement Magazine"],
"http://laposte.telechargement.fr/":[1, "Téléchargement de logiciels"],
"http://laposte.softela.fr/":[1, "Téléchargement de logiciels"], 
"http://galerie-marchande.laposte.net/":[1, "Galerie Marchande"],
"http://cre.chunnel.de":[1, "Galerie Marchande"],
"http://www.laposte.fr/":[2, "Laposte.fr"],
"/services-la-poste/":[2, ""],
"http://timbres.laposte.fr/fre/":[2, "Boutique du Timbre"],
"http://timbres.laposte.fr/":[2, "Boutique du Timbre"],
"http://timbres.laposte.fr/?prov=205":[2, "Boutique du Timbre"],
"http://www.fr.chronopost.com/":[2, "Chronopost"],
"http://www.colissimo.fr/":[2, "Colissimo"],
"https://lre.laposte.fr/part-lapostenet/IdentificationParticulier.jsp":[2, "Lettre recommandée"],
"/services-la-poste/localisation-de-bureaux/":[2, "Localisation de Bureau"],
"http://www.laposte.fr/reexpedition/":[2, "Réexpédition en ligne"],
"http://www.laposte.fr/particulier_profitez_nos_services_ligne_suivi_envois_247.html":[2, "Suivi du Courier"],
"http://www.laposte.fr/particulier_envoyez_recevez_du_courrier_tarifs_331.html":[2, "Tarifs Postaux "],
"http://tpp.laposte.fr/accueil.pgi?cmd=afficher":[2, "Timbres Personnalisés"],
"/la-poste-net/":[2, "La Poste.net"],
"/la-poste-net/cartes-electroniques/":[2, "Cartes électroniques"],
"/la-poste-net/cartes-postales/":[2, "Cartes postales"],
"http://webmail.laposte.net/login/','Messagerie":[2, "Messagerie"],
"/la-poste-net/pack-sms/":[2, "Pack SMS"],
"https://www.labanquepostale.fr/":[2, "Banque Postale"],
"http://webmail.laposte.net/portail/Aide/":[3, "Aide"],
"/Charte/Conditions_popup.html":[3, "Charte"],
"/outils/annoncer/":[3, "Annoncer sur la poste"],
"http://webmail.laposte.net/cgi-bin/ecrire/ecrire.pl":[3, "Page contact"],

"http://webmail.preprod.laposte.net/cgi-bin/ecrire/ecrire.pl":[3, "Page contact"],
"http://webmail.preprod.laposte.net/portail/Aide/":[3, "Aide"],
"http://www.trefle.com/indexposte.php":[1, "Petites Annonces"], 
"http://laposte.telechargement.fr/":[1, "Téléchargement de logiciels"],
"http://webmail.preprod.laposte.net/PerduMdp":[5, "PerduMdp"], 
"http://webmail.preprod.laposte.net/inscription":[5, "Inscription"],
"http://webmail.preprod.laposte.net/cgi-bin/ecrire/ecrire.pl":[5, "Ecrire"] , 
"http://webmail.preprod.laposte.net/cgi-bin/sms/":[5, "SMS"] , 

"end":[1, ""]
}

domain = window.location.host;
xtpage = getPage(document.URL);
xtn2   = n2_idx;

function xtTraiter(nompage) {
  var caractere1 = "éêèëîïíàâáùüûçñôöó";
  var caractere2 = "eeeeiiiaaauuucnôöo";
  var alphabet = "ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789-_:~\\/";
  
  for (var  i=0; i<nompage.length; i++) {
       var pos = caractere1.indexOf(nompage.charAt(i));
       if (pos != -1) nompage = nompage.substring(0, i) + caractere2.charAt(pos) + nompage.substring(i+1, nompage.length);
       else {
            pos = alphabet.indexOf(nompage.charAt(i));
            if (pos == -1) nompage = nompage.substring(0, i) + '_' + nompage.substring(i+1, nompage.length);
       }
  }
  return nompage;
}

function getBaseIdx(zurl) {
   var l = zurl.length
   var idx = zurl.lastIndexOf("/");
   
   if (idx == l -1) { 
      idx = zurl.substring(0, l-1).lastIndexOf("/");
   }
   
   if (idx != -1)  {
      return idx +1;
   }
   
   return -1;
}

function checkPage(zurl) {
   var idx = zurl.length;
   
   while (n2[zurl.substring(0, idx)] == null && idx > 0) {
      idx  = getBaseIdx(zurl.substring(0, idx));
   }
   
   if (idx >  0) {
      dbg += "<li> : OK " +  zurl.substring(0, idx) +  " - " + zurl.substring(idx);
   }
   else {
      dbg += "<li>NOT FOUND " + zurl ;
   }
}

function getN2(zurl) {
   n2_idx = 10 ;  
   if (zurl == null) return null;
   var idx = zurl.length;
   while (n2[zurl.substring(0, idx)] == null && idx > 0) {
      idx  = getBaseIdx(zurl.substring(0, idx));
   }
   
   if (idx < 0) {return zurl; }
   var _t = n2[zurl.substring(0, idx)];
   if (_t != null)   {
      n2_idx =  n2_tab_idx[_t[0]];
      var  result=n2_sites[_t[0]] + (_t[1] != null ? ( "::" + _t[1]) : "");
      if (idx < zurl.length) result += "::" + "Autre";
     
      return result;
   }
   else {
      dbg += "<li>N2 " + zurl +  " = NULL</li>" ;
   }

   return zurl;
}

function getPage(zurl){
   var _zreHost = new RegExp("^htt(p|ps):..(" + _site + ")", "g");
   zurl = zurl.replace(_zreHost, "");
   zurl = zurl.replace(/index.jsp$/g, "");
   
   dbg += "<li> zurl = " + zurl + "</li>"; 
   zurl =  getN2(zurl);
   zurl =  "laposte.net::" + zurl;
   zurl =  xtTraiter(zurl);
   dbg += "<li>zpage = " +  zurl + "<li>domain = " + domain;
   logdbg(dbg);
   return zurl;
}

function logdbg(res) {
   return;
   var w = window.open("" , "dump", 'width=200,height=100,resizable=yes,scrollbars=yes');
   w.document.write(res);   
   w.document.write("<br/>!DONE");
   w.document.close();
   w.focus();
}

function f6_goto(zurl){
  var xtname = getPage(zurl);
  var zxtn2 = n2_idx;
  var xt_type = (zurl.indexOf("/") == 0 ? 'N' : 'S');
  xt_med('C',  zxtn2 ,  xtname , xt_type);
}

xtdrm = 360;      				//remanence life time (number of days)
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 : (("https:" == document.location.protocol) ?  "https://logs13" : "http://logc4") ;
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 : "";

xtrmt = ((xw.roimt!=null)&&(xw.roimt!="")&&(xtm.indexOf("&roimt",0)<0)) ? "&roimt=" + xw.roimt : "";
xtvc = ((xw.visiteciblee!=null)&&(xtm.indexOf("&roivc",0)<0)) ? ((xw.visiteciblee) ? "&roivc=1" : "" ) : "";
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("&an",0)<0)) ? "&np=" + xw.xtnp : "";
xtprm = ((xw.xtprm!=null)&&(xtm.indexOf("&x",0)<0)) ? xw.xtprm : "";
xtm += xtrmt+xtvc+xter+xtmc+xtac+xtan+xtnp+xtprm;
try {xt_rfr = top.document.referrer;}
catch(e) {xt_rfr = xtnv.referrer; }
xts = screen;
var xtxp = new Date();
var xtdate = new Date();
if (!xtrd) {xtxp.setTime(xtxp.getTime()+(xtdrm*24*3600*1000));}
else {xtxp.setTime(xtxp.getTime()+(xtdr*1000));}
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)
{
		var xturl = xtclURL(xtnv.location.search.toLowerCase().replace(/%3d/g,'='));
		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)
{
   // alert("xt_med type=" + type + ", section=" + section + ", page="  + page+ ", x1=" + x1 + ", X2=" + x2);
	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;}
}

if((xtsite!=0)||(xtrd))
{
		xtpm = "xtor";
		xtpmd = "xtdate" ;
		xtpmr = "xtorrf" + xtsite;
		xtourl = recupxtor("xtor");
		xto = (xto_force!=null) ? xto_force : (xtourl!=null) ? xtourl : (!xtrd) ? Getxtorcookie("xtord") : null;
		xplus = (xto==null) ? "" : "&xto="+xto;
		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)&&(xd != null && xd.body != null)&&(!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_i = '<img width="1" height="1" src="'+xtsd+'.xiti.com/hit.xiti?'+Xt_param;
			if(xtvers >=4)
			{Xt_i += '&r=' + xts.width + 'x' + xts.height + 'x' + xts.pixelDepth + 'x' + xts.colorDepth;}
			Xt_i += xplus2;
			xd.write(Xt_i+xtresr+'&ref='+Xt_r.replace(/&/g, '$') + '">');
		}
		else
		{
			if (xto!=null) {wcookie("xtord",xto,xtxp,xtdm,1);}
         if (Xt_r!="")	{wcookie("xtref",Xt_r.replace(/&/g, '$'),xtxp,xtdm,0);}
			if(xw.xtloc!=null)	{xtnv.location=xw.xtloc;}
		}
}






var zMap = [
{path:'1', 		level:1,	 univ:2,	 name:"SERVICES PRATIQUES",	 url:"/services-pratiques/",	 pub:'/fragments/pub/services-pratiques/home/' },
{path:'101', 		level:2,	 univ:2,	 name:"Actualit&eacute;s",	 url:"http://laposte.lci.fr",	 pub:'/fragments/pub/services-pratiques/lci/' },
{path:'102', 		level:2,	 univ:2,	 name:"Administration en ligne",	 url:"http://www.administration24h24.laposte.net/",	 pub:'/fragments/pub/services-pratiques/home/' },
{path:'103', 		level:2,	 univ:2,	 name:"Covoiturage",	 url:"http://covoiturage.laposte.net/",	 pub:'/fragments/pub/services-pratiques/covoiturage/' },
{path:'104', 		level:2,	 univ:2,	 name:"M&eacute;t&eacute;o",	 url:"/services-pratiques/meteo/",	 pub:'/fragments/pub/services-pratiques/meteo/' },
{path:'105', 		level:2,	 univ:2,	 name:"Offres d'emploi",	 url:"/services-pratiques/offres-emplois/",	 pub:'/fragments/pub/services-pratiques/offres-emploi/' },
{path:'106', 		level:2,	 univ:2,	 name:"Petites annonces",	 url:"http://www.trefle.com/laposte/",	 pub:'/fragments/pub/services-pratiques/petites-annonces/' },
{path:'107', 		level:2,	 univ:2,	 name:"Plans et trajets",	 url:"/services-pratiques/plans-et-trajets/",	 pub:'/fragments/pub/services-pratiques/plans-et-trajets/' },
{path:'108', 		level:2,	 univ:2,	 name:"Trafic",	 url:"/services-pratiques/trafic/",	 pub:'/fragments/pub/services-pratiques/trafic/' },
{path:'2', 		level:1,	 univ:2,	 name:"LOISIRS",	 url:"/loisirs/",	 pub:'/fragments/pub/loisirs/home/' },
{path:'201', 		level:2,	 univ:2,	 name:"Abonnements magazine",	 url:"http://abonnementmagazines.laposte.net/",	 pub:'/fragments/pub/loisirs/abonnements/' },
{path:'202', 		level:2,	 univ:2,	 name:"Galerie Marchande",	 url:"http://galerie-marchande.laposte.net/",	 pub:'/fragments/pub/loisirs/Galerie-Marchande/' },
{path:'3', 		level:1,	 univ:3,	 name:"LA POSTE EN LIGNE",	 url:"/services-la-poste/",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'301', 		level:2,	 univ:3,	 name:"Boutique du timbre",	 url:"javascript:f6_popup('http://timbres.laposte.fr/fre/')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'302', 		level:2,	 univ:3,	 name:"Chronopost",	 url:"javascript:f6_popup('http://www.fr.chronopost.com/')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'303', 		level:2,	 univ:3,	 name:"Colissimo",	 url:"javascript:f6_popup('http://www.colissimo.fr/')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'304', 		level:2,	 univ:3,	 name:"La Poste Export Solutions",	 url:"javascript:f6_popup('http://www.laposte-export-solutions.com/solution-globale.asp')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'305', 		level:2,	 univ:3,	 name:"Lettre recommand&eacute;e",	 url:"javascript:f6_popup('https://lre.laposte.fr/part-lapostenet/IdentificationParticulier.jsp')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'306', 		level:2,	 univ:3,	 name:"Localisation de bureaux",	 url:"/services-la-poste/localisation-de-bureaux/",	 pub:'/fragments/pub/services-la-poste/localisation-de-bureaux/' },
{path:'307', 		level:2,	 univ:3,	 name:"R&eacute;exp&eacute;dition en ligne",	 url:"javascript:f6_popup('http://www.laposte.fr/reexpedition/')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'308', 		level:2,	 univ:3,	 name:"Suivi du courrier",	 url:"javascript:f6_popup('http://www.laposte.fr/particulier_profitez_nos_services_ligne_suivi_envois_247.html')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'309', 		level:2,	 univ:3,	 name:"Timbres personnalis&eacute;s",	 url:"javascript:f6_popup('http://tpp.laposte.fr/accueil.pgi?cmd=afficher')",	 pub:'/fragments/pub/services-la-poste/home/' },
{path:'4', 		level:1,	 univ:3,	 name:"LA POSTE.NET",	 url:"/la-poste-net/",	 pub:'/fragments/pub/la-poste-net/home/' },
{path:'401', 		level:2,	 univ:3,	 name:"Cartes &eacute;lectroniques",	 url:"http://cartes-electroniques.laposte.net/",	 pub:'/fragments/pub/la-poste-net/cartes-electroniques/' },
{path:'402', 		level:2,	 univ:3,	 name:"Cartes postales",	 url:"/la-poste-net/cartes-postales/",	 pub:'/fragments/pub/la-poste-net/cartes-postales/' },
{path:'5', 		level:1,	 univ:4,	 name:"LA BANQUE POSTALE",	 url:"/la-banque-postale/",	 pub:'/fragments/pub/la-banque-en-ligne/home/' },
{path:'501', 		level:2,	 univ:4,	 name:"labanquepostale.fr",	 url:"javascript:f6_popup('https://www.labanquepostale.fr/')",	 pub:'/fragments/pub/la-banque-en-ligne/home/' }
];

var zIndex = {
"services_pratiques":'0',
"loisirs":'9',
"la_poste_en_ligne":'12',
"la_poste.net":'22',
"la_banque_postale":'25'
};


var zExternal = {

};


var zUnivers = {
1:{name:"Accueil", uri:'accueil', url:'/', pub:'/fragments/pub/home/'},
2:{name:"SERVICES PRATIQUES - LOISIRS", uri:'pratiques', url:'/services-pratiques/', pub:'/fragments/pub/services-pratiques/acceuil/'},
3:{name:"LA POSTE EN LIGNE", uri:'laposte', url:'javascript:f6_popup("http://www.laposte.fr/")', pub:'/fragments/empty/'},
4:{name:"BANQUE POSTALE", uri:'labanque', url:'javascript:f6_popup("https://www.labanquepostale.fr/")', pub:'/fragments/pub/la-banque-postale/home/'}
};


var zAchatWeb = {

};































function is_https() {  return ( document.URL.indexOf("https") == 0 ); }
function getHost()  { return ( is_https() ? 'https://www.laposte.net' : 'http://www.laposte.net' ) ; }

var _zLength = zMap.length;
var _hilight = null;
var _docIndex = -1;
var _univers = "";
var _host = getHost();
var _zItem = null;
var _isUnivers = false;
var _site ='www.laposte.net';
var _docURI = "";
var _url = document.URL;
var _zPub = "";
var _protocol = window.location.protocol;
window.status="/elements/nav/includes";


function popup(theURL,winName,features) { 
 window.open(theURL,winName,features).focus();
}

var _reIndex = /\/index\.([^?d\/&,;])*$/g;
var _reHost = /http:..www.laposte.net/g;
function getStrictURL(value){
  if (value != null) {  
     value = value.replace(_reIndex, "/");
     value = value.replace(_reHost, "");
  }
  return value;
}

function _loadURL (url, elmid) {
   var elm = document.getElementById(elmid);
   if (elm != null && elm.tagName == "IFRAME") { 
      if (url.indexOf("/") == 0)  url =  "//www.laposte.net" + url;
      elm.setAttribute("src", url); 

   }
}

function pub_h() { var  __zPub = _zPub;  if (__zPub.indexOf("/") == 0) __zPub += "pub_h.jsp" ;  _loadURL(__zPub , "pub_h");  }
function pubs()  { pub_d(); pub_c(); }
function pub_d() {_loadPub("pub_d", 120, 600);}
function pub_c() {_loadPub("pub_c", 300, 250);}

function _loadPub(id, w, h) {
 if (_zPub.indexOf("http") == 0) _zPub = "/fragments/pub/empty/";
  var cnt = "<iframe src='//www.laposte.net/" + _zPub + id + ".jsp' marginwidth='0' marginheight='0' width='" + w + "' height='" + h + "' frameborder='0' scrolling='no'></iframe>"; 
  var elm = document.getElementById(id);
  if (elm != null && elm.tagName == "DIV")
      elm.innerHTML = cnt;
   else
      document.write(cnt);      
}

function getIndexInMapFromURL(aURL) { 
  for (var i = _zLength -1;  i >= 0; i--)  {
    if (aURL == zMap[i]["path"]) return i;
  }

  return -1;
}

function getIndexInMapFromDocument(){
  var i  = 0;
  var _uri = "";
  for (i = _zLength -1;  i >= 0; i--)  { 
    _uri = zMap[i]["url"];
   if (document.URL == _uri || _hilight == _uri || _docURI == _uri) return i;
  }

  return -1; 
}


function getUnivers() { 
	if ( _docIndex != -1) return zMap[_docIndex]["univ"];
   _docURI = getStrictURL(document.URL);
   	
   var _zunivers = "";
	for (ii in zUnivers)	{
	   _zunivers = zUnivers[ii]["url"];
	   if (_docURI == _zunivers || _hilight == _zunivers) { _zPub = zUnivers[ii]["pub"] ;  return ii; }
	}
	return ""  ;
}


function nav_init(fullMode) {
   _hilight = getStrictURL(_hilight);
   _docIndex = getIndexInMapFromDocument();
   _univers = getUnivers();
   
   if (_docIndex < 0 && _univers != "")   {  
      for (i = 0; i < _zLength; i++) {   
        if (zMap[i]['univ'] == _univers) { _docIndex = i; _isUnivers = true; break}
      }
   }
   
   if (_docIndex >= 0) { _zItem = zMap[_docIndex]; _zPub = _zItem["pub"];   }
}



function navb() {
  
  document.write('<div class="ctn_nav_ft">');
document.write('<ul>');
document.write('<li><a  href="http://www.laposte.net/Charte/Conditions_popup.html" title="lien interne nouvelle fen&ecirc;tre : La charte d\'utilisation de la poste.net" onclick="f6_popup(\'http://www.laposte.net/Charte/Conditions_popup.html\'); return false;" >Charte d\'utilisation</a></li>');
document.write('<li><a  href="http://www.laposte.net/outils/annoncer/index.jsp" title="lien interne nouvelle fen&ecirc;tre : comment annoncer sur la poste.net ?" onclick="f6_popup(\'http://www.laposte.net/outils/annoncer/\'); return false;" >Annoncer sur LaPoste.net</a></li>');
document.write('<li><a  href="http://aide.laposte.net" title="lien externe nouvelle fen&ecirc;tre : l\'aide en ligne de la messagerie" onclick="f6_popup(\'http://aide.laposte.net\');return false;">Aide</a></li>');
document.write('</ul>');
document.write('</div>');

  <!-- document.write(_zPub); -->
}

function menuSelect(elemId) {
   var element = document.getElementById(elemId);
   if (element != null && element.className == "") {
      element.className = "selected";
    }
}


function navh() {
   nav_init(false);

   
   document.write('<div class="ctn_header">');
document.write('<table width="957" border="0" cellspacing="0" cellpadding="0" class="nav_hd">');
document.write('<tr>');
document.write('<td width="5" rowspan="3"></td>');
document.write('<td width="179" rowspan="3" class="ctn_hd_login">');
document.write('<!-- Title Page -->');
document.write('<div class="title_page">');
document.write('<h1>laposte.fr</h1>');
document.write('<a href="http://www.laposte.fr" onclick="f6_goto(\'http://www.laposte.fr\');" title="Lien externe : Laposte.fr" target="_blank"><img src="//www.laposte.net/img/pictures/visu_laposte_fr.gif" border="0" width="179" height="50" alt="La poste"></a>');
document.write('</div>');
document.write('<div class="title_page" style="margin:0 0 4px 11px;">');
document.write('<h1>laposte.net</h1>');
document.write('<a onclick="f6_goto(\'/\');" href="http://www.laposte.net/index.jsp" title="Retour &agrave; la page d\'accueil"><img src="//www.laposte.net/img/pictures/visu_logo_laposte.gif" border="0" width="166" height="33" alt="bienvenue sur laposte.net"></a>');
document.write('</div>');
document.write('<div class="blk_user" style="margin-left:11px;">');
document.write('<form action="https://compte.laposte.net/login.do" name="userlogin" method="post" onsubmit="return checkForm()">');
document.write('<input name="Act_Login.x" value="45" type="hidden" />');
document.write('<input name="Act_Login.y" value="9" type="hidden" />');
document.write('<img src="//www.laposte.net/img/pictos/picto_mail.gif" alt="" /><strong>Bo&icirc;te aux lettres</strong>');
document.write('<input style="width:120px" type="text" name="login" value="prenom.nom" onblur="if(this.value==\'\'){this.value=\'prenom.nom\'};nextfield=\'GoAhead\'" onfocus="if (this.value==\'prenom.nom\'){this.value=\'\'};" class="input_login" />');
document.write('<input style="width:120px" type="password" name="password"  onblur="nextfield=\'GoAhead\'" onfocus="nextfield=\'SUBMIT_LOGIN\'" class="input_pass" />');
document.write('<input src="//www.laposte.net/img/pictos/btn_mail_ok.gif" alt="Valider" onmouseover="window.status=\'\';return true" onmouseout="window.status=\'\';return true" type="image" class="btn_mail_ok" />');
document.write('</form>');
document.write('<div style="clear:both;"></div>');
document.write('<a onclick="f6_goto(\'https://compte.laposte.net/mot-de-passe/index.do\');" href="https://compte.laposte.net/mot-de-passe/index.do" title="Messagerie : retrouvez votre mot de passe ">Mot de passe oubli&eacute; ?</a>');
document.write('</div>');
document.write('<div class="blk_create_mail" style="margin-left:11px;">');
document.write('<a onclick="f6_goto(\'https://compte.laposte.net/inscription/index.do\');" href="https://compte.laposte.net/inscription/index.do" title="Messagerie : cr&eacute;&eacute;z votre bo&icirc;te au lettre &eacute;lectronique laposte.net"><strong>Cr&eacute;ez votre Bo&icirc;te</strong></a>');
document.write('</div>');
document.write('<!-- /Title Page -->');
document.write('</td>');
document.write('<td width="767" colspan="2" height="90" class="ctn_hd_nav">');
document.write('<!-- Banner Pub Top -->');
document.write('<div id="pub_haut">');
document.write('<iframe id="pub_h" marginwidth="0" marginheight="0" width="728" height="90" frameborder="0" scrolling="no"></iframe>');
document.write('</div>');
document.write('</td>');
document.write('<td width="4" rowspan="3"></td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="222" height="45" style="padding-left:12px;">');
document.write('<div class="info_date">Lundi 12 mai 2008</div>');
document.write('</td>');
document.write('<td width="547">');
document.write('<div class="ctn_ban_img">');
document.write('<div class="blk_search" title="moteur de recherche de la poste.net Google"><a name="recherche"></a>');
document.write('<div class="bkg_search_l"><!-- --></div>');
document.write('<div class="ctn_search">');
document.write('<form method="get" action="http://www.laposte.net/recherche/" target="_top">');
document.write('<label for="sbi" style="display: none">Entrez les termes que vous recherchez.</label>');
document.write('<input type="text" name="q" size="52" maxlength="255" value="" id="sbi" class="input_search" style="width:300px;background:url(//www.laposte.net/img/bkg_search_google.gif) no-repeat top right;"></input>');
document.write('<label for="sbb" style="display: none">Envoyer un formulaire de recherche</label>');
document.write('<input name="btn_search_ok" type="image" src="//www.laposte.net/img/pictos/btn_search_ok.gif" alt="lancer la recherche" class="btn_search"></input>');
document.write('<input type="hidden" name="client" value="pub-9844245478230412"></input>');
document.write('<input type="hidden" name="forid" value="1"></input>');
document.write('<input type="hidden" name="ie" value="ISO-8859-1"></input>');
document.write('<input type="hidden" name="oe" value="ISO-8859-1"></input>');
document.write('<input type="hidden" name="cof" value="GALT:#008000;GL:1;DIV:#336699;VLC:663399;AH:center;BGC:FFFFFF;LBGC:336699;ALC:0000FF;LC:0000FF;T:000000;GFNT:0000FF;GIMP:0000FF;FORID:9"></input>');
document.write('<input type="hidden" name="hl" value="fr"></input>');
document.write('</form>');
document.write('</div>');
document.write('<div class="bkg_search_r"><!-- --></div>');
document.write('</div>');
document.write('</div>');
document.write('</td>');
document.write('</tr>');
document.write('<tr>');
document.write('<td width="769" colspan="2" height="50" class="ctn_hd_nav" style="vertical-align:top;">');
document.write('<!-- Nav Top -->');
document.write('<div class="blk_nav_top">');
document.write('<table border="0" cellspacing="0" cellpadding="0">');
document.write('<tr>');
document.write('<td class="vertical_line" xmlns="http://www.w3.org/1999/xhtml">');
document.write('<h2>');
document.write('<a href="http://www.laposte.net/" id="u1">Accueil</a>');
document.write('</h2>');
document.write('</td><td class="vertical_line">');
document.write('<h2>');
document.write('<a href="http://www.laposte.net/services-pratiques/" id="u2">SERVICES PRATIQUES - LOISIRS</a>');
document.write('</h2>');
document.write('</td><td class="vertical_line">');
document.write('<h2>');
document.write('<a href="javascript:f6_popup(%22http://www.laposte.fr/%22)" id="u3">LA POSTE EN LIGNE</a>');
document.write('</h2>');
document.write('</td><td>');
document.write('<h2>');
document.write('<a href="javascript:f6_popup(%22https://www.labanquepostale.fr/%22)" id="u4">BANQUE POSTALE</a>');
document.write('</h2>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');
document.write('<!-- /Nav Top -->');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('</div>');

   menuSelect("u" + _univers);


   
   if (_zItem != null && _zItem["pub"]) { _zPub = _zItem["pub"] ; pub_h(); }
   else {
      _zPub = "/pub/empty/";
      pub_h();
   }

}

var _started=false;
var _lastUnivers = null;

function navg() {
  
  document.write('<!-- <div class="blk_banner_bub">');
document.write('<div class="img_top"><img src="//www.laposte.net/img/bkg_nav_banr_pub_top.jpg" alt="" width="171" height="5"></div>');
document.write('<img src="//www.laposte.net/img/pictures/visu_nav_left_pub.gif" alt="" width="138" height="66" class="visu_pub">');
document.write('<div class="img_bottom"><img src="//www.laposte.net/img/bkg_nav_banr_pub_bottom.jpg" alt="" width="7" height="7"></div>');
document.write('</div> -->');


	for (var i = 0, n=_zLength; i < n ; i++) { 
     getNavg(i);
  }
  
  document.writeln('   </ul>');
  document.writeln('   <div class="img_bottom"><img src="//www.laposte.net/img/bkg_nav_left_bottom.jpg" alt="" width="7" height="11"></div>');
  document.writeln('</div>');
   
  
  document.write('<!--');
document.write('<div class="blk_mea skin_infos">');
document.write('<div class="bkg_mea_l"><div class="bkg_mea_r"><div class="bkg_mea_m">');
document.write('<h2><span class="bkg_mea_tetr_l"></span>');
document.write('<img src="//www.laposte.net/img/pratiques/pictos/picto_mea_tetr_left.gif" alt="" width="16" height="16" class="img_picto">');
document.write('<strong>Vos alertes</strong>');
document.write('<span class="bkg_mea_tetr_r"></span></h2>');
document.write('<table width="98%" cellpadding="0" cellspacing="0" border="0" class="mea_infos">');
document.write('<tr>');
document.write('<td>');
document.write('<ul class="liste" style="margin-left:11px;">');
document.write('<li><a href="#">RSS / ATOM</a></li>');
document.write('<li><a href="#">A propos des flux</a></li>');
document.write('<li><a href="#">Nouveau : la Poste.net Live !</a></li>');
document.write('</ul>');
document.write('</td>');
document.write('</tr>');
document.write('</table>');
document.write('<div class="img_bottom_l"><img src="//www.laposte.net/img/bkg_mea_b_l.gif" alt="" width="11" height="13"></div>');
document.write('<div class="img_bottom_r"><img src="//www.laposte.net/img/bkg_mea_b_r.gif" alt="" width="4" height="4"></div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('</div>');
document.write('-->');

}


function getNavg(i) {
 var item = zMap[i];
 var univers = zMap[i]["univ"];
 var css = zUnivers[univers]['uri'];
 var level = item['level'];
 var first=' ';
 
 if (univers != _lastUnivers && level == 1) {
    if (i > 0) { 
      document.writeln('   </ul>'); 
    	document.writeln('   <div class="img_bottom"><img src="//www.laposte.net/img/bkg_nav_left_bottom.jpg" alt="" width="7" height="11"></div>');
      document.writeln('</div>');
    }
  
   first = ' class="first"';
   document.writeln('<div class="blk_nav_left ' +  css + '">');
   document.writeln('   <div class="img_top"><img src="//www.laposte.net/img/bkg_nav_left_top.jpg" alt="" width="171" height="9"></div>');
   _lastUnivers = univers; 
  }

  if (level == 1) {  
      document.writeln('<h2' + first + '>' + item['name'] + '</h2>');
      document.writeln('<ul>');
  }
  else if (level == 2) {  document.writeln('<li>' + getLink(item['name'], item['url'], i == _docIndex) + '</li>');   }
}


var reURL = /(javascript:f6_popup\(')(.*)('\))/g

function getLink(name, zurl, isSelected) {
  var _onClick=null;
  var zclass="";
  
  var xt_url = zurl; 
  if (zurl.indexOf("javascript") != -1)  {
   xt_url = zurl.replace(reURL, "$2");
  }
  
  var xtname = getPage(xt_url);
  var _title = 'title="'+ name + " - " + xtname + '"';
 
   if (zurl.indexOf("/") != 0)  {
      _title = 'title="Lien externe : ' + name + '"';
   }
  
  if (isSelected)  zclass='class="selected"';
  if (zurl.indexOf("javascript:") == 0)  {
    _onClick = 'onClick="'+ zurl + '"';   zurl="";
    
   zurl="";
     
  }
  else if (zurl.indexOf("/") == 0)  {
    zurl = _host + zurl;
    _onClick='onClick="javascript:xt_med(\'C\', \'' + xtsite + '\',\'' + xtname + '\', \'N\')"';
  }
  else  {
   _onClick='onClick="javascript:xt_med(\'C\', \'' + xtsite + '\',\'' + xtname + '\', \'S\')"';
  }
  
  
  return '<a ' + zclass + 'href="' + zurl + '" ' + _title + (_onClick != null ? _onClick : "") + ' >' + name + '</a>';
}

