/* -----------------------------------------------
   POWER PHLOGGER - v.2.2.1d
   www.phpee.com
   comments: philippo@iezzi.ch
  ------------------------------------------------ */

//SETTINGS:
//enter your username you received from powercount.caits.de
  id="harald"
//you don't need to edit anything below this line
//-------------------------------------------------

if(showme==null) var showme='n'        // default showme value
if(st==null)     var st='js'           // default st (show-type) value

s=0;c=0;fr="";je="U";

f=""+escape(document.referrer)         // replace to f=""+escape(top.document.referrer) if you're using frames

sw=screen.width;sh=screen.height;s=sw+"x"+sh
t=""+escape(document.title)
v=navigator.appName
if (v != "Netscape") c=screen.colorDepth
else c=screen.pixelDepth

if(navigator.cookieEnabled == true)     // Cookies enabled?
   ce="Y";
else if(navigator.cookieEnabled == false) ce="N";
     else ce="U";

if(navigator.javaEnabled())
    je="Y"
else je="N";

r="?id="+id+"&referer="+f+"&r="+s+"&c="+c+"&showme="+showme+"&st="+st+"&title="+t+"&cookies="+ce+"&java="+je

if (st=='js') { // calling PowerPhlogger by JavaScript-tag
	if (v != "Microsoft Internet Explorer") {
		r = r+"&url="+document.URL // $HTTP_REFERER problem with NS,...
	}
	document.open()
	document.write("<script language='JavaScript' type='text/javascript' src='http://powercount.caits.de/pphlogger.php"+r+"'></script>")
	document.close()
} else { // calling PowerPhlogger by IMG-tag
	rand=Math.round(1000*Math.random())
	r = r+"&b="+rand  //force the page to load the IMG
	document.open()
	document.write("<a href=\"http://www.caits.de\" target=\"_blank\"><IMG src='http://powercount.caits.de/pphlogger.php"+r+"' alt='CAITS PowerCounter' border='0'></a>")
	document.close()
}
