 //**************************************************
 //
 //   AEON Verlag & Studio
 //   Abt. Internet Solutions
 //   Hanau, Germany
 //   Copyright  18.08.02
 //   Autoren: Reinhold Gleisinger
 //
 //**************************************************

  var anzeige = null;
  var win = null;
  var mwin = null;
  var mwin2 = null;
  var movwin = null;
  var NavTyp = navigator.appName.substring(0,3);   
  var NavVer = navigator.appVersion.substring(0,1);
  var WinLayout = "width=350,height=450,scrollbars=1,toolbar=0,resizable=0";



 //*************************************************
 //  function DreiFrames(URL1,F1,URL2,F2, URL3,F3)
 //*************************************************

  function DreiFrames(URL1,F1,URL2,F2, URL3,F3) {  
      parent.frames[F1].location.href=URL1;
      parent.frames[F2].location.href=URL2;
      parent.frames[F3].location.href=URL3;
  }


 //**************************
 //  function display(page)
 //**************************

  function display(page) {
       if ((anzeige) && (!anzeige.closed))
          anzeige.close();
     if (window.focus) {
       anzeige = window.open(page,'down',WinLayout);
       if ((NavTyp == "Mic") && (NavVer < 5))
         setTimeout( "anzeige.focus()", 200 );
       else
         anzeige.focus();
     }
     else {
       anzeige = window.open(page,'down',WinLayout);
     }
  }


 //*******************************************************
 //  function dispdyn(page, widt, heig, scro, tool, resi)
 //*******************************************************

  function dispdyn(page,widt,heig,scro,tool,resi) {

  var WinLay = "width="+widt+",height="+heig+",scrollbars="+scro+",toolbar="+tool+",resizable="+resi+"";

       if ((mwin) && (!mwin.closed))
          mwin.close();
     if (window.focus) {
       mwin = window.open(page,'eye',WinLay);
       if ((NavTyp == "Mic") && (NavVer < 5))
         setTimeout( "mwin.focus()", 200 );
       else
         mwin.focus();
     }
     else {
       mwin = window.open(page,'eye',WinLay);
     }
  }


 //*******************************************************
 //  function dispdyn2(page, widt, heig, scro, tool, resi)
 //*******************************************************

  function dispdyn2(page,widt,heig,scro,tool,resi) {

  var WinLay = "width="+widt+",height="+heig+",scrollbars="+scro+",toolbar="+tool+",resizable="+resi+"";

       if ((mwin2) && (!mwin2.closed))
          mwin2.close();
     if (window.focus) {
       mwin2 = window.open(page,'eye2',WinLay);
       if ((NavTyp == "Mic") && (NavVer < 5))
         setTimeout( "mwin2.focus()", 200 );
       else
         mwin2.focus();
     }
     else {
       mwin2 = window.open(page,'eye2',WinLay);
     }
  }




 //*******************************************************
 //  function dispmov(page, widt, heig, scro, tool, resi)
 //*******************************************************

  function dispmov(page,widt,heig,scro,tool,resi) {

  var WinLay = "width="+widt+",height="+heig+",scrollbars="+scro+",toolbar="+tool+",resizable="+resi+"";

       if ((movwin) && (!movwin.closed))
          movwin.close();
     if (window.focus) {
       movwin = window.open(page,'movie',WinLay);
       if ((NavTyp == "Mic") && (NavVer < 5))
         setTimeout( "movwin.focus()", 200 );
       else
         movwin.focus();
     }
     else {
       movwin = window.open(page,'movie',WinLay);
     }
  }


 //******************************************
 //  function ViewImage(ifile,ix,iy,ititle)
 //******************************************

  function ViewImage(ifile,ix,iy,ititle) { 
  var sWidth;
  var sHeight;
  var NS = (document.layers) ? 1 : 0;

    if ((win) && (!win.closed)) {
	if (NavTyp == "Net") {
	  sWidth = win.innerWidth;
	  sHeight = win.innerHeight;
	} else {
  	  sWidth = win.document.body.clientWidth;
	  sHeight = win.document.body.clientHeight;
	}
	if(sWidth!=ix || sHeight!=iy) {
	  win.close();
	}
  }

  win = window.open("","imageviewer","width="+ix+",height="+iy+",menubar=no,toolbar=no");
  if (!win) return;

  win.document.open();
  win.document.write("<html><head><title>"+ititle+"</title>");
  win.document.write("</head><body>");
  win.document.write('<div style="position:absolute;width:'+ix+'px;height:'+iy+'px;left:0px;top:0px">');
  win.document.write("<img src="+ifile+"></div></body></html>");
  win.document.close();

  if (window.focus) {
     win.focus()
  }
}


 //**************************
 //  function nop()
 //**************************

  function nop() {}


 //**************************
 //  function ende()
 //**************************

  function ende() {
     if ((NavTyp == "Mic") && (NavVer < 4))
       nop();
     else {
       if ((anzeige) && (!anzeige.closed))
          anzeige.close();
       if ((win) && (!win.closed))
          win.close();
       if ((mwin) && (!mwin.closed))
          mwin.close();
       if ((mwin2) && (!mwin2.closed))
          mwin2.close();
       if ((movwin) && (!movwin.closed))
          movwin.close();
     }
  }

