//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
// MEINE FUNCTIONEN
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

//==================================================================================
//==================================================================================
//
// JS-PROGRAMMIERUNG
// AUTOR: MS
// ERSTELLT: 19.02.2010
//
//==================================================================================
//==================================================================================



//==================================================================================
// INHALT
//==================================================================================

// VORSCHALTSEITE - UNTERMENUS ANZEIGEN
// AUFENTHALT-MENU-WECHSEL

//==================================================================================









//==================================================================================
//==================================================================================
// 
// VORSCHALTSEITE - UNTERMENUS ANZEIGEN
// 
//==================================================================================
//==================================================================================


function show_untermenu(untermenu_status)
{
  
  // DIV-BLOCK HERANHOEN  
  untermenu1 = document.getElementById('untermenu_1');
  untermenu2 = document.getElementById('untermenu_2');
  untermenu3 = document.getElementById('untermenu_3');
  untermenu4 = document.getElementById('untermenu_4');
  untermenu5 = document.getElementById('untermenu_5');
  alle_infos1 = document.getElementById('vorschalt_hotel');
  alle_infos2 = document.getElementById('vorschalt_gastro');
  alle_infos3 = document.getElementById('vorschalt_feiern');
  alle_infos4 = document.getElementById('vorschalt_tagen');
  alle_infos5 = document.getElementById('vorschalt_wellness');
  
	// MENU 1 - HOTEL
  if(untermenu_status == 'menu1_an')
  {
    untermenu1.style.display = "block";
    alle_infos1.style.display = "block";
  }
  if(untermenu_status == 'menu1_aus')
  {
    untermenu1.style.display = "none";
    alle_infos1.style.display = "none";
  }  

  // MENU 2 - GASTRO
  if(untermenu_status == 'menu2_an')
  {
		untermenu2.style.display = "block";
		alle_infos2.style.display = "block";
  }
  if(untermenu_status == 'menu2_aus')
  {
		untermenu2.style.display = "none"; 
		alle_infos2.style.display = "none";
  }
  
  // MENU 3 - FEIERN
  if(untermenu_status == 'menu3_an')
  {
    untermenu3.style.display = "block";
    alle_infos3.style.display = "block";
  }
  if(untermenu_status == 'menu3_aus')
  {
    untermenu3.style.display = "none";
    alle_infos3.style.display = "none";
  }
  
  // MENU 4 - TAGEN
  if(untermenu_status == 'menu4_an')
  {
    untermenu4.style.display = "block"; 
    alle_infos4.style.display = "block";
  }
  if(untermenu_status == 'menu4_aus')
  {
    untermenu4.style.display = "none";
    alle_infos4.style.display = "none";
  }
  
  // MENU 5 - WELLNESS
  if(untermenu_status == 'menu5_an')
  {
    untermenu5.style.display = "block"; 
    alle_infos5.style.display = "block";
  }
  if(untermenu_status == 'menu5_aus')
  {
    untermenu5.style.display = "none"; 
    alle_infos5.style.display = "none";
  }  
  
}




//==================================================================================
//==================================================================================
// 
// AUFENTHALT-MENU-WECHSEL 
// 
//==================================================================================
//==================================================================================

function wechsle_aufenthalt_tipp(aufenthalt_tipp_nummer)
{

	// A-BLOCK HERANHOEN
  tipp_menu1 = document.getElementById('aufenthalt_tipp_menu1');
  tipp_menu2 = document.getElementById('aufenthalt_tipp_menu2');
  tipp_menu3 = document.getElementById('aufenthalt_tipp_menu3');

	// DIV-BLOCK HERANHOEN
  tipp_content1 = document.getElementById('aufenthalt_tipp_1');
  tipp_content2 = document.getElementById('aufenthalt_tipp_2');
  tipp_content3 = document.getElementById('aufenthalt_tipp_3');
  
  // MENU 1
  if(aufenthalt_tipp_nummer == 1)
  {
    tipp_menu1.className = "aktiv";
    tipp_menu2.className = "normal";
    tipp_menu3.className = "normal";
    tipp_content1.style.display = "block";
    tipp_content2.style.display = "none";
    tipp_content3.style.display = "none";
  }

  // MENU 2
  if(aufenthalt_tipp_nummer == 2)
  {
    tipp_menu1.className = "normal";
    tipp_menu2.className = "aktiv";
    tipp_menu3.className = "normal";
    tipp_content1.style.display = "none";
    tipp_content2.style.display = "block";
    tipp_content3.style.display = "none";
  }
    
  // MENU 3
  if(aufenthalt_tipp_nummer == 3)
  {
    tipp_menu1.className = "normal";
    tipp_menu2.className = "normal";
    tipp_menu3.className = "aktiv";
    tipp_content1.style.display = "none";
    tipp_content2.style.display = "none";
    tipp_content3.style.display = "block";
  }  
}

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

// Ein- und Ausblenden bzw. Auf- und Zuklappen der Layer

//++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++

function ein_ausblenden() {

var divname = ein_ausblenden.arguments[0];
var wert = document.getElementById(divname).style.display;


	if(wert == "none" || wert == ""){
		wert = "block";
		document.getElementById(divname).style.display = wert;
	}
	
	else {
		wert = "none";
		document.getElementById(divname).style.display = wert;
	}
		
}
