/*function zum einbinden von externen Texte */

function BindFile(Desc, FileName, Separator)
{
  var Erg = '';

  if (document.all)
    Erg = '<OBJECT ID="' + Desc + '" WIDTH=0 HEIGHT=0 CLASSID="CLSID:333C7BC4-460F-11D0-BC04-0080C7055A83">\n' +
          '  <PARAM NAME="DataURL" VALUE="' + FileName + '">\n' +
          '  <PARAM NAME="TextQualifier" VALUE="' + Separator + '">\n' +
          '  <PARAM NAME="FieldDelim" VALUE="|">\n' +
          '  <PARAM NAME="UseHeader" VALUE="true">\n' +
          '</OBJECT>\n' +
          '<div datasrc="#' + Desc + '" datafld="Text" dataformatas="HTML"></div>\n';

  else if (document.layers && navigator.javaEnabled()) {

    var Pfad = self.location.pathname;
    Pfad = Pfad.substring(0, Pfad.lastIndexOf('/')+1);

    url = new java.net.URL(self.location.protocol.split(':').join(''), self.location.host, Pfad + FileName);
    MyReader = new java.io.BufferedReader(new java.io.InputStreamReader(url.openStream()));
    var tmp = MyReader.readLine();
    while ((tmp = MyReader.readLine()) != null)
      Erg += tmp + ' ';

    MyReader.close();
    Erg = Erg.split(Separator).join('');

  }

  return (Erg);
}

/* function für ein Extra geöffnetes Fenster*/

function extrawindow()
{
var win;
win=window.open ("KasDia_01_01.html","Extra","width=500,height=450,toolbar=0,left=0,top=0,menubar=0,scrollbars=0,status=0,")
}

/* function für Vollbild */

function fullwin()
{
window.open("Homepage/sites/Frameset.html","","fullscreen,scrollbars")
}

/* function für Vollbild unter Lotus Notes */

function fullwin2()
{
var hoehe, breite, eingabe;
hoehe=screen.height;
breite=screen.width;
   if (breite>600 && breite<900)
   {
window.open("Homepage/Sites/Frameset2.html","","width=792,height=572,toolbar=0,left=0,top=0,menubar=0,scrollbars=0,status=0,");
   }
   if (breite>900 && breite<1100)
   {
window.open("Homepage/Sites/Frameset2.html","","width=1016,height=740,toolbar=0,left=0,top=0,menubar=0,scrollbars=0,status=0,");
   }
   if (breite>1100)
   {
window.open("Homepage/Sites/Frameset2.html","","width=1272,height=996,toolbar=0,left=0,top=0,menubar=0,scrollbars=0,status=0,");
   }
}

/* function zum Imagewechsel bei OVER UP DOWN OUT */

function wexsel(IM,BS)
 {
  window.document.images[IM].src = BS.src;
 }

/* function für Zurückpfeil */

function backw ()
{
 var __w=history.back(1);if(__w!=null)document.write(__w);
}

/* function wie a href aber ohne Rahmen und ohne Frames */

function go(URL1)
 {
  location.href = (QU +".html")
 }

 /* function wie a href aber mit Rahmen bzw. Frames */

function goframe (URL2,FR)
 {
  parent.frames[FR].location.href=URL2
 }

/* function zur Deaktivierung der rechten Maustaste */

function right(e)
 {
  if (navigator.appName == 'Netscape' &&(e.which == 3 || e.which == 2))
   return false;
  else if (navigator.appName == 'Microsoft Internet Explorer' &&(event.button == 2 || event.button == 3))
   {
   alert("Rechtsklick ist deaktiviert");
   return false;
   }
  return true;
 }
  document.onmousedown=right;
  if (document.layers) window.captureEvents(Event.MOUSEDOWN);
  window.onmousedown=right;

/* function zum Festellen der Auflösung und zum Ausgeben einer Nachricht */

function Aufl ()
{
var hoehe, breite, eingabe;
hoehe=screen.height;
breite=screen.width;
   if (breite<1024 || breite>1030)
   {
      alert ("Die folgenden Seiten sind für eine Aulösung von 1024x768 Pixel geschrieben worden. Diese Auflösung liegt bei Ihnen nicht vor. Dadurch kann es zu Effekten kommen, welche nicht von uns gewollt sind. Wenn möglich ändern Sie dies.");
   }
}

