
button0_off = new Image();
button0_off.src = "images/auswahl_1.gif";
button0_on = new Image();
button0_on.src = "images/auswahla_1.gif";

button1_off = new Image();
button1_off.src = "images/auswahl_2.gif";
button1_on = new Image();
button1_on.src = "images/auswahla_2.gif";

button2_off = new Image();
button2_off.src = "images/auswahl_3.gif";
button2_on = new Image();
button2_on.src = "images/auswahla_3.gif";

button3_off = new Image();
button3_off.src = "images/auswahl_4.gif";
button3_on = new Image();
button3_on.src = "images/auswahla_4.gif";

button4_off = new Image();
button4_off.src = "images/auswahl_5.gif";
button4_on = new Image();
button4_on.src = "images/auswahla_5.gif";

button5_off = new Image();
button5_off.src = "images/auswahl_6.gif";
button5_on = new Image();
button5_on.src = "images/auswahla_6.gif";

button6_off = new Image();
button6_off.src = "images/auswahl_7.gif";
button6_on = new Image();
button6_on.src = "images/auswahla_7.gif";

button7_off = new Image();
button7_off.src = "images/auswahl_8.gif";
button7_on = new Image();
button7_on.src = "images/auswahla_8.gif";

button8_off = new Image();
button8_off.src = "images/auswahl_9.gif";
button8_on = new Image();
button8_on.src = "images/auswahla_9.gif";

button9_off = new Image();
button9_off.src = "images/auswahl_10.gif";
button9_on = new Image();
button9_on.src = "images/auswahla_10.gif";

button10_off = new Image();
button10_off.src = "images/auswahl_11.gif";
button10_on = new Image();
button10_on.src = "images/auswahla_11.gif";

button11_off = new Image();
button11_off.src = "images/auswahl_12.gif";
button11_on = new Image();
button11_on.src = "images/auswahla_12.gif";

button13_off = new Image();
button13_off.src = "images/auswahl_13.gif";
button13_on = new Image();
button13_on.src = "images/auswahla_13.gif";

button14_off = new Image();
button14_off.src = "images/auswahl_14.gif";
button14_on = new Image();
button14_on.src = "images/auswahla_14.gif";

button15_off = new Image();
button15_off.src = "images/auswahl_15.gif";
button15_on = new Image();
button15_on.src = "images/auswahla_15.gif";

button16_off = new Image();
button16_off.src = "images/auswahl_16.gif";
button16_on = new Image();
button16_on.src = "images/auswahla_16.gif";

was=0;wasm=999;

function aus(was,wasm)
{
if(was==1){document.b1.src=button0_off.src;}
if(was==2){document.b2.src=button1_off.src;}
if(wasm==0){document.b3.src=button2_off.src;}
if(was==4){document.b4.src=button3_off.src;}
if(was==5){document.b5.src=button4_off.src;}
if(wasm==1){document.b6.src=button5_off.src;}
if(wasm==2){document.b7.src=button6_off.src;}
if(was==8){document.b8.src=button7_off.src;}
if(wasm==3){document.b9.src=button8_off.src;}
if(was==10){document.b10.src=button9_off.src;}
if(was==11){document.b11.src=button10_off.src;}
if(was==12){document.b12.src=button11_off.src;}
if(was==13){document.b13.src=button12_off.src;}
if(was==14){document.b14.src=button13_off.src;}
if(was==15){document.b15.src=button14_off.src;}
if(was==16){document.b16.src=button15_off.src;}
if(was==17){document.b17.src=button16_off.src;}
}

function an(was,wasm)
{
if(was==1){document.b1.src=button0_on.src;}
if(was==2){document.b2.src=button1_on.src;}
if(wasm==0){document.b3.src=button2_on.src;}
if(was==4){document.b4.src=button3_on.src;}
if(was==5){document.b5.src=button4_on.src;}
if(wasm==1){document.b6.src=button5_on.src;}
if(wasm==2){document.b7.src=button6_on.src;}
if(was==8){document.b8.src=button7_on.src;}
if(wasm==3){document.b9.src=button8_on.src;}
if(was==10){document.b10.src=button9_on.src;}
if(was==11){document.b11.src=button10_on.src;}
if(was==12){document.b12.src=button11_on.src;}
if(was==13){document.b13.src=button12_on.src;}
if(was==14){document.b14.src=button13_on.src;}
if(was==15){document.b15.src=button14_on.src;}
if(was==16){document.b16.src=button15_on.src;}
if(was==17){document.b17.src=button16_on.src;}
}

