ie4 = ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 ))
ns4 = ((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 4 ))

geladen = false;


if (ns4)
{
    layerRef="document.layers";
    styleRef="";
    WidthRef=".clip.right";
    HeightRef=".clip.bottom";
}
if (ie4)
{
    layerRef="document.all";
    styleRef=".style";
    WidthRef=".posWidth";
    HeightRef=".posHeight";
}

function init()
{
	geladen = true;
	aktimg = "";
	oldimg = "";
}

if (document.images)
{
	img = true;
}
else
{
	img = false;
}

// Netscape Resize Fix
if (document.layers)
{
	widthCheck = window.innerWidth;
	heightCheck = window.innerHeight;
	window.onResize = resizeFix;
}
function resizeFix()
{
	if (widthCheck != window.innerWidth && heightCheck != window.innerHeight)
	document.location.href = document.location.href;
}

function mrollon(imgName)
{
	if (geladen)
	{
		if (ie4)
		{
			document[imgName].src = "./menue/" + imgName + "_on.gif";
		}
		else
		{
			eval('document.'+imgName+'.document[imgName].src = "./menue/'+imgName+'_on.gif"');
		}
	}
}

function mrolloff(imgName)
{
	if ((geladen) && (aktimg != imgName))
	{
		if (ie4)
		{
			document[imgName].src = "./menue/" + imgName + "_off.gif";
		}
		else
		{
			eval('document.'+imgName+'.document[imgName].src = "./menue/'+imgName+'_off.gif"');
		}
	}
}

function seton(imgName)
{
	if (geladen)
	{
		oldimg = aktimg;
		aktimg = imgName;
		mrollon(aktimg);
		if (oldimg)
		{
			mrolloff(oldimg);
		}
	}
}