/* functionen zum Bilderwechsel in der Potsdam Diashow */

var NN3 = false;
image1alt = new Image();
image1alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image1alton = new Image();
image1alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Antikentempel_Karte.jpg";

image2alt = new Image();
image2alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image2alton = new Image();
image2alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Brandenburger_Strasse_Karte.jpg";

image3alt = new Image();
image3alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image3alton = new Image();
image3alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Brandenburger_Tor_Karte.jpg";

image4alt = new Image();
image4alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image4alton = new Image();
image4alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Flatow_Turm_Karte.jpg";

image5alt = new Image();
image5alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image5alton = new Image();
image5alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Hollaender_Viertel_Karte.jpg";

image6alt = new Image();
image6alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image6alton = new Image();
image6alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Marmorpalais_Karte.jpg";

image7alt = new Image();
image7alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image7alton = new Image();
image7alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Alexandrowka_Karte.jpg";

image8alt = new Image();
image8alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image8alton = new Image();
image8alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Glienicker_Brücke_Karte.jpg";

image9alt = new Image();
image9alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image9alton = new Image();
image9alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Nauener_Tor_Karte.jpg";

image10alt = new Image();
image10alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image10alton = new Image();
image10alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Neues_Palais_Karte.jpg";

image11alt = new Image();
image11alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image11alton = new Image();
image11alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Wasserwerk_Karte.jpg";

image12alt = new Image();
image12alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image12alton = new Image();
image12alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Nikolaikirche_Karte.jpg";

image13alt = new Image();
image13alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image13alton = new Image();
image13alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Orangerie_Karte.jpg";

image14alt = new Image();
image14alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image14alton = new Image();
image14alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Glockenspiel_Karte.jpg";

image15alt = new Image();
image15alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image15alton = new Image();
image15alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Schloss_S_Karte.jpg";

image16alt = new Image();
image16alt.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Lange_Kerls.jpg";
image16alton = new Image();
image16alton.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Potsdam_Diashow/Teepavillion_Karte.jpg";


function on3(name)   {
        document["altimg"].src = eval(name + "alton.src");
}
function off3(name)  {
        document["altimg"].src = eval(name + "alt.src");
}
NN3 = true;

function on(name)  {
        if (NN3) on3(name);
}
function off(name)  {
        if (NN3) off3(name);
}

/* functionen zum Texteinblenden (Ticker) */

var which=0;
var color= "";
var fade=1;
var r=0;
var g=0;
var b=0;
r_start=55;
g_start=110;
b_start=165;
r_end=255;
g_end=255;
b_end=0;
step=5;
var message= new Array();
message[0]='<u>Nicht Vergessen</u>'
message[1]='zuerst Netzwerkanmeldung'
message[2]='und Telefonbucheintrag'
message[3]='&nbsp;'
message[4]='<u>Denken Sie daran</u>'
message[5]='in den ersten 10 Tagen'
message[6]='sich in die Liste'
message[7]='der Wohnungssuchenden'
message[8]='einzutragen !'
message[9]='&nbsp;'

function hex_it(zahl) {
 if (zahl==0) return("0"); if (zahl==1) return("1"); if (zahl==2) return("2");
 if (zahl==3) return("3"); if (zahl==4) return("4"); if (zahl==5) return("5");
 if (zahl==6) return("6"); if (zahl==7) return("7"); if (zahl==8) return("8");
 if (zahl==9) return("9"); if (zahl==10) return("A"); if (zahl==11) return("B");
 if (zahl==12) return("C"); if (zahl==13) return("D"); if (zahl==14) return("E");
 if (zahl==15) return("F");
}

function byte_to_hex(zahl) {
 wert1=Math.floor(zahl/16);
 wert2=zahl-(wert1*16);
 wert=hex_it(wert1) + hex_it(wert2);
 return(wert);
}

