
// System- & Browserabfrage
var is = new Object();
{
	is.ver = navigator.appVersion.substring(0,1);

	if (navigator.appName == "Netscape")
	{
		is.ns = true;
		eval("is.ns" + is.ver + " = true;")
		if (is.ver >= 3 && is.ver <= 4)
			is.ng3 = true;
		if (is.ver > 4)
			is.ng5 = true;
	}
	else if (navigator.appName.indexOf("Microsoft") >= 0)
	{
		is.ie = true;
		eval("is.ie" + is.ver + " = true;")
		if (is.ver >= 3)
			is.ig3 = true;
	}
	else
		is.bu = true;

	if (navigator.appVersion.indexOf("Win") > 0)
		is.win = true;
	else if (navigator.appVersion.indexOf("Mac") > 0)
		is.mac = true;
	else if (navigator.appVersion.indexOf("X11") > 0)
		is.x11 = true;
	else
		is.osu = true;
}

function neuAufbau()
{
	window.history.go(0);
}

// Überwachung von Netscape 4x initialisieren
if(is.ng3)
{
	window.onresize = neuAufbau;
}





// Navi-Highlight-Bilder vorladen
if (document.images)
{
  var stuff = new imgs
  (
	NG_IMGURL+"/i/sg_menu_fnf.png",
	NG_IMGURL+"/i/sg_menu_gfx.png",
	NG_IMGURL+"/i/sg_menu_kon.png",
	NG_IMGURL+"/i/sg_menu_off.png",
	NG_IMGURL+"/i/sg_menu_portfolio.png",
	NG_IMGURL+"/i/sg_menu_web.png"
  )
}

// Preloads images ;-)
function imgs()
{
	this.length = imgs.arguments.length;
	for (var i = 0; i < this.length; i++)
  	{
		this[i+1] = new Image();
		this[i+1].src = imgs.arguments[i];
    }
}

// BildTausch / Button-Highlights
function SwapImage()
{
	args_images_SI = SwapImage.arguments;
	
	if (is.ng3 && args_images_SI[2])
		document.layers[args_images_SI[2]].document[args_images_SI[1]].src = args_images_SI[0];
	else
		document[args_images_SI[1]].src = args_images_SI[0];
}




// CusorTausch
function SwapCursor(obj,style)
{
	if (!is.ng3){
		document[obj].style.cursor = style;
	}
}

