// Frame-Umleitung
//if ( (top.frames.length == 0) && (document.URL.indexOf('file:/') == -1) ) {
if (top.frames.length == 0) {
  top.location.href = "jsframe.html?" + escape(document.URL) + '?&frame=' + escape(top.document.referrer);
}

function highlightCurrentPageLink(i) {
  var frameElements = parent.frames[2].document;
  var tag_a = frameElements.getElementsByTagName('td');
  for (var j=1; j <= tag_a.length - 1; j++) {
    element = tag_a[j];
    element.style.backgroundColor = '#E2E2E2';
    element.style.border = '1px solid #E2E2E2';
    tag_a[j].className = 'meinecssklasseinaktiv';
  }
  tag_a[i].style.backgroundColor = '#FFFFFF';
  tag_a[i].style.border = '1px solid #C0C0C0';
  tag_a[i].className = 'meinecssklasseaktiv';

}

function showImage(img, description, x, y) {

 x = x + 22;
 y = y + 100;

 w = self.open("","Screenshot","resizable=yes,screenX=0,screenY=0,width=" + x + ",height=" + y);
 var filename = img;
// filename = filename.replace(/k_/,"_");
 with (w.document) {
   open();
   write('<html><head><meta http-equiv="Pragma" content="no-cache"><title>Screenshot</title></head>');
   write('<body bgcolor="#FFFFFF" ondragstart="return false" onselectstart="return false"; return true"><div align="center"><img src="' + filename + '" name="image_big"><p>');
   write('<font face="Verdana,Arial,Helvetica" size="2" color="#000000"><b>' + description + '</b></font><form>');
   write('<input type="image" src="img/popup_close.gif" name="closeBtn" onClick="self.close()">');
   write('</form></div></body></html>');
   close();
 }
 w.focus();
}

/* -----------------------------------------------
   POWER PHLOGGER - v.2.2.2a
   (c) 2000-2002 www.phpee.com
   contact: webmaster@phpee.com
  ------------------------------------------------ */

// ----------------------------------------------------------
// SETTINGS:
// here should be your username you received from www.superscripte.de
// Do not edit this file manually!! Use the one you got in your
// confirmation-email or the one from PowerPhlogger's settings
// section.
   id = "zzr";
// If you're using a frameset and are not getting correct
// referrers, please uncomment the following line:
    pp_frames = true;
// ----------------------------------------------------------


// define some defaults -------------------------------------
//if(showme==null) var showme='n';
//if(st==null)     var st='js';    // st means show-type :)
var showme='n';
var st='js';    // st means show-type :)

// get the user agent name ----------------------------------
v = navigator.appName;

// get the screen resolution --------------------------------
c=0;
if (v != "Netscape") c = screen.colorDepth;
else c = screen.pixelDepth;

// get the screen size --------------------------------------
s = screen.width+"x"+screen.height;

// get the document's title ---------------------------------
t = escape(document.title);

// get the document's referrer -------------------------------
var f = "";

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

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

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

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

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

// getting data ready to send -------------------------------
r="?id="+id+"&referer="+f+"&r="+s+"&c="+c+"&showme="+showme+"&st="+st+"&title="+t;

// adding logid if called by st='phpjs'
if(jslogid==null) var jslogid = 0;
else r = r + "&jslogid="+jslogid;


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://www.oebackup.de/pphlogger/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("<img src=\"http://www.oebackup.de/pphlogger/pphlogger.php"+r+"\" alt=\"\" border=\"0\">");
	document.close();
}

