/*function check(){if(!document.form_login.politica.checked){alert("Debes aceptar la pol\u00edtica de privacidad para poder acceder");
return false;
}}
var _rsCI="es-telecinco";
var _rsCG="0";
var _rsDN="//secure-uk.imrworldwide.com/";
function random(){random.seed=(random.seed*random.a+random.c)%random.m;
return random.seed/random.m;
}random.m=714025;
random.a=4096;
random.c=150889;
random.seed=(new Date()).getTime()%random.m;
function _rsEH(){}window.onerror=_rsEH;
var _rsLP=location.protocol.indexOf("https")>-1?"https:":"http:";
var _rsND=_rsLP+_rsDN;
var _rsRD=(new Date()).getTime();
if(typeof(_rsCC)=="undefined"){var _rsCC=1;
}if(typeof(_rsDT)=="undefined"){var _rsDT=0;
}if(typeof(_rsSE)=="undefined"){var _rsSE=0;
}if(typeof(_rsSV)=="undefined"){var _rsSV="";
}if(typeof(_rsSM)=="undefined"){var _rsSM=0;
}if(typeof(_rsSS)=="undefined"){var _rsSS=1;
}if(typeof(_rsUT)=="undefined"){var _rsUT=0;
}if(typeof(_rsMP)=="undefined"){var _rsMP=1;
}if(typeof(_rsIP)=="undefined"){var _rsIP=0;
}if(typeof(_rsCG)=="undefined"){var _rsCG=0;
}if(typeof(_rsTC)=="undefined"){var _rsTC=500;
}if(typeof(_rsSI)=="undefined"){var _rsSI=escape(window.location);
}if(typeof(_rsCL)=="undefined"){var _rsCL=0;
}if(typeof(_rsCU)=="undefined"){var _rsCU=window.location;
}if(typeof(_rsPLfl)=="undefined"){var _rsPLfl=1;
}if(typeof(_rsPLqt)=="undefined"){var _rsPLqt=0;
}if(typeof(_rsPLre)=="undefined"){var _rsPLre=0;
}if(typeof(_rsPLwm)=="undefined"){var _rsPLwm=0;
}if(typeof(_rsPLjj)=="undefined"){var _rsPLjj=0;
}if(typeof(_rsPLac)=="undefined"){var _rsPLac=0;
}if(typeof(_rsC0)=="undefined"){var _rsC0;
}if(typeof(_rsC1)=="undefined"){var _rsC1;
}if(typeof(_rsC2)=="undefined"){var _rsC2;
}if(typeof(_rsC3)=="undefined"){var _rsC3;
}if(typeof(_rsC4)=="undefined"){var _rsC4;
}if(typeof(_rsC5)=="undefined"){var _rsC5;
}if(typeof(_rsC6)=="undefined"){var _rsC6;
}if(typeof(_rsC7)=="undefined"){var _rsC7;
}if(typeof(_rsC8)=="undefined"){var _rsC8;
}if(typeof(_rsC9)=="undefined"){var _rsC9;
}function _rsPause(a){var c=new Date();
var b;
do{b=new Date();
}while(b-c<a);
}function _rsRecordFactory(c,a){var b=_rsND+"cgi-bin/m?rnd="+(new Date()).getTime();
b+="&ci="+_rsCI;
b+="&cg="+escape(a);
b+="&cc=0";
b+="&si="+_rsCI+"-ctgw-"+escape(c);
b+="&rp="+escape(window.location);
if(b.length>2048){b=b.substring(0,2048);
}return b;
}function _rsEvent(b){var a=_rsEvent.arguments.length>1?_rsEvent.arguments[1]:_rsCG;
(new Image(1,1)).src=_rsRecordFactory(b,a);
}function _rsLinkTrack(c){var a=_rsLinkTrack.arguments.length>1?_rsLinkTrack.arguments[1]:_rsCG;
var b=new Image(1,1);
b.src=_rsRecordFactory(c,a);
_rsPause(_rsTC);
}var _rsClickDst;
function _rsClick(c){var a=_rsClick.arguments.length>1?_rsClick.arguments[1]:_rsCG;
var b=new Image(1,1);
b.src=_rsRecordFactory(c,a);
_rsClickDst=c;
setTimeout("window.location = _rsClickDst",_rsTC);
}function _rsVerInfo(e,c){var d=0;
for(var b=0;
b<c&&d>=0;
b++){d=e.indexOf(".",d+1);
}if(d>0){var a=e.charAt(d-1);
return a.match(/\d+/g)?a:0;
}else{return 0;
}}function _rsPluginDetect(){var j=[];
var g=navigator.mimeTypes;
if(g&&g.length>0){var c;
if(_rsPLfl==1){j.FL=-1;
c="application/x-shockwave-flash";
if(g[c]&&g[c].enabledPlugin){j.FL=_rsVerInfo(g[c].enabledPlugin.description,1);
}}if(_rsPLqt==1){j.QT=-1;
c="video/quicktime";
if(g[c]&&g[c].enabledPlugin){j.QT=_rsVerInfo(g[c].enabledPlugin.name,1);
}}if(_rsPLre==1){j.RE=-1;
c="audio/x-pn-realaudio-plugin";
if(g[c]&&g[c].enabledPlugin){j.RE=0;
}}if(_rsPLwm==1){j.QT=-1;
var b=true;
if(window.GeckoActiveXObject){try{var a=new GeckoActiveXObject("WMPlayer.OCX.7");
j.WM=_rsVerInfo(a.versionInfo,1);
b=false;
}catch(h){}}if(b){c="application/x-mplayer2";
if(g[c]&&g[c].enabledPlugin){j.WM=0;
}}}if(_rsPLjj==1){j.JJ=-1;
c="application/x-java-applet";
if(g[c]&&g[c].enabledPlugin){var l=_rsVerInfo(g[c].enabledPlugin.description,2);
j.JJ=(l==0?l:"1."+l);
}}if(_rsPLac==1){j.AC=-1;
c="application/pdf";
if(g[c]&&g[c].enabledPlugin){j.AC=0;
}}}else{if(window.ActiveXObject){var f;
if(_rsPLfl==1){j.FL=-1;
for(var d=9;
d>0;
d--){try{f=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+d);
if(f!=null){j.FL=d;
break;
}}catch(h){}}}if(_rsPLqt==1){j.QT=-1;
try{f=new ActiveXObject("QuickTimeCheckObject.QuickTimeCheck.1");
if(f!=null){j.QT=parseInt(f.QuickTimeVersion.toString(16).substring(0,1));
}}catch(h){}}if(_rsPLre==1){j.RE=-1;
try{f=new ActiveXObject("rmocx.RealPlayer G2 Control.1");
if(f!=null){j.RE=0;
}}catch(h){}}if(_rsPLwm==1){j.WM=-1;
try{f=new ActiveXObject("WMPlayer.OCX.7");
if(f!=null){j.WM=_rsVerInfo(f.versionInfo,1);
}}catch(h){}}if(_rsPLjj==1){j.JJ=-1;
try{f=new ActiveXObject("JavaPlugin");
if(f!=null){j.JJ=0;
}}catch(h){}}if(_rsPLac==1){j.AC=-1;
var b=true;
try{f=new ActiveXObject("AcroPDF.PDF.1");
if(f!=null){j.AC=_rsVerInfo(f.GetVersions(),1);
b=false;
}}catch(h){}if(b){for(var d=6;
d>2;
d--){try{f=new ActiveXObject("PDF.PdfCtrl."+d);
if(f!=null){j.AC=d;
break;
}}catch(h){}}}}}}return j;
}function rsCi(){var t=navigator.appName+" "+navigator.appVersion;
var B=navigator.userAgent;
var b=window.screen;
var v=navigator.appVersion.substring(0,1);
var d=(t.indexOf("Netscape"));
var D=(t.indexOf("Mac"));
var o=(t.indexOf("MSIE"));
var i=(B.indexOf("Opera"));
var c=(parseInt(t.substr(o+5)));
var k=escape(document.referrer);
var s;
var m;
var n;
var A;
var l;
var w;
var g;
var a;
var f;
var p;
var z;
var j;
var C;
var q;
var e;
var u;
var y;
if(_rsMP==0){return;
}A=(navigator.javaEnabled()==true)?"y":"n";
if(_rsDT==1){f=escape(document.title);
}if((o>0)||((d!=-1)&&(v>=5))){l=(navigator.cookieEnabled==true)?"y":"n";
}if((o>=0)&&(c>=5)&&(D==-1)&&(i==-1)){document.body.addBehavior("#default#clientCaps");
g=document.body.connectionType;
document.body.addBehavior("#default#homePage");
a=(document.body.isHomePage(location.href))?"y":"n";
}var x=new Date();
w=x.getTimezoneOffset()/-60;
if((typeof(b)!="undefined")&&(b!=null)){p=b.width;
z=b.height;
m=b.colorDepth;
s=p+"x"+z;
if((d!=-1)&&(v>=4)){m=b.pixelDepth;
}}if((d!=-1)&&(v>=4)||(i>=0)){n=navigator.language;
}if((o!=-1)&&(v>=4)&&(i==-1)){n=navigator.userLanguage;
}var h=_rsPluginDetect();
var r="";
r='<img src="';
r=r+_rsND+"cgi-bin/m?rnd="+(new Date()).getTime();
r=r+"&ci="+_rsCI;
r=r+"&cg="+escape(_rsCG);
r=r+"&cc="+_rsCC;
if(s!=null){r=r+"&sr="+s;
}if(m!=null){r=r+"&cd="+m;
}if(n!=null){r=r+"&lg="+n;
}if(A!=null){r=r+"&je="+A;
}if(l!=null){r=r+"&ck="+l;
}if(w!=null){r=r+"&tz="+w;
}if(g!=null){r=r+"&ct="+g;
}if(a!=null){r=r+"&hp="+a;
}if(f!=null){r=r+"&tl="+f;
}if(_rsUT==1){if(_rsC0!=null){r=r+"&c0="+escape(_rsC0);
}if(_rsC1!=null){r=r+"&c1="+escape(_rsC1);
}if(_rsC2!=null){r=r+"&c2="+escape(_rsC2);
}if(_rsC3!=null){r=r+"&c3="+escape(_rsC3);
}if(_rsC4!=null){r=r+"&c4="+escape(_rsC4);
}if(_rsC5!=null){r=r+"&c5="+escape(_rsC5);
}if(_rsC6!=null){r=r+"&c6="+escape(_rsC6);
}if(_rsC7!=null){r=r+"&c7="+escape(_rsC7);
}if(_rsC8!=null){r=r+"&c8="+escape(_rsC8);
}if(_rsC9!=null){r=r+"&c9="+escape(_rsC9);
}}if(h.FL!=null){r=r+"&fl="+h.FL;
}if(h.QT!=null){r=r+"&qt="+h.QT;
}if(h.RE!=null){r=r+"&re="+h.RE;
}if(h.WM!=null){r=r+"&wm="+h.WM;
}if(h.JJ!=null){r=r+"&jj="+h.JJ;
}if(h.AC!=null){r=r+"&ac="+h.AC;
}r=r+"&si="+_rsSI;
r=r+"&rp="+k;
if(_rsIP==1){r=r+'" style="display:none';
}r=r+'" width="1" height="1" alt=""/>';
document.write(r);
}function _rsCLSendIt(f,g,e,a,b){var d=_rsND+"cgi-bin/m?rnd="+(new Date()).getTime();
d=d+"&ci="+_rsCI;
d=d+"&cg="+escape(_rsCG);
d=d+"&cc=0";
d=d+"&si="+_rsCI+"-ctpo-"+escape(g);
d=d+"&rp="+escape(f);
d=d+"&tt="+escape(e);
d=d+"&cn="+escape(a);
d=d+"&cv="+escape(b);
if(d.length>2048){d=d.substring(0,2048);
}var c=new Image(1,1);
c.src=d;
_rsPause(_rsTC);
}function _rsCLSendALink(a){var b=a.innerHTML.toLowerCase().indexOf("img")>-1?"image":"text";
_rsCLSendIt(_rsCU,a.href,a.tagName.toLowerCase(),b,a.innerHTML);
}function _rsCLSendForm(a){if(a.form==undefined||a.form.action==undefined){return;
}if(a.type=="image"){var b=a.src;
}else{if(a.tagName=="BUTTON"){var b=a.innerHTML.replace(/^\s+|\s+$/g,"").replace(/\s+/g," ");
if(b==""){b=a.value;
}}else{var b=a.value;
}}_rsCLSendIt(_rsCU,a.form.action,a.form.tagName.toLowerCase(),a.type.toLowerCase(),b);
}function _rsCLCatchIt(b){var a=b?b.target:window.event.srcElement;
if((a.tagName=="INPUT"||a.tagName=="BUTTON")&&(a.type=="image"||a.type=="submit"||a.type=="button")){_rsCLSendForm(a);
}else{do{if((a.tagName=="A")&&(a.href.length>0)){_rsCLSendALink(a);
break;
}a=a.parentNode;
}while(a!=null&&a.tagName!="BODY");
}}function _rsCLRegisterIt(){if(!document.getElementById){return;
}var a=document.body.onclick;
if(a){document.body.onclick=function(){_rsCLCatchIt();
a();
};
}else{document.body.onclick=_rsCLCatchIt;
}}if((_rsSE)&&(random()<=_rsSM)){var _rsIM='<script language="JavaScript" type="text/javascript" src="'+_rsND+"cgi-bin/j?ci="+_rsCI+"&ss="+_rsSS+"&cc="+_rsCC+"&rd="+_rsRD+"&se="+_rsSE+"&sv="+_rsSV+'"><\/script>';
document.write(_rsIM);
}else{rsCi();
}if(_rsCL==1){_rsCLRegisterIt();
}var _NB_MAX_CONTENU_=1;
var _TAILLE_MAX_CONTENU_=100;
var _TAILLE_MAX_CHAINE_=50;
var _TAILLE_MAX_ALPHANUM_=30;
var WEBO_ID_GROUPE=333514;
var COOKIE_SEGMENTATION="wbo_segment_";
function wreport_counter(f,e,a,g,c,b,d){this.site=a;
this.section;
this.subsection;
this.channel="";
this.content="";
this.nb_content=0;
this.url="";
this.frame=g;
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);
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;
this.section=traite_chaine(f,_TAILLE_MAX_ALPHANUM_);
this.subsection=traite_chaine(e,_TAILLE_MAX_ALPHANUM_);
if(c!=null){this.add_channel(c);
}if(b!=null&&d!=null){this.add_group(b,d);
}this.cookie_segmentation+=a;
}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;
}function count(){this.generate_url();
this.counter.src=this.url;
return 1;
}function add_channel(a){if(a==null||a==""){return 0;
}this.channel=traite_chaine(a,_TAILLE_MAX_CHAINE_);
return 1;
}function add_group(b,a){this.site_grp=WEBO_ID_GROUPE;
this.section_grp=traite_chaine(b,_TAILLE_MAX_ALPHANUM_);
this.subsection_grp=traite_chaine(a,_TAILLE_MAX_ALPHANUM_);
}function add_content(a){if(a==null||a==""){return 0;
}this.nb_content++;
if(this.nb_content>_NB_MAX_CONTENU_){return 0;
}if(this.nb_content>1){this.content=this.content.concat("|");
}a=a.replace("|"," ");
this.content=this.content.concat(traite_chaine(a,_TAILLE_MAX_CONTENU_));
return 1;
}function profiling_cookie_mode(a){if(a=="on"){this.profiling_cookie_mode=1;
}else{this.profiling_cookie_mode=0;
}}function add_profile(c,a){c=parseInt(c,10);
if((c<1)||(c>5)){return -2;
}if(this.profiling_cookie_mode==0){c--;
this.segmentation[c]=a;
return 1;
}if(parseInt(navigator.appVersion,10)<=3){return -1;
}nb_mois=12;
var f=/^\d+$/;
if(f.test(a)){a=encode_en_lettre(a);
}var b=/^\w*$/;
if(b.test(a)){var g=GetCookie(this.cookie_segmentation);
tab_segment=new Array("","","","","");
if(g!=null){tab_segment=g.split("|");
if(tab_segment.length!=5){tab_segment=("","","","","");
}if(tab_segment[c-1]==a){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 d="";
for(var e=1;
e<=5;
e++){if(e==c){tab_segment[e-1]=a;
}if((tab_segment[e-1]=="")||(tab_segment[e-1]==null)){tab_segment[e-1]="";
}d+=tab_segment[e-1];
if(e<5){d+="|";
}}expd=new Date();
expd.setTime(expd.getTime()+(nb_mois*30*24*3600*1000));
SetCookie(this.cookie_segmentation,d,expd,"/",this.domaine_segmentation);
return 2;
}else{return -3;
}}function add_profiles(e,d,c,b,a){this.add_profile(1,e);
this.add_profile(2,d);
this.add_profile(3,c);
this.add_profile(4,b);
this.add_profile(5,a);
}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);
}}function get_profiles(){this.profiles=GetCookie(this.cookie_segmentation);
if(this.profiles==null){this.profiles="";
var b=/^\d+$/;
for(var a=1;
a<=5;
a++){if(b.test(this.segmentation[a-1])){this.segmentation[a-1]=encode_en_lettre(this.segmentation[a-1]);
}this.profiles+=this.segmentation[a-1];
if(a<5){this.profiles+="|";
}}}this.profiles=escape(this.profiles);
}function encode_en_lettre(a){a=parseInt(a,10);
if(a>2500){return"";
}var d=parseInt(a/52,10);
var c=a%52;
d+=65;
if(d>90){d+=6;
}c+=65;
if(c>90){c+=6;
}var b=String.fromCharCode(d)+String.fromCharCode(c);
return b;
}function traite_chaine(g,d){var e=traduction(g);
var f="0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.,;:_ ";
var b;
var a="";
if(e==null){return"";
}e=""+e;
e=e.substr(0,d);
for(b=0;
b<e.length;
b++){var h=e.charAt(b);
if(f.indexOf(h)!=-1){a+=h;
}}a=unicite_espace(a);
a=escape(a);
return a;
}function convertir(a){var b=a.replace(/&#(\d+);/,"$1");
return String.fromCharCode(b);
}function traduction(a){var c=unescape(a);
var b=0;
while(c!=a&&b<5){b++;
a=c;
c=unescape(c);
}return c.replace(/&#(\d+);/gi,convertir);
}function unicite_espace(a){var b=a.replace(/(\s+)/g," ");
b=b.replace(/(^\s*)|(\s*$)/g,"");
return b;
}function wf_uaO(b){var a=navigator.userAgent.toLowerCase();
return(a.indexOf(b));
}function getCookieVal(b){var a=document.cookie.indexOf(";",b);
if(a==-1){a=document.cookie.length;
}return unescape(document.cookie.substring(b,a));
}function GetCookie(d){var b=d+"=";
var f=b.length;
var a=document.cookie.length;
var e=0;
while(e<a){var c=e+f;
if(document.cookie.substring(e,c)==b){return getCookieVal(c);
}e=document.cookie.indexOf(" ",e)+1;
if(e==0){break;
}}return null;
}function SetCookie(b,d,a,f,c,e){document.cookie=b+"="+escape(d)+((a)?";expires="+a.toGMTString():"")+((f)?";path="+f:"")+((c)?";domain="+c:"")+((e)?";secure":"");
}function wreport(e,d,a,g,c,b){var f=new wreport_counter(e,d,a,g,b);
f.add_content(c);
f.count();
}function wreport_groupe(h,d,b,i,e,c,f,g){var a=new wreport_counter(h,d,b,c,g,i,e);
a.add_content(f);
a.count();
}function wreport_click(b,f,e,a,h,d,c){var g=new wreport_counter(f,e,a,h,c);
g.add_content(d);
g.count();
g.counter.onload=function(){document.location=b;
};
}function wreport_click_groupe(b,i,e,c,j,f,d,h,g){var a=new wreport_counter(i,e,c,d,g,j,f);
a.add_content(h);
a.count();
a.counter.onload=function(){document.location=b;
};
}wreport_ok=1;
*/
function NolTracker(b, a) {
  this.pvar = b;
  this.mergeFeatures(a)
}
function nol_t(b, a) {
  return new NolTracker(b, a)
}
NolTracker.prototype.version = "6.0.13";
NolTracker.prototype.scriptName = (function() {
  try {
    var b = document.getElementsByTagName("script");
    var c = b[b.length - 1].getAttribute("src").match(/[^\/]*$/)
  } catch (a) {}
  return c || "v60.js"
})();
NolTracker.prototype.pmap = [
  ["action", "at", 0],
  ["campaign", "ca", 1],
  ["col_depth", "cd", 0],
  ["conn_type", "ct", 0],
  ["cookies_enabled", "ck", 0],
  ["creative", "cr", 1],
  ["execution", "ce", 1],
  ["flash", "fl", 0],
  ["ip_address", "ip", 0],
  ["is_hp", "hp", 0],
  ["java_enabled", "je", 0],
  ["language", "lg", 0],
  ["ownership", "ou", 1],
  ["page_url", "si", 1],
  ["placement", "pc", 1],
  ["primary_group", "pg", 1],
  ["referrer", "rp", 1],
  ["resource", "rt", 0],
  ["result", "rn", 1],
  ["result_flag", "rf", 0],
  ["revenue", "rv", 0],
  ["sample_size", "ss", 0],
  ["screen_res", "sr", 0],
  ["stream_dur", "sd", 0],
  ["sub_resource", "st", 0],
  ["survey", "sv", 1],
  ["tag_source", "ts", 1],
  ["timezone", "tz", 0]
];
NolTracker.prototype.feat = {
  check_cookie: 1,
  detect_flash: 0,
  detect_technical: 1,
  document_title: 0,
  check_fraud: 0,
  filters: undefined,
  session_cookie: 0,
  landing_page: 1,
  link_overlay: 0,
  pause_time: 500,
  sample_rate: 1,
  surveys_enabled: 0
};
NolTracker.prototype.CONST = {
  max_tags: 20
};
NolTracker.prototype.record = function() {
  this.page_url = "" + window.location;
  this.referrer = "" + document.referrer;
  try {
    if (this.feat.check_fraud && (top.location.href.indexOf(document.domain) === -1)) {
      this.detected_fraud = true;
      return this
    }
    this.detected_fraud = false
  } catch (g) {
    this.detected_fraud = true;
    return this
  }
  if (this.feat.detect_technical) {
    this.java_enabled = (navigator.javaEnabled() === true) ? "y" : "n";
    if (document.body.addBehavior) {
      document.body.addBehavior("#default#clientCaps");
      document.body.addBehavior("#default#homePage");
      this.conn_type = document.body.connectionType;
      this.is_hp = document.body.isHomePage(location.href) ? "y" : "n"
    }
    if (window.screen) {
      this.screen_res = window.screen.width + "x" + window.screen.height;
      this.col_depth = window.screen.colorDepth
    }
    if (navigator.userLanguage) {
      this.language = navigator.userLanguage
    } else {
      if (navigator.language) {
        this.language = navigator.language
      }
    }
    if (navigator.cookieEnabled) {
      this.pvar.cookies_enabled = (navigator.cookieEnabled === true) ? "y" : "n"
    }
    this.timezone = (new Date()).getTimezoneOffset() / -60
  }
  if (this.feat.detect_flash) {
    if (navigator.mimeTypes && navigator.mimeTypes.length > 0) {
      var c = "application/x-shockwave-flash";
      if (navigator.mimeTypes[c] && navigator.mimeTypes[c].enabledPlugin) {
        var a = this.getVersion(navigator.mimeTypes[c].enabledPlugin.description, 1);
        if (a) {
          this.flash = a
        }
      }
    } else {
      if (window.ActiveXObject) {
        for (var b = 15; b > 0; b--) {
          try {
            if (new ActiveXObject("ShockwaveFlash.ShockwaveFlash." + b)) {
              this.flash = b;
              break
            }
          } catch (d) {}
        }
      }
    }
  }
  if (this.feat.link_overlay) {
    this.regLinkOverlay()
  }
  return this
};
NolTracker.prototype.prefix = function() {
  var b = (arguments[0] && arguments[0].api) ? arguments[0].api : "m";
  var a = [this.getSchemeHost(), "cgi-bin/", b, "?", "rnd=", (new Date()).getTime(), "&ci=", this.pvar.cid, "&js=1"];
  if (b === "m") {
    a.push("&cg=", escape((arguments[0] && arguments[0].content) ? arguments[0].content : (this.pvar.content || "0")))
  }
  if (this.scriptName) {
    a.push("&ts=", this.scriptName)
  }
  if (this.version) {
    a.push("&vn=", this.version)
  }
  return a.join("")
};
NolTracker.prototype.filter = function(b) {
  if (this.feat.filters) {
    for (var a in this.feat.filters) {
      if (this.feat.filters.hasOwnProperty(a)) {
        b = this.feat.filters[a](b)
      }
    }
  }
  return b
};
NolTracker.prototype.post = function() {
  var b = [this.prefix()];
  b.push("&cc=", ((this.feat.check_cookie) ? "1" : "0"));
  if (this.feat.document_title) {
    var q = escape(document.title);
    if (q) {
      b.push("&tl=", q)
    }
  }
  if (this.feat.landing_page && this.referrer && (document.location.search.search(/[&?]nol\./) !== -1)) {
    var c = [];
    var n = document.location.search.substring(document.location.search.lastIndexOf("?") + 1).split("&");
    for (var g in n) {
      if (n.hasOwnProperty(g) && (n[g].search(/^nol\./) !== -1)) {
        if (n[g].search(/^nol\.redirect/) !== -1) {
          var m = n[g].split("=", 2)[1]
        } else {
          c.push("&", n[g])
        }
      }
    }
    if (c.length > 0) {
      b.push("&lp=1");
      b = b.concat(c)
    }
    this.page_url = this.page_url.replace(/[&?]nol\..*?=[^&]*/g, "").replace(/&&/g, "&").replace(/\?&/, "?").replace(/[&\?]$/, "");
    if (this.referrer.search(/[&?]nol\./)) {
      this.referrer = this.referrer.replace(/[&?]nol\..*?=[^&]*/g, "").replace(/&&/g, "&").replace(/\?&/, "?").replace(/[&\?]$/, "")
    }
  }
  for (var k = 0, h = this.pmap.length; k < h; k++) {
    var a = this.pmap[k][0];
    var p = this.pmap[k][1];
    var f = this.pmap[k][2];
    var e = null;
    if (this.pvar[a]) {
      e = this.pvar[a]
    } else {
      if (this[a]) {
        e = this[a]
      }
    }
    if (e) {
      b.push("&", p, "=", ((f) ? escape(e) : e))
    }
  }
  if (this.pvar.custom) {
    var o = 0;
    for (var d in this.pvar.custom) {
      if (this.pvar.custom.hasOwnProperty(d)) {
        if (o >= this.CONST.max_tags) {
          break
        }
        var l = this.pvar.custom[d];
        b.push("&c", o, "=", escape(d), ",", escape(l));
        o++
      }
    }
  }
  this.postData(b.join(""));
  if (m) {
    setTimeout(function() {
      window.location = m
    }, this.feat.pause_time)
  }
  return this
};
NolTracker.prototype.postEvent = function() {
  var a = [this.prefix({
    content: arguments[0].content
  })];
  var b = arguments[0].page_url || this.pvar.page_url || this.page_url;
  if (arguments[0].event_type) {
    var c = [arguments[0].event_type, escape(b), escape(this.pvar.page_url || this.page_url)].join("_");
    a.push("&cc=1", "&si=", c, "&rp=", (this.previousEventPage || escape(window.location)));
    this.previousEventPage = c
  } else {
    a.push("&cc=0", "&si=", this.pvar.cid, "-ctgw-", escape(b), "&rp=", escape(window.location))
  }
  this.postData(a.join(""));
  return this
};
NolTracker.prototype.postLinkTrack = function() {
  this.postEvent(arguments[0]);
  this.pause(this.feat.pause_time);
  return this
};
NolTracker.prototype.postEventTrack = function() {
  this.postEvent(arguments[0]);
  return this
};
NolTracker.prototype.postClickTrack = function() {
  this.postEvent(arguments[0]);
  if (arguments[0].page_url) {
    var a = arguments[0].page_url;
    setTimeout(function() {
      window.location = a
    }, this.feat.pause_time)
  }
  return this
};
NolTracker.prototype.linkTrack = function() {
  this.postLinkTrack({
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.eventTrack = function() {
  this.postEventTrack({
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.clickTrack = function() {
  this.postClickTrack({
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.pageEvent = function() {
  this.postEventTrack({
    event_type: "page",
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.slideEvent = function() {
  this.postEventTrack({
    event_type: "slide",
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.sectionEvent = function() {
  this.postEventTrack({
    event_type: "section",
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.downloadEvent = function() {
  this.postLinkTrack({
    event_type: "download",
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.clickEvent = function() {
  this.postClickTrack({
    event_type: "click_link",
    page_url: arguments[0],
    content: arguments[1]
  })
};
NolTracker.prototype.regLinkOverlay = function() {
  if (!document.getElementById) {
    return
  }
  var b = this;
  var a = document.body.onclick;
  document.body.onclick = function(c) {
    b.catchLinkOverlay(c);
    if (a) {
      a(c)
    }
  }
};
NolTracker.prototype.sendIt = function(c, d, e, a) {
  var b = [this.prefix(), "&cc=0", "&si=", this.pvar.cid, "-ctpo-", escape(unescape(c).replace(/^\s+|\s+$/g, "").replace(/\s+/g, " ")), "&rp=", escape(this.pvar.link_url || window.location), "&tt=", escape(d.toLowerCase()), "&cn=", escape(e.toLowerCase()), "&cv=", escape(unescape(a).replace(/^\s+|\s+$/g, "").replace(/\s+/g, " "))];
  this.postData(b.join(""));
  this.pause(this.feat.pause_time)
};
NolTracker.prototype.sendALink = function(b) {
  var a = b.innerHTML.toLowerCase().indexOf("img") > -1 ? "image" : "text";
  this.sendIt(b.href, b.tagName, a, b.innerHTML)
};
NolTracker.prototype.sendForm = function(a) {
  if (a.form === null || a.form.action === null) {
    return
  }
  var b = "";
  if (a.type === "image") {
    b = a.src
  } else {
    if (a.tagName === "BUTTON") {
      b = a.innerHTML;
      if (b === "") {
        b = a.value
      }
    } else {
      b = a.value
    }
  }
  this.sendIt(a.form.action, a.form.tagName, a.type, b)
};
NolTracker.prototype.catchLinkOverlay = function(b) {
  var a = b ? b.target : window.event.srcElement;
  if ((a.tagName === "INPUT" || a.tagName === "BUTTON") && (a.type === "image" || a.type === "submit" || a.type === "button")) {
    this.sendForm(a)
  } else {
    for (; a !== null && a.tagName !== "BODY"; a = a.parentNode) {
      if ((a.tagName === "A") && (a.href.length > 0)) {
        this.sendALink(a);
        break
      }
    }
  }
};
NolTracker.prototype.invite = function() {
  if (this.detected_fraud || (this.feat.surveys_enabled !== 1)) {
    return this
  }
  var f = [this.prefix({
    api: "j"
  }), "&cc=0", "&se=", ((this.feat.surveys_enabled) ? "1" : "0"), "&te=0"];
  for (var g = 0, e = this.pmap.length; g < e; g++) {
    var d = this.pmap[g][0];
    var a = this.pmap[g][1];
    var c = this.pmap[g][2];
    var h = null;
    if (this.pvar[d]) {
      h = this.pvar[d]
    } else {
      if (this[d]) {
        h = this[d]
      }
    }
    if (h) {
      f.push("&", a, "=", ((c) ? escape(h) : h))
    }
  }
  var b = ["<scr", 'ipt type="text/javascript" src="', f.join(""), '"></scr', "ipt>"].join("");
  document.write(b);
  return this
};
NolTracker.prototype.in_sample = function() {
  return (this.random() <= this.feat.sample_rate)
};
NolTracker.prototype.do_sample = function() {
  if (this.in_sample() === true) {
    this.invite()
  }
  return this
};
NolTracker.prototype.postData = function(a) {
  try {
    if (this.detected_fraud) {
      return
    }
    if (this.feat.filters) {
      a = this.filter(a)
    }
    var c = new Image(1, 1);
    c.onerror = c.onload = function() {
      c.onerror = c.onload = null
    };
    c.src = a
  } catch (b) {}
};
NolTracker.prototype.getVersion = function(e, b) {
  var d = 0;
  var c = 0;
  for (var a = 0; a < b && d >= 0; a++) {
    if (d > 0) {
      c = d + 1
    }
    d = e.indexOf(".", c)
  }
  return (d > 0) ? e.substring(c, d).match(/\d+$/) : null
};
NolTracker.prototype.mergeFeatures = function(b) {
  if (typeof b === "undefined") {
    return
  }
  var a = {};
  for (var c in this.feat) {
    if (typeof b[c] === "undefined") {
      a[c] = this.feat[c]
    } else {
      a[c] = b[c]
    }
  }
  this.feat = a
};
NolTracker.prototype.getSchemeHost = function() {
  var a = [location.protocol.indexOf("https") !== -1 ? "https://" : "http://", this.pvar.server, (this.pvar.server.indexOf("imrworldwide.com") === -1) ? ".imrworldwide.com" : "", "/"];
  return a.join("")
};
NolTracker.prototype.pause = function(a) {
  if (!window.ActiveXObject) {
    var b = (new Date()).getTime() + a;
    while ((new Date()) < b) {}
  }
};
NolTracker.prototype.random = function() {
  var b = 714025;
  var c = 4096;
  var a = 150889;
  if (typeof this.random_seed === "undefined") {
    this.random_seed = (new Date()).getTime() % b
  }
  this.random_seed = (this.random_seed * c + a) % b;
  return this.random_seed / b
};
if (!Array.prototype.push) {
  Array.prototype.push = function() {
    for (var a = 0; a < arguments.length; a++) {
      this[this.length] = arguments[a]
    }
  }
};
var pvar = { cid: "es-telecinco", content: "0", server: "secure-uk" };
var trac = nol_t(pvar);
trac.record().post();
setInterval("trac.record().post()",900000);

/////FIN NIELSEN/////
///////////////////////////////WEBORAMA///////////
/*
        wreport.js
        Wreport version 1.6 copyright Weborama 01-09-2008
*/

/* ------------------ Variables ------------------------- */
var _HOST_HTTP_ = "telecinco.solution.weborama.fr";
var _HOST_SSL_ = "telecinco.solution.weborama.fr";

var _NB_MAX_CONTENU_ = 1;
var _TAILLE_MAX_CONTENU_ = 100;
var _TAILLE_MAX_CHAINE_ = 50;
var _TAILLE_MAX_ALPHANUM_ = 30;
var WEBO_ID_GROUPE = 333514;

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.host = _HOST_HTTP_ + '/fcgi-bin/comptage_wreport.fcgi';
  this.host_ssl = _HOST_SSL_ + '/fcgi-bin/comptage_wreport.fcgi';

  this.extendparameters = '';
  this.extend_parameters = new Array('', '', '', '', '');

  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;

  this.add_extend_parameter = add_extend_parameter;
  this.add_extend_parameters = add_extend_parameters;
  this.get_extend_parameters = get_extend_parameters;

  /* 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();
  this.get_extend_parameters();

  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://" + this.host_ssl + "?WRP_ID=" + this.site;
  } else {
    this.url = "http://" + this.host + "?WRP_ID=" + this.site;
  }

  if (this.profiles != null) this.url += "&WRP_PFL=" + this.profiles;
  if (this.extendparameters != null) this.url += this.extendparameters;

  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))
}

/* ------------------ EXTEND PARAMETERS -------------------- */
var _NB_MAX_EXTEND_PARAMETERS = 5;
var _TAILLE_MAX_EXTEND_PARAMETER_ = 100;

function add_extend_parameters(p1, p2, p3, p4, p5) {
  this.add_extend_parameter(1, p1);
  this.add_extend_parameter(2, p2);
  this.add_extend_parameter(3, p3);
  this.add_extend_parameter(4, p4);
  this.add_extend_parameter(5, p5);
}

function add_extend_parameter(numero, valeur) {
  numero = parseInt(numero, 10);
  if ((numero < 1) || (numero > _NB_MAX_EXTEND_PARAMETERS)) return -2;
  this.extend_parameters[--numero] = clean_extend_parameter(valeur);
}

function clean_extend_parameter(s) {
  if (s == null) return "";
  s = "" + s;
  return s.substr(0, _TAILLE_MAX_EXTEND_PARAMETER_);
}

function get_extend_parameters() {
  this.extendparameters = '';
  for (var i = 1; i <= _NB_MAX_EXTEND_PARAMETERS; i++) {
    this.extendparameters += "&BI" + i + "=" + encodeURIComponent(this.extend_parameters[i - 1]);
  }
}

/* ------------------ 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;

