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+=" sfhover";
					  }
					  node.onmouseout=function() {
					  this.className=this.className.replace(" sfhover", "");
				   }
			   }
		  }
	 }
}

/** JavaScript **/
ieHover = function() {
var ieULs = document.getElementById('nav').getElementsByTagName('ul');
/** IE script to cover <select> elements with <iframe>s **/
for (j=0; j<ieULs.length; j++) {
ieULs[j].innerHTML = ('<iframe src="about:blank" scrolling="no" frameborder="0"></iframe>' + ieULs[j].innerHTML);
	var ieMat = ieULs[j].firstChild;
		ieMat.style.width=ieULs[j].offsetWidth+"px";
		ieMat.style.height=ieULs[j].offsetHeight+"px";	
		ieULs[j].style.zIndex="99";
}
/** IE script to change class on mouseover **/
	var ieLIs = document.getElementById('nav').getElementsByTagName('li');
	for (var i=0; i<ieLIs.length; i++) if (ieLIs[i]) {
		ieLIs[i].onmouseover=function() {this.className+=" sfhover";}
		ieLIs[i].onmouseout=function() {this.className=this.className.replace(' sfhover', '');}
	}}
//if (window.attachEvent) window.attachEvent('onload', ieHover);
/** end **/


function formchecksub() {
		 if (document.forms.frmNewsletter.email.value == "")
  		 {
    		 document.forms.frmNewsletter.email.focus();
    		 return (false);
  		 }
		 if (document.forms.frmNewsletter.email.value.indexOf('@') == -1)
  		 {
    		 alert("Diese Adresse ist ungültig");
    		 document.forms.frmNewsletter.email.focus();
    		 return (false);
  		 }
		 if (document.forms.frmNewsletter.email.value.indexOf('@') > document.forms.frmNewsletter.email.value.lastIndexOf('.'))
  		 {
    		 alert("Diese Adresse ist ungültig");
    		 document.forms.frmNewsletter.email.focus();
    		 return (false);
  		 }

}

function setEmpty(name) {
/*if (document.forms.newsletterform.email.value=='E-Mail Adresse' || document.forms.newsletterform.email.value=='E-Mail Address') {
document.forms.newsletterform.email.value='';
}*/
name.value = '';
}

function printit() {
  if((navigator.appVersion.indexOf("Mac") != -1) && (document.all)) alert("Bitte benutzen Sie den Befehl \"Drucken\" im Menü \"Ablage\".");
  else self.print();
}


/*----------------------------------------------------------------------------*/


function toggleBox(szDivID) {
  if (document.layers) { // NN4+
    if (document.layers[szDivID].visibility == 'visible') {
      document.layers[szDivID].display = "none";
    } else {
      document.layers[szDivID].display = "block";
    }
  } else if (document.getElementById) { // gecko(NN6) + IE 5+
    var obj = document.getElementById(szDivID);
    var objSD = document.getElementById(szDivID+"SD");

    if (obj.style.display == 'block') {
      obj.style.display = "none";
    } else {
      obj.style.display = "block";
    }
  } else if (document.all) { // IE 4
    if (document.all[szDivID].style.display == 'block') {
      document.all[szDivID].style.display = "none";
    } else {
      document.all[szDivID].style.display = "block";
    }
  }
}
 
var openBox = 'kat0';
var openGroup = '0';

function toggleKategorien(DivID) {
	if(openBox > 'kat0' && openBox != DivID) toggleBox(openBox); //offene Kategorie schliessen
	toggleBox(DivID); //gewünschte Kategorie öffnen
	openBox = DivID; //offene Kategorie merken
}
function toggleGruppe(DivID) {
	if(openGroup > '0' && openGroup != DivID) toggleBox(openGroup); //offene Kategorie schliessen
	toggleBox(DivID); //gewünschte Kategorie öffnen
	openGroup = DivID; //offene Kategorie merken
}

/*----------------------------------------------------------------------------*/

var Slider = function(){
	this._currentOpen;
	this._fixedElements = new Array();
	this.showGruppe = function(strId) {
		if($('#'+strId).css('display')=='none'){
			$('#'+strId).slideDown('slow');
		}
		this._close(strId);
		this._currentOpen = strId;
	}
	this._close = function(strId){
		if(this._currentOpen != null && this._currentOpen != strId ){
			if(!this._isFixed(this._currentOpen)){
				$('#'+this._currentOpen).slideUp('slow');
			}
		}
	}
	this.fixGruppe = function(strId) {
		if(this._isFixed(strId)){
			$('#'+strId).slideUp('slow');
			var tempFixedElements = new Array();
			$.each(this._fixedElements,function(i,n){
				if(strId!=n){
					tempFixedElements.push(n);
				}
			});
			this._fixedElements = tempFixedElements;
		}else{
			if($('#'+strId).css('display')=='none'){
				$('#'+strId).slideDown('slow');
			}
			this._fixedElements.push(strId);
		}
	}
	this._isFixed = function(strId){
		var blnFound = false;
		$.each(this._fixedElements,function(i,n){
			if(strId==n){
				blnFound = true;
			}
		});
		return blnFound;

	}
}
var oSlider = new Slider();
