var _NB_MAX_CONTENU_=1;var _TAILLE_MAX_CONTENU_=100;var _TAILLE_MAX_CHAINE_=50;var _TAILLE_MAX_ALPHANUM_=30;var WEBO_ID_GROUPE=289239;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){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){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(e,d){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 g=e.charAt(b);if(f.indexOf(g)!=-1){a+=g}}a=escape(a);return a}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;