var Opera = navigator.appName.indexOf ("Opera") > -1 || navigator.userAgent.indexOf ('Opera ') > -1, Opera_ok = false;

var MS_ok = navigator.appName.indexOf ("Microsoft") > -1 
            && parseInt (navigator.appVersion.charAt (0)) >= 4
            && !Opera;

var Netscape_ok = navigator.appName.indexOf ("Netscape") > -1 
                  && navigator.userAgent.slice (0, 11) == 'Mozilla/5.0';

with (navigator.userAgent)
    var Mozilla_ok = slice (lastIndexOf (' ') + 1) == 'Firefox/0.8';

var SteuerRahmen_ok = true;



var technische_Hilfe_Breite = 500, technische_Hilfe_Hoehe = 205 - 35, Hintergrund_plus = 35;
var technische_Hilfe_X = screen.width - technische_Hilfe_Breite;
var technische_Hilfe_Y = screen.height - technische_Hilfe_Hoehe - 2;

var Aufrufer_Hilfe_Breite = 400, Aufrufer_Hilfe_Hoehe = 105;
var Aufrufer_Hilfe_X = screen.width - Aufrufer_Hilfe_Breite;
var Aufrufer_Hilfe_Y = screen.height - Aufrufer_Hilfe_Hoehe - 2;

var intern = (location.href.substr (0, 5) == "file:");
var Mansarde = location.href.toLowerCase ().indexOf ('d:/internet/abschweb/');
var Hausnetz = (intern && Mansarde == -1);

if (!intern)
    if (location.href.substr (0, 13) == 'http://www350')
        var root = 'http://www350.s-s4.sserv.de/'
    else if (location.href.substr (0, 15) == 'http://abschweb')
        var root = 'http://www.abschweb.de/'
    else
        var root = 'http://www.abschweb.de/'
else
    if (Mansarde > -1)
        var root = location.href.slice (0, Mansarde + 21)
    else
        var root = location.href.slice (0, location.href.indexOf ('/', location.href.indexOf ('/abschweb/')) + 10);

var Einstiegsreferenz = '';
var HintergrundBild = '';

var Zehn = false;
var h_ok = true;






function topoffen ()
{
var offen = null, hier = self;

while (hier.location)
    {
    offen = hier;

    if (hier != top && hier.name != 'abschweb_de')
        hier = hier.parent
    else
        break;
    }

return offen;
}





var xtop = topoffen ();





function getCookie (Name)
{
var cInhalt = document.cookie;
var cName = Name + "=";
var cLaenge = cInhalt.length;
var cBeginn = 0;

while (cBeginn < cLaenge)
    {
    var wBeginn = cBeginn + cName.length;
    if (cInhalt.substring (cBeginn, wBeginn) == cName)
        {
        var wEnde = cInhalt.indexOf (";", wBeginn);
        if (wEnde == -1)
            wEnde = cLaenge;
        return unescape (cInhalt.substring (wBeginn, wEnde));
        };
    cBeginn = cInhalt.indexOf (" ", cBeginn) + 1;
    if (cBeginn == 0) 
        break;
    }
return null;
};    










function Navi_Objekt ()
{
with (xtop.total)
    {
    if (Navi)
        if (Navi.FettPunkt)
            return Navi;

    for (i = 0; i < frames.length; i ++)
        if (frames [i].FettPunkt)
            return frames [i];
    }
return null;
}







function FettPunkt (Name, nebenbei)
{
if (!document.getElementById)
    return;

var Navigation = Navi_Objekt ();

if (Navigation == null)
    setTimeout ("FettPunkt ('" + Name + "')", 500)
else
    {
    Navigation.FettPunkt (Name);
    if (FettPunkt.arguments.length == 2)
        {
        var action = new Function (nebenbei)
        action ()
        }
    }
}






function Punkt (Name, url, Titel, Kurztitel)
{
var Navigation = Navi_Objekt ();

if (Navigation == null)
    setTimeout ("Punkt ('" + Name + "', '" + url + "', '" + Titel 
                + ((Punkt.arguments.length == 3) ? "')" : "', '" + KurzTitel + "')"), 500)
else
    if (Punkt.arguments.length == 3)
        Navigation.Punkt (Name, url, Titel)
    else
        Navigation.Punkt (Name, url, Titel, Kurztitel);
}














