﻿startList = function() {
if (document.all&&document.getElementById) {
navRoot = document.getElementById("nav");
for (i=0; i<navRoot.childNodes.length; i++) {
node = navRoot.childNodes[i];
if (node.nodeName=="LI") {
node.onmouseover=function() {
this.className+=" over";
  }
  node.onmouseout=function() {
  this.className=this.className.replace(" over", "");
   }
   }
  }
 }
}
window.onload=startList;

function Go (select) {
	// Regelt die Weiterleitung für die Kategorieauswahl für tt_news
	var wert = select.options[select.options.selectedIndex].value;
	switch(wert){
	 case "leer":
		select.form.reset();
		break;
	case "alle":
		// Suche die aktuelle ID heraus
		id=window.location.search;
		if(id.indexOf("&"))	idn=id.substring(4,id.indexOf("&"));
		else idn=id.substring(4,20);
		location.href = "http://"+window.location.hostname+window.location.pathname+"?id="+idn;
		break;
	default:
		location.href = ''+wert;
    } 
}