function onoff (img, rel) {
if (!rel && rel!="") {
  rel="../images/"; 
} else {
  rel="images/"; 
}
  if (document.getElementById) {
   if( document.getElementById(img+"cnt").style.display == "none" ) {
     document.getElementById(img+"cnt").style.display = "block";
     document.getElementById(img).src= rel + "minus.jpg";
   } else {
     document.getElementById(img+"cnt").style.display = "none";
     document.getElementById(img).src= rel + "plus.jpg";
   }
  }
}  
  function email(adr, domain) {
    if(!domain) domain="showit.de";
    window.location.href= "mailto:" + adr + "@" + domain;
  }

  function ZweiFrames(URI1,URI2) {
 parent.oben.location.href = URI1;
 parent.content.location.href = URI2;
  }

  var bu_akt="Na1";

  function pic_onf(pic, fn)
    {
    if(bu_akt != pic)
      {pic.src="images/" + fn+".gif";}
    }

  function set_onf(me_ak)
  {
    if(bu_akt != me_ak){
      bu_akt.src="images/passiv.gif";}
    bu_akt=me_ak;
    bu_akt.src="images/aktiv.gif";
  }

  function reset_onf()
  {
    bu_akt.src="images/passiv.gif";
    bu_akt= "X";
  }

  function isfnobj() {
 if ((typeof(window.location.replace)=="function")||
            (typeof(window.location.replace)=="object"))
   return 1;
        else
          return 0;
  }

  // Für Body onload= "settop('sub_system.htm');"
  function settop(uri) {

   if ( !parent || !parent.oben ) {

     url= "index.html?top=" + uri + "&url=" + document.URL;

     if ( isfnobj() )
       window.location.replace(url);
     else
       window.location.href= url;

 }
   else {
     if ( isfnobj() )
            parent.oben.location.replace(uri);
          else
            parent.oben.location.href= uri;
 }
  }

var aWnd= null;
var aImg= null;
var aUrl= "";

function DoPopup() {

  if (!aImg.complete || aImg.width < 50 ) {
    window.status+= ".";
    window.setTimeout("DoPopup();", 100);
  }
  else {
    window.status= "";
    W= aImg.width + 10;
    H= aImg.height+ 10;
    X= (screen.width  - W)/2; if(X<0) X= 0;
    Y= (screen.height - H)/2; if(Y<0) Y= 0;
    S= 'left='+X+',top='+Y+',width='+W+',height='+H+',scrollbar=no,resizable=no,menubar=no';

    if(aWnd) aWnd.close();

    aWnd= window.open(aUrl,'Popup',S);

    // Quellcode für Fenster erzeugen
    aWnd.document.open("text/html");
    aWnd.document.writeln("<!doctype html public '-//W3C//DTD HTML 4.01 Transitional//EN'> ");
    aWnd.document.writeln("<html> ");
    aWnd.document.writeln("  <head> ");
    aWnd.document.writeln("    <title> Großes Bild </title> ");
    aWnd.document.writeln("    <meta http-equiv='content-type' content='text/html;charset=ISO-8859-1'> ");
    aWnd.document.writeln("  </head> ");
    aWnd.document.writeln("  ");
    aWnd.document.writeln("  <body leftmargin='0' topmargin='5' marginwidth='0' marginheight='5' bgcolor='#C0C0C0' background='images/bg.gif'> ");
    aWnd.document.writeln("    <div align='center'><a href='javascript:close()'> ");
    aWnd.document.writeln("      <img src='" +aUrl+ "' alt='Fenster schließen!' title='Fenster schließen!' border=0 hspace=0 vspace=0 align='center'>" );
    aWnd.document.writeln("    </a></div> ");
    aWnd.document.writeln("  </body> ");
    aWnd.document.writeln("</html> ");
    aWnd.document.close();
    aWnd.focus();
  }
}


function ImgPopup(url) {
  aImg= new Image();
  aImg.src= url;
  aUrl= url;

  if (!aImg.complete || aImg.width < 50 ) {
    window.status= "Lade Bild " + url + "...";
    window.setTimeout("DoPopup();", 100);
  }
  else
    DoPopup(aImg);
}

