function BrowserCheck() {
var a =navigator.userAgent.toLowerCase();           
        var b = navigator.appName
        if (b=="Netscape") this.b = "ns"
        else if (b=="Microsoft Internet Explorer") this.b = "ie"
        else this.b = b
        this.version = navigator.appVersion
        this.v = parseInt(this.version)
        this.ns4 = (this.b=="ns" && this.v==4)
        this.ns5 = (this.b=="ns" && this.v>=5)
        this.ie = (this.b=="ie" && this.v>=4)
        this.ie4 = (this.version.indexOf('MSIE 4')>0)
        this.ie5 = (this.version.indexOf('MSIE 5')>0)
        this.min = (this.ns5||this.ie)
}
is = new BrowserCheck();


var FRhover =
(((navigator.appName == "Netscape")&&(parseInt(navigator.appVersion)>= 3 )) || ((navigator.appName == "Microsoft Internet Explorer")&&(parseInt(navigator.appVersion)>= 4 )));

function FRpreload(img)
{
 var a=new Image();a.src=img; return a;
 };

if(FRhover) {	
	FRbutton_homen=FRpreload('/images/navi/button_home.gif');
	FRbutton_homeh=FRpreload('/images/navi/button_home_u.gif');
	FRbutton_profiln=FRpreload('/images/navi/button_profil.gif');
	FRbutton_profilh=FRpreload('/images/navi/button_profil_u.gif');
	FRbutton_produkten=FRpreload('/images/navi/button_produkte.gif');
	FRbutton_produkteh=FRpreload('/images/navi/button_produkte_u.gif');
	FRbutton_produkten=FRpreload('/images/navi/button_produkte.gif');
	FRbutton_produkteh=FRpreload('/images/navi/button_produkte_u.gif');
	FRbutton_referenzenn=FRpreload('/images/navi/button_referenzen.gif');
	FRbutton_referenzenh=FRpreload('/images/navi/button_referenzen_u.gif');
	FRbutton_kontaktn=FRpreload('/images/navi/button_kontakt.gif');
	FRbutton_kontakth=FRpreload('/images/navi/button_kontakt_u.gif');
}

function NeueFarbe(Nr,tf)
{
//var TDID, COLtrue="#99CCFF", COLfalse="#6699CC";
var TDID, COLtrue="#FFFFFF", COLfalse="#CCCCFF";
TDID="box"+Nr;
AID ="a"+Nr;

if (document.all && !document.getElementById) // IE 4
{
	if (tf=="true")
	{
		document.all[TDID].style.backgroundColor=COLtrue;
		document.all[AID].style.backgroundColor=COLtrue;
	}
	else
	{
		document.all[TDID].style.backgroundColor=COLfalse;
		document.all[AID].style.backgroundColor=COLfalse;
	}
}

if (document.getElementById) // IE 5.x und NN 6
{
	if (tf=="true")
	{
		document.getElementById(TDID).style.backgroundColor=COLtrue;
		document.getElementById(AID).style.backgroundColor=COLtrue;
	}
	else
	{
		document.getElementById(TDID).style.backgroundColor=COLfalse;
		document.getElementById(AID).style.backgroundColor=COLfalse;
	}
}

if (document.layers) // NN 4.x
{
	if (tf=="true")
	{
		document.layers[TDID].bgColor=COLtrue;
		document.layers[AID].bgcolor=COLtrue;
	}
	else
	{
		document.layers[TDID].bgColor=COLfalse;
		document.layers[AID].color=COLfalse;
	}
}
}
