// hightlighing für links

function highlight(id){
	document.getElementById(id).className = "seitenmenu_klein_weiss";
}

function unhighlight(id){
	document.getElementById(id).className = "seitenmenu_klein_braun";
}

// druckfunktion für die aktuelle seite

function seite_drucken(){
	self.print();
}

// funktionen zum sprung von aktuelles/reisedaten zu den reisen

function goto_iran(){
  top.frames[2].gl_menu_simclick(3,2);
  top.frames[5].sm_click(1,1,2,3);
}
function goto_iran_nord(){
  top.frames[2].gl_menu_simclick(3,2);
  top.frames[5].sm_click(1,1,2,4);
}
function goto_syrien(){
  top.frames[2].gl_menu_simclick(3,5);
  top.frames[5].sm_click(1,2,5,15);
}
function goto_jemen(){
  top.frames[2].gl_menu_simclick(3,8);
  top.frames[5].sm_click(1,3,8,25);
}

function goto_indien(){
  top.frames[2].gl_menu_simclick(3,11);
  top.frames[5].sm_click(1,4,11,35);
}

function goto_oman(){
  top.frames[2].gl_menu_simclick(3,14);
  top.frames[5].sm_click(1,5,14,47);
}

// funktionen für bildanzeige fakten/termine und programm
// iran
function show_iran_fakten_bild(){
	top.frames[4].location.href = "iran_rundreisen_persien_fakten_termine_bild.html";
}
function show_iran_ost_west_fakten_bild(){
	top.frames[4].location.href = "iran_rundreisen_iran_ost_west_fakten_termine_bild.html";
}
function show_iran_programm_bild(){
	top.frames[4].location.href = "iran_rundreisen_persien_programm_bild.html";
}
function show_iran_ost_west_programm_bild(){
	top.frames[4].location.href = "iran_rundreisen_iran_ost_west_programm_bild.html";
}
function show_iran_rundreisen_persien_bild(){
	top.frames[4].location.href = "iran_rundreisen_persien_bild.html";
}
function show_iran_rundreisen_iran_ost_west_bild(){
	top.frames[4].location.href = "iran_rundreisen_iran_ost_west_bild.html";
}
// syrien
function show_syrien_fakten_bild(){
	top.frames[4].location.href = "syrien_rundreisen_fakten_termine_bild.html";
}
function show_syrien_programm_bild(){
	top.frames[4].location.href = "syrien_rundreisen_programm_bild.html";
}
function show_syrien_rundreisen_bild(){
	top.frames[4].location.href = "syrien_rundreisen_bild.html";
}
// jemen
function show_jemen_fakten_bild(){
	top.frames[4].location.href = "jemen_rundreisen_arabia_felix_fakten_termine_bild.html";
}
function show_jemen_programm_bild(){
	top.frames[4].location.href = "jemen_rundreisen_arabia_felix_programm_bild.html";
}
function show_jemen_rundreisen_bild(){
	top.frames[4].location.href = "jemen_rundreisen_arabia_felix_bild.html";
}
// indien
function show_indien_fakten_bild(){ //ok
	top.frames[4].location.href = "indien_rundreisen_rajasthan_fakten_termine_bild.html";
}
function show_indien_programm_bild(){
	top.frames[4].location.href = "indien_rundreisen_rajasthan_programm_bild.html";
}
function show_indien_rundreisen_bild(){  // ok
	top.frames[4].location.href = "indien_rundreisen_rajasthan_bild.html";
}
// oman
function show_oman_fakten_bild(){ //ok
	top.frames[4].location.href = "oman_rundreisen_fakten_termine_bild.html";
}
function show_oman_programm_bild(){
	top.frames[4].location.href = "oman_rundreisen_programm_bild.html";
}
function show_oman_rundreisen_bild(){  // ok
	top.frames[4].location.href = "oman_rundreisen_bild.html";
}

// funktionen für die städte in den reisezielen

function turn_layer_on(layer_id){
	document.getElementById(layer_id).style.visibility = "visible";
}

function turn_layer_off(layer_id){
	document.getElementById(layer_id).style.visibility = "hidden";
}

// funktionen für impressionen modem

var im_classname_over         = "startseite_weiss";
var im_classname_out          = "startseite_braun";
var im_classname_clicked_over = "startseite_weiss";
var im_classname_clicked_out  = "startseite_weiss";

var im_dummy      = new Array("");
var im_iran_ids   = new Array("",
							  "iran_modem_1","iran_modem_2","iran_modem_3",
							  "iran_modem_4","iran_modem_5","iran_modem_6");
var im_syrien_ids  = new Array("",
							  "syrien_modem_1","syrien_modem_2","syrien_modem_3",
							  "syrien_modem_4","syrien_modem_5","syrien_modem_6");
var im_jemen_ids  = new Array("",
							  "jemen_modem_1","jemen_modem_2","jemen_modem_3",
							  "jemen_modem_4","jemen_modem_5","jemen_modem_6");
var im_indien_ids = new Array("",
							  "indien_modem_1","indien_modem_2","indien_modem_3",
							  "indien_modem_4","indien_modem_5","indien_modem_6");
var im_oman_ids = new Array("",
							  "oman_modem_1","oman_modem_2","oman_modem_3",
							  "oman_modem_4","oman_modem_5","oman_modem_6");


var im_ids = new Array(im_dummy,im_iran_ids,im_syrien_ids,im_jemen_ids,im_indien_ids,im_oman_ids);

var im_clicked_image = new Array(0,0,0,0);

function im_clear_clicked(country_nr) {
  var im_country_ids = im_ids[country_nr];
  for (var i = 1; i < im_country_ids.length; i++) 
      {var menupunkt_id = im_country_ids[i];
       document.getElementById(menupunkt_id).className = im_classname_out;
      }
}

function im_mouseover (country_nr, image_nr) {
  var menupunkt_id = im_ids[country_nr][image_nr];
  var my_classname = "";
  if (image_nr == im_clicked_image[country_nr]) {my_classname = im_classname_clicked_over;}
                                           else {my_classname = im_classname_over;}
													  
  document.getElementById(menupunkt_id).className = my_classname;
}

function im_mouseout (country_nr, image_nr) {
  var menupunkt_id = im_ids[country_nr][image_nr];
  var my_classname = "";
  if (image_nr == im_clicked_image[country_nr]) {my_classname = im_classname_clicked_out;}
                                           else {my_classname = im_classname_out;}
													  
  document.getElementById(menupunkt_id).className = my_classname;
}

function im_click(country_nr, image_nr) {
  im_clear_clicked(country_nr);
  im_clicked_image[country_nr] = image_nr;
  im_mouseover(country_nr, image_nr);
  switch(country_nr){
	  case 1 : var bild_html = "iran_impressionen_modem_bild" + image_nr + ".html";
	           break;
	  case 2 : var bild_html = "syrien_impressionen_modem_bild" + image_nr + ".html";
	           break;
	  case 3 : var bild_html = "jemen_impressionen_modem_bild" + image_nr + ".html";
	           break;
	  case 4 : var bild_html = "indien_impressionen_modem_bild" + image_nr + ".html";
	           break;
	  case 5 : var bild_html = "oman_impressionen_modem_bild" + image_nr + ".html";
	           break;
  }
  parent.frames[4].location.href = bild_html;
}
