 
 var browser;
 function init(){
  	if (document.layers) { browser='ns4'; /*alert ("NS 4"); */}
  	if (document.all && !document.getElementById) { browser='ie4';  /*alert ("IE 4");*/}
  	if (document.getElementById) { browser='ns6';  /*alert ("IE 5, NS 6 oder Opera");*/ }
  }


// Bilderwechsel bei Mouseover
function change(bildId,bildcache,nr) {
	document.images[bildId].src=menueklee[nr].src; // Wie kann ich ein Bild per Id ansprechen ???
	return true;									// Wie kann den Bildcache über die Nr ansprechen ???
}

//IO Onclick-Rahmen unterdrücken
function keinRahmen(bildId){
	if(browser=='ie4' && browser=='ns6') bildId.blur();
}

// Diashow per Bild-Sourcewechsel
var picNr = 0;
function nextPic(bild) {
   	picNr += 1;
	if (picNr == komp.length) picNr = 0;		
	document.images[bild].src = komp[picNr].src;
	document.images[bild].width = komp[picNr].width;
	document.images[bild].height = komp[picNr].height;
}
function previousPic(bild){
	if (picNr == 0) picNr = komp.length;
	picNr -= 1;
	document.images[bild].src = komp[picNr].src;
	document.images[bild].width = komp[picNr].width;
	document.images[bild].height = komp[picNr].height;
}


 // Photo öffnen
 function newWindow(URL,name,breite,hoehe)
 {
	var pic;
	var xposition = (window.screen.width/2) -  (breite/2+5);
	var yposition = (window.screen.height/2) - (hoehe/2+5);
	pic = window.open(URL, name, "height="+hoehe+",width="+breite+",resizable=no,scrollbars=no,left="+xposition+",top=" +yposition);
	pic.focus();
 }
 
  // Photo öffnen
 function antwortMail(URL)
 {
	 var Ziel = URL;
	 window.location.href = Ziel;
 }

