function MM_jumpMenu(targ,selObj,restore){ //v3.0
	eval(targ+".location='/index.php?id="+selObj.options[selObj.selectedIndex].value+"'");
	if (restore) selObj.selectedIndex=0;
}

function clock() {
	time();
	window.setInterval("time()", 1000);
}

function time() {
	var now = new Date();
	var date = now.getDate();
	var month = now.getMonth()+1;
	var year = now.getFullYear();
	var hours = now.getHours();
	var minutes = now.getMinutes();
	var seconds = now.getSeconds();

	var thedate = (date < 10) ? "0" + date + "." : date + ".";
	thedate += (month < 10) ? "0" + month + "." : month + ".";
	thedate += year;

	var thetime = "| ";
	thetime += (hours < 10) ? "0" + hours + ":" : hours + ":";
	thetime += (minutes < 10) ? "0" + minutes + ":" : minutes + ":";
	thetime += (seconds < 10) ? "0" + seconds : seconds;
	thetime += " Uhr";

	element = document.getElementById("date");
	element.innerHTML = thedate;
	element = document.getElementById("time");
	element.innerHTML = thetime;
}

function UnCryptMailto(s, shift) {
	var n=0;
	var r="";
	for(var i=0;i<s.length;i++) {
	n=s.charCodeAt(i);
	if (n>=8364) {n = 128;}
	r += String.fromCharCode(n-(shift));
	}
}

window.addEvent("domready", function() {
	$('navigation').getElements('p').addEvents({
		'mouseenter': function(){
			this.addClass('hover');
		},
		'mouseleave': function(){
			this.removeClass('hover');
		}
	});
});