var a2dRandom = Math.random();

var host = document.domain;
var pos = host.indexOf(".")+1;
var ssdomaine = host.substring(pos, host.length);

function MM_swapImgRestore()
	 { //v3.0
      var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++)
      x.src=x.oSrc;
     }

function MM_preloadImages()
	 { //v3.0
        var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
        var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length;i++)
        if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
     }

function MM_findObj(n, d) { //v3.0
      var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length)
      {
        d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
		if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++)
		 x=d.forms[i][n];
  		for(i=0;!x&&d.layers&&i<d.layers.length;i++)
		x=MM_findObj(n,d.layers[i].document); return x;
		}

function MM_swapImage()
	{ //v3.0
        var ii,jj=0,x,a=MM_swapImage.arguments;
        document.MM_sr=new Array;
        for(ii=0;ii<(a.length-2);ii+=3)
        {
             if ((x=MM_findObj(a[ii]))!=null)
             {
                document.MM_sr[jj++]=x; if(!x.oSrc)x.oSrc=x.src;
                x.src=a[ii+2];
             }
        }
    }

//les Hot Spots
function nb_aleatoire(nb)
{
nombre= Math.floor(Math.random() * nb)+1;
} 


//PLF- http://www.jejavascript.net/
lien_mot = new Array("", "RELOOKING", "RIAD MARRAKECH", "LECTEUR MP3", "RENCONTRE SERIEUSE", "JEU JAVA", "CHAUSSURES SPORT", "BIJOUX", "VETEMENT FEMME", "PAINTBALL", "IMPRIMANTE MULTIFONCTION", "DVD VIERGE", "MUSCULATION", "CARTOUCHE ENCRE IMPRIMANTE", "FITNESS", "VOL DEGRIFFE", "TIRAGE PHOTO NUMERQIUE", "JEU VIDEO", "CONSOLE", "SONNERIE PORTABLE", "PC PORTABLE", "ACCESSOIRE MODE", "HOME CINEMA", "REGIME", "CHIRURGIE ESTHETIQUE", "TEE SHIRT", "SOUTIENS SCOLAIRE", "APPRENDRE ANGLAIS", "STAGE/JOB");
tirage = new Array;
nombres="";
nb= 6;

function mot()
{
for (i=1 ;i<nb ;i++)
{
nb_aleatoire(28);
tirage[i]= nombre;
for (t=1 ; t<i ;t++){
if (tirage[t]==nombre) 
{
i=i-1;
} 
}
}
for (i=1 ;i<nb ;i++)
{
nombres=nombres+tirage[i];
}
longueur=lien_mot[tirage[1]].length + lien_mot[tirage[2]].length + lien_mot[tirage[3]].length + lien_mot[tirage[4]].length + lien_mot[tirage[5]].length;
if(longueur>="55"){
	mot();	
}
}

mot();


startList = function() {
	if (document.all&&document.getElementById) {
		navRoot = document.getElementById("sousnav");
		for (i=0; i<navRoot.childNodes.length; i++) {
			node = navRoot.childNodes[i];
			if (node.nodeName=="LI") {
				node.onmouseover=function() {
					this.className+=" over";
				}
				node.onmouseout=function() {
					this.className=this.className.replace(" over", "");
				}
			}
		}
	}
}

function check()
{
	if(document.form1.ou[1].checked == false){
		return true;
	}else{
		return false;
	}
	
}

function overture()
{
	
	if( check() == true ){
		
		document.form1.submit();
		
	}else{
		
		window.open('http://fr.search.yahoo.com/search?p='+document.form1.Keywords.value+'&ei=ISO-8859-1&fr=cb-mcm&meta=vl%3D');
		
	}
	
}

if(ssdomaine == 'vm-wl.com'){
	var ssdomaine = 'mcm.net';
}else if(ssdomaine == 'mcm.0pb.org'){
	var ssdomaine = 'mcm.net';
}

