btn_pub_tours_out = new Image(); 
btn_pub_tours_out.src = "pics/button_content_public.gif";
btn_pub_tours_over = new Image(); 
btn_pub_tours_over.src = "pics/button_content_public_over.gif";

btn_grp_tours_out = new Image(); 
btn_grp_tours_out.src = "pics/button_content_groups.gif";
btn_grp_tours_over = new Image(); 
btn_grp_tours_over.src = "pics/button_content_groups_over.gif";

btn_highlight_out = new Image(); 
btn_highlight_out.src = "pics/button_content_highlight.gif";
btn_highlight_over = new Image(); 
btn_highlight_over.src = "pics/button_content_highlight_over.gif";

btn_inspection_out = new Image(); 
btn_inspection_out.src = "pics/button_content_inspection.gif";
btn_inspection_over = new Image(); 
btn_inspection_over.src = "pics/button_content_inspection_over.gif";

btn_aboutus_out = new Image(); 
btn_aboutus_out.src = "pics/button_content_aboutus.gif";
btn_aboutus_over = new Image(); 
btn_aboutus_over.src = "pics/button_content_aboutus_over.gif";

btn_small = new Image();
btn_small.src = "pics/button_small.png";

btn_small_over = new Image();
btn_small_over.src = "pics/button_small_over.png";

/* public tours
*/
btn_sub_public_coach_tours_out = new Image(); 
btn_sub_public_coach_tours_out.src = btn_small.src;
btn_sub_public_coach_tours_over = new Image(); 
btn_sub_public_coach_tours_over.src = btn_small_over.src;

btn_sub_public_walking_tours_out = new Image(); 
btn_sub_public_walking_tours_out.src = btn_small.src;
btn_sub_public_walking_tours_over = new Image(); 
btn_sub_public_walking_tours_over.src = btn_small_over.src;

btn_sub_public_bike_tours_out = new Image(); 
btn_sub_public_bike_tours_out.src = btn_small.src;
btn_sub_public_bike_tours_over = new Image(); 
btn_sub_public_bike_tours_over.src = btn_small_over.src;

btn_sub_public_letour_out = new Image(); 
btn_sub_public_letour_out.src = btn_small.src;
btn_sub_public_letour_over = new Image(); 
btn_sub_public_letour_over.src = btn_small_over.src;

btn_sub_public_search_out = new Image(); 
btn_sub_public_search_out.src = btn_small.src;
btn_sub_public_search_over = new Image(); 
btn_sub_public_search_over.src = btn_small_over.src;

/* group tours
*/
btn_sub_grp_coach_tours_out = new Image(); 
btn_sub_grp_coach_tours_out.src = btn_small.src;
btn_sub_grp_coach_tours_over = new Image(); 
btn_sub_grp_coach_tours_over.src = btn_small_over.src;

btn_sub_grp_handicap_tours_out = new Image(); 
btn_sub_grp_handicap_tours_out.src = btn_small.src;
btn_sub_grp_handicap_tours_over = new Image(); 
btn_sub_grp_handicap_tours_over.src = btn_small_over.src;

btn_sub_grp_school_tours_out = new Image(); 
btn_sub_grp_school_tours_out.src = btn_small.src;
btn_sub_grp_school_tours_over = new Image(); 
btn_sub_grp_school_tours_over.src = btn_small_over.src;

btn_sub_grp_walking_tours_out = new Image(); 
btn_sub_grp_walking_tours_out.src = btn_small.src;
btn_sub_grp_walking_tours_over = new Image(); 
btn_sub_grp_walking_tours_over.src = btn_small_over.src;

btn_sub_grp_tours_order_out = new Image(); 
btn_sub_grp_tours_order_out.src = btn_small.src;
btn_sub_grp_tours_order_over = new Image(); 
btn_sub_grp_tours_order_over.src = btn_small_over.src;

btn_sub_grp_tours_search_out = new Image(); 
btn_sub_grp_tours_search_out.src = btn_small.src;
btn_sub_grp_tours_search_over = new Image(); 
btn_sub_grp_tours_search_over.src = btn_small_over.src;

