var agt=navigator.userAgent.toLowerCase();
var is_major = parseInt(navigator.appVersion);
var is_minor = parseFloat(navigator.appVersion);
var is_nav  = ((agt.indexOf('mozilla')!=-1) && (agt.indexOf('spoofer')==-1) && (agt.indexOf('compatible') == -1) && (agt.indexOf('opera')==-1) && (agt.indexOf('webtv')==-1));
var is_nav2 = (is_nav && (is_major == 2));
var is_nav3 = (is_nav && (is_major == 3));
var is_badnav4 = (is_nav && (parseFloat(navigator.appVersion) == 4.02));
var is_oldnav4 = (is_nav && (parseFloat(navigator.appVersion) < 4.06));
var is_nav4 = (is_nav && (is_major == 4));
var is_nav4up = (is_nav && (is_major >= 4));
var is_nav6 = (is_nav && (is_major == 5));
var is_nav6up = (is_nav && (is_major >= 5));
var is_ie   = (agt.indexOf("msie") != -1);
var is_ie3  = (is_ie && (is_major < 4));
var is_ie4  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")==-1));
var is_ie4up  = (is_ie  && (is_major >= 4));
var is_ie5  = (is_ie && (is_major == 4) && (agt.indexOf("msie 5.0")!=-1));
var is_ie5up  = (is_ie && !is_ie3 && !is_ie4);
var is_aol   = (agt.indexOf("aol") != -1);
var is_aol3  = (is_aol && is_ie3);
var is_aol4  = (is_aol && is_ie4);
var is_aol5up  = (is_aol && is_ie5up);
var is_opera = (agt.indexOf("opera") != -1);
var is_opera4 = (is_opera && (is_major == 4));
var is_opera5 = (is_opera && (is_major == 5));
var is_opera5up = (is_opera && (is_major >= 5));
var is_webtv = (agt.indexOf("webtv") != -1);
var is_domcom = ((is_nav6up)||(is_ie5up)||(is_opera5up))
var is_mac    = (agt.indexOf("mac")!=-1);
var is_mac68k = (is_mac && ((agt.indexOf("68k")!=-1) || (agt.indexOf("68000")!=-1)));
var is_macppc = (is_mac && ((agt.indexOf("ppc")!=-1) || (agt.indexOf("powerpc")!=-1)));
var dhtmlnav=0;
var dhtmlBrowser=0;

if ((is_nav4up)||(is_ie4up)) dhtmlBrowser=1;

var table_template_front_array1 = new Array();
var table_template_front_array2 = new Array();
var table_template_end_array = new Array();
var row_template_front_array = new Array();
var parent_layer_array = new Array();
var child_layer_array = new Array();
var last_button_name = "";
var last_parent_layer = "";
var last_child_layer = "";
var last_image_name = "";
var image_pointer = "";
var TimerID = "";
var TimerIDLink = "";
var table_width = 197; // Changes the width of all menu tables. Set to widest menu.
var IsLink = "NO";
var PrevLayer = "NO";
var WaitLink = 0;
var LinkLayer = "";
var TimeLinkOut = 500;
var TimeLayerOut = 500;

if (document.images) {
    var arrow = new Image();
    var blank = new Image();
    arrow.src = "img/menu/arrow.gif";
    blank.src = "img/blank.gif";
    var I1on = new Image(); 
    I1on.src = "img/b_produkte_o.gif";
    var I1off = new Image();
    I1off.src = "img/b_produkte.gif";
    var I2on = new Image(); 
    I2on.src = "img/b_service_o.gif";
    var I2off = new Image();
    I2off.src = "img/b_service.gif";
    var I3on = new Image(); 
    I3on.src = "img/b_kontakt_o.gif";
    var I3off = new Image();
    I3off.src = "img/b_kontakt.gif";
}

function changeImages() {
  if (document.images) {
    for (var i=0; i<changeImages.arguments.length; i+=2) {
      document[changeImages.arguments[i]].src = eval(changeImages.arguments[i+1] + ".src");
    }
  }
}

