/*
    gfx for menu-buttons
*/

btn_home_on			= new Image(110,20);
btn_home_on.src 		= "gfx/btn_home_on.gif";
btn_home_off			= new Image(110,20);
btn_home_off.src 		= "gfx/btn_home_off.gif";

btn_firma_on			= new Image(110,20);
btn_firma_on.src		= "gfx/btn_firma_on.gif";
btn_firma_off			= new Image(110,20);
btn_firma_off.src		= "gfx/btn_firma_off.gif";
btn_firma_activ_on		= new Image(110,20);
btn_firma_activ_on.src		= "gfx/btn_firma_activ_on.gif";
btn_firma_activ_off		= new Image(110,20);
btn_firma_activ_off.src		= "gfx/btn_firma_activ_off.gif";

btn_leistungen_on		= new Image(110,20);
btn_leistungen_on.src 		= "gfx/btn_leistungen_on.gif";
btn_leistungen_off		= new Image(110,20);
btn_leistungen_off.src		= "gfx/btn_leistungen_off.gif";
btn_leistungen_activ_on		= new Image(110,20);
btn_leistungen_activ_on.src 	= "gfx/btn_leistungen_activ_on.gif";
btn_leistungen_activ_off	= new Image(110,20);
btn_leistungen_activ_off.src	= "gfx/btn_leistungen_activ_off.gif";

btn_loesungen_on		= new Image(110,20);
btn_loesungen_on.src 		= "gfx/btn_loesungen_on.gif";
btn_loesungen_off		= new Image(110,20);
btn_loesungen_off.src 		= "gfx/btn_loesungen_off.gif";
btn_loesungen_activ_on		= new Image(110,20);
btn_loesungen_activ_on.src	= "gfx/btn_loesungen_activ_on.gif";
btn_loesungen_activ_off		= new Image(110,20);
btn_loesungen_activ_off.src 	= "gfx/btn_loesungen_activ_off.gif";

btn_referenzen_on		= new Image(110,20);
btn_referenzen_on.src 		= "gfx/btn_referenzen_on.gif";
btn_referenzen_off		= new Image(110,20);
btn_referenzen_off.src		= "gfx/btn_referenzen_off.gif";
btn_referenzen_activ_on		= new Image(110,20);
btn_referenzen_activ_on.src 	= "gfx/btn_referenzen_activ_on.gif";
btn_referenzen_activ_off	= new Image(110,20);
btn_referenzen_activ_off.src	= "gfx/btn_referenzen_activ_off.gif";

btn_forum_on			= new Image(110,20);
btn_forum_on.src 		= "gfx/btn_forum_on.gif";
btn_forum_off			= new Image(110,20);
btn_forum_off.src		= "gfx/btn_forum_off.gif";
btn_forum_activ_on		= new Image(110,20);
btn_forum_activ_on.src 	     	= "gfx/btn_forum_activ_on.gif";
btn_forum_activ_off		= new Image(110,20);
btn_forum_activ_off.src		= "gfx/btn_forum_activ_off.gif";

btn_impressum_on		= new Image(110,20);
btn_impressum_on.src 		= "gfx/btn_impressum_on.gif";
btn_impressum_off		= new Image(110,20);
btn_impressum_off.src		= "gfx/btn_impressum_off.gif";
btn_impressum_activ_on		= new Image(110,20);
btn_impressum_activ_on.src     	= "gfx/btn_impressum_activ_on.gif";
btn_impressum_activ_off		= new Image(110,20);
btn_impressum_activ_off.src	= "gfx/btn_impressum_activ_off.gif";

var bt_activ = 'btn_firma';
var bt_old_activ = '';