/* highlights
*/
btn_sub_highlight_costume_out = new Image(); 
btn_sub_highlight_costume_out.src = btn_small.src;
btn_sub_highlight_costume_over = new Image(); 
btn_sub_highlight_costume_over.src = btn_small_over.src;

btn_sub_highlight_rallye_out = new Image(); 
btn_sub_highlight_rallye_out.src = btn_small.src;
btn_sub_highlight_rallye_over = new Image(); 
btn_sub_highlight_rallye_over.src = btn_small_over.src;

btn_sub_highlight_order_out = new Image(); 
btn_sub_highlight_order_out.src = btn_small.src;
btn_sub_highlight_order_over = new Image(); 
btn_sub_highlight_order_over.src = btn_small_over.src;

/* museum
*/
btn_sub_inspection_art_out = new Image(); 
btn_sub_inspection_art_out.src = btn_small.src;
btn_sub_inspection_art_over = new Image(); 
btn_sub_inspection_art_over.src = btn_small_over.src;

btn_sub_inspection_arena_out = new Image(); 
btn_sub_inspection_arena_out.src = btn_small.src;
btn_sub_inspection_arena_over = new Image(); 
btn_sub_inspection_arena_over.src = btn_small_over.src;

btn_sub_inspection_coffetree_out = new Image(); 
btn_sub_inspection_coffetree_out.src = btn_small.src;
btn_sub_inspection_coffetree_over = new Image(); 
btn_sub_inspection_coffetree_over.src = btn_small_over.src;

btn_sub_inspection_citymuseum_out = new Image(); 
btn_sub_inspection_citymuseum_out.src = btn_small.src;
btn_sub_inspection_citymuseum_over = new Image(); 
btn_sub_inspection_citymuseum_over.src = btn_small_over.src;

btn_sub_inspection_order_out = new Image(); 
btn_sub_inspection_order_out.src = btn_small.src;
btn_sub_inspection_order_over = new Image(); 
btn_sub_inspection_order_over.src = btn_small_over.src;

/* aboutus
*/
btn_sub_aboutus_gmbh_out = new Image(); 
btn_sub_aboutus_gmbh_out.src = btn_small.src;
btn_sub_aboutus_gmbh_over = new Image(); 
btn_sub_aboutus_gmbh_over.src = btn_small_over.src;

btn_sub_aboutus_quality_out = new Image(); 
btn_sub_aboutus_quality_out.src = btn_small.src;
btn_sub_aboutus_quality_over = new Image(); 
btn_sub_aboutus_quality_over.src = btn_small_over.src;

btn_sub_aboutus_partner_out = new Image(); 
btn_sub_aboutus_partner_out.src = btn_small.src;
btn_sub_aboutus_partner_over = new Image(); 
btn_sub_aboutus_partner_over.src = btn_small_over.src;

btn_sub_aboutus_intern_out = new Image(); 
btn_sub_aboutus_intern_out.src = btn_small.src;
btn_sub_aboutus_intern_over = new Image(); 
btn_sub_aboutus_intern_over.src = btn_small_over.src;

btn_sub_aboutus_awards_out = new Image(); 
btn_sub_aboutus_awards_out.src = btn_small.src;
btn_sub_aboutus_awards_over = new Image(); 
btn_sub_aboutus_awards_over.src = btn_small_over.src;

function chng_pic_over (tdID,PicID,pic) {
  if (document.images)
  {
	  document.images[PicID].src = pic.src;
	  document.getElementById(tdID).style.backgroundColor = "#fdb102";
  }
}

function chng_pic_out (tdID,PicID,pic) {
  if (document.images)
  {
	  document.images[PicID].src = pic.src;
	  document.getElementById(tdID).style.backgroundColor = "#fdc43f";
  }
}