if(cat=="cinema"){
petitpoucet='<b><a href="http://www.'+ssdomaine+'/" target="_top">Accueil</a>&nbsp;>&nbsp;<a href="http://cinema.'+ssdomaine+'/mcm/">Cin�ma / DVD</a></b>';
}else if(cat=="mobile"){
petitpoucet='<b><a href="http://www.'+ssdomaine+'/" target="_top">Accueil</a>&nbsp;>&nbsp;<a href="http://mobile.mcm.net/" target="_top">Mon Mobile</a></b>';	
}else if(cat=="virgin"){
petitpoucet='<b><a href="http://www.'+ssdomaine+'/" target="_top">Accueil</a>&nbsp;>&nbsp;Shop&nbsp;>&nbsp;<a href="http://www.'+ssdomaine+'/telechargement/" target="_top">T�l�chargement</a></b>';	
}else if(cat=="divers"){
petitpoucet='<b><a href="http://www.'+ssdomaine+'/" target="_top">Accueil</a>&nbsp;></b>';	
}
if(cat=="virgin"){
overture='';	
}else{
overture='<table border="0" cellpadding="0" cellspacing="0" align="right"><tr height="17"><form action="http://www.'+ssdomaine+'/service/service.php" name="form1" method="POST" onsubmit="overture();return false;" target="_top"><td><font id="bleu9b">Je recherche</font> <input type="radio" name="ou" value="mcm" style="vertical-align: middle;" checked><font id="bleu9">sur mcm</font>&nbsp;&nbsp;&nbsp;<input type="radio" name="ou" value="web" style="vertical-align: middle;"><font id="bleu9">sur le web</font>&nbsp;&nbsp;&nbsp;</td><td><input type="text" name="Keywords" id="yahooform" onfocus="javascript:this.style.background=\'#FFFFFF\'"></td><td width="31" align="center"><input type="image" src="http://www.mcm.net/img/common/yahoo/fleche-ok.gif" name="oksearch"></td></form></tr></table>';
}



document.write('<link rel="stylesheet" type="text/css" href="http://www.mcm.net/stylemcm_partenaire.css">');
document.write('<link rel="stylesheet" href="http://www.mcm.net/styleinscription.css" type="text/css">');

document.write('  <div class="prem_nav">');
document.write('	<a href="http://www.premiere.fr/premiere"><img src="http://www.mcm.net/img/common/nav-prem/logo-prem2.jpg" width="206" height="70" class="logo-prem"></a>');
document.write('      <div class="bts-prem">');
document.write('      <ul>');
document.write('      <li><a href="http://www.premiere.fr/Cinema">CINEMA</a></li></li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		<li><a href="http://spectacles.premiere.fr/pariscope">SPECTACLES</a></li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		<li><a href="http://www.premiere.fr/Cinema/Sorties-DVD">DVD</a></li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		<li><a href="http://programme-tv.premiere.fr/">PROGRAMMES TV</a></li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		<li><a href="http://people.premiere.fr/">PEOPLE</a></li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		<li><a href="http://jeuxvideo.premiere.fr/">JEUX VIDEO</a></li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		<li>MUSIQUE</li>');
document.write('		<li><img height="21" width="2" border="0" style="float: left;" src="http://www.mcm.net/img/common/nav-prem/sep-prem.jpg"/></li>');
document.write('		</ul>');	
document.write('	  </div>');
document.write('  </div> ');

