<head>
<meta http-equiv="Content-Type" content="text/html; charset=windows-1252">
</head>
<P>/* -----------------------------------------------<BR>
   http://www.whatcounter.com<BR>
   webmaster@whatcounter.com
</P>
<P>- v.2.2.5<BR>
 powered by  <BR>
(c) 2000-2003 www.phpee.com<BR>
 </P>
<P>  ------------------------------------------------ */
</P>
<P>// ----------------------------------------------------------<BR>
// SETTINGS:<BR>
// here should be your username you received from w1.whatcounter.com<BR>
// Do not edit this file manually!! Use the one you got in your<BR>
// confirmation-email or the one from Whatcounter's settings<BR>
// section.<BR>
   id = &quot;mackbase&quot;;<BR>
// If you're using a frameset and are not getting correct <BR>
// referrers, please uncomment the following line:<BR>
   pp_frames = true;<BR>
// ----------------------------------------------------------<BR>
<BR>
</P>
<P>// define some defaults -------------------------------------<BR>
if(showme==null) var showme='n';<BR>
if(st==null)     var st='js';    // st means show-type<BR>
<BR>
</P>
<P>// get the user agent name ----------------------------------<BR>
v = navigator.appName;
</P>
<P>// get the screen resolution --------------------------------<BR>
c=0;<BR>
if (v != &quot;Netscape&quot;) c = screen.colorDepth;<BR>
else c = screen.pixelDepth;
</P>
<P>// get the screen size --------------------------------------<BR>
s = screen.width+&quot;x&quot;+screen.height;
</P>
<P>// get the document's title ---------------------------------<BR>
t = escape(document.title);
</P>
<P>// get the document's referrer -------------------------------<BR>
var f = &quot;&quot;;
</P>
<P>// if pp_frames is true then try getting the framed referral (without error checking)<BR>
if (typeof(pp_frames) != &quot;undefined&quot;)<BR>
	if (pp_frames)<BR>
		f = top.document.referrer;
</P>
<P>// get the referral for non-multi-domained-framed sites using a Netscape browser<BR>
if ((f == &quot;&quot;) || (f == &quot;[unknown origin]&quot;) || (f == &quot;unknown&quot;) || (f == &quot;undefined&quot;))<BR>
	if (document[&quot;parent&quot;] != null) <BR>
		if (parent[&quot;document&quot;] != null) // ACCESS ERROR HERE!<BR>
			if (parent.document[&quot;referrer&quot;] != null) <BR>
				if (typeof(parent.document) == &quot;object&quot;)<BR>
					f = parent.document.referrer; 
</P>
<P>// get the referral for the current document if a framed referral wasn't found<BR>
if ((f == &quot;&quot;) || (f == &quot;[unknown origin]&quot;) || (f == &quot;unknown&quot;) || (f == &quot;undefined&quot;))<BR>
	if (document[&quot;referrer&quot;] != null) <BR>
		f = document.referrer;
</P>
<P>// convert all the unknown's into blank<BR>
if ((f == &quot;&quot;) || (f == &quot;[unknown origin]&quot;) || (f == &quot;unknown&quot;) || (f == &quot;undefined&quot;))<BR>
	f = &quot;&quot;;
</P>
<P>// escape the referral<BR>
f = escape(f);
</P>
<P>// getting data ready to send -------------------------------<BR>
r=&quot;?id=&quot;+id+&quot;&amp;referer=&quot;+f+&quot;&amp;r=&quot;+s+&quot;&amp;c=&quot;+c+&quot;&amp;showme=&quot;+showme+&quot;&amp;st=&quot;+st+&quot;&amp;title=&quot;+t;
</P>
<P>// adding logid if called by st='phpjs'<BR>
if(jslogid==null) var jslogid = 0;<BR>
else r = r + &quot;&amp;jslogid=&quot;+jslogid;<BR>
<BR>
</P>
<P>if (st=='js') { // calling PowerPhlogger by JavaScript-tag<BR>
	if (v != &quot;Microsoft Internet Explorer&quot;) {<BR>
		r = r+&quot;&amp;url=&quot;+document.URL; // $HTTP_REFERER problem with NS,...<BR>
	}<BR>
	document.open();<BR>
	document.write(&quot;&lt;script language=\&quot;JavaScript\&quot; type=\&quot;text/javascript\&quot; src=\&quot;http://w1.whatcounter.com/pphlogger.php&quot;+r+&quot;\&quot;&gt;&lt;/script&gt;&quot;);<BR>
	document.close();<BR>
} else { // calling PowerPhlogger by IMG-tag<BR>
	rand = Math.round(1000*Math.random());<BR>
	r = r+&quot;&amp;b=&quot;+rand;  //force the page to load the IMG<BR>
	document.open();<BR>
	document.write(&quot;&lt;img src=\&quot;http://w1.whatcounter.com/pphlogger.php&quot;+r+&quot;\&quot; alt=\&quot;\&quot; border=\&quot;0\&quot;&gt;&quot;);<BR>
	document.close();<BR>
}</P>
