
function readCookie(name) {
	var cookieValue = "";
	var search = name + "=";
	if(document.cookie.length > 0)   { 
		offset = document.cookie.indexOf(search);
		if (offset != -1)     { 
			offset += search.length;
			end = document.cookie.indexOf(";", offset);
			if (end == -1) end = document.cookie.length;
			cookieValue = unescape(document.cookie.substring(offset, end))
		}
	}
	return cookieValue;
}
function writeCookie(name, value, hours) {
	var expire = "";
	var path = ";path=/";
	if(hours != null)   {
		expire = new Date((new Date()).getTime() + hours * 3600000);
		expire = "; expires=" + expire.toGMTString();
	}
	document.cookie = name + "=" + escape(value) + expire + path;
}

//Weboscope version 2.5 copyright weborama
//modif le 03 juin 2003 par JBS
function webo_zpi(_WEBOZONE,_WEBOPAGE,_WEBOID,_titre,_ACC)
{
	var wbs_da=new Date();
	wbs_da=parseInt(wbs_da.getTime()/1000 - 60*wbs_da.getTimezoneOffset());
	var wbs_ref=''+escape(document.referrer);
	var wbs_ta='0x0';
	var wbs_co=0;
	var wbs_nav=navigator.appName;
	if(_titre==null) _titre='';
	if(_titre=='') _titre=document.title;
	if(_titre.indexOf('http')==0) _titre = '';
	_titre=escape(_titre);

	var info = escape('wbotitre=' + _titre);

	if (parseInt(navigator.appVersion)>=4)
	{
		wbs_ta=screen.width+"x"+screen.height;
		wbs_co=(wbs_nav!="Netscape")?screen.colorDepth:screen.pixelDepth;
	}
	if((_ACC != null)&&(wbs_nav!="Netscape"))
	{
		var reftmp = 'parent.document.referrer';
		if((_ACC<5)&&(_ACC>0))
		{
			for(_k=_ACC;_k>1;_k--) reftmp = 'parent.' + reftmp;
		}
		var mon_ref = eval(reftmp);

		if(document.referrer == parent.location || document.referrer=='') wbs_ref=''+escape(mon_ref)

	}
	
	if (webo_multi > 6)
	{
	webo_multi=1;
	}
	
	var wbs_arg=location.protocol + "//recolte.mediametrics.mpsa.com/fcgi-bin/compta_"+webo_multi+".fcgi";
	wbs_arg+="?ID="+_WEBOID+"&ZONE="+_WEBOZONE+"&PAGE="+_WEBOPAGE;
	wbs_arg+="&ver=2&da2="+wbs_da+"&ta="+wbs_ta+"&co="+wbs_co+"&info="+info+ "&ref="+wbs_ref;
	var wbs_t= " border='0' height='1' width='1' alt=''>";
	if (parseInt(navigator.appVersion)>=3)
	{
		eval("webo_compteur"+webo_multi+"=new Image(1,1);"); 
		eval("webo_compteur"+webo_multi+".src=wbs_arg;");
	}
	else
	{
		document.write('<IMG SRC='+wbs_arg+wbs_t);
	}
	webo_multi++;

    ///////
    // Fin weboscope
    //////
    
	//alert((readCookie('peugeot_satisfaction') == 'oui'));
	var langue = 'fr';
	var txtUrl = document.location.href;
	if (txtUrl.indexOf('/fr/') != -1) langue = 'fr';
	if (txtUrl.indexOf('/en/') != -1) langue = 'en';
	
	//Parametre permettant d'activer [1] ou desactiver [0] l'enquete de satisfaction.
	var bool = 0;
	
	if(bool)
	{
	    // on regarde si le cookie est prsent
	    if (readCookie('peugeot_satisfaction') == langue) {
	        return;
	    }
	    else {
	        // on cre un cookie ayant une dure de vie de 20 jours (=24*20=480 heures)
	        writeCookie('peugeot_satisfaction', langue, 480)
	        
	    
	        // Window.onunload = function(){ if(self.screenTop>9000)window.open('http://www.yahoo.fr',null, null) }
	        window.open('/satisfaction/default.aspx?lng='+langue ,'satisfaction','width=480,height=550', true)
	        window.focus();
	    }
	}
	
	///////////////////////////////////////////
	
}
webo_ok=1;
webo_multi=1;
 var fs_depth = 0;