function Taste_h_setzen ()
{
if (xtop.total)
    with (xtop.total)
        if (h_ok)
            {
            for (i = 0; i < frames.length; i ++)
                frames [i].document.onkeypress = Taste;

            document.onkeypress = Taste;

            if (!xtop.Dias)
                window.status = window.status + '       Taste [H]  technische Hilfe';
           
            focus ();
            }
}









function Taste_h_freigeben ()
{
if (xtop.total)
    with (xtop.total)
        {
        for (i = 0; i < frames.length; i ++)
            frames [i].document.onkeypress = "";

        document.onkeypress = "";

        var hText = '       Taste [H]  technische Hilfe';        
        var h = status.indexOf (hText);
        if (h > -1)
            window.status = window.status.slice (0, h) + window.status.slice (h + hText.length);

        h_ok = false;
        }
}









function Taste_H (ok)
{
if (xtop.total)
    with (xtop.total)
        {
        h_ok = ok;
        if (ok)
            Taste_h_setzen ()
        else
            Taste_h_freigeben ();
        }
}









function Hintergrund ()
{
if (document.all.tags("style").length > 0)
    {
    var Stil = document.all.tags("style") [0].innerHTML;
    var Hintergrund_von = Stil.indexOf ('url(');
    if (Hintergrund_von != -1)
        {
        Hintergrund_von += 4;
        var Hintergrund_bis = Stil.indexOf ('.jpg');
        if (Hintergrund_bis != -1)
            {
            Hintergrund_bis += 4;
            return Stil.substring (Hintergrund_von + 3, Hintergrund_bis);
            }
        }
    }

var Kachel = document.all.tags("body") [0].getAttribute ('background');
if (Kachel != '')
    Kachel = Kachel.substring (3, Kachel.length);
return Kachel;
}







function schalt_grob ()
{
xtop.document.getElementById ('Gott').cols = '1020,*';

with (xtop.total.location)
    {
    var Schnupper = href.indexOf ('schnupper') != -1;
    var SchnupperSpar = href.indexOf ('schnupper/spar') != -1;

    var Ziel = href.slice (href.lastIndexOf ('/') + 1);
    Ziel = (Ziel.indexOf ('?') != -1) ? Ziel.slice (Ziel.indexOf ('?') + 1) : Ziel;
    Ziel = (Ziel == 'index.html') ? '' : '?' + Ziel;
    var Pfad = (!Schnupper) ? ((xtop.grobModus == 'normal') ? '../club/grob/index.html' : '../club/grob/800.html')
                            : ((xtop.grobModus == 'normal') ? 'grob/index.html' : 'grob/800.html');
    Pfad = (xtop.aktuellModus == 'fein' || SchnupperSpar) ? '../' + Pfad : Pfad;
    xtop.aktuellModus = 'grob';
    href = Pfad + Ziel;
    }
}






function schalt_spar ()
{
xtop.document.getElementById ('Gott').cols = '1020,*';

with (xtop.total.location)
    if (xtop.aktuellModus != 'text')
        {
        xtop.aktuellModus = 'spar';
        var Ziel = href.slice (href.lastIndexOf ('/') + 1);
        Ziel = (Ziel.indexOf ('?') != -1) ? Ziel.slice (Ziel.indexOf ('?') + 1) : Ziel;
        if (href.indexOf ('/schnupper/') == -1)
            {
            Ziel = (Ziel == 'index.html' || Ziel == '800.html') ? '' : '?' + Ziel;
            var Pfad = '../../tagebuch/index.html';
            }
        else
            {
            Ziel = '?' + Ziel;
            var Pfad = '../spar/index.html';
            }
        href = Pfad + Ziel;
        }
    else
        {
        xtop.aktuellModus = 'spar';
        location.reload ();
        }
}