document.write('  <table width="950" border="0" cellspacing="0" cellpadding="0">');
document.write('    <tr> ');
document.write('      <td align="left" valign="bottom"><div id="clearall"><a href="http://www.'+ssdomaine+'" target="_top"><img src="http://www.mcm.net/img/common/top_partenaire.gif" width="450" height="63"></a></div></td>');
document.write('      <td width="500" align="left" valign="bottom" background="http://www.mcm.net/img/common/bg.jpg"><table width="500" height="46" border="0" cellpadding="0" cellspacing="0" bgcolor="#DBDBE1">');
document.write('          <tr> ');
document.write('            <td valign="bottom">');
document.write('                '+overture+'');
document.write('              </td>');
document.write('          </tr>');
document.write('          <tr> ');
document.write('            <td width="500" align="center" valign="bottom" bgcolor="#DBDBE1"><div id="clearall"><table border="0" cellpadding="0" cellspacing="0" width="480">');
document.write('                <tr height="17"> ');
document.write('                  <td width="5"><img src="http://www.mcm.net/img/common/yahoo/coin-gauche.gif" width="5" height="17"></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><a href="http://www.'+ssdomaine+'/service/service.php?spot=1&Keywords='+lien_mot[tirage[1]]+'" target="_top">'+lien_mot[tirage[1]]+'</a></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><img src="http://www.mcm.net/img/common/yahoo/separateur.gif"></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><a href="http://www.'+ssdomaine+'/service/service.php?spot=1&Keywords='+lien_mot[tirage[2]]+'" target="_top">'+lien_mot[tirage[2]]+'</a>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><img src="http://www.mcm.net/img/common/yahoo/separateur.gif"></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><a href="http://www.'+ssdomaine+'/service/service.php?spot=1&Keywords='+lien_mot[tirage[3]]+'" target="_top">'+lien_mot[tirage[3]]+'</a></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><img src="http://www.mcm.net/img/common/yahoo/separateur.gif"></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><a href="http://www.'+ssdomaine+'/service/service.php?spot=1&Keywords='+lien_mot[tirage[4]]+'" target="_top">'+lien_mot[tirage[4]]+'</a></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><img src="http://www.mcm.net/img/common/yahoo/separateur.gif"></td>');
document.write('                  <td background="http://www.mcm.net/img/common/yahoo/bg-yahoo.gif" id="blanc9b" align="center"><a href="http://www.'+ssdomaine+'/service/service.php?spot=1&Keywords='+lien_mot[tirage[5]]+'" target="_top">'+lien_mot[tirage[5]]+'</a></td>');
document.write('                  <td width="5"><img src="http://www.mcm.net/img/common/yahoo/coin-droit.gif"></td>');
document.write('                </tr>');
document.write('             </table></div></td>');
document.write('          </tr>');
document.write('          <tr> ');
document.write('            <td align="center" bgcolor="#DBDBE1" height="1"></td>');
document.write('          </tr>');
document.write('        </table></td>');
document.write('    </tr>');
document.write('  </table>');
document.write('  <table border="0" cellpadding="0" cellspacing="0" width="950">');
document.write('    <tr height="20" bgcolor="#DB1E1E"> ');
document.write('      <td id="barredenav" valign="middle">');
document.write('      	<div id="navigation" style="position: relative; top: 2px;"></div>');
if(ssdomaine == 'mcmbe.tv'){
document.write('			<scr' +'ipt language="JavaScript" src="http://www.'+ssdomaine+'/partenaire/navbe.php"></scr' +'ipt>');
}else{
document.write('			<scr' +'ipt language="JavaScript" src="http://www.'+ssdomaine+'/partenaire/nav.php"></scr' +'ipt>');	
}
document.write('        </td>');
document.write('    </tr>');
document.write('  </table>');
document.write('  <table border="0" cellpadding="0" cellspacing="0" width="950">');
document.write('  <tr>');
document.write('      <td height="1" bgcolor="#FFFFFF"></td>');
document.write('    </tr>');
document.write('  </table>');
document.write('  <table border="0" cellpadding="0" cellspacing="0" width="950">');
document.write('    <tr height="20" bgcolor="#FEC301"> ');
document.write('      <td background="http://www.mcm.net/img/common/bg-ousuisje.gif"> <table>');
document.write('          <tr> ');
document.write('            <td width="870" id="ousuisje" class="ousuisje" align="left">&nbsp;<b>O&ugrave; suis-je</b><img src="http://www.mcm.net/img/common/fleche-ousuisje.gif" border="0" align="absmiddle" hspace="3" onLoad="startList();"> ');
document.write('              '+petitpoucet+' </td>');
document.write('            <td> ');
document.write('            </td>');
document.write('          </tr>');
document.write('        </table></tr>');
document.write('  </table>');
document.write('  <table width="950" border="0" cellspacing="0" cellpadding="0">');
document.write('  <tr>');
document.write('    <td height="114" align="center" background="http://www.mcm.net/img/common/bg-int.gif">');
document.write('					<table cellpadding="0" cellspacing="0" border="0" width="940">');
document.write('					<tr>');
document.write('						<td valign="top" width="770">');
document.write('							<table border="0" cellpadding="0" cellspacing="0" width="765" height="104">');
document.write('								<tr>');
document.write('									<td width="30"><div id="clearall"><img src="http://www.mcm.net/img/common/megabanner/gauche-pub.gif"></div></td>');
document.write('									<td width="728" id="megabanner" height="104"><div id="clearall">');
wreport_ok=0;


