var myHOME = new Array();

/******************************************************************************/
/*       Configuration Parameters                                             */
/*                                                                            */

var myID = "LCE";

/*                                                                            */
/*                                                                            */
/*                                                                            */
/******************************************************************************/

//********** set counter address
var tgthost = "http://www.lions-erding.de";
if (document.location.host == "localhost" || document.location.host == "127.0.0.1") tgthost = "http://localhost/lce";
var cntaddr="http://www.jagdhorn-noten.de/miwcounter.php";


//********** variables below can be assigned in document
if (typeof(counterid)=="undefined") var counterid=myID;
if (typeof(called)=="undefined") var called=0;
if (typeof(doctype)=="undefined") var doctype = "";		// doctype: top, sub, doc or empty

//********** frame page above?
var parenturl = "false";
if (self != parent) parenturl = "true";


//********** set counter parameters
var s="0x0";
var c=0;
var je="U";
var f="";

if (document["referrer"] != null) f = document.referrer;
f = escape(f);

var t=""+escape(document.title);
var v=navigator.appName;

/*** check if screen object is available ***/
if (navigator.appVersion.substring(0,1) >= "4") 
{
	sw=screen.width;
	sh=screen.height;
	s=sw+"x"+sh;
	if (v != "Netscape") 
		c=screen.colorDepth;
	else 
		c=screen.pixelDepth; 
}

if(""+navigator.cookieEnabled == "true") { ce="Y"; } else {
if(""+navigator.cookieEnabled == "false") { ce="N"; } else { ce="U"; }}

if(navigator.javaEnabled())
    je="Y"
else je="N";
u = document.URL;
u = escape(u);
parenturl = escape(parenturl);

r="";
r=r+"?url="+u;
r=r+"&parenturl="+parenturl;
r=r+"&referer="+f;
r=r+"&title="+t;
r=r+"&counterid="+counterid;
r=r+"&screen="+s;
r=r+"&color="+c;
r=r+"&cookies="+ce;
r=r+"&java="+je;

//********** call counter script (only once per document)
if (called==0)
{
	if (document.images) 
	{ 
		r=r+"&caller=imgobj";
		ctrimg = new Image(1,1);
		ctrimg.src = cntaddr+r;
	}
	else
	{
		rand=Math.round(1000*Math.random());
		r = r+"&caller=imgdoc&b="+rand;  //force the page to load the IMG
		document.open();
		document.write("<div style='position: absolute; left: 1; top: 1; width: 1; height: 1'>");
		document.write("<IMG src='"+cntaddr+r+"' border='0' width='0' height='0' hspace='0' vspace='0'>");
		document.write("</div>");
		document.close();
	}
	called = 1;
}

//********** redirect document 
var tgtpath = document.location.pathname;

tgtpath = tgtpath.replace(/^\/home\/michael-welsch/i, "");
tgtpath = tgtpath.replace(/^\/home\/0812214947-0001/i, "");
tgtpath = tgtpath.replace(/^\/ejnold/i, "");

top.location.replace(tgthost+tgtpath);