function Layer(name, visibility, zindex, table_template, left, top) {
    this.name = name;
    this.left = left;
    this.top = top;
    this.width = table_width;
    this.visibility = visibility;
    this.zindex = zindex;
    this.table_template = table_template;
    this.ar = ar;
    this.fl = fl;
    if (this.table_template == 1) {
        this.left = this.left + this.width - 7;
    }

    if ((is_domcom)||(is_ie4)) {  
      if (is_mac) { //changed the navigator.appVersion.indexOf("Macintosh") to is_mac
            this.top += 7;
            this.left += 2;
        }
        this.layer_content = '<div id="' + this.name + '" style="position: absolute; left: ' + this.left + '; top: ' + this.top + '; width: ' + this.width + '; visibility: ' + (this.visibility ? 'visible' : 'hidden') + '; z-index: ' + this.zindex + ';">';
    } else if (is_nav4) { 
        this.layer_content = '<layer name="' + this.name + '" left=' + this.left + ' top=' + this.top + ' width=' + this.width + ' visibility=' + (this.visibility ? '"show"' : '"hide"') + ' z-index=' + this.zindex + '>';
    }
	   this.layer_content += table_template_front_array1[this.table_template];
	   this.layer_content += name
	   this.layer_content += table_template_front_array2[this.table_template];
		if (this.table_template == 0) { 
			parent_layer_array[parent_layer_array.length] = this.name;
		} else {
		child_layer_array[child_layer_array.length] = this.name;
	    }
}

function ar(row_template, row_content) {  
    this.layer_content += row_template_front_array[row_template] + row_content + row_end;
}

function fl() {  
    this.layer_content += table_template_end_array[this.table_template];

    if ((is_domcom)||(is_ie4)) {

      this.layer_content += '</div>'; 

    } else if (is_nav4) {

        this.layer_content += '</layer>';

        ;

    } document.write(this.layer_content)

}



function define_table(tw) {

    table_template_front_array1[0] = '<table width="' + tw + '" cellspacing="0" cellpadding="0" border="0" style="border: 1px solid white" onmouseover="TableOver(\'';

    table_template_front_array2[0] = '\');" onmouseout="TableOut();"><tr><td width="' + (tw-7) + '" valign="top" bgcolor="009682"><table width="' + (tw-7) + '" cellspacing="0" cellpadding="0" border="0">';

    table_template_end_array[0] = '</table></td></tr><tr><td width="' + (tw-7) + '"></td></tr></table>';



    table_template_front_array1[1] = table_template_front_array1[0];

    table_template_front_array2[1] = table_template_front_array2[0];

    table_template_end_array[1] = table_template_end_array[0];



    row_template_front_array[0] = '<tr><td width=' + (tw-25) + '>';

    row_template_front_array[1] = '<tr><td width=' + (tw-14) + ' COLSPAN="1">';

    row_template_front_array[2] = '<tr><td width=' + (tw-14) + ' ALIGN="right" COLSPAN="1">';



    row_end = '</tr>';

}
define_table(table_width);

var l = new Layer("L1", 0, 4, 0, 255, 2);
l.ar(0, '<a href="vario800-fm-anlage.php" onmouseout="outMe(\'vario800\')" onmouseover="LinkOver(\'L1\');overMe(\'vario800\')"><img id="vario800" src="img/b_vario800.gif" alt="Vario 800" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="#" onmouseout="LinkOut(\'L1\');outMe(\'sprechanlagen\')" onmouseover="LinkOver(\'L1-1\');overMe(\'sprechanlagen\')"><img id="sprechanlagen" src="img/b_sprechanlagen.gif" alt="Klassenh&ouml;r- / Sprechanlagen" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="#" onmouseout="LinkOut(\'L1\');outMe(\'freifeld\')" onmouseover="LinkOver(\'L1-2\');overMe(\'freifeld\')"><img id="freifeld" src="img/b_freifeld.gif" alt="Freifeld-Beschallungsanlagen" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="#" onmouseout="LinkOut(\'L1\');outMe(\'mipro-lautsprechersysteme\')" onmouseover="LinkOver(\'L1-3\');overMe(\'mipro-lautsprechersysteme\')"><img id="mipro-lautsprechersysteme" src="img/b_mipro-lautsprechersysteme.gif" alt="MIPRO Lautsprechersysteme" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="stethoskop_fuer_hoerbehinderte-hoergeschaedigte.php" onmouseout="outMe(\'stethoskop_fuer_hoerbehinderte\')" onmouseover="LinkOver(\'L1\');overMe(\'stethoskop_fuer_hoerbehinderte\')"><img id="stethoskop_fuer_hoerbehinderte" src="img/b_stethoskop_fuer_hoerbehinderte.gif" alt="Stethoskop f&uuml;r H&ouml;rbehinderte" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="computer_hoergeraete.php" onmouseout="outMe(\'computer_hoergeraete\')" onmouseover="LinkOver(\'L1\');overMe(\'computer_hoergeraete\')"><img id="computer_hoergeraete" src="img/b_computer_hoergeraete.gif" alt="Computer und H&ouml;rger&auml;te" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="#" onmouseout="LinkOut(\'L1\');outMe(\'in-ear-monitoring\')" onmouseover="LinkOver(\'L1-4\');overMe(\'in-ear-monitoring\')"><img id="in-ear-monitoring" src="img/b_in-ear-monitoring.gif" alt="In-Ear-Monitoring" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="team-teaching.php" onmouseout="outMe(\'team-teaching\')" onmouseover="LinkOver(\'L1\');overMe(\'team-teaching\')"><img id="team-teaching" src="img/b_team-teaching.gif" alt="Team-Teaching" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="individuelle_loesungen.php" onmouseout="outMe(\'individuelle_loesungen\')" onmouseover="LinkOver(\'L1\');overMe(\'individuelle_loesungen\')"><img id="individuelle_loesungen" src="img/b_individuelle_loesungen.gif" alt="Individuelle Probleml&ouml;sungen" height="19" width="197" border="0"></a></td>');
l.fl();