<!-- Mapview -->

var soll1=0;
var gist1=0;

function fenster()
{
if (soll1==1)
{
if(fenster1w.closed == false) {fenster1w.close();}
}
if (gist1==1) 
{ 
fenster1w=open("anfahrt.php4","fenster1w","status=no,width=250,height=330,scrollbars=no,resizable=yes")
fenster1w.focus();
soll1=1;
}
}

<!-- Imageview -->

var soll2=0;
var gist2=0;

function fenster2()
{
if (soll2==1)
{
if(fenster2w.closed == false) {fenster2w.close();}
}
if (gist2==1) 
{ 
fenster2w=open("bildview.php4?ziel="+ziel,"fenster2w","status=no,width=20,height=20,left=50,top=50,scrollbars=no,resizable=yes")
fenster2w.focus();
soll2=1;
}
}

<!-- Jobview -->

var soll3=0;
var gist3=0;

function fenster3()
{
if (soll3==1)
{
if(fenster3w.closed == false) {fenster3w.close();}
}
if (gist3==1) 
{ 
fenster3w=open("karriere/karriere.php4","fenster3w","status=no,width=620,height=520,scrollbars=yes,resizable=no")
fenster3w.focus();
soll3=1;
}
}

<!-- Fotoshow 01 -->

var soll4=0;
var gist4=0;

function fenster4()
{
if (soll4==1)
{
if(fenster4w.closed == false) {fenster4w.close();}
}
if (gist4==1) 
{ 
fenster4w=open("shows/show_01/show_01.php4","fenster4w","status=no,left=50,top=40,width=620,height=555,scrollbars=yes,resizable=no")
fenster4w.focus();
soll4=1;
}
}

<!-- Fotoshow 02 -->

var soll4a=0;
var gist4a=0;

function fenster4a()
{
if (soll4a==1)
{
if(fenster4aw.closed == false) {fenster4aw.close();}
}
if (gist4a==1) 
{ 
fenster4aw=open("shows/show_02/show_02.php4","fenster4aw","status=no,left=50,top=40,width=620,height=555,scrollbars=yes,resizable=no")
fenster4aw.focus();
soll4a=1;
}
}

<!-- Fotoshow 03 -->

var soll4b=0;
var gist4b=0;

function fenster4b()
{
if (soll4b==1)
{
if(fenster4bw.closed == false) {fenster4bw.close();}
}
if (gist4b==1) 
{ 
fenster4bw=open("shows/show_03/show_03.php4","fenster4bw","status=no,left=50,top=40,width=620,height=555,scrollbars=yes,resizable=no")
fenster4bw.focus();
soll4b=1;
}
}

<!-- Fotoshow 04 -->

var soll4c=0;
var gist4c=0;

function fenster4c()
{
if (soll4c==1)
{
if(fenster4cw.closed == false) {fenster4cw.close();}
}
if (gist4c==1) 
{ 
fenster4cw=open("shows/show_04/show_04.php4","fenster4cw","status=no,left=50,top=40,width=620,height=555,scrollbars=yes,resizable=no")
fenster4cw.focus();
soll4c=1;
}
}

<!-- Fotoshow 05 -->

var soll4d=0;
var gist4d=0;

function fenster4d()
{
if (soll4d==1)
{
if(fenster4dw.closed == false) {fenster4dw.close();}
}
if (gist4d==1) 
{ 
fenster4dw=open("shows/show_05/show_05.php4","fenster4dw","status=no,left=50,top=40,width=620,height=555,scrollbars=yes,resizable=no")
fenster4dw.focus();
soll4d=1;
}
}

<!-- Mediaview -->

var soll5=0;
var gist5=0;

function fenster5()
{
if (soll5==1)
{
if(fenster5w.closed == false) {fenster5w.close();}
}
if (gist5==1) 
{ 
fenster5w=open("media/media.php4","fenster5w","status=no,width=380,height=350,scrollbars=no,resizable=yes")
fenster5w.focus();
soll5=1;
}
}