/*
        wreport.js
        Wreport version 1.5.2 copyright Weborama 06-08-2007

*/

/* ------------------ Variables ------------------------- */
var _NB_MAX_CONTENU_ = 1;
var _TAILLE_MAX_CONTENU_ = 100;
var _TAILLE_MAX_CHAINE_ = 50;
var _TAILLE_MAX_ALPHANUM_ = 30;
var WEBO_ID_GROUPE = 289091;

var COOKIE_SEGMENTATION = 'wbo_segment_';

// Definition de l'objet
function wreport_counter (section,subsection,site,frame,channel,section_grp,subsection_grp)
{
	this.site = site;

	this.section;
	this.subsection;
	this.channel = '';
	this.content = '';
	this.nb_content = 0;
	this.url = '';
	this.frame = frame;

	this.segmentation = new Array('','','','','');
	this.profiles = '';
	this.profiling_cookie_mode = 1;
	this.cookie_segmentation = COOKIE_SEGMENTATION;
	this.domaine_segmentation = '';

	this.counter = new Image(1,1);

	/* Methodes */
	this.profiling_cookie_mode = profiling_cookie_mode;
	this.generate_url = generate_url;
	this.add_content = add_content;
	this.add_channel = add_channel;
	this.add_group = add_group;
	this.add_profile = add_profile;
	this.add_profiles = add_profiles;
	this.delete_profiles = delete_profiles;
	this.get_profiles = get_profiles;
	this.count = count;

	/* Initialisation */
	this.section = traite_chaine(section,_TAILLE_MAX_ALPHANUM_);
	this.subsection = traite_chaine(subsection,_TAILLE_MAX_ALPHANUM_);
	if (channel != null)
	{
		this.add_channel(channel);
	}
	if (section_grp != null && subsection_grp != null)
	{
		this.add_group(section_grp,subsection_grp);
	}
	this.cookie_segmentation += site;
}

// G�n�re la url de comptage
function generate_url ()
{
	var _date_ = new Date();
	this.date = parseInt(_date_.getTime()/1000 - 60*_date_.getTimezoneOffset());
	this.ref = ''+escape(document.referrer);

	this.ta = '0x0';
	this.co = 0;
	this.nav = navigator.appName;

	this.get_profiles();

	if ( parseInt(navigator.appVersion)>=4)
	{
    	this.ta = screen.width+"x"+screen.height;
		this.co = (this.nav!="Netscape")?screen.colorDepth:screen.pixelDepth;
	}
    if((this.frame != null)&&(this.nav!="Netscape"))
    {
    	var reftmp = 'parent.document.referrer';
        if((this.frame<5)&&(this.frame>0)) {
        	for(_k=this.frame;_k>1;_k--) reftmp = 'parent.' + reftmp;
		}
        var mon_ref = eval(reftmp);
        if(document.referrer == parent.location || document.referrer=='') this.ref=''+escape(mon_ref)
	}

    if ( location.protocol == 'https:')
    {
    	this.url = "https://ssl.weborama.fr";
	}
    else
    {
    	this.url = "http://wreport.weborama.fr";
	}
	this.url += "/fcgi-bin/comptage_wreport.fcgi?WRP_ID="+this.site;
    if(this.profiles != null)  this.url += "&WRP_PFL="+this.profiles;

	var is_mac=(wf_uaO('mac')!=-1);
	var is_opera=(wf_uaO('opera')!=-1);
	if((!is_mac)&&(!is_opera)) {
		var msieind=navigator.userAgent.indexOf('MSIE');
		if(msieind>0) {
			if(parseInt(navigator.userAgent.charAt(msieind+5))>=5) {
				document.body.addBehavior("#default#clientCaps");
				this.cnx = (document.body.connectionType == 'modem') ? 'A':'B';
				document.body.addBehavior("#default#homePage");
				this.home = (document.body.isHomePage(location.href)) ? 'A':'B';
				this.url+="&CONN="+this.cnx+"&ISHOME="+this.home;
			}
		}
	}
	this.url += "&WRP_SECTION="+this.section+"&WRP_SUBSECTION="+this.subsection;

	if(this.site_grp != null && this.section_grp != null && this.subsection_grp != null)
    {
		this.url+="&WRP_ID_GRP="+this.site_grp+"&WRP_SECTION_GRP="+this.section_grp+"&WRP_SUBSECTION_GRP="+this.subsection_grp;
	}

	if(this.content != null) this.url+="&WRP_CONTENT="+this.content;
	if(this.channel != null) this.url+="&WRP_CHANNEL="+this.channel;

    this.url += "&ver=2&da2="+this.date+"&ta="+this.ta+"&co="+this.co+"&ref="+this.ref;
}

