// JavaScript Document
<!--

var CountdownJahr = 2008;
var CountdownMonat = 05;
var CountdownTag = 00;
var CountdownStunde = 10;
var CountdownMinute = 00;
var CountdownSekunde = 00;


function countdown_anzeigen()
{
    var Jetzt = new Date();
		var countdown = new Date(CountdownJahr, CountdownMonat-1, CountdownTag,
			CountdownStunde, CountdownMinute, CountdownSekunde);
    var MillisekundenBisCountdown = countdown.getTime()-Jetzt.getTime();
    var Rest = Math.floor(MillisekundenBisCountdown/1000);
    var CountdownText = "Noch ";
	var CountdownZweistellig = "0";
	var CountdownEndText = " zum Release ";
	
	if(Rest >= 31536000)
    {
        var Jahre = Math.floor(Rest/31536000);
        Rest = Rest-Jahre*31536000;

        if(Jahre > 1)
        {
            CountdownText += Jahre + " Jahre ";
        }
        else if(Jahre == 1)
        {
            CountdownText += Jahre + " Jahr ";
        }
    }			
    if(Rest >= 86400)
    {
        var Tage = Math.floor(Rest/86400);
        Rest = Rest-Tage*86400;

        if(Tage > 9)
        {
            CountdownText += Tage + " Tage ";
        }
		else if(Tage > 1 && Tage <= 9)
        {
            CountdownText +=CountdownZweistellig += Tage + " Tage ";
        }
        else if(Tage == 1)
        {
            CountdownText += Tage + " Tag ";
        }
    }
    if(Rest >= 3600)
    {
        var Stunden = Math.floor(Rest/3600);
        Rest = Rest-Stunden*3600;

        if(Stunden > 9)
        {
            CountdownText += Stunden + " Stunden ";
        }
		else if(Stunden > 1 && Stunden <= 9)
        {
            CountdownText += CountdownZweistellig += Stunden + " Stunden ";
        }
        else if(Stunden == 1)
        {
            CountdownText += Stunden + " Stunde  ";
        }
		else if(Stunden == 0)
        {
            CountdownText +=CountdownZweistellig += Stunden + " Stunde  ";
        }
    }
    if(Rest >= 60)
    {
        var Minuten = Math.floor(Rest/60);
        Rest = Rest-Minuten*60;
		if(Minuten > 9 )
    	{
        CountdownText += Minuten + " Minuten ";
    	}
        else if(Minuten > 1 && Minuten <= 9)
        {
            CountdownText += CountdownZweistellig += Minuten + " Minuten ";
        }
        else if(Minuten == 1)
        {
            CountdownText += Minuten + " Minute  ";
        }
	}
		if(Rest > 9 && Rest < 60)
		{
			CountdownText += Rest + " Sekunden ";
		}
		else if(Rest > 1 && Rest <=9)
		{
			CountdownText += CountdownZweistellig += Rest + " Sekunden  ";
		}
		else if(Rest==1)
		{
			CountdownText += CountdownZweistellig += Rest + " Sekunde ";
		}
		
		
		document.getElementById('countdown').innerHTML = CountdownText + CountdownEndText;
		window.setTimeout("countdown_anzeigen() , 1000");
		
}

//-->


<!--
//written by Kiki - www.kikisweb.de
/*
function zeit(){

var datum = new Date()
var stunde = datum.getHours()
var minute = datum.getMinutes() 
var sekunde = datum.getSeconds()

if (stunde<10) stunde="0"+stunde;
if (minute<10) minute="0"+minute; 
if (sekunde<10) sekunde="0"+sekunde;

document.getElementById("uhrzeit").innerText = (stunde + ":" +minute + ":" + sekunde); 

}
var aufruf = window.setInterval("zeit()", 1000)
*/
//-->
 
<!--


// CREDITS:
// Inline clock: fits anywhere into any text
// by Urs Dudli and Peter Gehrig 
// Copyright (c) 2000 Peter Gehrig and Urs Dudli. All rights reserved.
// Permission given to use the script provided that this notice remains as is.
// Additional scripts can be found at http://www.24fun.com
// info@24fun.com
// 7/5/2001

// IMPORTANT: 
// If you add this script to a script-library or a script-archive 
// you have to insert a link to http://www.24fun.com 
// right into the webpage where the script will be displayed.

// CONFIGURATION:
// Go to http://www.24fun.com, open category 'date' and 
// download the ZIP-file of this script containing
// the script-file with step-by-step instructions for easy configuration

var clockid=new Array()
var clockidoutside=new Array()
var i_clock= 1
var thistime= new Date()
var hours=thistime.getHours()
var minutes=thistime.getMinutes()
var seconds=thistime.getSeconds()
if (eval(hours) <10) {hours="0"+hours}
if (eval(minutes) < 10) {minutes="0"+minutes}
if (seconds < 10) {seconds="0"+seconds}
var thistime = hours+":"+minutes+":"+seconds
	
function writeclock() {
	i_clock++
	if (document.all || document.getElementById || document.layers) {
		clockid[i_clock]="clock"+i_clock
		document.write("<span id='"+clockid[i_clock]+"'>"+thistime+"</span>")
	}
}

function clockon() {
	thistime= new Date()
	hours=thistime.getHours()
	minutes=thistime.getMinutes()
	seconds=thistime.getSeconds()
	if (eval(hours) <10) {hours="0"+hours}
	if (eval(minutes) < 10) {minutes="0"+minutes}
	if (seconds < 10) {seconds="0"+seconds}
	thistime = hours+":"+minutes+":"+seconds
		
	if (document.all) {
		for (i=2;i<=clockid.length-1;i++) {
			var thisclock=eval(clockid[i])
			thisclock.innerHTML=thistime
		}
	}
	
	if (document.getElementById) {
		for (i=2;i<=clockid.length-1;i++) {
			document.getElementById(clockid[i]).innerHTML=thistime
		}
	}
	var timer=setTimeout("clockon()",1000)
}
window.onload=clockon

//-->