function schalt_text ()
{
xtop.document.getElementById ('Gott').cols = '1056,*';

with (xtop.total.location)
    {
    var Ziel = href.slice (href.lastIndexOf ('/') + 1);
    var Schnupper = href.indexOf ('schnupper') != -1;
    }

if (xtop.aktuellModus != "spar")
    {
    xtop.aktuellModus = 'text';
    Ziel = (Ziel.indexOf ('?') != -1) ? Ziel.slice (Ziel.indexOf ('?') + 1) : Ziel;
    Ziel = (Ziel == 'index.html' || Ziel == '800.html') ? '' : '?' + Ziel;
    var Pfad = (!Schnupper) ? '../../tagebuch/index.html' : '../spar/index.html';
    xtop.total.location.href = Pfad + Ziel;
    }
else
    {
    xtop.aktuellModus = 'text';
    location.reload ();
    }
}






function schalt_fein ()
{
xtop.document.getElementById ('Gott').cols = '1020,*';

with (xtop.total)
    {
    xtop.aktuellModus = 'fein';
    if (tagebuch.location.href.indexOf ('club/') == -1 
            && tagebuch.location.href.indexOf ('schnupper/grob') == -1
            && tagebuch.location.href.indexOf ('schnupper/spar') == -1)
        location.href = '../club/fein' + tagebuch.location.href.slice (tagebuch.location.href.lastIndexOf ('/'))
    else
        location.href = '../fein' + tagebuch.location.href.slice (tagebuch.location.href.lastIndexOf ('/'));
    }
}









function schalt_flspar ()
{
xtop.document.getElementById ('Gott').cols = '1020,*';

var war = xtop.aktuellModus;
xtop.aktuellModus = 'spar';

if (war == 'text')
    Inhalt.location.reload ()
else
    location.reload ();
}






function schalt_fltext ()
{
xtop.document.getElementById ('Gott').cols = '1024,*';

var war = xtop.aktuellModus;
xtop.aktuellModus = 'text';

if (war == 'spar')
    Inhalt.location.reload ()
else
    location.reload ();
}






function schalt_flfein ()
{
xtop.document.getElementById ('Gott').cols = '1020,*';

xtop.aktuellModus = 'fein';
location.replace ('fein/' + xtop.Datei);
}








function BrowserInfo ()
{
status = 'Browser-Information (Javascript) navigator.userAgent: ' + navigator.userAgent;
}




