
/* div einblender */

function toggleMe(a){
  var e=document.getElementById(a);
  if(!e)return true;
  if(e.style.display=="none"){
    e.style.display="block"
  } else {
    e.style.display="none"
  }
  return true;
}




/* farbwechsler */

function farbWechsel(typ,farbe)
{
	typ.style.backgroundColor=farbe;
}




/* ie flash fix */

flashfix = function() {
theObjects = document.getElementsByTagName("object");
for (var i = 0; i < theObjects.length; i++) {
theObjects[i].outerHTML = theObjects[i].outerHTML;
}
}

if (window.attachEvent)
window.attachEvent("onload", flashfix)
else
window.onload=flashfix;




/* bild öffner */ 

function BildFenster01(bildurl,b,h,bildtitel)
{
var eigenschaften,sbreite,shoehe,fenster,b,h;

// wenn eine feste Position für die Anzeige gewünscht wird
// dann für die Variable 'FestePosition' ein "ja" eintragen
// und die X- / Y-Werte (linke obere Ecke) hier eintragen

var FestePosition = "ja";  // "ja" oder "nein" eintragen
VonLinks = 20;
VonOben = 20;

if(FestePosition == "ja") {
x = VonLinks;
y = VonOben;
} else {

// stellt die Bildschirmabmessungen fest
var ns6 = (!document.all && document.getElementById);
var ie4 = (document.all);
var ns4 = (document.layers);

if(ns6||ns4) {
sbreite = innerWidth;
shoehe = innerHeight;
}
else if(ie4) {
sbreite = document.body.clientWidth;
shoehe = document.body.clientHeight;
//shoehe = document.documentElement.clientHeight;
}

x = parseInt((sbreite-b)/2);
y = parseInt((shoehe-h)/2);

}

eigenschaften="left="+x+",top="+y+",screenX="+x+",screenY="+y+",width="+b+",height="+h+",menubar=no,toolbar=no,location=no,status=no,scrollbars=no";

fenster=window.open("","",eigenschaften);
fenster.focus();
fenster.document.open();
with (fenster) {
  document.write('<html><head>');
  // geändert für Mozilla
  document.write('<scr' + 'ipt type="text/javascr' + 'ipt" language="JavaScr' + 'ipt">');
  document.write("function click() { window.close(); } ");  // bei click  schliessen
  document.write("document.onmousedown=click ");
  // geändert für Mozilla
  document.write('</scr' + 'ipt>');
  document.write('<title>'+ bildtitel +'</title></head>');
  // Zeile geändert 2003
  document.write('<' + 'body onblur="window.close();" ');// bei Focusverlust schliessen
  document.write('marginwidth="0" marginheight="0" leftmargin="0" topmargin="0">');
  document.write('<img src="'+ bildurl +'"border="0">');
 
  fenster.document.close();
}
}



/* bild wechsler */

browser = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )) || ((navigator.appName == "Microsoft Internet Explorer") && (parseInt(navigator.appVersion) >= 4 )))
if ( browser) {
image = new makeArray(20);
image_pressed = new makeArray(20);

image[1].src = "images/b_gruppe1.jpg";
image_pressed[1].src = "images/b_gruppe2.jpg";

}
function makeArray(n) { this.length = n; for (var i=1; i<=n; i++) { this[i] = new Image(); } return this; }
function mouseOver(num) { if ( browser) document.images['img' + num].src = image_pressed[num].src; return true; }
function mouseOut(num) { if ( browser) document.images['img' + num].src = image[num].src; return true; }

function getSelect(s) {
return s.options[s.selectedIndex].value }






/* openpic old style */

function OpenNewWindow(Picture,Breit,Hoch)
{
xsize = Breit+30;
ysize = Hoch+60;
    
ScreenWidth = screen.width;
ScreenHeight = screen.height;

xpos = (ScreenWidth/3)-(xsize/3);
ypos = (ScreenHeight/3)-(ysize/3);
	
NewWindow=window.open("","Picture","height="+ysize+",width="+xsize+",scrollbars=no,resizable=no,top="+ypos+",left="+xpos+"");
NewWindow.document.write ("<html><head><title> Titel ");
NewWindow.document.write ("</title><link rel='stylesheet' type='text/css' href='choice.css'></head>");
NewWindow.document.write ("<body bgcolor='#C3C8CD' topmargin='0' leftmargin='0' marginheight='0' marginwidth='0' bodymargin='0'>");
NewWindow.document.write ("<table align='center'><tr>");
NewWindow.document.write ("<td colspan='2' align='center' valign='top'>");
NewWindow.document.write ("<table border='0' cellpadding='0' cellspacing='0'><tr><td align='center'>");
NewWindow.document.write ("&nbsp;<br><img src=");
NewWindow.document.write (Picture);
NewWindow.document.write (" class='borderpop'>");
NewWindow.document.write ("</tr></td></table>");
NewWindow.document.write ("</td></tr><tr>");
NewWindow.document.write ("<td><a href='javascript:window.print()' class='popup'>print</a></td>");
NewWindow.document.write ("<td align='right'><a href='javascript:top.window.close()' class='popup'>close</a></td>");
NewWindow.document.write ("</tr></table>");
NewWindow.document.write ("</body></html>");
NewWindow.document.close();
}

