// Start Konfiguration
var WH_LA = 'D'; // Sprache [D | E | F | S]
var WH_DI = 'black'; // Hintergrundfarbe Digits [black | maroon | green | navy | purple | olive | teal]
var WH_BG = '#FFFFFF'; // Hintergrundfarbe
var WH_BC = '#000000'; // Farbe Umrandung
var WH_BW = 1; // Breite Umrandung
// Ende Konfiguration

// Please don't touch code below
WHWidth = (2 * WH_BW) + 110;
WHHeight = (2 * WH_BW) + 60;

if(document.layers) {
	var WHStyle = '';
	WHStyle += '<STYLE TYPE="text/css">';
	WHStyle += '#WHDiv { ';
	WHStyle += 'position:absolute; ';
	WHStyle += 'width:110px; height:60px; ';
	WHStyle += '}';
	WHStyle += '</STYLE>';
	document.write(WHStyle);

	var WHPos = '';
	WHPos += '<IMG NAME="WHPos"';
	WHPos += ' SRC="http://www.webhits.de/none.gif"';
	WHPos += ' HEIGHT=1 WIDTH=1>';

	var WHTable = '';
	WHTable += '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0';
	WHTable += ' BGCOLOR=';
	WHTable += WH_BC;
	WHTable += '><TR><TD WIDTH=';
	WHTable += WHWidth;
	WHTable += ' HEIGHT=';
	WHTable += WHHeight;
	WHTable += ' VALIGN=top ALIGN=left>';
	WHTable += WHPos;
	WHTable += '<DIV ID="WHDiv"></DIV>';
	WHTable += '</TD></TR></TABLE>';
}
else {
	var WHTable = '';
	WHTable += '<TABLE BORDER=0 CELLPADDING=0 CELLSPACING=0';
	WHTable += ' BGCOLOR=';
	WHTable += WH_BC;
	WHTable += '><TR><TD WIDTH=';
	WHTable += WHWidth;
	WHTable += ' HEIGHT=';
	WHTable += WHHeight;
	WHTable += ' VALIGN=middle ALIGN=center>';
	WHTable += '<DIV ID="WHDiv"></DIV>';
	WHTable += '</TD></TR></TABLE>';
}

function WHcheck() {
	if (typeof(WH_COUNTER) != "undefined") {
		clearInterval(WHInt);
		WHshow();
	}
}

function WHshow() {
	WHFlash = "";
	WHFlash += "<OBJECT CLASSID=clsid:D27CDB6E-AE6D-11cf-96B8-444553540000 ";
	WHFlash += "WIDTH=110 HEIGHT=60 ";
	WHFlash += "codebase=\"http://download.macromedia.com/pub/shockwave";
	WHFlash += "/cabs/flash/swflash.cab#version=5,0,0,0\">";
	WHFlash += "<PARAM NAME=MOVIE VALUE=counter.swf?id=" + WH_ID;
	WHFlash += "&total=" + WH_COUNTER;
	WHFlash += "&ip=" + REMOTE_ADDR;
	WHFlash += "&version=" + WH_LA;
	WHFlash += "&colorname=" + WH_DI;
	WHFlash += "&eof=true>";
	WHFlash += "<PARAM NAME=LOOP VALUE=false>";
	WHFlash += "<PARAM NAME=QUALITY VALUE=high>";
	WHFlash += "<PARAM NAME=MENU VALUE=false>";
	WHFlash += "<PARAM NAME=DEVICEFONT VALUE=true>";
	WHFlash += "<PARAM NAME=BGCOLOR VALUE=" + WH_BG + ">";
	WHFlash += "<EMBED SRC=counter.swf?id=" + WH_ID;
	WHFlash += "&total=" + WH_COUNTER;
	WHFlash += "&ip=" + REMOTE_ADDR;
	WHFlash += "&version=" + WH_LA;
	WHFlash += "&colorname=" + WH_DI;
	WHFlash += "&eof=true ";
	WHFlash += "WIDTH=110 HEIGHT=60 ";
	WHFlash += "LOOP=false ";
	WHFlash += "QUALITY=high ";
	WHFlash += "MENU=false ";
	WHFlash += "DEVICEFONT=true ";
	WHFlash += "BGCOLOR=" + WH_BG + " ";
	WHFlash += "TYPE=application/x-shockwave-flash ";
	WHFlash += "PLUGINSPAGE=http://www.macromedia.com/shockwave/download";
	WHFlash += "/index.cgi?P1_Prod_Version=ShockwaveFlash>";
	WHFlash += "</EMBED>";
	WHFlash += "</OBJECT>";

	if(document.layers) {
		WHLayer = document.layers['WHDiv'];
		WHLayer.left = document.images['WHPos'].x;
		WHLayer.top = document.images['WHPos'].y;
		WHLayer.left += WH_BW;
		WHLayer.top += WH_BW;
		WHLayer.document.open();
		WHLayer.document.write(WHFlash);
		WHLayer.document.close();
	}
	else if(document.all) {
		WHLayer = document.all['WHDiv'];
		WHLayer.innerHTML = WHFlash;
	}
	else if(!document.all && document.getElementById) {
		WHLayer = document.getElementById('WHDiv');
		WHLayer.innerHTML = WHFlash;
	}
}

function WHinit() {
	WHInt = setInterval("WHcheck()", 100);
}

