
var _NB_MAX_CONTENU_=1;var _TAILLE_MAX_CONTENU_=100;var _TAILLE_MAX_CHAINE_=50;var _TAILLE_MAX_ALPHANUM_=30;var WEBO_ID_GROUPE=312222;var COOKIE_SEGMENTATION='wbo_segment_';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);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(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;}
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://netscope.secure.marktest.pt";}
else
{this.url="http://netscope.data.marktest.pt";}
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;try
{try
{SAPOWA_TRACKER.swasection="";}
catch(e)
{SAPOWA_TRACKER={};}
SAPOWA_TRACKER.swasite=this.site;SAPOWA_TRACKER.swasection=this.section;SAPOWA_TRACKER.swasubsection=this.subsection;SAPOWA_TRACKER.swasection_grp=this.section_grp;SAPOWA_TRACKER.swasubsection_grp=this.subsection_grp;SAPOWA_TRACKER.swacontent=this.content;SAPOWA_TRACKER.swachannel=this.channel;SAPO.WebAnalytics.track(SAPOWA_TRACKER);}
catch(e)
{}
return 1;}
function add_channel(chaine)
{if(chaine==null)return 0;this.channel=traite_chaine(chaine,_TAILLE_MAX_CHAINE_);return 1;}
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_);}
function add_content(chaine)
{if(chaine==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('|');chaine=chaine.replace('|',' ');this.content=this.content.concat(traite_chaine(chaine,_TAILLE_MAX_CONTENU_));return 1;}
function profiling_cookie_mode(mode)
{if(mode=='on')
{this.profiling_cookie_mode=1;}
else
{this.profiling_cookie_mode=0;}}
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=('','','','','');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;}
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);}
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 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);}
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;}
function traite_chaine(s,taille_max)
{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=escape(returnString);return returnString;}
function wf_uaO(c)
{var wf_ual=navigator.userAgent.toLowerCase();return(wf_ual.indexOf(c))}
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":"");}
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;}}
if(typeof(SAPO)=='undefined')
{window.SAPO={};}
else
{window.SAPO=window.SAPO;}
SAPO.WebAnalytics={init:function()
{this.now=new Date();var options=this.extend({vtimeout:(30*60*1000),uvtimeout:(2147385600000-this.now.getTime()),gifpath:"http://wa.sl.pt/wa.gif",sgifpath:"https://ssl.sapo.pt/wa.sl.pt/wa.gif",utext:"",swasite:"",swasection:"",swasubsection:"",swasection_grp:"",swasubsection_grp:"",swacontent:"",swachannel:"",etype:"page-view"},arguments[0]||{});this.swakt=options.swakt;this.vtimeout=options.vtimeout;this.uvtimeout=options.uvtimeout;this.gifpath=options.gifpath;this.sgifpath=options.sgifpath;this.dl=document.location;this.host=this.dl.hostname;this.utext=options.utext;this.swasite=options.swasite;this.swasection=options.swasection;this.swasubsection=options.swasubsection;this.swasection_grp=options.swasection_grp;this.swasubsection_grp=options.swasubsection_grp;this.swacontent=options.swacontent;this.swachannel=options.swachannel;this.etype=options.etype;},extend:function(destination,source)
{for(var property in source)
{destination[property]=source[property];}
return destination;},swfver:function()
{var f="-",n=navigator;if(n.plugins&&n.plugins.length)
{for(var ii=0;ii<n.plugins.length;ii++)
{if(n.plugins[ii].name.indexOf('Shockwave Flash')!=-1)
{f=n.plugins[ii].description.split('Shockwave Flash ')[1];break;}}}else if(window.ActiveXObject)
{for(var jj=10;jj>=2;jj--)
{try
{var fl=eval("new ActiveXObject('ShockwaveFlash.ShockwaveFlash."+jj+"');");if(fl)
{f=jj+'.0';break;}}catch(e)
{}}}
return f;},es:function(s,u)
{if(typeof(encodeURIComponent)=='function')
{if(u)
{return encodeURI(s);}
else
{return encodeURIComponent(s);}}
else
{return escape(s);}},des:function(s)
{if(typeof(decodeURIComponent)=='function')
{return decodeURIComponent(s);}
else
{return unescape(s);}},binfo:function()
{var bsr="-",bsc="-",bul="-",bfl="-",bcs="-",bje=1;var n=navigator;if(self.screen)
{bsr=screen.width+"x"+screen.height;bsc=screen.colorDepth+"-bit";}
if(n.language)
{bul=n.language.toLowerCase();}
else if(n.browserLanguage)
{bul=n.browserLanguage.toLowerCase();}
bje=n.javaEnabled()?1:0;bfl=this.swfver();if(document.characterSet)
{bcs=this.es(document.characterSet);}
else if(document.charset)
{bcs=this.es(document.charset);}
return"&bcs="+bcs+"&bsr="+bsr+"&bsc="+bsc+"&bul="+bul+"&bje="+bje+"&bfl="+bfl;},sck:function(name,value,expires,domain)
{var path="/";var s=name+"="+this.es(value);if(expires)
{var td=new Date();td.setTime(td.getTime()+expires);s+=";expires="+td.toGMTString();}
s+=";path="+path;s+=";domain="+domain;document.cookie=s;},gck:function(ckn)
{var name=ckn+"=";var ca=document.cookie.split(';');for(var i=0;i<ca.length;i++)
{var c=ca[i];while(c.charAt(0)==' ')
{c=c.substring(1,c.length);}
if(c.indexOf(name)===0)
{return this.des(c.substring(name.length,c.length));}}
return null;},ckid:function()
{var maxid=Number("9223372036854775807");var svalue=Math.round(Math.random()*2147483648)+""+Math.round(this.now.getTime()/1000);var bi=Number(svalue);var l=svalue.length;var ix=0;while(bi>maxid)
{bi=Number(String(svalue).substring(++ix,l));}
var s=String(svalue).substring(ix,l);while(s.substr(0,1)=='0'&&s.length>1){s=s.substr(1,l);}
return s;},ckdm:function(len)
{var ad=location.hostname.split(".");var al=ad.length;var aDom=ad.slice(al-len,al);var domain=aDom.join(".");return"."+domain;},isblank:function(val)
{if(val==null)
{return true;}
for(var i=0;i<val.length;i++)
{if((val.charAt(i)!=' ')&&(val.charAt(i)!="\t")&&(val.charAt(i)!="\n")&&(val.charAt(i)!="\r"))
{return false;}}
return true;},track:function()
{try
{if(arguments.length>0)
{this.init(arguments[0]);}
else
{this.init();}
if(document.location.protocol=="file:")
{return;}
var uvck_id=this.gck("_swa_uv");var vck_id=this.gck("_swa_v");var hvck_id=this.gck("_swa_hv");var cn;cn=2;if(uvck_id==null)
{uvck_id=this.ckid();}
do
{var domain=this.ckdm(cn);this.sck("_swa_uv",uvck_id,this.uvtimeout,domain);cn++;}
while(cn<4&&(this.gck("_swa_uv")==null));cn=2;if(vck_id==null)
{vck_id=this.ckid();}
do
{var domain=this.ckdm(cn);this.sck("_swa_v",vck_id,this.vtimeout,domain);cn++;}
while(cn<4&&(this.gck("_swa_v")==null));if(hvck_id==null)
{hvck_id=this.ckid();}
this.sck("_swa_hv",hvck_id,this.vtimeout,"."+this.host);vck_id=this.gck("_swa_v")==null?0:this.gck("_swa_v");uvck_id=this.gck("_swa_uv")==null?0:this.gck("_swa_uv");hvck_id=this.gck("_swa_hv")==null?0:this.gck("_swa_hv");var img=new Image(1,1);var qr="?s="+this.host;qr+="&etype="+this.etype;qr+="&pg="+this.es(window.location.href);qr+="&ref="+this.es(document.referrer);qr+="&swav="+vck_id;qr+="&swauv="+uvck_id;qr+="&swahv="+hvck_id;qr+=this.binfo();qr+="&utext="+this.utext;qr+="&swasite="+this.swasite;qr+="&swasection="+this.swasection;qr+="&swasubsection="+this.swasubsection;qr+="&swasection_grp="+this.swasection_grp;qr+="&swasubsection_grp="+this.swasubsection_grp;qr+="&swacontent="+this.swacontent;qr+="&swachannel="+this.swachannel;qr+="&dc="+this.es(document.title);if(!this.isblank(this.swakt))
{qr+="&swakt="+this.swakt;}
qr+="&jsver=2009-11-19T18:00:57";if(location.protocol=='https:')
{img.src=this.sgifpath+qr;}
else
{img.src=this.gifpath+qr;}}
catch(ex)
{}}}
wreport_ok=1;