// Realise le comptage
function count ()
{
	this.generate_url();
	this.counter.src = this.url;
	return 1;
}

// Ajout de l'information de chaine th�matique
function add_channel (chaine)
{
	if (chaine == null || chaine == '') return 0;
	this.channel = traite_chaine(chaine,_TAILLE_MAX_CHAINE_);
	return 1;
}

// Ajout de double comptage option groupe
function add_group (section,subsection)
{
	this.site_grp = WEBO_ID_GROUPE;
	this.section_grp = traite_chaine(section,_TAILLE_MAX_ALPHANUM_);
	this.subsection_grp = traite_chaine(subsection,_TAILLE_MAX_ALPHANUM_);
}

// Ajout de CONTENU
function add_content (chaine)
{
	if (chaine == null || chaine == '') return 0;
	this.nb_content++;
	if ( this.nb_content > _NB_MAX_CONTENU_ ) return 0;
	if ( this.nb_content > 1 ) this.content = this.content.concat('|');
	chaine = chaine.replace('|',' ');
	this.content = this.content.concat( traite_chaine(chaine,_TAILLE_MAX_CONTENU_));
	return 1;
}


/* ------------------ Profilling ------------------------ */

// Modification du mode pour le profiling ( avec cookie ou sans )
function profiling_cookie_mode (mode)
{
	if (mode == 'on')
	{
		this.profiling_cookie_mode = 1;
	}
	else
	{
		this.profiling_cookie_mode = 0;
	}
}

// Ajout d'un profil pour le profiling
function add_profile (numero,valeur)
{
	numero = parseInt(numero,10);
	if ((numero < 1) || (numero > 5)) return -2;
	if ( this.profiling_cookie_mode == 0 )
	{
		numero--;
		this.segmentation[numero] = valeur;
		return 1;
	}
	if(parseInt(navigator.appVersion,10)<=3) return -1;
	nb_mois = 12;
	var verif_val_I = /^\d+$/;
	if(verif_val_I.test(valeur)) valeur = encode_en_lettre(valeur);
	var verif_val_A = /^\w*$/;
	if(verif_val_A.test(valeur)) {
		var mon_profil_wbo = GetCookie(this.cookie_segmentation);
		tab_segment = new Array('','','','','');
		if(mon_profil_wbo != null) {
			tab_segment = mon_profil_wbo.split('|');
			if(tab_segment.length != 5) tab_segment = ('','','','','');
				//On v�rifie qu'une mise � jour est n�cessaire.
			if(tab_segment[numero - 1]==valeur) return 1;
		}
		if(this.domaine_segmentation == '') {
			this.domaine_segmentation = window.location.host;
			tab_points = new Array();
			tab_points = window.location.host.split('.');
			if(tab_points.length>2) this.domaine_segmentation = this.domaine_segmentation.substring(this.domaine_segmentation.indexOf('.'),this.domaine_segmentation.length);
			if(tab_points.length==2) this.domaine_segmentation = '.' + this.domaine_segmentation;
		}
		var ma_chaine_profil='';
		for(var i=1; i<=5; i++) {
			if(i==numero) tab_segment[i-1]=valeur;
			if((tab_segment[i-1]=='') || (tab_segment[i-1]==null)) tab_segment[i-1] = '';
			ma_chaine_profil += tab_segment[i-1];
			if(i<5) ma_chaine_profil += '|';
		}
		expd = new Date();
		expd.setTime(expd.getTime() + (nb_mois * 30 * 24 * 3600 * 1000));
		SetCookie (this.cookie_segmentation,ma_chaine_profil,expd,'/',this.domaine_segmentation);
		return 2;
	}
	else return -3;
}

// Ajout du profiling
function add_profiles (p1,p2,p3,p4,p5) {
	this.add_profile(1,p1);
	this.add_profile(2,p2);
	this.add_profile(3,p3);
	this.add_profile(4,p4);
	this.add_profile(5,p5);
}

