/* Hilfetext beim PDF-Download */

function pdf(option) {
 if (location.href.indexOf("english")>0) {
  var textkopf = (option == "download") ? "The PDF file is now being downloaded.\n" : "After downloading the PDF file should be opened automatically. However, there are frequent problems with the Acrobat browser plugin handling large documents. ";
  var hilfetext = "If you see only a white page after downloading, try the following steps:\n\n1\) Click with the RIGHT mouse button on the link \"Download as PDF\"\;\n2\) Select the option \"Save target as ...\"\;\n3\) Save the file into a directory of your choice\;\n4\) Open the file with Acrobat Reader by doubleclicking on it.";
 } else {
  var textkopf = (option == "download") ? "Das PDF-Dokument wird jetzt heruntergeladen.\n" : "Meist wird die PDF-Datei nach dem Herunterladen automatisch ge\u00F6ffnet. Vor allem bei gro\u00DFen PDF-Dokumenten gibt es jedoch h\u00E4ufig Probleme mit dem Acrobat Browser-Plugin. ";
  var hilfetext = "Falls Sie nach dem Herunterladen nur eine wei\u00DFe Seite sehen, versuchen Sie folgende Schritte:\n\n1. Klicken Sie mit der RECHTEN Maustaste auf den Link \"Download als PDF\"\;\n2. W\u00E4hlen Sie die Option \"Ziel speichern unter ...\"\;\n3. Speichern Sie die Datei in ein Verzeichnis Ihrer Wahl\;\n4. \u00D6ffnen Sie die Datei mit dem Acrobat Reader durch einen Doppelklick auf die heruntergeladene Datei.";
 }
 alert (textkopf + hilfetext);
}

/* Linke Navigation*/

function show(divid) {
document.getElementById("cat1").style.display="none";
document.getElementById("cat2").style.display="none";
document.getElementById("cat3").style.display="none";
document.getElementById("cat4").style.display="none";
document.getElementById("cat5").style.display="none";
document.getElementById("cat6").style.display="none";
document.getElementById("cat7").style.display="none";
document.getElementById("cat8").style.display="none";
document.getElementById(divid).style.display="inline";
}

/* Bildwechsel */

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 8000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'grafx/menuvogel.jpg'
Pic[1] = 'grafx/menuelefant.jpg'
Pic[2] = 'grafx/menuberg.jpg'
Pic[3] = 'grafx/menubaer.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}
/* Preistraeger Menu */

function Go(x) {
 if(x == "nothing") {
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
   return;
 }
 else if(x == "end")
   top.location.href = parent.frames[1].location;
 else {
   parent.frames[1].location.href = x;
   document.forms[0].reset();
   document.forms[0].elements[0].blur();
 }
}
/* Funktion Fenster */

function fenster (file,breite,hoehe)
{
var win;
win=window.open (file,"","width="+breite+",height="+hoehe+",resizable=no");
}


/* Funktion print */

function druckeFrame()
{
if (window.print) {
parent.frames.inhalt.focus();
parent.frames.inhalt.print();
}
return;
}