var ns4=document.layers
var ns6=document.getElementById&&!document.all
var ie4=document.all

<!-- Flasbase -->

function flash_a_kill()
{
if(ns4){if(document.dek){kill_a();}}
if(ns6){if(document.getElementById("dek")){kill_a();}}
if(ie4){if(document.all.dek){kill_a();}}
}

function flash_a_view()
{
if(ns4){if(document.dek){kill();}}
if(ns6){if(document.getElementById("dek")){kill();}}
if(ie4){if(document.all.dek){kill();}}
}

function flashload()
{
flascon="<OBJECT classid='clsid:D27CDB6E-AE6D-11cf-96B8-444553540000' codebase='http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=6,0,0,0' WIDTH='572' HEIGHT='262' id='start' ALIGN=''><PARAM NAME=movie VALUE='start.swf'> <PARAM NAME=menu VALUE=false> <PARAM NAME=quality VALUE=best> <PARAM NAME=wmode VALUE=transparent> <PARAM NAME=bgcolor VALUE=#FFFFFF> <EMBED src='start.swf' menu=false wmode=transparent quality=best bgcolor=#FFFFFF  WIDTH='572' HEIGHT='262' NAME='start' ALIGN='' TYPE='application/x-shockwave-flash' PLUGINSPAGE='http://www.macromedia.com/go/getflashplayer'></EMBED></OBJECT>";

if(ns4){document.dekhidden.document.write(flascon);document.dekhidden.document.close();}
if(ns6){document.getElementById("dekhidden").innerHTML=flascon;}
if(ie4){document.all.dekhidden.innerHTML=flascon;}
}

var A_MENUS = [];

function menu (a_items, a_tpl, overpic) {

	// browser check
	if (!document.body || !document.body.style)
		return;

	// store items structure
	this.a_config = a_items;

	// store template structure
	this.a_tpl = a_tpl;

	// get menu id
	this.n_id = A_MENUS.length;

	// declare collections
	this.a_index = [];
	this.a_children = [];

	// assigh methods and event handlers
	this.expand      = menu_expand;
	this.collapse    = menu_collapse;

	this.onclick     = menu_onclick;
	this.onmouseout  = menu_onmouseout;
	this.onmouseover = menu_onmouseover;
	this.onmousedown = menu_onmousedown;

	// default level scope description structure 
	this.a_tpl_def = {
		'block_top'  : 16,
		'block_left' : 16,
		'top'        : 20,
		'left'       : 4,
		'width'      : 120,
		'height'     : 22,
		'hide_delay' : 0,
		'expd_delay' : 0,
		'css'        : {
			'inner' : '',
			'outer' : ''
		}
	};
	
	// assign methods and properties required to imulate parent item
	this.getprop = function (s_key) {
		return this.a_tpl_def[s_key];
	};

	this.o_root = this;
	this.n_depth = -1;
	this.n_x = 0;
	this.n_y = 0;

	// 	init items recursively
	for (n_order = 0; n_order < a_items.length; n_order++)
		new menu_item(this, n_order);

	// register self in global collection
	A_MENUS[this.n_id] = this;

	// make root level visible
	for (var n_order = 0; n_order < this.a_children.length; n_order++)
		this.a_children[n_order].e_oelement.style.visibility = 'visible';
}

// --------------------------------------------------------------------------------
function menu_collapse (n_id) {
	// cancel item open delay
	clearTimeout(this.o_showtimer);

	// by default collapse to root level
	var n_tolevel = (n_id ? this.a_index[n_id].n_depth : 0);
	
	// hide all items over the level specified
	for (n_id = 0; n_id < this.a_index.length; n_id++) {
		var o_curritem = this.a_index[n_id];
		if (o_curritem.n_depth > n_tolevel && o_curritem.b_visible) {
			o_curritem.e_oelement.style.visibility = 'hidden';
			o_curritem.b_visible = false;
		}
	}

	// reset current item if mouse has gone out of items
	if (!n_id)
		this.o_current = null;
}