// Destruction du cookie de profiling ou de la variable
function delete_profiles ()
{
	if ( this.profiling_cookie_mode == 0 )
	{
		this.segmentation = Array('','','','','');
	}
	else
	{
		expd = new Date();
		expd.setTime(expd.getTime() - (24 * 3600 * 1000));
		SetCookie (this.cookie_segmentation,'||||',expd,'/',this.domaine_segmentation);
	}
}

// Recuperation des informations de profiling ( on renvoie une chaine escap�e )
function get_profiles () {
	this.profiles = GetCookie(this.cookie_segmentation);
	if( this.profiles == null) {
		this.profiles = '';
		var verif_val_I = /^\d+$/;
		for(var i=1;i<=5;i++) {
			if(verif_val_I.test(this.segmentation[i-1])) this.segmentation[i-1] = encode_en_lettre(this.segmentation[i-1]);
			this.profiles += this.segmentation[i-1];
			if(i<5) this.profiles += '|';
		}
	}
	this.profiles = escape(this.profiles);
}

/* ------------------ Generales --------------------------- */
function encode_en_lettre (num) {
	num = parseInt(num,10);
	if(num > 2500) return '';
	var num1 = parseInt(num/52,10);
	var num2 = num % 52;

	num1 += 65;
	if (num1>90) num1+=6;

	num2 += 65;
	if (num2>90) num2+=6;

	var mon_code52 = String.fromCharCode(num1) + String.fromCharCode(num2);
	return mon_code52;
}

// Nettoyage dune chaine de caracteres
function traite_chaine (str,taille_max) {
	var s = traduction(str);
	var bag = "0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.,;:_ ";
	var i;
	var returnString = "";
	if (s == null) return "";
	s = "" + s;
	s = s.substr(0,taille_max);
	for (i = 0; i < s.length; i++) {
		var c = s.charAt(i);
		if (bag.indexOf(c) != -1) returnString += c;
	}
	returnString = unicite_espace(returnString);
	returnString = escape(returnString);
	return returnString;
}

function convertir(chaine)
{
	var str = chaine.replace(/&#(\d+);/,"$1");
	return String.fromCharCode(str);
}

function traduction(chaine)
{
	var chaine_b = unescape(chaine);
	var i=0;
	while ( chaine_b != chaine && i<5 )
	{
		i++;
		chaine = chaine_b;
		chaine_b = unescape(chaine_b);	
	}
	return chaine_b.replace(/&#(\d+);/gi, convertir);
}

function unicite_espace (chaine)
{
	var str = chaine.replace(/(\s+)/g,' ');
	str = str.replace(/(^\s*)|(\s*$)/g,"");
	return str;
}

// Identification du type de navigateur
function wf_uaO(c) {
	var wf_ual=navigator.userAgent.toLowerCase();
	return(wf_ual.indexOf(c))
}


/* ------------------ Cookies --------------------------- */
function getCookieVal (offset) {
	var endstr = document.cookie.indexOf (";", offset);
    if (endstr == -1)
        endstr = document.cookie.length;
	return unescape(document.cookie.substring(offset, endstr));
}

function 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 getCookieVal (j);
		i = document.cookie.indexOf(" ", i) + 1;
		if (i == 0) break;
	}
    return null;
}

function SetCookie (name,value,expires,path,domain,secure)  {
	document.cookie = name + "=" + escape (value) +
	((expires) ? "; expires=" + expires.toGMTString() : "") +
	((path) ? "; path=" + path : "") +
	((domain) ? "; domain=" + domain : "") +
	((secure) ? "; secure" : "");
}

/* ------- Retro comptabilite ------- */

function wreport (section,subsection,site,frame,content,channel) {
	var w_compteur = new wreport_counter(section,subsection,site,frame,channel);
	w_compteur.add_content(content);
	w_compteur.count();
}

function wreport_groupe (section,subsection,site,section_grp,subsection_grp,frame,content,channel) {
	var w_compteur = new wreport_counter  (section,subsection,site,frame,channel,section_grp,subsection_grp);
	w_compteur.add_content(content);
	w_compteur.count();
}

