

	
function setClass(ids,cl) {
	if(document.getElementById) {
		var id = ids.split(':');
		for (var i=0; i < id.length; ++i) {
			document.getElementById(id[i]).className=cl;
		}
	}
}


function newWin(which, breite, hoehe){
 var NewWindow =0;
  NewWindow = window.open(which,"new",'width='+breite+',height='+hoehe+',toolbar=0,menubar=0,directories=0,statusbar=0,location=0,resizable=no,scrollbars=yes'); 
   if (NewWindow){
    NewWindow.moveTo(screen.width/2-(breite/2),screen.height/2-(hoehe/2));
    NewWindow.focus();
  }
}



/************************************************************************************************  
  Browserabfrage:
************************************************************************************************/
  function lib_bwcheck(){ //Browsercheck (needed)
	this.ver=navigator.appVersion
	this.agent=navigator.userAgent
	this.dom=document.getElementById?1:0
	this.opera5=this.agent.indexOf("Opera 5")>-1
	this.ie4=(document.all && !this.dom && !this.opera5)?1:0;
	this.ie5=(this.ver.indexOf("MSIE 5")>-1 && this.dom && !this.opera5)?1:0;
	this.ie6=(this.ver.indexOf("MSIE 6")>-1 && this.dom && !this.opera5)?1:0;
	this.ie=this.ie4||this.ie5||this.ie6
	this.mac=this.agent.indexOf("Mac")>-1
	this.ns6=(this.dom && parseInt(this.ver) >= 5) ?1:0; 
	this.ns4=(document.layers && !this.dom)?1:0;
	this.bw=(this.ie6 || this.ie5 || this.ie4 || this.ns4 || this.ns6 || this.opera5)
	return this
}
var bw=new lib_bwcheck();


/************************************************************************************************  
  Bildcounter
************************************************************************************************/
function changeBild(direction) {

   number = number + direction;
   
   //alert(text);

  if(number < 0) number = BildAnzahl-1;
  else if(number > BildAnzahl-1 ) number = 0;
text = inhalt[number];
  BildFolge.src = Bilder[number];
  document.Wechsel.src = BildFolge.src;
  //alert(number);
  
  writeDiv('changeText',null,text);
}	   


/************************************************************************************************
  Textinhalte wechseln:
************************************************************************************************/
function writeDiv(id,outdiv,text) {
    //lib_bwcheck();
	if (bw.ns4) {
	//alert('NS');
	document.layers[id].document.open()
    document.layers[id].document.write(text)
	document.layers[id].document.close()
	}
	if (bw.ie4 || bw.ie5||bw.ie6) document.all[id].innerHTML = text;
	if (bw.ns6) document.getElementById(id).innerHTML = text;
}

// Aufruf:   writeDiv("mylayer",null,"neuer Text")


function MM_FlashInfo()
{
    if (navigator.plugins && navigator.plugins.length > 0)
    {
	this.implementation = "Plug-in";
	this.autoInstallable = false;	// until Netscape SmartUpdate supported

	// Check whether the plug-in is installed:

	if (navigator.plugins["Shockwave Flash"])
	{
	    this.installed = true;

	    // Get the plug-in version and revision:

	    var words =
		navigator.plugins["Shockwave Flash"].description.split(" ");

	    for (var i = 0; i < words.length; ++i)
	    {
		if (isNaN(parseInt(words[i])))
		continue;

		this.version = words[i];

		this.revision = parseInt(words[i + 1].substring(1));
	    }
	}
	else
	{
	    this.installed = false;
	}
    }
    else if (MM_FlashControlInstalled != null)
    {
	this.implementation = "ActiveX control";
	this.installed = MM_FlashControlInstalled;
	this.version = MM_FlashControlVersion;
	this.autoInstallable = true;
    }
    else if (MM_FlashDetectedSelf())
    {
	this.installed = true;
	this.implementation = "Plug-in";
	this.autoInstallable = false;
    }

    this.canPlay = MM_FlashCanPlay;
}