function Taste (Taste)
{
var tb = (xtop.total.location.href.indexOf ('/club/') != -1 || xtop.total.location.href.indexOf ('/schnupper/') != -1);
var fl = (xtop.total.location.href.indexOf ('/fleunde/') != -1);

var TastenCode = 0, fein = (tb && xtop.total.location.href.indexOf ('/fein/') != -1),
                    grob = (xtop.total.location.href.indexOf ('/grob/') != -1),

                    text = ((xtop.total.location.href.indexOf ('/tagebuch/') != -1 
                            || xtop.total.location.href.indexOf ('/spar/') != -1) 
                            && xtop.aktuellModus == 'text'),

                    spar = ((xtop.total.location.href.indexOf ('/tagebuch/') != -1 
                            || xtop.total.location.href.indexOf ('/spar/') != -1)
                            && xtop.aktuellModus == 'spar'),

                    flfein = (fl && xtop.total.location.href.indexOf ('/fein/') != -1),
                    fltext = (fl && xtop.aktuellModus == 'text'),
                    flspar = (fl && xtop.aktuellModus == 'spar');

if (xtop.total.MS_ok)
    {
    if (xtop.total.event != null)
        TastenCode =  xtop.total.event.keyCode
    else
        for (i = 0; i < xtop.total.frames.length; i ++)
            if (xtop.total.frames [i].event != null)
                TastenCode = xtop.total.frames [i].event.keyCode;
    }
else if (xtop.total.Netscape_ok)
    TastenCode = Taste.which;


//alert (TastenCode);

//z
if (TastenCode == 122 || TastenCode == 90)
    {
    if (typeof (zielen) == 'function')
        zielen ();
    }

//j
if (TastenCode == 106 || TastenCode == 74)
    {
    if (typeof (_juenger) == 'function')
        _juenger ();
    }

//ä
if (TastenCode == 228 || TastenCode == 196)
    {
    if (typeof (_aelter) == 'function')
        _aelter ();
    }

//ü
if (TastenCode == 252 || TastenCode == 220)
    xtop.total.location.href = root + 'schnupper/index.html';

//b
if (TastenCode == 98 || TastenCode == 66)
    BrowserInfo ();

//j
if (TastenCode == 106 || TastenCode == 74)
    xtop.total.location.href = root + 'jubilaeum/blog.htm';

//k
if (TastenCode == 107 || TastenCode == 75)
    xtop.total.location.href = root + 'aktuell/tagebuch.htm';

//t
if (TastenCode == 116 || TastenCode == 84)
    xtop.total.location.href = root + 'tagebuch/aktuell.htm';

//n
if (TastenCode == 110 || TastenCode == 78)
    xtop.total.location.href = root + 'neu/neu.htm';

//h
if ((TastenCode == 104 || TastenCode == 72) && !xtop.Dias)
    {
    HintergrundBild = Hintergrund ();

    technische_Hilfe = window.open (root + 'technische_hilfe.htm', 'technische_hilfe', 'width=0,height=0');
    technische_Hilfe.moveTo (technische_Hilfe_X, 
                                (HintergrundBild == '') ? technische_Hilfe_Y : technische_Hilfe_Y - Hintergrund_plus);
    technische_Hilfe.resizeTo (technische_Hilfe_Breite, 
                                (HintergrundBild == '') ? technische_Hilfe_Hoehe : technische_Hilfe_Hoehe + Hintergrund_plus);
    }
else if (typeof (Aufrufer) != 'undefined' && (TastenCode == 118 || TastenCode == 86))
    {
    Aufrufer_Hilfe = window.open (root + 'aufrufer.htm', 'aufrufer_hilfe', 'width=0,height=0');
    Aufrufer_Hilfe.moveTo (Aufrufer_Hilfe_X, Aufrufer_Hilfe_Y);
    Aufrufer_Hilfe.resizeTo (Aufrufer_Hilfe_Breite, Aufrufer_Hilfe_Hoehe);
    }
else if (fein || grob || spar || text || xtop.Dias)
    {
//g,f
    if (TastenCode == 103 || TastenCode == 71 || TastenCode == 102 || TastenCode == 70)
        {
        if (fein)
            schalt_grob ()
        else if (grob)
            schalt_fein ()
        else if (spar || text)
            if (TastenCode == 103 || TastenCode == 71)
                schalt_grob ()
            else
                schalt_fein ()
        }
//x
    else if (TastenCode == 120 || TastenCode == 88)
        {
        if (fein || grob || spar)
            schalt_text ()
        else 
            schalt_fein ();
        }
//s
    if ((TastenCode == 115 || TastenCode == 83) && !xtop.Dias)
        {
        if (fein || grob || text)
            schalt_spar ()
        else if (spar)
            schalt_fein ()
        }
//d
    else if (TastenCode == 100)
        if (xtop.Dias)
            {
            window.status = 'Diashow beendet.';
            xtop.Dias = false;
            xtop.lfdDiaFenster = '';
            }
        else
            {
            xtop.Dias = true;
            location.reload ();
            }
//D
    else if (TastenCode == 68)
        with (xtop.total.location)
            href = '../../dias.htm?' + href.slice (href.lastIndexOf ('/') + 1)
    else if (xtop.Dias)
        {
        switch (TastenCode)
            {
//r
            case 114:
            case 82:            xtop.Richtung = (xtop.Richtung == 'vorwaerts') ? 'rueckwaerts' : 'vorwaerts'; break;

//q
            case 113:
            case 81:            xtop.vertikal = !xtop.vertikal; break;

//a
            case 97:
            case 65:            xtop.Ast = !xtop.Ast; break;

//0
            case 48:            xtop.Intervall = 10000;
                                Zehn = false; break;

//1
            case 49:            xtop.Intervall = 10000; 
                                Zehn = true; break;
//2 .. 9
            case 50:
            case 51:
            case 52:
            case 53:
            case 54:
            case 55:
            case 56:
            case 57:            xtop.Intervall = ((Zehn) ? 10000 : 0) + (TastenCode - 48) * 1000; 
                                Zehn = false; break;
//p
            case 112:
            case 80:            var Code = xtop.lfdDiaFenster + 'DiaPause = !' + xtop.lfdDiaFenster + 'DiaPause; \n'
                                        + 'if (' + xtop.lfdDiaFenster + 'DiaPause) \n'
                                        +    "\t self.status = 'Diashow (Pause)       weiter mit Taste [P]       beenden mit Taste [D]' \n"
                                        + 'else \n'
                                        +    "\t self.status = 'Diashow       sofort wechseln mit Taste [S]       Pause mit Taste [P]       beenden mit Taste [D]'";

                                var Pause = new Function (Code);
                                Pause (); break;
//s
            case 115:
            case 83:            var Code = 'if (' + xtop.lfdDiaFenster + 'Wechsel != null) \n'
                                        +      '\t clearTimeout (' + xtop.lfdDiaFenster + 'Wechsel); \n'
                                        +  xtop.lfdDiaFenster + 'DiaPause = false; \n'
                                        + "self.status = 'Diashow       sofort wechseln mit Taste [S]       Pause mit Taste [P]       beenden mit Taste [D]'; \n"
                                        + xtop.lfdDiaFenster + 'naechstes_Dia ()';

                                var sofort = new Function (Code);
                                sofort (); break;
            }
        }
    }
else if (flfein || fltext || flspar)
    {

//g, f
    if (TastenCode == 103 || TastenCode == 71 || TastenCode == 102 || TastenCode == 70)
        {
        if (flspar || fltext)
            schalt_flfein ()
        }

//x
    else if (TastenCode == 120 || TastenCode == 88)
        {
        if (flfein || flspar)
            schalt_fltext ()
        else 
            schalt_flfein ();
        }

//s
    if (TastenCode == 115 || TastenCode == 83)
        {
        if (flfein || fltext)
            schalt_flspar ()
        else if (flspar)
            schalt_flfein ()
        }
    }
}