function wreport_click (url,section,subsection,site,frame,content,channel) {
	var w_compteur = new wreport_counter(section,subsection,site,frame,channel);
	w_compteur.add_content(content);
	w_compteur.count();
	w_compteur.counter.onload = function() {
		document.location=url;
	}
}

function wreport_click_groupe (url,section,subsection,site,section_grp,subsection_grp,frame,content,channel) {
	var w_compteur = new wreport_counter(section,subsection,site,frame,channel,section_grp,subsection_grp);
	w_compteur.add_content(content);
	w_compteur.count();
	w_compteur.counter.onload = function() {
		document.location=url;
	}
}

wreport_ok = 1;


if(cat=="cinema"){
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2828&m=js&cb='+a2dRandom+'"></scr'+'ipt>');	
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2824&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2827&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
}else if(cat=="mobile"){
var WRP_ID= 346557;
var WRP_SECTION='services';
var WRP_SUBSECTION='monmobile';
var WRP_SECTION_GRP= WRP_ID;
var WRP_SUBSECTION_GRP= WRP_SECTION;
var WRP_CONTENT= 'page';
var WRP_CHANNEL= 'eshop';

/* Profondeur Frame */
var WRP_ACC;






if(wreport_ok==1){ var w_counter = new wreport_counter(WRP_SECTION, WRP_SUBSECTION, WRP_ID, WRP_ACC, WRP_CHANNEL, WRP_SECTION_GRP, WRP_SUBSECTION_GRP);
w_counter.add_content(WRP_CONTENT);
w_counter.count();}		
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2860&m=js&cb='+a2dRandom+'"></scr'+'ipt>');	
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2857&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2863&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
}else if(cat=="virgin"){
var WRP_ID= 346557;
var WRP_SECTION='services';
var WRP_SUBSECTION='telechargement';
var WRP_SECTION_GRP= WRP_ID;
var WRP_SUBSECTION_GRP= WRP_SECTION;
var WRP_CONTENT= 'page';
var WRP_CHANNEL= 'eshop';

/* Profondeur Frame */
var WRP_ACC;




if(wreport_ok==1){ var w_counter = new wreport_counter(WRP_SECTION, WRP_SUBSECTION, WRP_ID, WRP_ACC, WRP_CHANNEL, WRP_SECTION_GRP, WRP_SUBSECTION_GRP);
w_counter.add_content(WRP_CONTENT);
w_counter.count();}	
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2865&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2868&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2871&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
}else if(cat=="mobile"){
var WRP_ID= 346557;
var WRP_SECTION='services';
var WRP_SUBSECTION='mobile';
var WRP_SECTION_GRP= WRP_ID;
var WRP_SUBSECTION_GRP= WRP_SECTION;
var WRP_CONTENT= 'page';
var WRP_CHANNEL= 'eshop';

/* Profondeur Frame */
var WRP_ACC;




if(wreport_ok==1){ var w_counter = new wreport_counter(WRP_SECTION, WRP_SUBSECTION, WRP_ID, WRP_ACC, WRP_CHANNEL, WRP_SECTION_GRP, WRP_SUBSECTION_GRP);
w_counter.add_content(WRP_CONTENT);
w_counter.count();}	
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2865&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2868&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2871&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
}else if(cat=="boutiqueoff"){
var WRP_ID= 346557;
var WRP_SECTION='services';
var WRP_SUBSECTION='boutiqueoff';
var WRP_SECTION_GRP= WRP_ID;
var WRP_SUBSECTION_GRP= WRP_SECTION;
var WRP_CONTENT= 'page';
var WRP_CHANNEL= 'eshop';

/* Profondeur Frame */
var WRP_ACC;






if(wreport_ok==1){ var w_counter = new wreport_counter(WRP_SECTION, WRP_SUBSECTION, WRP_ID, WRP_ACC, WRP_CHANNEL, WRP_SECTION_GRP, WRP_SUBSECTION_GRP);
w_counter.add_content(WRP_CONTENT);
w_counter.count();}		
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2884&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2893&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2896&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
}else if(cat=="divers"){
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2884&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2893&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
document.write('<scr'+'ipt language="JavaScript" type="text/javascript" src="http://fr.a2dfp.net//ad?s=2896&m=js&cb='+a2dRandom+'"></scr'+'ipt>');
}