function animate(){
 color="#"+byte_to_hex(r)+byte_to_hex(g)+byte_to_hex(b);
 if (document.layers) {      //Netscape
    document.animatedtext.document.writeln("<center><font face='Arial,Helvetica,MS Sans Serif' color="+color+" size=+2><NOBR><b>"+message[which]+"</b></NOBR></font><center>");
    document.animatedtext.document.close();
 }
 else {                       //IExplorer
    document.all.animatedtext.innerHTML="<center><font color="+color+" size=+2><NOBR><b>"+message[which]+"</b></NOBR></font></center>";
 }
 if (fade==1) {       //einblenden
    if (r_start<r_end) {if (r<r_end) r+=step; else r=r_end;}
    else {if (r>r_end) r-=step;}
    if (g_start<g_end) {if (g<g_end) g+=step; else g=g_end;}
    else {if (g>g_end) g-=step;}
    if (b_start<b_end) {if (b<b_end) b+=step; else b=b_end;}
    else {if (b>b_end) b-=step;}
 }
 else {               //ausblenden
    if (r_start<r_end) {if (r>r_start) r-=step; else r=r_start;}
    else {if (r<r_start) r+=step;}
    if (g_start<g_end) {if (g>g_start) g-=step; else g=g_start;}
    else {if (g<g_start) g+=step;}
    if (b_start<b_end) {if (b>b_start) b-=step; else b=b_start;}
    else {if (b<b_start) b+=step;}
 }
// Einblenden beendet => Ausblenden
 if ((r==r_end) && (g==g_end) &&(b==b_end)) {fade=-1;}
// Wieder Ausblenden beendet => nächste Message einblenden
 if ((r==r_start) && (g==g_start) &&(b==b_start)) {
       fade=1;r=r_start;g=g_start;b=b_start;
       if (which<message.length-1) which+=1;
          else which=0;

 }
 setTimeout('animate()',50);
}

function init1() {
 r=r_start;
 g=g_start;
 b=b_start;
 setTimeout('animate()',150);
}

/* Bilderdefinition für Navi-Leiste */

but1 = new Image();
but1.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttona01.gif";
but2 = new Image();
but2.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttona02.gif";
but3 = new Image();
but3.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttona03.gif";

but4 = new Image();
but4.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonb01.gif";
but5 = new Image();
but5.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonb02.gif";
but6 = new Image();
but6.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonb03.gif";

but7 = new Image();
but7.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonc01.gif";
but8 = new Image();
but8.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonc02.gif";
but9 = new Image();
but9.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonc03.gif";

but10 = new Image();
but10.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttond01.gif";
but11 = new Image();
but11.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttond02.gif";
but12 = new Image();
but12.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttond03.gif";

but13 = new Image();
but13.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttone01.gif";
but14 = new Image();
but14.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttone02.gif";
but15 = new Image();
but15.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttone03.gif";

but16 = new Image();
but16.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonf01.gif";
but17 = new Image();
but17.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonf02.gif";
but18 = new Image();
but18.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonf03.gif";

but19 = new Image();
but19.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttong01.gif";
but20 = new Image();
but20.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttong02.gif";
but21 = new Image();
but21.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttong03.gif";

but22 = new Image();
but22.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonh01.gif";
but23 = new Image();
but23.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonh02.gif";
but24 = new Image();
but24.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Buttonh03.gif";

pfeil = new Image();
pfeil.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Pfeil.gif";
pfeil1 = new Image();
pfeil1.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/Pfeil1.gif";

prin = new Image();
prin.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/print3.gif";
prin1 = new Image();
prin1.src = "http://webarchive.nationalarchives.gov.uk/+/http://www.operations.mod.uk/Pics/Buttons/Navi/print4.gif";


function drucken ()
{
var eingabe;
eingabe=confirm ("Haben Sie einen Standarddrucker mit direkter Verbindung zum PC, klicken Sie auf OK und stellen Sie unter Optionen das Drucken von Frames auf: jeden Frame individuell und unter Allgemein: Seiten = 3. Haben Sie keinen lokalen Standarddrucker, drücken Sie auf Abrechen !!! ");
if (eingabe==true)
 {
 self.print(1)
 }
}