// --------------------------------------------------------------------------------
function menu_expand (n_id) {

	// expand only when mouse is over some menu item
	if (this.o_hidetimer)
		return;

	// lookup current item
	var o_item = this.a_index[n_id];

	// close previously opened items
	if (this.o_current && this.o_current.n_depth >= o_item.n_depth)
		this.collapse(o_item.n_id);
	this.o_current = o_item;

	// exit if there are no children to open
	if (!o_item.a_children)
		return;

	// show direct child items
	for (var n_order = 0; n_order < o_item.a_children.length; n_order++) {
		var o_curritem = o_item.a_children[n_order];
		o_curritem.e_oelement.style.visibility = 'visible';
		o_curritem.b_visible = true;
	}
}

// --------------------------------------------------------------------------------
//
// --------------------------------------------------------------------------------
function menu_onclick (n_id) {
	// don't go anywhere if item has no link defined
	return Boolean(this.a_index[n_id].a_config[1]);
}

// --------------------------------------------------------------------------------
function menu_onmouseout (n_id) {

	// lookup new item's object	
	var o_item = this.a_index[n_id];

	// apply rollout
	o_item.e_oelement.className = o_item.getstyle(0, 0);
	o_item.e_ielement.className = o_item.getstyle(1, 0);
	
	// update status line	
	o_item.upstatus(7);

	// run mouseover timer
	this.o_hidetimer = setTimeout('flash_a_view();A_MENUS['+ this.n_id +'].collapse();',
		o_item.getprop('hide_delay'));
}

// --------------------------------------------------------------------------------
function menu_onmouseover (n_id) {

	// cancel mouseoute menu close and item open delay
	clearTimeout(this.o_hidetimer);
	this.o_hidetimer = null;
	clearTimeout(this.o_showtimer);

	// lookup new item's object	
	var o_item = this.a_index[n_id];

	// update status line	
	o_item.upstatus();

	// apply rollover
	o_item.e_oelement.className = o_item.getstyle(0, 1);
	o_item.e_ielement.className = o_item.getstyle(1, 1);
	
	// if onclick open is set then no more actions required
	if (o_item.getprop('expd_delay') < 0)
		return;

	// run expand timer
	this.o_showtimer = setTimeout('A_MENUS['+ this.n_id +'].expand(' + n_id + ');',
		o_item.getprop('expd_delay'));

}

// --------------------------------------------------------------------------------
// called when mouse button is pressed on menu item
// --------------------------------------------------------------------------------
function menu_onmousedown (n_id) {
	
	// lookup new item's object	
	var o_item = this.a_index[n_id];

	// apply mouse down style
	o_item.e_oelement.className = o_item.getstyle(0, 2);
	o_item.e_ielement.className = o_item.getstyle(1, 2);

	this.expand(n_id);
//	this.items[id].switch_style('onmousedown');
}


