var  ie = ((document.all) && (window.offscreenBuffering)) ? true : false; // IE >= 4.x
var  ns = ((document.captureEvents) && (!document.getElementById)) ? true : false; // NN4.x
var  mz = ((document.getElementById) && (!document.all) && (document.documentElement)) ? true : false; // NN6/MZ
var  op = ((document.getElementById) && (navigator.userAgent.indexOf('Opera') != -1)) ? true : false;

if (ie || ns ||mz)
{
	function showtime()
	{
	now = new Date();
	var Stunde = now.getHours();
	var Minute = now.getMinutes();
	var Sekunde = now.getSeconds();
	if(Stunde<10)Stunde="0"+Stunde;
	if(Minute<10)Minute="0"+Minute;
	if(Sekunde<10)Sekunde="0"+Sekunde;
	Zeit=' ' +Stunde+ ':' +Minute+ ':'+Sekunde;

	if(ie || mz)
		{  // IE4+ und NN6
		if (document.all) links = (document.body.clientWidth - 125);
		else links = (window.innerWidth - 125)+'px';
		document.getElementById('uhr').innerHTML = Zeit;
		document.getElementById('uhr').style.left = links;
		}
	else if(ns)  
		{
		document.uhr.document.open();
		nachrechts = window.innerWidth - 125;
		Zeit = '<span class="Uhr">' + Zeit + '</span>';
		document.uhr.moveTo (nachrechts,20);
		document.uhr.document.write(Zeit);
		document.uhr.document.close();
		}
	window.setTimeout("showtime()",1000);
	}
}

