//  -------------------------------------------------------------------------------------------------
//  Basic-Scripts fuer den Hauptteil
//  Created by:     Matt Rehm
//  Creation date:  Donnerstag, 15. Juni 2006
//  Updated:        
//  Version:        1.0
//  -------------------------------------------------------------------------------------------------

//  -------------------------------------------------------------------------------------------------
function bild(titel,bild1,bild2,bild3,bild4,breite,hoehe) {
//  -------------------------------------------------------------------------------------------------
  
  bilder = new Array(bild1, bild2,bild3,bild4);
  
  var opt  = "width=" + breite + ",height=" + hoehe;
      opt += ",resizable=no,scrollbars=no,location=no,status=no,directories=no";
		  
  var out  = '<html><head><title>' + titel + '</title>';
      out += '<style type="text/css"> body { color: #000000; background-color: #FFFFFF; padding: 0; margin: 0; cursor:pointer; }</style>';
      out += '</head><body>';
      for (var i = 0; i <= 3; i++) {
        if (bilder[i] > '') {
          out += '<img src="';
          if (navigator.appName == "Netscape")  {
            out += 'fakten/';
          }
          out += bilder[i] + '" border="0" alt="Schliessen" onClick="javascript:window.close()">';
        }
	  }
	  out += '</body></html>';
 
  NewWin=window.open("","NewWin",opt);
  NewWin.focus();
  
  
  NewWin.document.open('text/html');
  NewWin.document.writeln(out);
  NewWin.document.close();
}

//  -------------------------------------------------------------------------------------------------

 
//  -------------------------------------------------------------------------------------------------
function footer(datum) {
//  -------------------------------------------------------------------------------------------------

  var d = new Date();
  var dj = d.getYear();
  if(navigator.appName == "Netscape") { dj += 1900 ; }

  var ftr = '<div style="border-top: 1px #808080 solid; padding: 3px 0 0 0;">'     
          + 'Copyright&copy; 1999-'     
          + dj
          + ', Inhalt Team Templer<br>'
          + 'Webmaster: <a href="mailto:mrehm@gmx.de?subject=Die-Templer">Webmaster Team Templer</a><br>'
          + 'Letzte &Auml;nderung '
          + datum
          + '</div>';
		     
   document.writeln( ftr );
}

//  -------------------------------------------------------------------------------------------------


//  -------------------------------------------------------------------------------------------------
function info(land,ort) {
//  -------------------------------------------------------------------------------------------------

   var zusatz = "dependent,resizable=no,scrollbars=no,";     
   var datei  = "../../../bibliographie/";
   
   switch(land) {
     case "oelb":
       datei  += "info_oelb.html";
       zusatz += "WIDTH=360,HEIGHT=120";  
       break;
     case "oenb":
       datei  += "info_oenb.html";
       zusatz += "WIDTH=360,HEIGHT=120";  
       break;
     case "slb":
       datei  += "info_slb.html";
       zusatz += "WIDTH=380,HEIGHT=120";  
       break;
     default:
       datei  += "info_dnb.html";
       zusatz += "WIDTH=320,HEIGHT=150";  
       break;
  }
  var test = window.open(datei,"Info",zusatz);
}
//  -------------------------------------------------------------------------------------------------



//  -------------------------------------------------------------------------------------------------
function zweier(URL1,URL2)  {
//  -------------------------------------------------------------------------------------------------

   parent.frames['dt_subhead'].location.href=URL1;
   parent.frames['dt_haupt'].location.href=URL2;
}

//  -------------------------------------------------------------------------------------------------