function StatusInfo (Einstieg)
{
var Muenchen = 'abschweb.muenchen.cjb.net';
if (Einstieg.substr (7, Muenchen.length) == Muenchen)
    Einstieg = Einstieg.slice (0, 7) + 'www.abschweb.de' + Einstieg.slice (7 + Muenchen.length);

if (SteuerRahmen_ok)
    {
    var DebugInfo = (xtop.lebt != '') ? '[' + xtop.lebt + ']' : '';

    if (Einstieg.substr (0, 7) == 'http://')
        Einstieg = Einstieg.slice (7);

    var x = Einstieg.indexOf ('/club/');
    if (x != -1)
        Einstieg = Einstieg.slice (0, x) + '/tagebuch' + Einstieg.slice (Einstieg.lastIndexOf ('/'));

    x = Einstieg.indexOf ('/fleunde/fein/');
    if (x != -1)
        Einstieg = Einstieg.slice (0, x + 9) + Einstieg.slice (x + 14);

    Einstiegsreferenz = Einstieg;

    window.status = DebugInfo + 'dein Einstiegspunkt hier: ' + Einstieg;

    with (xtop.total.location)
        if (!xtop.Dias && href.indexOf ('/club/') != -1)
            window.status = window.status + '       Taste [D]  Diashow';

    setTimeout ("Taste_h_setzen ()", 1000);
//    setTimeout ("StatusInfo ('" + Einstieg + "')", 3000);
    }
}









