function wl_debug(c){console&&console.warn(c)}var wl_OnloadExecuted;
function wl_WorldLogger(c,a){this.getVars=function(){return{hash:this.wl_hash,referer:document.referrer,title:document.title,page:window.location,uid:this.getUniqueId(),os:BrowserDetect.OS,browser:BrowserDetect.browser,browser_version:BrowserDetect.version,type:1,rand:Math.random()}};this.getVarString=function(){var b="",e=this.getVars(),d=true;for(var f in e){b+=d?"?":"&";d=false;b+=f+"="+encodeURIComponent(e[f])}return b};this.getUniqueId=function(){var b=this.readCookie();if(b==null){b=this.createUniqueId();
this.createCookie(b)}return b};this.createUniqueId=function(){for(var b="",e=0;e<8;e++)b+="0123456789abcdefghijklmnopqurstuvwxyzABCDEFGHIJKLMNOPQURSTUVWXYZ".substr(Math.floor(Math.random()*62),1);return b};this.createCookie=function(b){var e=this.cookie_name,d=new Date;d.setTime(d.getTime()+31536E6);d="; expires="+d.toGMTString();document.cookie=e+"="+b+d+"; path=/"};this.readCookie=function(){for(var b=this.cookie_name+"=",e=document.cookie.split(";"),d=0;d<e.length;d++){for(var f=e[d];f.charAt(0)==
" ";)f=f.substring(1,f.length);if(f.indexOf(b)==0)return f.substring(b.length,f.length)}return null};this.cookie_name="_wlogger_pinger";BrowserDetect.init();this.wl_hash=c;var h=a&&a.ping_location?a.ping_location:"http://ping.worldlogger.com/ping";h+=this.getVarString();var g=document.createElement("img");g.setAttribute("src",h);g.setAttribute("style","display:none");oldonload=window.onload;if(wl_OnloadExecuted)document.body.appendChild(g);else window.onload=function(){document.body.appendChild(g);
oldonload&&oldonload.call();wl_OnloadExecuted=true}}
var BrowserDetect={init:function(){this.browser=this.searchString(this.dataBrowser)||"";this.version=this.searchVersion(navigator.userAgent)||this.searchVersion(navigator.appVersion)||"";this.OS=this.searchString(this.dataOS)||""},searchString:function(c){for(var a=0;a<c.length;a++){var h=c[a].string,g=c[a].prop;this.versionSearchString=c[a].versionSearch||c[a].identity;if(h){if(h.indexOf(c[a].subString)!=-1)return c[a].identity}else if(g)return c[a].identity}},searchVersion:function(c){var a=c.indexOf(this.versionSearchString);
if(a!=-1)return parseFloat(c.substring(a+this.versionSearchString.length+1))},dataBrowser:[{string:navigator.userAgent,subString:"Chrome",identity:"chrome"},{string:navigator.userAgent,subString:"OmniWeb",versionSearch:"OmniWeb/",identity:"omniWeb"},{string:navigator.vendor,subString:"Apple",identity:"safari",versionSearch:"Version"},{prop:window.opera,identity:"opera"},{string:navigator.vendor,subString:"iCab",identity:"icab"},{string:navigator.vendor,subString:"KDE",identity:"konqueror"},{string:navigator.userAgent,
subString:"Firefox",identity:"firefox"},{string:navigator.vendor,subString:"Camino",identity:"camino"},{string:navigator.userAgent,subString:"Netscape",identity:"netscape"},{string:navigator.userAgent,subString:"MSIE",identity:"explorer",versionSearch:"MSIE"},{string:navigator.userAgent,subString:"Gecko",identity:"mozilla",versionSearch:"rv"},{string:navigator.userAgent,subString:"Mozilla",identity:"netscape",versionSearch:"Mozilla"}],dataOS:[{string:navigator.platform,subString:"Win",identity:"windows"},
{string:navigator.platform,subString:"Mac",identity:"mac"},{string:navigator.userAgent,subString:"iPhone",identity:"iphoneipod"},{string:navigator.platform,subString:"Linux",identity:"linux"}]};