<!-- 
//*****************************************************
// navigation 
//*****************************************************
var navlaynr = 0;
var navlayer;

//  Browserkennung ~~~~~~~~~~~~~~~~~~~~~~~~~~
var isNav = false;
var isIE = false;
if (parseInt(navigator.appVersion) >= 4) {
	if (navigator.appName == "Netscape") {
		isNav = true;
	}
	else {
		isIE = true;
	}
}

// height of each submenu
navhoehe = new Array();
navhoehe[1] = 55;  // firmenprofil
navhoehe[2] = 140; // hosting
navhoehe[3] = 55;  // design
navhoehe[4] = 55;  // e-commerce
navhoehe[5] = 120;  // support
navhoehe[6] = 90;  // kontakt

// event (mouse move) capturing
function unternav() {
	if (isNav) {
		eventNSfangen()
	}
	document.onmousemove = navkontrolle
}

// Netscape event capture
function eventNSfangen() {
	if (isNav) {
		document.captureEvents(Event.MOUSEMOVE)
	}
}

// Netscape event capture aufheben
function eventNSfrei() {
	if (isNav) {
		document.releaseEvents(Event.MOUSEMOVE);
	}
}

// contol mouse move
function navkontrolle(evt) {
    if ( (isNav) && ( (evt.pageY < navlayer.top - 30) || (evt.pageY > (navlayer.top + navhoehe[navlaynr])) || (evt.pageX < (navlayer.left)) || (evt.pageX > (navlayer.left + 101)) )){
	    Low1(navlaynr);
            eventNSfrei();
	}
	if ((isIE) && ((window.event.clientY < navlayer.offsetTop - 30) || (window.event.clientY > (navlayer.offsetTop + navhoehe[navlaynr])) || (window.event.clientX < navlayer.offsetLeft) || (window.event.clientX > (navlayer.offsetLeft + 101)))){
		Low1(navlaynr);
	}
}


//~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

function lowlay(x,y){
   navlayer.document.images["image" + x].src = norm[y].src;
}

function hilay(x,y){
   navlayer.document.images["image" + x].src = high[y].src;
}

// Resize Bug von Navigator handeln
if (isNav == true) {
	fensterweite = innerWidth;
	fensterhoehe = innerHeight;
	}
if (isNav == true) {
	self.onresize = neuladen;
}
function neuladen(){
	if (innerWidth != fensterweite || innerHeight != fensterhoehe){
		location.reload(true);
	}
}                           

// Layers
function Low1(x){
    layeropen = 0;
    imagenr = x;
	//document.images["image" + imagenr].src = norm[x].src;
	low(imagenr,x);
	if (isNav) {
		if ( parseFloat(navigator.appVersion) >= 5 ) {
			document.getElementById("nav" + x).style.visibility = 'hidden';
		} else {
			document.layers["nav" + x].visibility = 'hidden';
		}
	}
	if (isIE) {
		document.all["nav" + x].style.visibility = 'hidden';
	}
}

// y-position of layer navigation 
if (bereich == 10) {
   navtop = 129;
} else {
   navtop = 67;  //this is importend!!
}

function Hi1(x){
	navlaynr = x;
	navdown();
	layeropen = x;
	imagenr = x;
	hi(imagenr,x);
	// Standardwert
	dis_left = 179;
	// Tabellenbreite
	tableWidth = 780;
		
	if (isNav) {
		if (innerWidth > tableWidth){ // -10 is center error of Netscape
			dis_left += Math.round((innerWidth - tableWidth)/2) - 10; // repos leftedge of navbar
		}
	    if ( parseFloat(navigator.appVersion) >= 5 ) {
		    navlayer = document.getElementById("nav" + x).style;
	    } else {
		    navlayer = document.layers["nav" + x];
	    }
	    navlayer.top = navtop;

	    if ( parseFloat(navigator.appVersion) == 4.61 ) {
		   dis_left = dis_left-1;
	    }  
		navlayer.left = (x-1)*100 + dis_left;
		navlayer.visibility = 'visible';
		unternav();
	}
	
	if (isIE) {
		if (document.body.clientWidth > tableWidth){ // -1 is center error of IE
			dis_left += Math.round((document.body.clientWidth - tableWidth)/2) - 2; // repos leftedge of navbar
		}
	    navlayer = document.all["nav" + x];
	    navlayer.style.top = navtop;
		navlayer.style.left = (x-1)*100 + dis_left;
		navlayer.style.visibility = 'visible';
		unternav();
	}
}

function navdown(){
    navd = 1;
	for(i=1; i<7; i++){
		if (i != bereich) {
			Low1(i);
		}
	}
	navd = 0;
}