function nimm_Bereich (Adresse)
{
var Rest = Adresse.slice (Adresse.indexOf ('abschweb'));
var bs1 = Rest.indexOf ('/') + 1;
var bs2 = Rest.indexOf ('/', bs1);
var Bereich = Rest.slice (bs1, bs2);
xtop.Variable = Rest.slice (bs2 + 1, Rest.indexOf ('.', bs2));

//alert (Bereich);
//alert (xtop.Variable);


if (Bereich == 'schnupper')
    {
    Bereich = 'Tagebuch';
    xtop.Variable = '~';
    }


if (Bereich == 'club')
    {
    if (xtop.Variable != 'region/region')
        {
        Bereich = 'Tagebuch';
        xtop.Variable = 'club';
        }
    else
        Bereich = 'Region';
    }


if (Bereich == 'wuensche' && xtop.Variable == 'versionen')
    Bereich = 'Tagebuch';

if (Bereich == 'archiv')
    {
    var Datei = Rest.slice (bs2 + 1, Rest.lastIndexOf ('.'));

    switch (Datei)
        {
        case 'aspekte':                         Bereich = 'aspekte'; break;
        case 'archiv_alt.html?schlepp/story':   Bereich = 'Tagebuch'; break;
        case 'archiv_alt.html?foto_cd/story':   Bereich = 'Tagebuch'; break;
        default:                                if (Datei.slice (0, 16) == 'archiv_alt.html?')
                                                    {
                                                    Datei = Datei.slice (17);
                                                    Bereich = 'Tagebuch';
                                                    }
        }
    }

switch (Bereich)
    {
    case 'index':       return 'Index'; break;
    case 'wuensche':    return 'Index: W&uuml;nsche'; break;
    case 'fantasie':    return 'Index: Fantasie'; break;

    case 'aktuell':
    case 'grob':
    case 'spar':
    case 'heilbrunn':
    case 'amboss':      return 'Tagebuch'; break;

    case 'archiv':      return 'Navigation: Archiv'; break;
    case 'aspekte':     return 'Navigation: Aspekte'; break;
    case 'fluege':      return 'Navigation: Fl&uuml;ge'; break;
    case 'geschichten': return 'Navigation: Geschichten'; break;

    case 'tegelberg':   return 'Gel&auml;nde: Tegelberg'; break;
    case 'buchenberg':  return 'Gel&auml;nde: Buchenberg'; break;
    case 'giselaberg':  return 'Gel&auml;nde: Giselaberg'; break;

    default:            return Bereich;
    }
}








function echter_Wechsel (Bereich_1, Bereich_2)
{
if (Bereich_1.indexOf (':') == -1 || Bereich_2.indexOf (':') == -1)
    return true
else
    return Bereich_1.slice (0, Bereich_1.indexOf (':')) != Bereich_2.slice (0, Bereich_2.indexOf (':'))
}







function Tagebuch ()
{
if (location.href.indexOf ('schnupper') != -1)
    if (location.href.indexOf ('index.html') != -1)
        return 'uebersicht'
    else
        return 'schnupper';

if (location.href.indexOf ('tagebuch') != -1 && xtop.aktuellModus != 'spar' && xtop.aktuellModus != 'text' &&  !xtop.Club)
    return 'zwang';

return 'tagebuch';
}





