var sn_eventtype, sn_value, sn_message, sn_reference, sn_revenue, sn_margin, sn_amount, sn_currency, sn_products; document.cookie="Snoop_testi=1; path=/"; if (!window.snoobi){ snoobi=new Object(); snoobi.tilit=new Array(); } snoobi.num=snoobi.tilit.length; snoobi.tilit[snoobi.num]=new Object(); snoobi.haePipari = function(cookieName){ var cookieBeg, cookieEnd; var cookieJar = document.cookie; cookieBeg = cookieJar.indexOf(cookieName,0); if(cookieBeg < 0) return ""; else cookieBeg += cookieName.length + 1; cookieEnd = cookieJar.indexOf(";",cookieBeg); if(cookieEnd < 0)cookieEnd = cookieJar.length; return unescape(cookieJar.substring(cookieBeg,cookieEnd)); } snoobi.getFlashVersion = function(){ this.fv = 0; this.MSDetect = false; if (navigator.plugins && navigator.plugins.length) { this.sn_x = navigator.plugins["Shockwave Flash"]; if (this.sn_x) { if (this.sn_x.description) { this.sn_desc = this.sn_x.description; this.fv = this.sn_desc.charAt(this.sn_desc.indexOf('.')-1); } } else this.fv = 0; if (navigator.plugins["Shockwave Flash 2.0"]) this.fv = 2; } else if (navigator.mimeTypes && navigator.mimeTypes.length) { this.sn_x = navigator.mimeTypes['application/x-shockwave-flash']; if (this.sn_x && this.sn_x.enabledPlugin) this.fv = 99; else this.fv = 0; } else this.MSDetect = true; if (this.MSDetect == true) { this.fv = 0; try{ this.sn_flash = new ActiveXObject("ShockwaveFlash.ShockwaveFlash"); this.fv = this.sn_flash.GetVariable('$version').substring(4); this.fv = this.fv.split(','); this.fv = parseFloat(this.fv[0] + '.' + this.fv[1]); } catch(e){} } } snoobi.tilit[snoobi.num].initData = function () { if (document.cookie.length == 0) snoobi.ck=0; else { snoobi.ck=1; this.id = snoobi.haePipari('Snoobisession_tttori_fi'); this.id30m = snoobi.haePipari('Snoobi30minute_tttori_fi'); this.hid = snoobi.haePipari('SnoobiID'); } try{ this.trf=top.document.referrer ? top.document.referrer : ""; this.thn=top.location.hostname ? top.location.hostname : ""; this.tpn=top.location.pathname ? top.location.pathname : ""; this.tqr=top.location.search ? top.location.search : ""; } catch(errori){ try{ this.trf=parent.document.referrer ? parent.document.referrer : ""; this.thn=parent.location.hostname ? parent.location.hostname : ""; this.tpn=parent.location.pathname ? parent.location.pathname : ""; this.tqr=parent.location.search ? parent.location.search : ""; } catch(errori4){ this.trf=document.referrer ? document.referrer : ""; this.thn=location.hostname ? location.hostname : ""; this.tpn=location.pathname ? location.pathname : ""; this.tqr=location.search ? location.search : ""; } } try{ snoobi.rs=(screen.width && screen.height) ? screen.width+' x '+screen.height : ""; } catch(errori2){ snoobi.rs=""; } try{ snoobi.cd=screen.colorDepth ? screen.colorDepth : ""; } catch(errori3){ snoobi.cd=""; } this.trackingScript = location.protocol + "//eu1.snoobi.com/snoop2.php"; this.tili="tttori_fi"; this.page_name=""; this.section=""; this.addurl=""; snoobi.an=navigator.appName ? navigator.appName : ""; snoobi.sl=navigator.systemLanguage ? navigator.systemLanguage : ""; snoobi.av=navigator.appVersion ? navigator.appVersion : ""; snoobi.la=navigator.language ? navigator.language : ""; snoobi.pf=navigator.platform ? navigator.platform : ""; this.rf=document.referrer ? document.referrer : ""; this.dt=document.title ? document.title : ""; this.hn=location.hostname ? location.hostname : ""; this.pn=location.pathname ? location.pathname : ""; this.qr=location.search ? location.search : ""; this.orighref=location.href ? location.href : ""; this.hl=history.length ? history.length : ""; this.etype=sn_eventtype ? sn_eventtype : ""; this.eval=sn_value ? sn_value : ""; this.emsg=sn_message ? sn_message : ""; this.eref=sn_reference ? sn_reference : ""; this.erev=sn_revenue ? sn_revenue : ""; this.emar=sn_margin ? sn_margin : ""; this.eamo=sn_amount ? sn_amount : ""; this.ecur=sn_currency ? sn_currency : ""; this.epro=sn_products ? sn_products : ""; snoobi.je=navigator.javaEnabled() ? 1 : 0; snoobi.getFlashVersion(); } snoobi.tilit[snoobi.num].getTrackUrl = function (mode) { this.date=new Date(); var amp="&"; if (mode=="html") amp="&"; return this.trackingScript+'?'+ 'tili='+escape(this.tili)+ amp+'page_name='+encodeURI(this.page_name)+ amp+'section='+encodeURI(this.section)+ amp+'addurl='+encodeURI(this.addurl)+ amp+'an='+escape(snoobi.an)+ amp+'ck='+escape(snoobi.ck)+ amp+'sl='+escape(snoobi.sl)+ amp+'av='+escape(snoobi.av)+ amp+'la='+escape(snoobi.la)+ amp+'pf='+escape(snoobi.pf)+ amp+'rf='+escape(this.rf)+ amp+'dt='+escape(this.dt)+ amp+'trf='+escape(this.trf)+ amp+'thn='+escape(this.thn)+ amp+'tpn='+escape(this.tpn)+ amp+'tqr='+escape(this.tqr)+ amp+'hn='+escape(this.hn)+ amp+'pn='+escape(this.pn)+ amp+'qr='+escape(this.qr)+ amp+'hl='+escape(this.hl)+ amp+'id='+escape(this.id)+ amp+'id30m='+escape(this.id30m)+ amp+'hid='+escape(this.hid)+ amp+'etype='+escape(this.etype)+ amp+'eval='+escape(this.eval)+ amp+'emsg='+escape(this.emsg)+ amp+'eref='+escape(this.eref)+ amp+'erev='+escape(this.erev)+ amp+'emar='+escape(this.emar)+ amp+'eamo='+escape(this.eamo)+ amp+'ecur='+escape(this.ecur)+ amp+'epro='+escape(this.epro)+ amp+'rs='+escape(snoobi.rs)+ amp+'cd='+escape(snoobi.cd)+ amp+'je='+escape(snoobi.je)+ amp+'fv='+escape(snoobi.fv)+ amp+'ti='+escape(this.date.getMinutes()+''+this.date.getSeconds()+''+this.date.getMilliseconds()); } snoobi.tilit[snoobi.num].sendData = function () { this.SNB_im = new Image(); this.SNB_im.src = this.getTrackUrl("url"); } snoobi.tilit[snoobi.num].trackPageView = function(path, pagename, section) { if (snoobi.ck==1){ this.id = snoobi.haePipari('Snoobisession_tttori_fi'); this.id30m = snoobi.haePipari('Snoobi30minute_tttori_fi'); this.hid = snoobi.haePipari('SnoobiID'); } if (path=="") path="/undefined"; this.page_name=""; this.section=""; if (pagename!=null && pagename!="" && pagename!="undefined") this.page_name=pagename; if (section!=null && section!="" && section!="undefined") this.section=section; this.dt=this.page_name; this.pn=path; this.qr=""; this.addurl=""; this.rf=this.orighref; this.trf=this.rf; this.thn=this.hn; this.tpn=this.pn; this.tqr=this.qr; this.sendData(); } snoobi.tilit[snoobi.num].trackEvent = function() { } snoobi.addListener = function(obj,func,action){ if (obj.addEventListener) { obj.addEventListener(action,func,false); } else if (obj.attachEvent){ obj.attachEvent("on" + action,func); } } snoobi.trackFiles = function(SNB_event) { var e_url=''; var e_hn=''; var e_pn=''; var e_qr=''; var e_name=''; var e_desc=''; if (SNB_event.srcElement) { var SNB_element = SNB_event.srcElement; e_hn = SNB_element.hostname; e_pn = "/" + SNB_element.pathname; e_qr = SNB_element.search; //e_name = SNB_element.name; e_desc = SNB_element.innerHTML; } else{ e_hn = this.hostname; e_pn = this.pathname; e_qr = this.search; e_name = this.name; e_desc = this.innerHTML; } e_url=e_hn+e_pn+e_qr; var linkName = ''; if(e_name){ linkName = e_name; } else if(e_desc){ linkName = e_desc; } for (snoobi.num=0; snoobi.num"); } function handleError() { return true; }