// JavaScript Document
// Written by Kai Alesik - Okt. 2003 
// (c) Kai Alesik - w w W . e b 4 a l l . d e 
// All Rights Reserved.
graphic1= new Image();
graphic1.src = "images/menu_r1_c8.jpg";
graphic1on = new Image();
graphic1on.src = "images/menu2_r1_c5.jpg";

graphic2= new Image();
graphic2.src = "images/menu_r1_c10.jpg";
graphic2on = new Image();
graphic2on.src = "images/menu2_r1_c7.jpg";

graphic3= new Image();
graphic3.src = "images/menu_r1_c7.jpg";
graphic3on = new Image();
graphic3on.src = "images/menu2_r1_c3.jpg";

graphic4= new Image();
graphic4.src = "images/menu_r1_c5.jpg";
graphic4on = new Image();
graphic4on.src = "images/menu2_r1_c1.jpg";

function imageChange(imageID,imageName) {
	document.images[imageID].src = eval(imageName + ".src");
}

function toggleVisibility(imageID, imageName, layerName, layerStat) {
	imageChange(imageID, imageName);
	toggleAllOff();
	if (document.all) document.all[layerName].style.visibility = layerStat;
	else 
	document.getElementById(layerName).style.visibility = layerStat;
}

function menuRaus(imageID, imageName) {
	imageChange(imageID, imageName);
	toggleAllOff();
}

function toggleAllOff() {
	var layerArray = new Array("mediamenu", "livemenu", "infomenu");
	for (x = 0; x < layerArray.length; x++) { 
		thisLayer = layerArray[x];
		if (document.all) document.all[thisLayer].style.visibility = "hidden";
		else document.getElementById(thisLayer).style.visibility = "hidden";
	} 
}

function neuesfenster(url,breite,hoch,scrollen) {
NEUFENSTER = window.open(url,"NEU","width="+breite+",height="+hoch+",scrollbars="+scrollen);
}