var l = new Layer("L1-1", 0, 5, 1, 255, 25);
l.ar(0, '<a href="klassenhoeranlage-klassensprechanlage_comfort-slight.php" onmouseout="outMe(\'comfort-slight\');" onmouseover="TableOver(\'L1-1\');overMe(\'comfort-slight\')"><img id="comfort-slight" src="img/b_comfort-slight.gif" alt="Klassenh&ouml;r-/Sprechanlage COMFORT slight" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="klassenhoeranlage-klassensprechanlage_comfort-light.php" onmouseout="outMe(\'comfort-light\');" onmouseover="TableOver(\'L1-1\');overMe(\'comfort-light\')"><img id="comfort-light" src="img/b_comfort-light.gif" alt="Klassenh&ouml;r-/Sprechanlage COMFORT light" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="klassenhoeranlage-klassensprechanlage_comfort-light-wireless.php" onmouseout="outMe(\'comfort-light-wireless\');" onmouseover="TableOver(\'L1-1\');overMe(\'comfort-light-wireless\')"><img id="comfort-light-wireless" src="img/b_comfort-light-wireless.gif" alt="Klassenh&ouml;r-/Sprechanlage COMFORT light / wireless" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="klassenhoeranlage-klassensprechanlage_comfort.php" onmouseout="outMe(\'comfort\');" onmouseover="TableOver(\'L1-1\');overMe(\'comfort\')"><img id="comfort" src="img/b_comfort.gif" alt="Klassenh&ouml;r-/Sprechanlage COMFORT" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="klassenhoeranlage-klassensprechanlage_wireless.php" onmouseout="outMe(\'wireless\');" onmouseover="TableOver(\'L1-1\');overMe(\'wireless\')"><img id="wireless" src="img/b_wireless.gif" alt="Klassenh&ouml;r-/Sprechanlage WIRELESS" height="19" width="197" border="0"></a></td>');
l.fl();

var l = new Layer("L1-2", 0, 5, 1, 255, 45);
l.ar(0, '<a href="freifeld-beschallungsanlagen.php" onmouseout="outMe(\'freifeld2\');" onmouseover="TableOver(\'L1-2\');overMe(\'freifeld2\')"><img id="freifeld2" src="img/b_freifeld2.gif" alt="Freifeldbeschallungsanlagen" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="freifeld-beschallungsanlagen_in_schwerhoerigenschulen.php" onmouseout="outMe(\'in_schwerhoerigenschulen\');" onmouseover="TableOver(\'L1-2\');overMe(\'in_schwerhoerigenschulen\')"><img id="in_schwerhoerigenschulen" src="img/b_in_schwerhoerigenschulen.gif" alt="Freifeldbeschallungsanlagen in Schwerh&ouml;rigenschulen" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="freifeld-beschallungsanlagen_technische_beschreibung.php" onmouseout="outMe(\'technische_beschreibung\');" onmouseover="TableOver(\'L1-2\');overMe(\'technische_beschreibung\')"><img id="technische_beschreibung" src="img/b_technische_beschreibung.gif" alt="Technische Beschreibung von Freifeldbeschallungsanlagen" height="19" width="197" border="0"></a></td>');
l.fl();