function clicky(bt_name) {
  bt_old_activ = bt_activ;
  set(bt_name, bt_name + "_activ_on");
  bt_activ = bt_name;
  if (bt_old_activ != '') {
    set(bt_old_activ, bt_old_activ + "_off");
  }
  switch(bt_name) {

    case 'btn_firma':
      gesamt =	'<img src="gfx/bg.jpg" alt="Die Firma" border="0" width="650" height="50"><br>' +
		'<img name="" src="gfx/trans.gif" alt="" border="0" width="1" height="5"><br>' +

      		'<a href="firma/kontakt.html" target="main" onclick="clicky(\'btn_kontakt\')" onmouseover="set(\'btn_kontakt\',\'btn_kontakt_on\')" onmouseout="set(\'btn_kontakt\',\'btn_kontakt_off\')"><img name="btn_kontakt" src="gfx/btn_kontakt_off.gif" alt="Kontakt" border="0" width="110" height="20"></a>&nbsp;' +

      		'<a href="firma/newsletter.html" target="main" onclick="clicky(\'btn_newsletter\')" onmouseover="set(\'btn_newsletter\',\'btn_newsletter_on\')" onmouseout="set(\'btn_newsletter\',\'btn_newsletter_off\')"><img name="btn_newsletter" src="gfx/btn_newsletter_off.gif" alt="Newsletter" border="0" width="110" height="20"></a>&nbsp;' +

      		'<a href="firma/wegbeschreibung.html" target="main" onclick="clicky(\'btn_wegbeschreibung\')" onmouseover="set(\'btn_wegbeschreibung\',\'btn_wegbeschreibung_on\')" onmouseout="set(\'btn_wegbeschreibung\',\'btn_wegbeschreibung_off\')"><img name="btn_wegbeschreibung" src="gfx/btn_wegbeschreibung_off.gif" alt="Wegbeschreibung" border="0" width="110" height="20"></a>&nbsp;'

      break;

    case 'btn_leistungen':
      gesamt = 	'<img src="gfx/bg.jpg" alt="Leistungen" border="0" width="650" height="50"><br>' + 
		'<img name="" src="gfx/trans.gif" alt="" border="0" width="1" height="5"><br>' +

      		'<a href="leistungen/beratung.html" target="main" onclick="clicky(\'btn_beratung\')" onmouseover="set(\'btn_beratung\',\'btn_beratung_on\')" onmouseout="set(\'btn_beratung\',\'btn_beratung_off\')"><img name="btn_beratung" src="gfx/btn_beratung_off.gif" alt="Beratung" border="0" width="110" height="20"></a>&nbsp;' +

        	'<a href="leistungen/schulung.html" target="main" onclick="clicky(\'btn_schulung\')" onmouseover="set(\'btn_schulung\',\'btn_schulung_on\')" onmouseout="set(\'btn_schulung\',\'btn_schulung_off\')"><img name="btn_schulung" src="gfx/btn_schulung_off.gif" alt="Schulung" border="0" width="110" height="20"></a>&nbsp;' + 

        	'<a href="leistungen/hotline.html" target="main" onclick="clicky(\'btn_hotline\')" onmouseover="set(\'btn_hotline\',\'btn_hotline_on\')" onmouseout="set(\'btn_hotline\',\'btn_hotline_off\')"><img name="btn_hotline" src="gfx/btn_hotline_off.gif" alt="Hotline" border="0" width="110" height="20"></a>&nbsp;' +

        	'<a href="leistungen/dienstleistungen.html" target="main" onclick="clicky(\'btn_dienstleistungen\')" onmouseover="set(\'btn_dienstleistungen\',\'btn_dienstleistungen_on\')" onmouseout="set(\'btn_dienstleistungen\',\'btn_dienstleistungen_off\')"><img name="btn_dienstleistungen" src="gfx/btn_dienstleistungen_off.gif" alt="Dienstleistungen" border="0" width="110" height="20"></a>&nbsp;';
      break;

    case 'btn_loesungen':
      gesamt =	'<img src="gfx/bg.jpg" alt="L&ouml;sungen" border="0" width="650" height="50"><br>' +
		'<img name="" src="gfx/trans.gif" alt="" border="0" width="1" height="5"><br>' +

     		'<a href="loesungen/bestandsdokumentation.html" target="main" onclick="clicky(\'btn_bestand\')" onmouseover="set(\'btn_bestand\',\'btn_bestand_on\')" onmouseout="set(\'btn_bestand\',\'btn_bestand_off\')"><img name="btn_bestand" src="gfx/btn_bestand_off.gif" alt="Bestandsdokumentation" border="0" width="100" height="20"></a>&nbsp;' +

     		'<a href="loesungen/trassenplanung.html" target="main" onclick="clicky(\'btn_trassierung\')" onmouseover="set(\'btn_trassierung\',\'btn_trassierung_on\')" onmouseout="set(\'btn_trassierung\',\'btn_trassierung_off\')"><img name="btn_trassierung" src="gfx/btn_trassierung_off.gif" alt="Trassenplanung" border="0" width="100" height="20"></a>&nbsp;' +

     		'<a href="loesungen/huellkurven.html" target="main" onclick="clicky(\'btn_huellkurve\')" onmouseover="set(\'btn_huellkurve\',\'btn_huellkurve_on\')" onmouseout="set(\'btn_huellkurve\',\'btn_huellkurve_off\')"><img name="btn_huellkurve" src="gfx/btn_huellkurve_off.gif" alt="H&uuml;llkurvenberechnung" border="0" width="100" height="20"></a>&nbsp;' +

        	'<a href="loesungen/gleisanlagenbau.html" target="main" onclick="clicky(\'btn_gleisanlagenbau\')" onmouseover="set(\'btn_gleisanlagenbau\',\'btn_gleisanlagenbau_on\')" onmouseout="set(\'btn_gleisanlagenbau\',\'btn_gleisanlagenbau_off\')"><img name="btn_gleisanlagenbau" src="gfx/btn_gleisanlagenbau_off.gif" alt="Gleisanlagenbau" border="0" width="100" height="20"></a>&nbsp;'+

  		'<a href="loesungen/wagendokumentation.html" target="main" onclick="clicky(\'btn_wagendoku\')" onmouseover="set(\'btn_wagendoku\',\'btn_wagendoku_on\')" onmouseout="set(\'btn_wagendoku\',\'btn_wagendoku_off\')"><img name="btn_wagendoku" src="gfx/btn_wagendoku_off.gif" alt="Wagendokumentation" border="0" width="100" height="20"><br></a>' +

<!-- nächste Zeile-->

        	'<a href="loesungen/verkehrs.html" target="main" onclick="clicky(\'btn_verkehr\')" onmouseover="set(\'btn_verkehr\',\'btn_verkehr_on\')" onmouseout="set(\'btn_verkehr\',\'btn_verkehr_off\')"> <img name="btn_verkehr" src="gfx/btn_verkehr_off.gif" alt="Verkehrsbetriebe" border="0" width="100" height="20"></a>&nbsp;' +

        	'<a href="loesungen/industrie.html" target="main" onclick="clicky(\'btn_industrie\')" onmouseover="set(\'btn_industrie\',\'btn_industrie_on\')" onmouseout="set(\'btn_industrie\',\'btn_industrie_off\')"><img name="btn_industrie" src="gfx/btn_industrie_off.gif" alt="Industrieunternehmen" border="0" width="100" height="20"></a>&nbsp;' +

        	'<a href="loesungen/verwaltungen.html" target="main" onclick="clicky(\'btn_verwaltung\')" onmouseover="set(\'btn_verwaltung\',\'btn_verwaltung_on\')" onmouseout="set(\'btn_verwaltung\',\'btn_verwaltung_off\')"><img name="btn_verwaltung" src="gfx/btn_verwaltung_off.gif" alt="Verwaltungen" border="0" width="100" height="20"></a>&nbsp;' +

        	'<a href="loesungen/planung.html" target="main" onclick="clicky(\'btn_planung\')" onmouseover="set(\'btn_planung\',\'btn_planung_on\')" onmouseout="set(\'btn_planung\',\'btn_planung_off\')"><img name="btn_planung" src="gfx/btn_planung_off.gif" alt="Planungsbüros" border="0" width="100" height="20"></a>&nbsp;' +

        	'<a href="loesungen/ingenieur.html" target="main" onclick="clicky(\'btn_ingenieur\')" onmouseover="set(\'btn_ingenieur\',\'btn_ingenieur_on\')" onmouseout="set(\'btn_ingenieur\',\'btn_ingenieur_off\')"><img name="btn_ingenieur" src="gfx/btn_ingenieur_off.gif" alt="Ingenieurbüros" border="0" width="100" height="20"></a>&nbsp;' +

        	'<a href="loesungen/architekten.html" target="main" onclick="clicky(\'btn_architekten\')" onmouseover="set(\'btn_architekten\',\'btn_architekten_on\')" onmouseout="set(\'btn_architekten\',\'btn_architekten_off\')"><img name="btn_architekten" src="gfx/btn_architekten_off.gif" alt="Architekten" border="0" width="100" height="20"></a>&nbsp;' 



      break;

    case 'btn_referenzen':
      gesamt =	'<img src="gfx/bg.jpg" alt="Referenzen" border="0" width="650" height="50"><br>' +
		'<img name="" src="gfx/trans.gif" alt="" border="0" width="1" height="5"><br>' +

        	'<a href="referenzen/kunden.html" target="main" onclick="clicky(\'btn_kunden\')" onmouseover="set(\'btn_kunden\',\'btn_kunden_on\')" onmouseout="set(\'btn_kunden\',\'btn_kunden_off\')"><img name="btn_kunden" src="gfx/btn_kunden_off.gif" alt="unsere Kunden" border="0" width="110" height="20"></a>&nbsp;'+

  		'<a href="referenzen/partner.html" target="main" onclick="clicky(\'btn_partner\')" onmouseover="set(\'btn_partner\',\'btn_partner_on\')" onmouseout="set(\'btn_partner\',\'btn_partner_off\')"><img name="btn_partner" src="gfx/btn_partner_off.gif" alt="unsere Partner" border="0" width="100" height="20"></a>&nbsp;' 

      break;

    case 'btn_forum':
      gesamt =	'<img src="gfx/bg.jpg" alt="Forum" border="0" width="650" height="50"><br>' +
		'<img name="" src="gfx/trans.gif" alt="" border="0" width="1" height="5"><br>'

      break;

case 'btn_impressum':
      gesamt =	'<img src="gfx/bg.jpg" alt="Impressum" border="0" width="650" height="50"><br>' +
		'<img name="" src="gfx/trans.gif" alt="" border="0" width="1" height="5"><br>'

      break;

  }
  if (navigator.appName == "Netscape")
    with(parent.titel.document.buttons2.document) {
      open();
      write(gesamt);
      close();
  }
  else { parent.titel.buttons2.innerHTML = gesamt; }  
activ = '';
  set(bt_name, bt_name + "_on");
  activ = bt_name;

}




function set(bt_name, set_bt_name) {

  if (bt_name != bt_activ) {

    if (document.layers) {
      window.document.buttons.document.images[bt_name].src = eval(set_bt_name + ".src");
    }
    else {
      window.document.images[bt_name].src = eval(set_bt_name + ".src");
    }
    
  }
  else {

    if (document.layers) {
      if (window.document.buttons.document.images[bt_name].src == eval(bt_name + "_activ_off.src")) {
        window.document.buttons.document.images[bt_name].src = eval(bt_name + "_activ_on.src");
      }
      else {
        window.document.buttons.document.images[bt_name].src = eval(bt_name + "_activ_off.src");
      }
    }
    else {
      if (window.document.images[bt_name].src == eval(bt_name + "_activ_on.src")) {
        window.document.images[bt_name].src = eval(bt_name + "_activ_off.src");
      }
      else {
        window.document.images[bt_name].src = eval(bt_name + "_activ_on.src");
      }
    }
  
  }
}

