var mwcstats={init:function(site_id){mwcstats.pageview_fired=0;if(document.location.protocol=="https:"){mwcstats.domain="https://stats.mckeewallworkcleveland.net";mwcstats.secure=1;}else{mwcstats.domain="http://stats.mckeewallworkcleveland.net";mwcstats.secure=0;}mwcstats.img=new Image();mwcstats.img2=new Image();mwcstats.img_base=mwcstats.domain+"/in.php?site_id="+site_id+"&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage).substr(0,2)+"&secure="+mwcstats.secure;if(mwcstats_custom.session){for(var i in mwcstats_custom.session){mwcstats.img_base+="&custom["+mwcstats.enc(i)+"]="+mwcstats.enc(mwcstats_custom.session[i]);}}if(mwcstats_custom.goal){for(var i in mwcstats_custom.goal){mwcstats.img_base+="&goal["+mwcstats.enc(i)+"]="+mwcstats.enc(mwcstats_custom.goal[i]);}}mwcstats.ref=RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(document.referrer)?"":mwcstats.enc(document.referrer);if(!mwcstats_custom.pageview_disable){if(typeof mwcstats_custom.delay=="undefined"){mwcstats.add_event(window,'load',mwcstats.pageview);setTimeout(mwcstats.pageview,2000);}else{var d=mwcstats_custom.delay;if(d=="onload"){mwcstats.add_event(window,'load',mwcstats.pageview);}else if(parseInt(d)==d){setTimeout(mwcstats.pageview,parseInt(d));}else mwcstats.pageview();}}mwcstats.add_event(window,'load',mwcstats.advanced);},pageview:function(){if(mwcstats.pageview_fired)return;mwcstats.pageview_fired=1;mwcstats.img.src=mwcstats.img_base+"&href="+mwcstats.enc(mwcstats_custom.href||location.pathname+location.search)+"&title="+mwcstats.enc(mwcstats_custom.title||document.title)+"&ref="+mwcstats.ref+"&x="+Math.random();mwcstats.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,"");mwcstats.img2.src=mwcstats.img_base+"&type="+type+"&title="+mwcstats.enc(title)+"&href="+mwcstats.enc(href)+"&ref="+mwcstats.ref+"&x="+Math.random();mwcstats.ref="";if(type=="download"||type=="outbound")mwcstats.pause();},pause:function(x){var now=new Date();var stop=now.getTime()+(x||mwcstats_custom.timer||500);while(now.getTime()<stop)var now=new Date();},goal:function(id,revenue){mwcstats.img2.src=mwcstats.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){mwcstats.img_src(e,"download");},outbound:function(e){mwcstats.img_src(e,"outbound");},click:function(e){mwcstats.img_src(e,"click");},img_src:function(e,type){obj=mwcstats.get_target(e);mwcstats.log(mwcstats.get_href(obj),mwcstats.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=mwcstats.get_parent(e);}while(e);return"";},get_href:function(e){do{if(e.href&&!e.src)return e.href;e=mwcstats.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(mwcstats_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(/mwcstats_log/i)){if(a[i].className.match(/mwcstats_log_download/i)){mwcstats.add_event(a[i],"mousedown",mwcstats.download);}else if(a[i].className.match(/mwcstats_log_outbound/i)){mwcstats.add_event(a[i],"mousedown",mwcstats.outbound);}else{mwcstats.add_event(a[i],"mousedown",mwcstats.click);}}else{if(is_link.test(a[i].href)&&!a[i].className.match(/mwcstats_ignore/i)){if(is_download.test(a[i].href)){mwcstats.add_event(a[i],"mousedown",mwcstats.download);}else if(!is_link_internal.test(a[i].href)){mwcstats.add_event(a[i],"mousedown",mwcstats.outbound);}}}}}};if(!mwcstats.isset("mwcstats_custom"))mwcstats_custom={};if(mwcstats.isset("mwcstats_page_title"))mwcstats_custom.title=mwcstats_page_title;if(mwcstats.isset("mwcstats_advanced_disable"))mwcstats_custom.advanced_disable=1;if(mwcstats.isset("mwcstats_pause_timer"))mwcstats_custom.timer=mwcstats_pause_timer;if(mwcstats.isset("mwcstats_custom_session"))mwcstats_custom.session=mwcstats_custom_session;if(mwcstats.isset("mwcstats_goal"))mwcstats_custom.goal=mwcstats_goal;function statsgoyes(site_id){mwcstats.init(site_id);}statsgoyes(126317);