wmtt = null;

document.onmousemove = updateWMTT;

function updateWMTT(e) {
		x = (document.all) ? window.event.x + document.body.scrollLeft : e.pageX;
		y = (document.all) ? window.event.y + document.body.scrollTop  : e.pageY;
		if (wmtt != null) {
			wmtt.style.left = (e.pageX + 20) + "px";
			wmtt.style.top 	= (e.pageY + 20) + "px";
		}
}

function tooltipp_an(id) {
	wmtt = document.getElementById(id);
	wmtt.style.display = "block"
}

function tooltipp_aus() {
	wmtt.style.display = "none";
}

function popup(GrafikURL,BName,Breite,Hoehe)
{
	Fensteroptionen="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
	Bildw=window.open("", BName, Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
	Bildw.focus();
	Bildw.document.open();
	with(Bildw)
	{
		document.write("<html><head>");
		document.write("<title>"+BName+"</title>");
		document.write("</head>");
		document.write("<body leftmargin=\"0\" marginheight=\"0\" marginwidth=\"0\" topmargin=\"0\">");
		document.write("<img border=\"0\" onclick=\"window.close();\" src=\""+ GrafikURL +"\" title=\"Zum Schließen auf das Foto klicken\">");
		document.write("</body></html>");
	}
}

function popup2(dateiURL,BName,Breite,Hoehe)
{
	Fensteroptionen="toolbar=0,scrollbars=0,location=0,statusbar=0,menubar=0,resizable=0";
	Bildw=window.open("", BName, Fensteroptionen + ',width=' + Breite + ',height=' + Hoehe);
	}


function lichtan(bild)
{
document.getElementById(bild).className='highlight';
//this.className='highlight';

}
function lichtaus(bild)
{
document.getElementById(bild).className='nolight';
//this.className='nolight';
}



// Hit counter code for Webstat.net
//  var data = '&r=' + escape(document.referrer)
//	+ '&n=' + escape(navigator.userAgent)
//	+ '&p=' + escape(navigator.userAgent)
//	+ '&g=' + escape(document.location.href);
//  if (navigator.userAgent.substring(0,1)>'3')
//    data = data + '&sd=' + screen.colorDepth 
//	+ '&sw=' + escape(screen.width+'x'+screen.height);
//  document.write('<img alt="Website Counter" width="0" height="0" border="0" hspace="0" '+'vspace="0" src="http://www.webstat.net/basic/counter.php?i=53302' + data + '">');