var l = new Layer("L1-3", 0, 5, 1, 255, 65);
l.ar(0, '<a href="mipro-lautsprechersysteme.php" onmouseout="outMe(\'mipro-lautsprechersysteme2\');" onmouseover="TableOver(\'L1-3\');overMe(\'mipro-lautsprechersysteme2\')"><img id="mipro-lautsprechersysteme2" src="img/b_mipro-lautsprechersysteme2.gif" alt="MIPRO Lautsprechersysteme" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="mipro-lautsprechersysteme_im_schulunterricht.php" onmouseout="outMe(\'mipro_im_schulunterricht\');" onmouseover="TableOver(\'L1-3\');overMe(\'mipro_im_schulunterricht\')"><img id="mipro_im_schulunterricht" src="img/b_mipro_im_schulunterricht.gif" alt="MIPRO Lautsprechersysteme im Schulunterricht" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="mipro-lautsprechersysteme_ma_101_act.php" onmouseout="outMe(\'mipro_ma_101_act\');" onmouseover="TableOver(\'L1-3\');overMe(\'mipro_ma_101_act\')"><img id="mipro_ma_101_act" src="img/b_mipro_ma_101_act.gif" alt="MIPRO Lautsprechersystem MA 101 ACT" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="mipro-lautsprechersysteme_ma_707.php" onmouseout="outMe(\'mipro_ma_707\');" onmouseover="TableOver(\'L1-3\');overMe(\'mipro_ma_707\')"><img id="mipro_ma_707" src="img/b_mipro_ma_707.gif" alt="MIPRO Lautsprechersystem MA 707" height="19" width="197" border="0"></a></td>');
l.fl();

var l = new Layer("L1-4", 0, 5, 1, 255, 120);
l.ar(0, '<a href="http://www.coach-phone.de" target="_blank" onmouseout="outMe(\'coach-phone\');" onmouseover="TableOver(\'L1-4\');overMe(\'coach-phone\')"><img id="coach-phone" src="img/b_coach-phone.gif" alt="coach-phone - In-Ear-Monitoring speziell f&uuml;r Sportler" height="34" width="197" border="0"></a></td>');
l.ar(0, '<a href="http://www.inearmonitor.de" target="_blank" onmouseout="outMe(\'in-ear-monitor\');" onmouseover="TableOver(\'L1-4\');overMe(\'in-ear-monitor\')"><img id="in-ear-monitor" src="img/b_in-ear-monitor.gif" alt="In-Ear-Monitoring mit dezentoMEDIA für Broadcasting" height="34" width="197" border="0"></a></td>');
l.fl();

var l = new Layer("L2", 0, 4, 0, 330, 0);
l.ar(0, '<a href="bedienungsanleitungen.php" onmouseout="outMe(\'bedienungsanleitungen\');" onmouseover="TableOver(\'L2\');overMe(\'bedienungsanleitungen\')"><img id="bedienungsanleitungen" src="img/b_bedienungsanleitungen.gif" alt="Bedienungsanleitungen" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="24h-service.php" onmouseout="outMe(\'24h-service\');" onmouseover="TableOver(\'L2\');overMe(\'24h-service\')"><img id="24h-service" src="img/b_24h-service.gif" alt="24h-Service" height="19" width="197" border="0"></a></td>');
l.fl();

var l = new Layer("L3", 0, 4, 0, 550, 0);
l.ar(0, '<a href="kontaktformular.php" onmouseout="outMe(\'kontaktformular\');" onmouseover="TableOver(\'L3\');overMe(\'kontaktformular\')"><img id="kontaktformular" src="img/b_kontaktformular.gif" alt="Kontaktformular" height="19" width="197" border="0"></a></td>');
l.ar(0, '<a href="postadresse_anfahrt.php" onmouseout="outMe(\'postadresse-anfahrt\');" onmouseover="TableOver(\'L3\');overMe(\'postadresse-anfahrt\')"><img id="postadresse-anfahrt" src="img/b_postadresse-anfahrt.gif" alt="Postadresse Anfahrt" height="19" width="197" border="0"></a></td>');
l.fl();

var numOfMenus = 3; // Number of the Main menus
var numOfImages = 3; // Number of rollover button img
layersList = new Array("L1","L2","L3", "L1-1", "L1-2", "L1-3", "L1-4");
var layerCount = 7; // Total number of the Main and the Sub menus

// Copyright 2001-2003 Villario, villario@yahoo.com | 2006-2008 m2 media Produktionsgesellschaft, www.m2-media.de