/* DHTML-Bibliothek */

var DHTML = 0, DOM = 0, MS = 0, NS = 0, OP = 0;


function DHTML_init() {

 if (window.opera) {
     OP = 1;
 }
 if(document.getElementById) {
   DHTML = 1;
   DOM = 1;
 }
 if(document.all && !OP) {
   DHTML = 1;
   MS = 1;
 }
if (window.netscape && window.screen && !DOM && !OP){
   DHTML = 1;
   NS = 1;
 }
}

function getElem(p1,p2,p3) {
 var Elem;
 if(DOM) {
   if(p1.toLowerCase()=="id") {
     if (typeof document.getElementById(p2) == "object")
     Elem = document.getElementById(p2);
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="name") {
     if (typeof document.getElementsByName(p2) == "object")
     Elem = document.getElementsByName(p2)[p3];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="tagname") {
     if (typeof document.getElementsByTagName(p2) == "object" ||
        (OP && typeof document.getElementsByTagName(p2) == "function"))
     Elem = document.getElementsByTagName(p2)[p3];
     else Elem = void(0);
     return(Elem);
   }
   else return void(0);
 }
 else if(MS) {
   if(p1.toLowerCase()=="id") {
     if (typeof document.all[p2] == "object")
     Elem = document.all[p2];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="tagname") {
     if (typeof document.all.tags(p2) == "object")
     Elem = document.all.tags(p2)[p3];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="name") {
     if (typeof document[p2] == "object")
     Elem = document[p2];
     else Elem = void(0);
     return(Elem);
   }
   else return void(0);
 }
 else if(NS) {
   if(p1.toLowerCase()=="id" || p1.toLowerCase()=="name") {
   if (typeof document[p2] == "object")
     Elem = document[p2];
     else Elem = void(0);
     return(Elem);
   }
   else if(p1.toLowerCase()=="index") {
    if (typeof document.layers[p2] == "object")
     Elem = document.layers[p2];
    else Elem = void(0);
     return(Elem);
   }
   else return void(0);
 }
}

function setCont(p1,p2,p3,p4) {
   if(DOM && getElem(p1,p2,p3) && getElem(p1,p2,p3).firstChild)
     getElem(p1,p2,p3).firstChild.nodeValue = p4;
   else if(MS && getElem(p1,p2,p3))
     getElem(p1,p2,p3).innerText = p4;
   else if(NS && getElem(p1,p2,p3)) {
     getElem(p1,p2,p3).document.open();
     getElem(p1,p2,p3).document.write(p4);
     getElem(p1,p2,p3).document.close();
   }
}
DHTML_init();




function passwort()
{
    var txtKennwort = getElem("id","kennwort",null)

    if (txtKennwort.value =="Letterhaus")
    {
        getElem("id","content1",null).style.visibility = "visible";
        getElem("id","formKennwort",null).style.visibility = "hidden";
		getElem("id","KennwortFalsch",null).style.visibility = "hidden";
    }
    else
    {
        txtKennwort.value = "";
	    getElem("id","KennwortFalsch",null).style.visibility = "visible";
	    txtKennwort.focus(); 
    }
}




/*Navigation ohne*/

function termine_on(){
if(DOM || MS){
  getElem("id","termine",null).style.borderBottom = "solid #660033 1px";
  }
}
function termine_out(){
if(DOM || MS){
  getElem("id","termine",null).style.borderBottom = "0px";                              
  }
}

function presse_on(){
if(DOM || MS){
  getElem("id","presse",null).style.borderBottom = "solid #660033 1px";
  }
}  
function presse_out(){
if(DOM || MS){
  getElem("id","presse",null).style.borderBottom = "0px";
  }
}

function kontakt_on(){
if(DOM || MS){
 getElem("id","kontakt",null).style.borderBottom = "solid #660033 1px";
  }
}  
function kontakt_out(){
if(DOM || MS){
  getElem("id","kontakt",null).style.borderBottom = "0px";
  }
}
/* -------------------------------------------------------
function intern_on(){
if(DOM || MS){
  getElem("id","intern",null).style.borderBottom = "solid #000099 1px";
  }
}  
function intern_out(){
if(DOM || MS){
  getElem("id","intern",null).style.borderBottom = "0px";
  }
}
------------------------------------------------------- */


/* Navigation mit */

function orchester_out(){
sta = 0;
window.setTimeout("hideOrchmenu()", 50);
}

function orchester_on(){
sta = 1;
showOrchmenu();
}

function showOrchmenu(){
 if(DOM || MS){
  getElem("id","orchester",null).style.borderBottom = "solid #660033 1px";
  getElem("id","orchestermenu",null).style.visibility = "visible";
  }
 if(NS)
  getElem("id","orchestermenu",null).visibility = "show";
 }
 
function hideOrchmenu(){
if (!sta){
 if(DOM || MS){
  getElem("id","orchestermenu",null).style.visibility = "hidden";
  if (!OrchOn){
  getElem("id","orchester",null).style.borderBottom = "0px";
  }
 }
 if(NS)
  getElem("id","orchestermenu",null).visibility = "hide";
}
}
/* ------------------------------------------------------- */

function dirigent_out(){
stb = 0;
window.setTimeout("hideDirimenu()", 50);
}

function dirigent_on(){
stb = 1;
showDirimenu();
}

function showDirimenu(){
 if(DOM || MS){
  getElem("id","dirigent",null).style.borderBottom = "solid #660033 1px";
  getElem("id","dirigentmenu",null).style.visibility = "visible";
  }
 if(NS)
  getElem("id","dirigentmenu",null).visibility = "show";
  
 }
function hideDirimenu(){
if (!stb){
 if(DOM || MS){
  getElem("id","dirigentmenu",null).style.visibility = "hidden";
  if (!DiriOn){
  getElem("id","dirigent",null).style.borderBottom = "0px";
  }
 } 
 if(NS)
 getElem("id","dirigentmenu",null).visibility = "hide";
 }
}
/* ------------------------------------------------------- 

function presse_out(){
stb = 0;
window.setTimeout("hidePressemenu()", 50);
}

function presse_on(){
stb = 1;
showPressemenu();
}

function showPressemenu(){
 if(DOM || MS){
  getElem("id","presse",null).style.borderBottom = "solid #660033 1px";
  getElem("id","orchestermenu",null).style.visibility = "visible";
  }
 if(NS)
  getElem("id","orchestermenu",null).visibility = "show";
  
 }
function hidePressemenu(){
if (!stb){
 if(DOM || MS){
  getElem("id","orchestermenu",null).style.visibility = "hidden";
  if (!DiriOn){
  getElem("id","presse",null).style.borderBottom = "0px";
  }
 } 
 if(NS)
 getElem("id","orchestermenu",null).visibility = "hide";
  }
}
------------------------------------------------------- */

function intern_out(){
stb = 0;
window.setTimeout("hideInternmenu()", 50);
}

function intern_on(){
stb = 1;
showInternmenu();
}

function showInternmenu(){
 if(DOM || MS){
  getElem("id","intern",null).style.borderBottom = "solid #000099 1px";
  getElem("id","orchestermenu",null).style.visibility = "visible";
  }
 if(NS)
  getElem("id","orchestermenu",null).visibility = "show";
  
 }
function hideInternmenu(){
if (!stb){
 if(DOM || MS){
  getElem("id","orchestermenu",null).style.visibility = "hidden";
  if (!DiriOn){
  getElem("id","intern",null).style.borderBottom = "0px";
  }
 } 
 if(NS)
 getElem("id","orchestermenu",null).visibility = "hide";
  }
}