if (self.name != 'heimlich')
    {
    var hier = location.href;
    var hierStart = root.length;
    if (hier.substr (0, 17) == 'http://abschweb.m')
        hierStart = 33
    else if (hier.substr (0, 18) == 'http://abschweb.de')
        hierStart = 19;

    hier = hier.substring (hierStart, hier.length);

    
    if (!SteuerRahmen_ok)
        {
        SteuerRahmen_ok = self.name == 'total';
        if (!SteuerRahmen_ok && navigator.cookieEnabled)
            if (navigator.cookieEnabled == true)
                {
                var Cookie_geschachtelt = getCookie ("geschachtelt");
                if (Cookie_geschachtelt != null)
                    {
                    if (Cookie_geschachtelt == "ja")
                        xtop.location.replace (root + 'abschweb.html?' + hier);
                    }
                else
                    xtop.location.href = root + 'kompatibel.html?' + hier;
                }
        }

    if (SteuerRahmen_ok)
        {
        var normal = true;
        if (navigator.cookieEnabled)
            if (navigator.cookieEnabled == true)
                {
                var Cookie_Design = getCookie ("design");
                if (Cookie_Design != null)
                    normal = false;
                }

        if (normal == true)
            {
            if (typeof (xtop.name) != 'string' || self == top)
                xtop.location.replace (root + 'abschweb.html?' + hier);
            else if (self.name != 'total')
                {
                if (parent.name == 'total') 
                    parent.location.replace (root + hier)
                else
                    xtop.location.replace (root + 'abschweb.html?' + hier);
                }
            else
                {
                if (xtop == top)
                    if (xtop.veraltet (hier))
                        location.reload ();

                with (xtop.total.location)
                    if (href.indexOf ('/club/fein/') != -1)
                        {
                        if (xtop.aktuellModus == 'grob')
                            {
                            var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                            Ziel = (Ziel == 'index.html') ? '' : '?' + Ziel;
                            replace (((xtop.grobModus == 'normal') ? '../grob/index.html' : '../grob/800.html') + Ziel)
                            }
                        else if (xtop.aktuellModus == 'spar')
                            {
                            var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                            xtop.Datei = Ziel;
                            Ziel = (Ziel == 'index.html') ? '' : '?' + Ziel;
                            replace ( '../../tagebuch/index.html' + Ziel);
                            }
                        }
                    else if (href.indexOf ('/schnupper/fein/') != -1)
                        {
                        if (xtop.aktuellModus == 'grob')
                            {
                            var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                            replace (((xtop.grobModus == 'normal') ? '../grob/index.html?' : '../grob/800.html?') + Ziel)
                            }
                        else if (xtop.aktuellModus == 'spar')
                            {
                            var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                            xtop.Datei = Ziel;
                            replace ( '../spar/index.html?' + Ziel);
                            }
                        }
                    else if (href.indexOf ('/club/grob/') != -1)
                        {
                        if (xtop.aktuellModus == 'fein')
                            {
                            if (xtop.total.tagebuch)
                                replace ('../club/fein' + xtop.total.tagebuch.location.href.slice 
                                                       (xtop.total.tagebuch.location.href.lastIndexOf ('/')))
                            }
                        else if (xtop.aktuellModus == 'spar')
                            {
                            var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                            xtop.Datei = Ziel;
                            Ziel = (Ziel == 'index.html') ? '' : '?' + Ziel;
                            replace ( '../../tagebuch/index.html' + Ziel);
                            }
                        }
                    else if (href.indexOf ('/schnupper/grob/') != -1)
                        {
                        if (xtop.aktuellModus == 'fein')
                            {
                            if (xtop.total.tagebuch)
                                replace ('../schnupper/fein' + xtop.total.tagebuch.location.href.slice 
                                                       (xtop.total.tagebuch.location.href.lastIndexOf ('/')))
                            }
                        else if (xtop.aktuellModus == 'spar')
                            {
                            var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                            xtop.Datei = Ziel;
                            replace ( '../spar/index.html?' + Ziel);
                            }
                        }
                    else if (href.indexOf ('/tagebuch/') != -1)
                        {
                        if (xtop.geizig)
                            {
                            if (search == '')
                                {
                                if (xtop.aktuellModus == 'fein')
                                    replace ('../aktuell/fein.htm')
                                else if (xtop.aktuellModus == 'grob')
                                    replace ('../aktuell/grob.html');
                                }
                            }
                        else
                            {
                            if (xtop.aktuellModus == 'fein')
                                {
                                if (xtop.total.tagebuch)
                                    replace ('../club/fein' + xtop.total.tagebuch.location.href.slice 
                                                        (xtop.total.tagebuch.location.href.lastIndexOf ('/')))
                                else
                                    {
                                    var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                                    if (Ziel.indexOf ('?') != -1)
                                        Ziel = Ziel.slice (Ziel.indexOf ('?') + 1);
                                    replace ('../club/fein/' + Ziel);
                                    }
                                }
                            else if (xtop.aktuellModus == 'grob')
                                {
                                var Ziel = href.slice (href.lastIndexOf ('/') + 1);
                                if (Ziel.indexOf ('?') != -1)
                                    Ziel = Ziel.slice (Ziel.indexOf ('?') + 1);
                                Ziel = (Ziel == 'index.html') ? '' : '?' + Ziel;
                                replace (((xtop.grobModus == 'normal') ? '../club/grob/index.html' 
                                                                     : '../club/grob/800.html') + Ziel);
                                }
                            }
                        }

                xtop.document.title = document.title;

                if (typeof (Einstieg) == 'undefined')
                    var Einstieg = location.href;
                StatusInfo (Einstieg);

                if (typeof (Aufrufer) != 'undefined' && document.cookie)
                    {
                    Aufrufer = getCookie ('Aufrufer');
                    delCookie ('Aufrufer');
                    }
                }
            }

        if (typeof (xtop.Bereich) != 'undefined')
            {
            var Bereich_jetzt = nimm_Bereich (location.href);
            if (Bereich_jetzt != xtop.Bereich)
                {
                if (echter_Wechsel (Bereich_jetzt, xtop.Bereich))
                    {
                    xtop.vorletzter_Bereich = xtop.letzter_Bereich;
                    xtop.vorletzte_Datei = xtop.letzte_Datei;
                    xtop.letzter_Bereich = xtop.Bereich;
                    xtop.letzte_Datei = xtop.Datei;
                    }

                xtop.Bereich = Bereich_jetzt;


                ///////////////////////////////////////////
                // zentrale Fokus-Steuerung

                xtop.Fokus = xtop.Bereich;
                }

            ///////////////////////////////////////////
            // Streifen-Steuerung

            var BereichsGruppe = Bereich_jetzt;
            BereichsGruppe = (BereichsGruppe == 'Navigation: Fl&uuml;ge')
                                ? 'fluege'
                                : ((BereichsGruppe.indexOf (':') != -1) ? BereichsGruppe.slice (0, BereichsGruppe.indexOf (':')) : BereichsGruppe);

            var lfdInfo = 'leer';

            switch (BereichsGruppe)
                {
                case 'Tagebuch':
                case 'tagebuch':        lfdInfo = Tagebuch (); break;

                case 'Navigation':      lfdInfo = 'navigruppe'; break;
                case 'fluege':          lfdInfo = 'fluege'; break;

                case 'fleunde':         lfdInfo = 'fleunde'; break;

                case 'gisela': 
                case 'manfred':         lfdInfo = 'geschichten'; break;

                case 'homepage':        lfdInfo = 'homepage'; break;

                case 'jubilaeum':
                case 'werkst@tt':       lfdInfo = 'abschweb'; break;

                case 'region':
                case 'Gel&auml;nde':    lfdInfo = 'gelaende'; break;

                case 'Index':           lfdInfo = 'index'; break;
                case 'neu':             lfdInfo = 'neu'; break;
                case 'blanko':          lfdInfo = 'blanko'; break;
                case 'start':           lfdInfo = 'start'; break;

                case 'werbung':         lfdInfo = 'leer'; break;
                case 'musik':           lfdInfo = 'leer'; break;

                default:                lfdInfo = 'leer'; break;
                }

            xtop.InfoDatei = lfdInfo + '.htm';
            if (xtop.Info_zeigen)
                if (xtop.Info.location.href.slice (xtop.Info.location.href.lastIndexOf ('/') + 1, xtop.Info.location.href.indexOf ('.htm')) != lfdInfo)
                    xtop.Info.location.replace (root + 'info/' + lfdInfo + '.htm');

            xtop.document.getElementById ('Gott').cols = (BereichsGruppe.toLowerCase () != 'tagebuch' || xtop.aktuellModus != 'text')
                                                        ? '1020,*'
                                                        : '1056,*';
            }
        }
    else
        {
        if (parent.frames.length > 0)
            xtop.location.replace (location.href);
        if (location.href.indexOf ('/club/fein/') > -1)
            {
            var Ziel = location.href.slice (location.href.lastIndexOf ('/') + 1);
            Ziel = (Ziel == 'index.html') ? '' : '?' + Ziel;
            location.replace ('../grob/800.html' + Ziel);
            }
        }
    }
     


