var GeierBreite = 423, GeierHoehe = 160;
var GeierLinks = 994 - GeierBreite;





function topoffen ()
{
var offen = self, 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 GeierWurzel (Bereich)
{
//alert (xtop.Datei);
var Wurzel = '../';
if (xtop.Zielscheibe)
    Wurzel = '../'
else if (xtop.Datei == 'impressum.htm' && xtop.Bereich != 'Gel&auml;nde: Giselaberg' || xtop.Datei == 'dias.htm')
    Wurzel = ''
else if (Bereich == 'fleunde' && fein)
    Wurzel = '../../../'
else if (Bereich == 'fleunde' && !iframe || xtop.Variable == 'club' || xtop.Variable == '~' && xtop.Datei != 'Uebersicht'
        || xtop.Datei == 'tegelberg/ansichten-d.htm' || Bereich == 'Region')
    Wurzel = '../../';
//alert (Wurzel);
return Wurzel;
}





function GeierEbene (extra)
{
if (GeierEbene.arguments.length == 0)
    var extra = false;

var Bereich = xtop.Bereich;
if (Bereich == 'Navigation: Fl&uuml;ge')
    Bereich = 'fluege';

//alert (Bereich);
//alert (xtop.GeierVersion);

Wurzel = (extra) ? '../' : GeierWurzel (Bereich);

if (xtop.GeierVersion == 'nopop')
    {
    if (xtop.nopop_machbar (Bereich))
        {
        if (Bereich.indexOf (' ') != -1)
            Bereich = Bereich.slice (Bereich.indexOf (' ') + 1);

        xtop.total.location.href = Wurzel + 'geier/nopop/' + Bereich.toLowerCase () + '.htm';
        return;
        }
    else if (xtop.baby_machbar (Bereich))
        {
        if (Bereich.indexOf (' ') != -1)
            Bereich = Bereich.slice (Bereich.indexOf (' ') + 1);
        xtop.total.location.href = Wurzel + 'geier/baby/' + Bereich.toLowerCase () + '.htm';
        return;
        }
    }

if (xtop.GeierVersion == 'baby')
    {
    if (xtop.baby_machbar (Bereich))
        {
        if (Bereich.indexOf (' ') != -1)
            Bereich = Bereich.slice (Bereich.indexOf (' ') + 1);
        xtop.total.location.href = Wurzel + 'geier/baby/' + Bereich.toLowerCase () + '.htm';
        return;
        }
    else if (xtop.nopop_machbar (Bereich))
        {
        if (Bereich.indexOf (' ') != -1)
            Bereich = Bereich.slice (Bereich.indexOf (' ') + 1);
        xtop.total.location.href = Wurzel + 'geier/nopop/' + Bereich.toLowerCase () + '.htm';
        return;
        }
    }

if (xtop.GeierVersion == 'pop')
    {
    if (!xtop.pop_machbar (Bereich) && xtop.baby_machbar (Bereich))
        {
        if (xtop.GeierFenster != null || !xtop.GeierFenster.closed)
            xtop.GeierFenster.close ();

        if (Bereich.indexOf (' ') != -1)
            Bereich = Bereich.slice (Bereich.indexOf (' ') + 1);
        xtop.total.location.href = Wurzel + 'geier/baby/' + Bereich.toLowerCase () + '.htm';
        return;
        }
    }

if (!xtop.total.MS_ok && !xtop.total.intern)
    {
    alert ('die Geiernavigation\n(Fenster-Version)\nist derzeit auf den\nInternet-Explorer\nbeschränkt.\n\nDie [nopop]-Version ist\nfür diesen Bereich / diesen Browser\nnoch nicht fertig.');
    return;
    }

if (name == 'abschweb_de' || name == 'total')
    {
    var Pfad = (xtop.Bereich != 'fleunde') 
                ? ((frames.length == 1 && xtop.Bereich != 'neu') 
                ? 'geier/' : '../geier/') 
                : '../../geier/';

    var Hoehe = GeierHoehe;
    var Plus = ',status=no';

    if (xtop.Geier_debug)
        {
        Hoehe += xtop.GeierDebugHoehe;
        Plus = ',toolbar=yes,status=yes';
        }

    xtop.LfdBereich = xtop.check_GeierBereich ();
    var Inhalt = Pfad + 'index.html?' + xtop.LfdBereich;
    var Parameter = 'width=' + GeierBreite + ',height=' + Hoehe + ',left=' + GeierLinks + ',top=26' + Plus;

    if (xtop.GeierFenster == null || xtop.GeierFenster.closed)
        xtop.GeierFenster = window.open (Inhalt, 'Geier', Parameter)
    else
        with (xtop.GeierFenster)
            {
            location.reload ();
            focus ();
            }
    }
else
    xtop.Geier_gerufen = true;
}







function Geier (geier)
{
with (document)
    {
    if (xtop.total)
        {
        write ((xtop.total.MS_ok) ? '<div style="cursor:pointer; padding-bottom:4px" onClick="GeierEbene ()"'
                                 : '<div><A HREF="javascript:GeierEbene()" style="text-decoration:none"');
        write (' title="abschweb Geier">');
        }

    write ('<img name="GeierLogo" id="GeierLogo" src="' + geier + '" alt="abschweb Geier" border=0>');

    if (xtop.total)
        write ((xtop.total.MS_ok) ? '</div>' : '</a></div>');
    }
}







///////////////////////////////////////////////////////////////////////////////////////////////////
//
//  Geier Hilfe
//

var GeierHilfeOben = 335, GeierHilfeLinks = 311, GeierHilfeHoehe = 370, GeierHilfeBreite = 700;




function GeierHilfe ()
{
var Inhalt = xtop.GeierFenster.Geier.location.href;
Inhalt = Inhalt.slice (0, Inhalt.lastIndexOf ('/')) + '/hilfe' + Inhalt.slice (Inhalt.lastIndexOf ('/'));
var Parameter = 'width=' + GeierHilfeBreite + ',height=' 
                + GeierHilfeHoehe + ',left=' + GeierHilfeLinks + ',top=' + GeierHilfeOben;

xtop.GeierHilfeFenster = window.open (Inhalt, 'GeierHilfe', Parameter);
}







function GeierHilfeCheck ()
{
var sichtbar = '';
if (xtop.GeierFenster != null)
    if (!xtop.GeierFenster.closed)
        if (xtop.GeierHilfeFenster != null)
            if (!xtop.GeierHilfeFenster.closed)
                sichtbar = 'hidden'
            else
                sichtbar = 'visible'
        else
            sichtbar = 'visible';

if (sichtbar != '')
    if (xtop.GeierFenster.rueck)
        if (xtop.GeierFenster.rueck.document)
            if (xtop.GeierFenster.rueck.document.getElementById ('Hilfe'))
                xtop.GeierFenster.rueck.document.getElementById ('Hilfe').style.visibility = sichtbar;
}







///////////////////////////////////////////////////////////////////////////////////////////////////
//
//  Geier Zusatz
//

var GeierZusatzOben = 265, GeierZusatzLinks = 241, GeierZusatzHoehe = 370, GeierZusatzBreite = 700;




function GeierZusatz ()
{
var Parameter = 'width=' + GeierZusatzBreite + ',height=' 
                + GeierZusatzHoehe + ',left=' + GeierZusatzLinks + ',top=' + GeierZusatzOben;

xtop.GeierZusatzFenster = window.open (xtop.GeierZusatzInhalt, 'GeierZusatz', Parameter);
}