function hide_all_div ()
{
  if (document.getElementById("div_pub_tours"))
  {
 
	  /* hide all Submenus (div)
	  */
	  document.getElementById("div_pub_tours").style.visibility = "hidden";
	  document.getElementById("div_pub_tours_name").style.visibility = "hidden";

	  document.getElementById("div_grp_tours").style.visibility = "hidden";
	  document.getElementById("div_grp_tours_name").style.visibility = "hidden";

	  document.getElementById("div_highlight").style.visibility = "hidden";
	  document.getElementById("div_highlight_name").style.visibility = "hidden";

	  document.getElementById("div_inspection").style.visibility = "hidden";
	  document.getElementById("div_inspection_name").style.visibility = "hidden";

	  document.getElementById("div_aboutus").style.visibility = "hidden";
	  document.getElementById("div_aboutus_name").style.visibility = "hidden";

  }
  else
  {
    alert("Es ist ein Fehler aufgetreten, wahrscheinlich ist die Version von JavaScript," 
					 + "die Ihr Browser verwendet zu alt. Empfohlen wird JavaScript ab Version 1.5.");
  }
}

function show_div (divID)
{
  if (document.getElementById(divID))
  { /* JavaScript 1.5 is available, DIV is available 
    */
 
	  /* hide all Submenus (div)
	  */
		hide_all_div();

	  /* make the Submenu (div with name divID) 
	     and the name of the active menu visible
	  */
	  document.getElementById(divID).style.visibility = "visible";
	  document.getElementById(divID + "_name").style.visibility = "visible";

  }
  else
  {
    alert("Es ist ein Fehler aufgetreten, wahrscheinlich ist die Version von JavaScript," 
					 + "die Ihr Browser verwendet zu alt. Empfohlen wird JavaScript ab Version 1.5.");
  }
}

/*
NOT NEEDED ANY MORE FOR THE SINGLE FRAME VERSION OF THE SITE

function show_menu()
{
	if (parent.window && ((typeof parent.window.location.hash) == "string")) {
    if 			(parent.window.location.hash == "#pub_tours") {
	  	show_div("div_pub_tours"); 
	  	parent.fr_content.location.href = "content.php?page=pubtrs_main";
	  }
	  else if (parent.window.location.hash == "#grp_tours") {
	  	show_div("div_grp_tours"); 
	  	parent.fr_content.location.href = "content.php?page=grptrs_main";
	  } 
	  else if (parent.window.location.hash == "#highlight") { 
		  show_div("div_highlight"); 
	  	parent.fr_content.location.href = "content/ger/php/main.php?page=hghlgt_main";
    } 
	  else if (parent.window.location.hash == "#inspection") {
      show_div("div_inspection"); 
	  	parent.fr_content.location.href = "content/ger/php/main.php?page=inspec_main";
    } 
	  else if (parent.window.location.hash == "#about_us") 
    {
      show_div("div_aboutus"); 
    } 
	  else if (parent.window.location.hash == "#agb") {
		  hide_all_div();
			parent.fr_content.location.href = "content/ger/php/main.php?page=agb"; 
	  }
	  else if (parent.window.location.hash == "#impressum") {
		  hide_all_div();
			parent.fr_content.location.href = "content/ger/general/impressum_general.html"; 
	  }
	  else if (parent.window.location.hash == "#intern") {
		  hide_all_div();
			parent.fr_content.location.href = "content/ger/about_us/intern_about_us.html"; 
	  }
	  else if (parent.window.location.hash == "#contact") {
		  hide_all_div();
			parent.fr_content.location.href = "content/ger/general/contact_general.html"; 
	  }
	  else if (parent.window.location.hash == "#cityplan") {
		  hide_all_div();
			parent.fr_content.location.href = "content/ger/general/cityplan_general.html"; 
	  }
	  else if (parent.window.location.hash == "#info") {
		  hide_all_div();
			parent.fr_content.location.href = "content/ger/general/info_general.html"; 
	  }

  } 
  else
  {
    alert("Es ist ein Fehler aufgetreten, wahrscheinlich ist die Version von JavaScript," 
					 + "die Ihr Browser verwendet zu alt. Empfohlen wird JavaScript ab Version 1.5.");
  }
}
*/

/* main init function to make the body visible after 
   generating the html
*/
function init()
{ // make the body visible to avoid unregular generation of the site
  
  if ( document.getElementsByTagName("body")[0] )
    document.getElementsByTagName("body")[0].style.visibility = "visible";
  else
    alert( "Es ist ein Fehler aufgetreten. Wahrscheinlich ist Ihr Browser zu alt. "
           + "Bitte installieren Sie die neuste Version Ihres Browsers"
         );
}
