var _HOST_HTTP_="footeogroupe.solution.weborama.fr",_HOST_SSL_="footeogroupe.solution.weborama.fr",_NB_MAX_CONTENU_=1,_TAILLE_MAX_CONTENU_=100,_TAILLE_MAX_CHAINE_=50,_TAILLE_MAX_ALPHANUM_=30,COOKIE_SEGMENTATION="wbo_segment_";
function wreport_counter(a,b,d,c,e,f,g){this.site=d;this.content=this.channel="";this.nb_content=0;this.url="";this.frame=c;this.segmentation=["","","","",""];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=["","","","",""];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.add_extend_parameter=add_extend_parameter;this.add_extend_parameters=add_extend_parameters;this.get_extend_parameters=get_extend_parameters;this.section=traite_chaine(a,_TAILLE_MAX_ALPHANUM_);this.subsection=traite_chaine(b,
_TAILLE_MAX_ALPHANUM_);e!=null&&this.add_channel(e);f!=null&&g!=null&&this.add_group(f,g);this.cookie_segmentation+=d}
function generate_url(){var a=new Date;this.date=parseInt(a.getTime()/1E3-60*a.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"){a="parent.document.referrer";if(this.frame<5&&this.frame>0)for(_k=this.frame;_k>
1;_k--)a="parent."+a;a=eval(a);if(document.referrer==parent.location||document.referrer=="")this.ref=""+escape(a)}this.url=location.protocol=="https:"?"https://"+this.host_ssl+"?WRP_ID="+this.site:"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;a=wf_uaO("mac")!=-1;var b=wf_uaO("opera")!=-1;if(!a&&!b){a=navigator.userAgent.indexOf("MSIE");if(a>0)if(parseInt(navigator.userAgent.charAt(a+
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(a,b){this.site_grp=WEBO_ID_GROUPE;this.section_grp=traite_chaine(a,_TAILLE_MAX_ALPHANUM_);this.subsection_grp=traite_chaine(b,_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){this.profiling_cookie_mode=a=="on"?1:0}
function add_profile(a,b){a=parseInt(a,10);if(a<1||a>5)return-2;if(this.profiling_cookie_mode==0){a--;this.segmentation[a]=b;return 1}if(parseInt(navigator.appVersion,10)<=3)return-1;nb_mois=12;if(/^\d+$/.test(b))b=encode_en_lettre(b);if(/^\w*$/.test(b)){var d=GetCookie(this.cookie_segmentation);tab_segment=["","","","",""];if(d!=null){tab_segment=d.split("|");if(tab_segment.length!=5)tab_segment="";if(tab_segment[a-1]==b)return 1}if(this.domaine_segmentation==""){this.domaine_segmentation=window.location.host;
tab_points=[];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}d="";for(var c=1;c<=5;c++){if(c==a)tab_segment[c-1]=b;if(tab_segment[c-1]==""||tab_segment[c-1]==null)tab_segment[c-1]="";d+=tab_segment[c-1];if(c<5)d+="|"}expd=new Date;expd.setTime(expd.getTime()+nb_mois*
2592E6);SetCookie(this.cookie_segmentation,d,expd,"/",this.domaine_segmentation);return 2}else return-3}function add_profiles(a,b,d,c,e){this.add_profile(1,a);this.add_profile(2,b);this.add_profile(3,d);this.add_profile(4,c);this.add_profile(5,e)}function delete_profiles(){if(this.profiling_cookie_mode==0)this.segmentation=["","","","",""];else{expd=new Date;expd.setTime(expd.getTime()-864E5);SetCookie(this.cookie_segmentation,"||||",expd,"/",this.domaine_segmentation)}}
function get_profiles(){this.profiles=GetCookie(this.cookie_segmentation);if(this.profiles==null){this.profiles="";for(var a=/^\d+$/,b=1;b<=5;b++){if(a.test(this.segmentation[b-1]))this.segmentation[b-1]=encode_en_lettre(this.segmentation[b-1]);this.profiles+=this.segmentation[b-1];if(b<5)this.profiles+="|"}}this.profiles=escape(this.profiles)}
function encode_en_lettre(a){a=parseInt(a,10);if(a>2500)return"";var b=parseInt(a/52,10);a%=52;b+=65;if(b>90)b+=6;a+=65;if(a>90)a+=6;return String.fromCharCode(b)+String.fromCharCode(a)}function traite_chaine(a,b){var d=traduction(a),c,e="";if(d==null)return"";d=(""+d).substr(0,b);for(c=0;c<d.length;c++){var f=d.charAt(c);if("0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ-.,;:_ ".indexOf(f)!=-1)e+=f}e=unicite_espace(e);return e=escape(e)}
function convertir(a){a=a.replace(/&#(\d+);/,"$1");return String.fromCharCode(a)}function traduction(a){for(var b=unescape(a),d=0;b!=a&&d<5;){d++;a=b;b=unescape(b)}return b.replace(/&#(\d+);/gi,convertir)}function unicite_espace(a){a=a.replace(/(\s+)/g," ");return a=a.replace(/(^\s*)|(\s*$)/g,"")}function wf_uaO(a){return navigator.userAgent.toLowerCase().indexOf(a)}var _NB_MAX_EXTEND_PARAMETERS=5,_TAILLE_MAX_EXTEND_PARAMETER_=100;
function add_extend_parameters(a,b,d,c,e){this.add_extend_parameter(1,a);this.add_extend_parameter(2,b);this.add_extend_parameter(3,d);this.add_extend_parameter(4,c);this.add_extend_parameter(5,e)}function add_extend_parameter(a,b){a=parseInt(a,10);if(a<1||a>_NB_MAX_EXTEND_PARAMETERS)return-2;this.extend_parameters[--a]=clean_extend_parameter(b)}function clean_extend_parameter(a){if(a==null)return"";return(""+a).substr(0,_TAILLE_MAX_EXTEND_PARAMETER_)}
function get_extend_parameters(){this.extendparameters="";for(var a=1;a<=_NB_MAX_EXTEND_PARAMETERS;a++)this.extendparameters+="&BI"+a+"="+encodeURIComponent(this.extend_parameters[a-1])}function getCookieVal(a){var b=document.cookie.indexOf(";",a);if(b==-1)b=document.cookie.length;return unescape(document.cookie.substring(a,b))}
function GetCookie(a){a+="=";for(var b=a.length,d=document.cookie.length,c=0;c<d;){var e=c+b;if(document.cookie.substring(c,e)==a)return getCookieVal(e);c=document.cookie.indexOf(" ",c)+1;if(c==0)break}return null}function SetCookie(a,b,d,c,e,f){document.cookie=a+"="+escape(b)+(d?"; expires="+d.toGMTString():"")+(c?"; path="+c:"")+(e?"; domain="+e:"")+(f?"; secure":"")}function wreport(a,b,d,c,e,f){a=new wreport_counter(a,b,d,c,f);a.add_content(e);a.count()}
function wreport_groupe(a,b,d,c,e,f,g,h){a=new wreport_counter(a,b,d,f,h,c,e);a.add_content(g);a.count()}function wreport_click(a,b,d,c,e,f,g){b=new wreport_counter(b,d,c,e,g);b.add_content(f);b.count();b.counter.onload=function(){document.location=a}}function wreport_click_groupe(a,b,d,c,e,f,g,h,i){b=new wreport_counter(b,d,c,g,i,e,f);b.add_content(h);b.count();b.counter.onload=function(){document.location=a}}wreport_ok=1;

