var isNav = false;
var isIE = false;

var pos=0;
var direction= true;

function init() {
	// Mindestens Version 4.0
	if (parseInt(navigator.appVersion) >= 4) {
	
		// Browser bestimmen
		if (navigator.appName.indexOf("Netscape") != -1) {
			isNav = true;
		} 
		if (navigator.appName.indexOf("Microsoft") != -1) {
			isIE = true;
		}
	}
	
	if (isNav || isIE) move();
}  

function move() {

  if (isNav) {
    pos=window.pageYOffset;
    	
	if (pos > document.layers["logo"].top) {
	   if (pos < 275 ) {
	      pos=275;	
	   }		
	}
    document.layers["menu"].top= pos;
  } else if (isIE) {
    	pos=document.body.scrollTop;
	if (pos < 275 ) {
	      pos=275;	
	}		
    document.all["menu"].style.pixelTop= pos;
  }

  // setTimeout seems to work a little bit smoother here 
  // than the new setInterval() method - but the
  // stop-button will flicker
  setTimeout("move()", 10);

}

