/************************************************************************************************  
  Browserabfrage:
************************************************************************************************/
/*   function Browsercheck(){
	this.ver=navigator.appVersion 								 
	this.dom=document.getElementById?1:0						
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom)?1:0;   
	this.ie4=(document.all && !this.dom)?1:0;					
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0;		
	this.ns4=(document.layers && !this.dom)?1:0;				
	this.ok=(this.ie5 || this.ie4 || this.ns4 || this.ns6)		
	if(this.ie6) this.ie5 = 1;
	return this
  }
  Browser = new Browsercheck();*/
  
  function browserobj() {
	this.ns4=document.layers&&!document.getElementById;
	this.ns6=document.getElementById&&!document.all;
	this.ie4=document.all;
	this.opr=navigator.userAgent.indexOf("Opera")+1;
	
	this.ms = document.all;
	this.ns = document.layers;
	this.dom = document.getElementById;
	}
	browserobj.prototype.innerWidth = function () {
		if(this.ns || this.opr) return window.innerWidth;
		else return document.body.offsetWidth;
	}
	
	var Browser = new browserobj();
  
/************************************************************************************************  
  Initialisierung:
************************************************************************************************/
function init(){
  onLoad =  preloadImages(Wechselbilder);
  machAnsprache(6);
  initNav();
  initflag = true;
  
}
function initHome(){
  onLoad =  preloadImages(Wechselbilder);
}

/************************************************************************************************  
  MouseOver
************************************************************************************************/

 function preloadImages() {
	  if(document.images) {
		  document.imgpreload = new Array();
		  var array = preloadImages.arguments
		  for(i=0; i<array.length; i++) {
			  document.imgpreload[i] = new Image;
			  document.imgpreload[i].src = array[i];
		  }
	  }
  }
  
  function swapImage(doc, imgName, imgUrl, imgText) {
	  if(imgText!="") { window.status = imgText; }
  	if(doc.images) {
	    doc.images [imgName].srcORG = doc.images [imgName].src;
		doc.images [imgName].src = imgUrl;
	  }
  }
  function swapImageRestore(doc, imgName) {
	  window.status = '';
	  if(doc.images) {
		  doc.images [imgName].src = doc.images [imgName].srcORG;
	  }
  }

  
/************************************************************************************************  
  :
************************************************************************************************/