// --------------------------------------------------------------------------------
// menu item Class
function menu_item (o_parent, n_order, overpic) {
	// store parameters passed to the constructor
	this.n_depth  = o_parent.n_depth + 1;
	this.a_config = o_parent.a_config[n_order + (this.n_depth ? 3 : 0)];

	// return if required parameters are missing
	if (!this.a_config) return;

	// store info from parent item
	this.o_root    = o_parent.o_root;
	this.o_parent  = o_parent;
	this.n_order   = n_order;

	// register in global and parent's collections
	this.n_id = this.o_root.a_index.length;
	this.o_root.a_index[this.n_id] = this;
	o_parent.a_children[n_order] = this;

	// calculate item's coordinates
	var o_root = this.o_root,
		a_tpl  = this.o_root.a_tpl;

	// assign methods
	this.getprop  = mitem_getprop;
	this.getstyle = mitem_getstyle;
	this.upstatus = mitem_upstatus;

	this.n_x = n_order
		? o_parent.a_children[n_order - 1].n_x + this.getprop('left')
		: o_parent.n_x + this.getprop('block_left');

	this.n_y = n_order
		? o_parent.a_children[n_order - 1].n_y + this.getprop('top')
		: o_parent.n_y + this.getprop('block_top');

	// generate item's HMTL
	
	document.write (
		'<a id="e' + o_root.n_id + '_'
			+ this.n_id +'o" class="' + this.getstyle(0, 0) + '" href="' + this.a_config[1] + '"'
			+ (this.a_config[2] && this.a_config[2]['tw'] ? ' target="'
			+ this.a_config[2]['tw'] + '"' : '') + ' style="position: absolute; top: '
			+ this.n_y + 'px; left: ' + this.n_x + 'px; width: '
			+ this.getprop('width') + 'px; height: '
			+ this.getprop('height') + 'px; visibility: hidden;'
			+' z-index: ' + this.n_depth + ';" '
			+ 'onclick="return A_MENUS[' + o_root.n_id + '].onclick('
			+ this.n_id + ');" onmouseout="aus(was=0,wasm='+ o_root.n_id + ');A_MENUS[' + o_root.n_id + '].onmouseout('
			+ this.n_id + ');" onmouseover="flash_a_kill();an(was=0,wasm='+ o_root.n_id + ');A_MENUS[' + o_root.n_id + '].onmouseover('
			+ this.n_id + ');" onmousedown="A_MENUS[' + o_root.n_id + '].onmousedown('
			+ this.n_id + ');"><div id="e' + o_root.n_id + '_'
			+ this.n_id +'i" class="' + this.getstyle(1, 0) + '">'
			+ this.a_config[0] + "</div></a>\n"
		);
	
	this.e_ielement = document.getElementById('e' + o_root.n_id + '_' + this.n_id + 'i');
	this.e_oelement = document.getElementById('e' + o_root.n_id + '_' + this.n_id + 'o');

	this.b_visible = !this.n_depth;

	// no more initialization if leaf
	if (this.a_config.length < 4)
		return;

	// node specific methods and properties
	this.a_children = [];

	// init downline recursively
	for (var n_order = 0; n_order < this.a_config.length - 3; n_order++)
		new menu_item(this, n_order);
}

// --------------------------------------------------------------------------------
// reads property from template file, inherits from parent level if not found
// ------------------------------------------------------------------------------------------
function mitem_getprop (s_key) {

	// check if value is defined for current level
	var s_value = null,
		a_level = this.o_root.a_tpl[this.n_depth];

	// return value if explicitly defined
	if (a_level)
		s_value = a_level[s_key];

	// request recursively from parent levels if not defined
	return (s_value == null ? this.o_parent.getprop(s_key) : s_value);
}
// --------------------------------------------------------------------------------
// reads property from template file, inherits from parent level if not found
// ------------------------------------------------------------------------------------------
function mitem_getstyle (n_pos, n_state) {

	var a_css = this.getprop('css');
	var a_oclass = a_css[n_pos ? 'inner' : 'outer'];

	// same class for all states	
	if (typeof(a_oclass) == 'string')
		return a_oclass;

	// inherit class from previous state if not explicitly defined
	for (var n_currst = n_state; n_currst >= 0; n_currst--)
		if (a_oclass[n_currst])
			return a_oclass[n_currst];
}

// ------------------------------------------------------------------------------------------
// updates status bar message of the browser
// ------------------------------------------------------------------------------------------
function mitem_upstatus (b_clear) {
	window.setTimeout("window.status='...';", 10);
}

// --------------------------------------------------------------------------------
// that's all folks

<!-- Browser -->

var nsp4=document.layers
var nsp6=document.getElementById&&!document.all
var iep4=document.all

<!-- Flashload Menu -->

function flashloadsound()
{
flascon="<object classid='clsid:d27cdb6e-ae6d-11cf-96b8-444553540000' codebase='http://fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,0,0' width='134' height='68' id='player' align='middle'><param name='allowScriptAccess' value='sameDomain' /><param name='movie' value='flash/player.swf' /><param name='menu' value='false' /><param name='quality' value='best' /><param name='wmode' value='transparent' /><param name='bgcolor' value='#000097' /><embed src='flash/player.swf' menu='false' quality='best' wmode='transparent' bgcolor='#000097' width='134' height='68' name='player' align='middle' allowScriptAccess='sameDomain' type='application/x-shockwave-flash' pluginspage='http://www.macromedia.com/go/getflashplayer' /></object>";

if(nsp4){document.flashplayer.document.write(flascon);document.flashplayer.document.close();}
if(nsp6){document.getElementById("flashplayer").innerHTML=flascon;}
if(iep4){document.all.flashplayer.innerHTML=flascon;}
}