var browserName = navigator.appName; 
var browserVer = parseInt(navigator.appVersion);

function anim (bild, dateiname) {
	if ((browserName=="Microsoft Internet Explorer") || (browserVer>4)) {
		if (document.images) {
			if (bild_nr != bild) {
				document.images[bild].src = "images/buttons/" + dateiname + ".gif";
			}
		}
	}

	if (browserName=="Netscape" && browserVer<=4) {
		if (document.layers['layer1'].document.images)	{
			if (bild_nr != bild) {
				document.layers['layer1'].document.images[bild].src = "images/buttons/" + dateiname + ".gif";
			}
		}
	}
}

function aktiv (bild, aktives_bild) {
	if ((browserName=="Microsoft Internet Explorer") || (browserVer>4)) {
		if (bild_nr != bild) {
			document.images[bild].src = "images/buttons/" + aktives_bild + ".gif";
			for (var i = 1; i < anzahl; i++) {
				if (i != bild) {
					document.images[i].src = "images/buttons/nav_" + (i-2) + ".gif";
				}
			}
			bild_nr = bild;
		}
	}

	if (browserName=="Netscape" && browserVer<=4) {
		if (bild_nr != bild) {
			document.layers['layer0'].document.images[bild].src = "images/buttons/" + aktives_bild + ".gif";
			for (var i = 1; i < (anzahl); i++) {
				if (i != bild) {
					document.layers['layer0'].document.images[i].src = "images/buttons/nav_" + (i-1) + ".gif";
				}
			}
			bild_nr = bild;
		}
	}
}

function openwindow(URL,winname,features) {
	newWindow = window.open(URL,winname,features)
	if (!newWindow.opener) {
		newWindow.opener = window
		}
	newWindow.focus()
}

function framechange(url1, url2) {
	parent.frames['nav_2'].location.href=url1
	parent.frames['content'].location.href=url2;
	}
	
function init()
{
	DynLayerInit()
	myscroll = new MiniScroll(scrollWindow,scrollContent)
}

