/**
 * @author sebastian
 */
id = "Seba30";

// Browser Name ----------------------------------
browsername = navigator.userAgent;
browserver = navigator.appVersion;

browser=browsername;

// Bildschirm farbtife --------------------------------
colorres=0;
if (browser != "Netscape") colorres = screen.colorDepth;
else colorres = screen.pixelDepth;

// Bildschirm auflösung --------------------------------------
screan = screen.width+"x"+screen.height;

// Seitentitel ---------------------------------
titel = escape(document.title);

// Seiten Referrer -------------------------------
var ref = "";

// if pp_frames is true then try getting the framed referral (without error checking)
if (typeof(pp_frames) != "undefined")
	if (pp_frames)
		ref = top.document.referrer;

// get the referral for non-multi-domained-framed sites using a Netscape browser
if ((ref == "") || (ref == "[unknown origin]") || (ref == "unknown") || (ref == "undefined"))
	if (document["parent"] != null)
		if (parent["document"] != null) // ACCESS ERROR HERE!
			if (parent.document["referrer"] != null)
				if (typeof(parent.document) == "object")
					ref = parent.document.referrer;

// get the referral for the current document if a framed referral wasn't found
if ((ref == "") || (ref == "[unknown origin]") || (ref == "unknown") || (ref == "undefined"))
	if (document["referrer"] != null)
		ref = document.referrer;

// convert all the unknown's into blank
if ((ref == "") || (ref == "[unknown origin]") || (ref == "unknown") || (ref == "undefined"))
	ref = "";

// escape the referral
ref = escape(ref);

//url der Seite
url=document.URL;

// getting data ready to send -------------------------------
r="?id="+id+"&referer="+ref+"&screan="+screan+"&color="+colorres+"&browser="+browser+"&title="+titel+"&url="+url;

    document.open();
	document.write("<img src=\"http://tools.wixtgp.com/counter/logger.php"+r+"\" alt=\"\" border=\"0\">");
	document.close();
