
nMaxItem = 20;
NameIndex = 0;
DefaultState = 1;

MouseOverState = 2;
MouseDownState = 3;
imgCounter = 0;

ImageList = new Array();

bIsSupportOK = (
	((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) ||
	((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
);

function AddImageToImageList(name, Default, MouseOver, MouseDown)
{
	ImageList[imgCounter] = new Array(nMaxItem);
	ImageList[imgCounter][NameIndex] = name;
	ImageList[imgCounter][DefaultState] = new Image();
	ImageList[imgCounter][DefaultState].src = Default;
	if (MouseOver != "") {
		ImageList[imgCounter][MouseOverState] = new Image();
		ImageList[imgCounter][MouseOverState].src = MouseOver;
	}
	if (MouseDown != "") {
		ImageList[imgCounter][MouseDownState] = new Image();
		ImageList[imgCounter][MouseDownState].src = MouseDown;
	}

	imgCounter++;
}

function ReplaceImage(name, state)
{
	for (i = 0; i < imgCounter; i++) {
		if (document.images[ImageList[i][NameIndex]] != null) {
			if ((name == ImageList[i][NameIndex]) && (ImageList[i][state] != null))
				document.images[name].src = ImageList[i][state].src;
		}
	}
}

AddImageToImageList("btn_welcome", "images/navRow3xCol1.gif", "images/navRow3xCol2.gif", "");
AddImageToImageList("btn_wissen", "images/navRow4xCol1.gif", "images/navRow4xCol2.gif", "");
AddImageToImageList("btn_change", "images/navRow5xCol1.gif", "images/navRow5xCol2.gif", "");
AddImageToImageList("btn_managen", "images/navRow6xCol1.gif", "images/navRow6xCol2.gif", "");
AddImageToImageList("btn_komplex", "images/navRow7xCol1.gif", "images/navRow7xCol2.gif", "");
AddImageToImageList("btn_publikation", "images/navRow8xCol1.gif", "images/navRow8xCol2.gif", "");
AddImageToImageList("btn_christof", "images/navRow9xCol1.gif", "images/navRow9xCol2.gif", "");
AddImageToImageList("btn_netzwerk", "images/navRow10xCol1.gif", "images/navRow10xCol2.gif", "");
AddImageToImageList("btn_links", "images/navRow11xCol1.gif", "images/navRow11xCol2.gif", "");
AddImageToImageList("btn_kontakt", "images/navRow13xCol1.gif", "images/navRow13xCol2.gif", "");
AddImageToImageList("btn_feedback", "images/navRow14xCol1.gif", "images/navRow14xCol2.gif", "");


function setbanner(banner_name)
{document.images["banner_img"].src=banner_name;
	}

function MakeWin(www){if (loaded){if (extrawin){ if (win.closed){NewWin(www)}else{ win.location.href=www;win.focus()} }else{NewWin(www)}}} 
function NewWin(www){win=window.open(www,"detail","resizable=yes,status=no,location=no,toolbar=no,scrollbars=yes,width=650,height=480");extrawin=true;
win.focus()}

loaded=true;
extrawin=false;

