﻿function GifRequest(f){var g=this;var h=f;function a(c){var b="?";for(key in c){if(b!="?"){b+="&"}b+=key+"="+c[key]}return b}return{request:function(d,c){var b=new Image();b.src=h+a(d);if(c){b.onload=c}}}}function RegisterStatsEvent(){function h(){var a=new Date();return a.getTime()}function k(){var c,a,b;c="";for(b=0;b<32;b++){a=Math.floor(Math.random()*16).toString(16).toUpperCase();c=c+a}return c}function g(m){var a=document.cookie.split(";");var e="";var c="";var b="";var d=false;for(i=0;i<a.length;i++){e=a[i].split("=");c=e[0].replace(/^\s+|\s+$/g,"");if(c==m){d=true;if(e.length>1){b=unescape(e[1].replace(/^\s+|\s+$/g,""))}return b;break}e=null;c=""}if(!d){return null}}function f(e,c,p,q,d,a){var o=new Date();o.setTime(o.getTime());if(p){p=p*1000*60}var b=new Date(o.getTime()+(p));document.cookie=e+"="+escape(c)+((p)?";expires="+b.toGMTString():"")+((q)?";path="+q:"")+((d)?";domain="+d:"")+((a)?";secure":"")}function j(c,a,b){if(g(c)){document.cookie=c+"="+((a)?";path="+a:"")+((b)?";domain="+b:"")+";expires=Thu, 01-Jan-1970 00:00:01 GMT"}}function k(){var c,a,b;c="";for(b=0;b<32;b++){a=Math.floor(Math.random()*16).toString(16).toUpperCase();c=c+a}return c}return{userRequest:function(b,a){var e=g("pStatID");if(e==null){e=k();f("pStatID",e,30,"/")}else{f("pStatID",e,30,"/")}var c=g("permStatID");if(c==null){c=k();f("permStatID",c,1000000,"/")}else{f("permStatID",c,1000000,"/")}var n;if(document.location==parent.location){n=encodeURIComponent(document.referrer)}else{n=encodeURIComponent(parent.document.referrer)}var o=GifRequest("http://stat.pracuj.pl/stat.gif");var d={ref:n,cookie:e,permCookie:c};for(key in d){b[key]=d[key]}o.request(b,null)}}}(function(){function c(f,a,b){if(f.attachEvent){f.attachEvent("on"+a,b)}else{if(f.addEventListener){f.addEventListener(a,b,false)}}}function d(){if(typeof(window.pStatOrigin)!="undefined"||typeof(window.OfferID)!="undefined"){var a="";if(typeof(window.OfferID)!="undefined"){a=OfferID}var b="default";if(typeof(window.pStatOrigin)!="undefined"){b=pStatOrigin}var f=RegisterStatsEvent();f.userRequest({oId:a,origin:b},null)}}c(window,"load",d)})();function PermStatCookieCleaner(){if(window.location.pathname!=null&&window.location.pathname.lastIndexOf("/")>0){document.cookie="permStatID=;expires=Thu, 01-Jan-1970 00:00:01 GMT"}}PermStatCookieCleaner();
