var optijob={init:function(site_id){if(document.location.protocol=="https:"){optijob.domain="https://stats.optijob.com.re.getclicky.com";optijob.secure=1;}else{optijob.domain="http://stats.optijob.com.re.getclicky.com";optijob.secure=0;}optijob.img=new Image();optijob.img_base=optijob.domain+"/in.php?site_id="+site_id+"&res="+screen.width+"x"+screen.height+"&lang="+(navigator.language||navigator.browserLanguage).substr(0,2)+"&secure="+optijob.secure;if(optijob_custom.session){for(var i in optijob_custom.session){optijob.img_base+="&custom["+optijob.enc(i)+"]="+optijob.enc(optijob_custom.session[i]);}}if(optijob_custom.goal){for(var i in optijob_custom.goal){optijob.img_base+="&goal["+optijob.enc(i)+"]="+optijob.enc(optijob_custom.goal[i]);}}var r=RegExp("^https?://[^/]*"+location.host.replace(/^www\./i,"")+"/","i").test(document.referrer)?"":optijob.enc(document.referrer);if(optijob_custom.pageview_disable){optijob.img_base+="&ref="+r;}else{optijob.img.src=optijob.img_base+"&ref="+r+"&title="+optijob.enc(optijob_custom.title?optijob_custom.title:document.title)+"&href="+optijob.enc(optijob_custom.href?optijob_custom.href:location.pathname+location.search)+"&x="+Math.random();}optijob.add_event(window,'load',optijob.advanced);},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,"");optijob.img.src=optijob.img_base+"&type="+type+"&title="+optijob.enc(title)+"&href="+optijob.enc(href)+"&x="+Math.random();optijob.pause();},pause:function(x){var now=new Date();var stop=now.getTime()+(x||optijob_custom.timer||500);while(now.getTime()<stop)var now=new Date();},goal:function(id,revenue){optijob.img.src=optijob.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){optijob.img_src(e,"download");},outbound:function(e){optijob.img_src(e,"outbound");},click:function(e){optijob.img_src(e,"click");},img_src:function(e,type){obj=optijob.get_target(e);optijob.log(optijob.get_href(obj),optijob.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=optijob.get_parent(e);}while(e);return"";},get_href:function(e){do{if(e.href&&!e.src)return e.href;e=optijob.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(optijob_custom.advanced_disable)return;var is_download=new RegExp("\\.(7z|aac|avi|cab|csv|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(/optijob_log/i)){if(a[i].className.match(/optijob_log_download/i)){optijob.add_event(a[i],"mousedown",optijob.download);}else if(a[i].className.match(/optijob_log_outbound/i)){optijob.add_event(a[i],"mousedown",optijob.outbound);}else{optijob.add_event(a[i],"mousedown",optijob.click);}}else{if(is_link.test(a[i].href)&&!a[i].className.match(/optijob_ignore/i)){if(is_download.test(a[i].href)){optijob.add_event(a[i],"mousedown",optijob.download);}else if(!is_link_internal.test(a[i].href)){optijob.add_event(a[i],"mousedown",optijob.outbound);}}}}}};if(!optijob.isset("optijob_custom"))optijob_custom={};if(optijob.isset("optijob_page_title"))optijob_custom.title=optijob_page_title;if(optijob.isset("optijob_advanced_disable"))optijob_custom.advanced_disable=1;if(optijob.isset("optijob_pause_timer"))optijob_custom.timer=optijob_pause_timer;if(optijob.isset("optijob_custom_session"))optijob_custom.session=optijob_custom_session;if(optijob.isset("optijob_goal"))optijob_custom.goal=optijob_goal;function statsgoyes(site_id){optijob.init(site_id);}statsgoyes(30465);