var hstats={init:function(site_id){hstats.pageview_fired=0;if(document.location.protocol=="https:"){hstats.domain="https://stats.hstats.co.uk";hstats.secure=1;}else{hstats.domain="http://stats.hstats.co.uk";hstats.secure=0;}hstats.img=new Image();hstats.img2=new Image();hstats.img_base=hstats.domain+"/in.php?site_id="+site_id+"&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage).substr(0,2)+"&secure="+hstats.secure;if(hstats_custom.session){for(var i in hstats_custom.session){hstats.img_base+="&custom["+hstats.enc(i)+"]="+hstats.enc(hstats_custom.session[i]);}}if(hstats_custom.goal){for(var i in hstats_custom.goal){hstats.img_base+="&goal["+hstats.enc(i)+"]="+hstats.enc(hstats_custom.goal[i]);}}hstats.ref=RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(document.referrer)?"":hstats.enc(document.referrer);if(!hstats_custom.pageview_disable){if(typeof hstats_custom.delay=="undefined"){hstats.add_event(window,'load',hstats.pageview);setTimeout(hstats.pageview,2000);}else{var d=hstats_custom.delay;if(d=="onload"){hstats.add_event(window,'load',hstats.pageview);}else if(parseInt(d)==d){setTimeout(hstats.pageview,parseInt(d));}else hstats.pageview();}}hstats.add_event(window,'load',hstats.advanced);},pageview:function(){if(hstats.pageview_fired)return;hstats.pageview_fired=1;hstats.img.src=hstats.img_base+"&href="+hstats.enc(hstats_custom.href||location.pathname+location.search)+"&title="+hstats.enc(hstats_custom.title||document.title)+"&ref="+hstats.ref+"&x="+Math.random();hstats.ref="";},isset:function(e){return(typeof(window[e])!="undefined");},enc:function(e){return window.encodeURIComponent?encodeURIComponent(e):escape(e);},log:function(href,title,type){type=type||"click";if(type=="pageview")href=href.replace(/^https?:\/\/([^\/]+)/i,"");hstats.img2.src=hstats.img_base+"&type="+type+"&title="+hstats.enc(title)+"&href="+hstats.enc(href)+"&ref="+hstats.ref+"&x="+Math.random();hstats.ref="";if(type=="download"||type=="outbound")hstats.pause();},pause:function(x){var now=new Date();var stop=now.getTime()+(x||hstats_custom.timer||500);while(now.getTime()<stop)var now=new Date();},goal:function(id,revenue){hstats.img2.src=hstats.img_base+"&type=goal&goal[id]="+id+"&goal[revenue]="+revenue+"&x="+Math.random();},add_event:function(e,type,func){if(e.addEventListener){e.addEventListener(type,func,false);}else if(e.attachEvent){e.attachEvent("on"+type,func);}},download:function(e){hstats.img_src(e,"download");},outbound:function(e){hstats.img_src(e,"outbound");},click:function(e){hstats.img_src(e,"click");},img_src:function(e,type){obj=hstats.get_target(e);hstats.log(hstats.get_href(obj),hstats.get_text(obj),type);},get_text:function(e){do{var txt=e.text?e.text:e.innerText;if(txt)return txt;if(e.alt)return e.alt;if(e.title)return e.title;if(e.src)return e.src;e=hstats.get_parent(e);}while(e);return"";},get_href:function(e){do{if(e.href&&!e.src)return e.href;e=hstats.get_parent(e);}while(e);return"";},get_parent:function(e){return e.parentElement||e.parentNode;},get_target:function(e){if(!e)var e=window.event;var t=e.target?e.target:e.srcElement;if(t.nodeType&&t.nodeType==3)t=t.parentNode;return t;},advanced:function(){if(hstats_custom.advanced_disable)return;var is_download=new RegExp("\\.(7z|aac|avi|cab|csv|dmg|doc(x|m)?|exe|flv|gif|gz|jpe?g|js|m4a|mp(3|4|e?g)|mov|msi|ods|pdf|phps|png|ppt(x|m)?|rar|rtf|sea|sit|tar|torrent|txt|wma|wmv|xls(x|m)?|xml|zip)$","i");var is_link=new RegExp("^(https?|ftp|telnet|mailto):","i");var is_link_internal=new RegExp("^https?:\/\/(.*)"+location.host.replace(/^www\./i,""),"i");var a=document.getElementsByTagName("a");for(var i=0;i<a.length;i++){if(a[i].className.match(/hstats_log/i)){if(a[i].className.match(/hstats_log_download/i)){hstats.add_event(a[i],"mousedown",hstats.download);}else if(a[i].className.match(/hstats_log_outbound/i)){hstats.add_event(a[i],"mousedown",hstats.outbound);}else{hstats.add_event(a[i],"mousedown",hstats.click);}}else{if(is_link.test(a[i].href)&&!a[i].className.match(/hstats_ignore/i)){if(is_download.test(a[i].href)){hstats.add_event(a[i],"mousedown",hstats.download);}else if(!is_link_internal.test(a[i].href)){hstats.add_event(a[i],"mousedown",hstats.outbound);}}}}}};if(!hstats.isset("hstats_custom"))hstats_custom={};if(hstats.isset("hstats_page_title"))hstats_custom.title=hstats_page_title;if(hstats.isset("hstats_advanced_disable"))hstats_custom.advanced_disable=1;if(hstats.isset("hstats_pause_timer"))hstats_custom.timer=hstats_pause_timer;if(hstats.isset("hstats_custom_session"))hstats_custom.session=hstats_custom_session;if(hstats.isset("hstats_goal"))hstats_custom.goal=hstats_goal;function statsgoyes(site_id){hstats.init(site_id);}statsgoyes(130039);