// JavaScript Document up2date-website

function preload_images()
{
var Bild = new Array();

// Hier werden die Bilder in Array geladen:

	Bild[0] = new Image(); Bild[0].src="Images/quadrat_hover.jpg";
}


function MM_showHideLayers() { //v9.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) 
  with (document) if (getElementById && ((obj=getElementById(args[i]))!=null)) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}

function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);

function TK_winOpen(theUrl,winName,features,x,y){ 
newWin=window.open(theUrl,winName,features);
newWin.moveTo(x,y);
}

function clock()
{
u_date = new Date();
var hours = u_date.getHours();
var minutes = u_date.getMinutes();
var seconds = u_date.getSeconds();
var uhr = "uhr";
var dn="PM"
if (hours<12)
dn="AM"

if (minutes <= 9) minutes = "0" + minutes;
if (seconds <= 9) seconds = "0" + seconds;
if (!document.all&&!document.getElementById)
return
if (document.getElementById)
document.getElementById(uhr).innerHTML = hours + ":" + minutes + ":" + seconds +" "+ dn;
else if(document.all)
document.all.uhr.innerHTML = hours + ":" + minutes + ":" + seconds+" "+ dn;
timerID = setTimeout("clock()", 1000);
}

function dmg(){
var mydate=new Date()
var year=mydate.getYear()
if (year < 1000)
year+=1900
var month=mydate.getMonth()+1
if (month<10)
month="0"+month
var daym=mydate.getDate()
if (daym<10)
daym="0"+daym
var dmgod = "dmgod";
if (!document.all&&!document.getElementById)
return
if (document.getElementById)
document.getElementById(dmgod).innerHTML = daym+"."+month+"."+year;
else if(document.all)
document.all.dmgod.innerHTML = daym+"."+month+"."+year;

}
//-->

