// Script library for nord-ost-gemeinde.de


/* make footer  */
function footer()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2010 <a href=\"http://www.nord-ost-gemeinde.de\" target=_top>Nord-Ost-Gemeinde Frankfurt</a> <img src=\"images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer  */
function footer2002()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.nord-ost-gemeinde.de\" target=_top>Nord-Ost-Gemeinde Frankfurt</a> <img src=\"images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer  */
function footer2003()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.nord-ost-gemeinde.de\" target=_top>Nord-Ost-Gemeinde Frankfurt</a> <img src=\"images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer  */
function footer2005()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.nord-ost-gemeinde.de\" target=_top>Nord-Ost-Gemeinde Frankfurt</a> <img src=\"images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer-1 */
function footer1()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"../images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.nord-ost-gemeinde.de\" target=_top>Nord-Ost-Gemeinde Frankfurt</a> <img src=\"../images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer  */
function footerCVJM2005()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.cvjm-nord-ost.de\" target=_top>CVJM Nord-Ost</a> <img src=\"images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer-1 */
function footer1CVJM2005()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"../images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.cvjm-nord-ost.de\" target=_top>CVJM Nord-Ost</a> <img src=\"../images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer-2 */
function footer2CVJM2005()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"../../images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.cvjm-nord-ost.de\" target=_top>CVJM Nord-Ost</a> <img src=\"../../images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* make footer-3 */
function footer3CVJM2005()
{
        document.writeln("<p class=copyright>");
        document.writeln("<br>");
        document.writeln("<img src=\"../../../images/linie.gif\" alt=\"linie\" width=\"100%\" border=\"0\"><br>");
        document.writeln("&copy; 2001&ndash;2008 <a href=\"http://www.cvjm-nord-ost.de\" target=_top>CVJM Nord-Ost</a> <img src=\"../../../images/xgmail.gif\" width=12 height=8 border=0 alt=\"Mail\">&nbsp;<a href=\"mailto:webmaster@nord-ost-gemeinde.de\">webmaster@nord-ost-gemeinde.de</a>");
        document.writeln("</p>");
}

/* E-Mail */
function writeMailLink(emailAddress,textForLink)
{
         text = "<img SRC=\"images/xgmail.gif\"" +
                "ALT=\"Briefkasten\" BORDER=0 height=9 width=14>&nbsp;" +
                "<a href=\"mailto:" +
                emailAddress + "\"><em class=mailLink>" +
                textForLink + "</em></a>";
         document.writeln(text);
}

/* E-Mail 1 */
function writeMailLink1(emailAddress,textForLink)
{
         text = "<img SRC=\"../images/xgmail.gif\"" +
                "ALT=\"Briefkasten\" BORDER=0 height=9 width=14>&nbsp;" +
                "<a href=\"mailto:" +
                emailAddress + "\"><em class=mailLink>" +
                textForLink + "</em></a>";
         document.writeln(text);
}

/* E-Mail 2 */
function writeMailLink2(emailAddress,textForLink)
{
         text = "<img SRC=\"../../images/xgmail.gif\"" +
                "ALT=\"Briefkasten\" BORDER=0 height=9 width=14>&nbsp;" +
                "<a href=\"mailto:" +
                emailAddress + "\"><em class=mailLink>" +
                textForLink + "</em></a>";
         document.writeln(text);
}

/* E-Mail 3 */
function writeMailLink3(emailAddress,textForLink)
{
         text = "<img SRC=\"../../../images/xgmail.gif\"" +
                "ALT=\"Briefkasten\" BORDER=0 height=9 width=14>&nbsp;" +
                "<a href=\"mailto:" +
                emailAddress + "\"><em class=mailLink>" +
                textForLink + "</em></a>";
         document.writeln(text);
}

/* banner functions */

function bannerObj (p,d)
{
          this.info   = BANNERINFO
          this.out   = " "
          this.pos   = -1

        //A trick to get an output for non-Javascript Browsers
          this.delay = WAIT
          this.i     = 0
          this.reset = clearBanner

}
function clearBanner()
{
          this.pos = 58
}

        var WAIT       = 175
                   var BANNERINFO = " Herzlich willkommen bei der Personalkirchengemeinde Nord-Ost-Gemeinde!"  // text fuer scroll text
        var banner     = new bannerObj()

function scroller()
{
          for (banner.i = 0; banner.i < banner.pos; banner.i++)
        {
            banner.out += " "
          }


        if (banner.pos >= 0)
        banner.out += banner.info
          else
          banner.out = banner.info.substring(-banner.pos,banner.info.length)
          document.bannerform.bannerField.value = banner.out
                banner.out = " "
          banner.pos--

        if (banner.pos < -(banner.info.length))
          banner.reset()
          setTimeout ('scroller()',banner.delay)

        }


/* menue functions */
var imageWidthMenueLeft=100;
var imageHeightMenueLeft=30;

/*  Array for the Menu:
0 = nord_ost
1 = cvjm
2 = arche
3 = thino  -- z.Zt. deaktiviert
4 = kontakt
5 = tob
6 = Download

blanks: vor dem Bild
start: start-Page für menu
*/
theLinesBeforeMenuLeft = new Array(7);
theBlanksForMenuLeft = new Array(7);
theStartPagesForMenuLeft = new Array (7);
theMenuNamesForMenuLeft = new Array (7);
theAlternateTextForMenuLeft = new Array (7);
theSubMenues = new Array(7);
theSubMenuesTarget = new Array(7);
theHeightOfGapAfterMenues = new Array(7);
theHeightOfGapAfterSubMenues = new Array(7);

/* Nord-Ost */
theLinesBeforeMenuLeft[0] = "<tr><td><br><br></td></tr>";
theBlanksForMenuLeft [0] = "&nbsp;";
theStartPagesForMenuLeft [0] = "nord_ost_einstieg.htm";
theMenuNamesForMenuLeft [0] = "nord_ost";
theAlternateTextForMenuLeft [0] = "Interessantes zur Nord-Ost-Gemeinde";

theSubMenues[0] = new Array(4);
theSubMenuesTarget[0] = new Array(4);
theSubMenues[0][0] = "Wir stellen uns vor";
theSubMenuesTarget[0][0] = "nord_ost_vorstellung.htm";
theSubMenues[0][1] = "Impuls";
theSubMenuesTarget[0][1] = "nord_ost_impuls.htm";
theSubMenues[0][2] = "Veranstaltungen";
theSubMenuesTarget[0][2] = "nord_ost_veranstaltungen.htm";
theSubMenues[0][3] = "Adressen";
theSubMenuesTarget[0][3] = "nord_ost_ansprech.htm";
/* theSubMenues[0][3] = "Foto-Galerie"; */
/* theSubMenuesTarget[0][3] = "nord_ost_galerie.htm"; */

theHeightOfGapAfterMenues [0]    = 20;
theHeightOfGapAfterSubMenues [0] = 10;

/* cvjm */
theLinesBeforeMenuLeft[1] = "";
theBlanksForMenuLeft [1] = "&nbsp;";
theStartPagesForMenuLeft [1] = "cvjm_einstieg.htm";
theMenuNamesForMenuLeft [1] = "cvjm";
theAlternateTextForMenuLeft [1] = "CVJM (Christlicher Verein junger Menschen) - die Jugendarbeit unserer Gemeinde";

theSubMenues[1] = new Array(8);
theSubMenuesTarget[1] = new Array(8);

theSubMenues[1][0] = "KURZ + KNAPP";
theSubMenuesTarget[1][0] = "cvjm/kurz_knapp/cvjm_news.htm";
theSubMenues[1][1] = "Der CVJM von A- Z";
theSubMenuesTarget[1][1] = "cvjm/abc/cvjm_abc.htm";
theSubMenues[1][2] = "CVJM Jugendarbeit";
theSubMenuesTarget[1][2] = "cvjm/jugend/cvjm_jugend.htm";
theSubMenues[1][3] = "Mini-Club";
theSubMenuesTarget[1][3] = "cvjm/miniclub/cvjm_miniclub.htm";
theSubMenues[1][4] = "Kirchenmäuse";
theSubMenuesTarget[1][4] = "cvjm/kirchenmaeuse/cvjm_kirchenmaeuse.htm";
theSubMenues[1][5] = "fisherman friend";
theSubMenuesTarget[1][5] = "cvjm/fisherman/cvjm_fisherman.htm";
theSubMenues[1][6] = "L.O.G.S.";
theSubMenuesTarget[1][6] = "cvjm/logs/cvjm_logs.htm";
theSubMenues[1][7] = "Twentreff";
theSubMenuesTarget[1][7] = "cvjm/twentreff/cvjm_twentreff.htm";
/* theSubMenues[1][8] = "Vater-Kind";
theSubMenuesTarget[1][8] = "cvjm/vaterkind/wochenende_2007_10_bericht.htm";
theSubMenues[1][9] = "Refreshing";
theSubMenuesTarget[1][9] = "cvjm/refreshing/cvjm_refreshing.htm";

theSubMenues[1][9] = "Jungschar";
theSubMenuesTarget[1][9] = "cvjm/jungschar/cvjm_jungschar.htm";
theSubMenues[1][10] = "Waschsalon";
theSubMenuesTarget[1][10] = "cvjm/waschsalon/cvjm_waschsalon.htm";
theSubMenues[1][11] = "Fußball";
theSubMenuesTarget[1][11] = "cvjm/fussball/cvjm_fussball.htm";
theSubMenues[1][12] = "Fishborn";
theSubMenuesTarget[1][12] = "cvjm/fishborn/cvjm_fishborn.htm";
*/


theHeightOfGapAfterMenues [1]    = 20;
theHeightOfGapAfterSubMenues [1] = 10;

/* JustGo */
theLinesBeforeMenuLeft[2] = "";
theBlanksForMenuLeft [2] = "&nbsp;";
theStartPagesForMenuLeft [2] = "justgo_einstieg.htm";
theMenuNamesForMenuLeft [2] = "arche";
theAlternateTextForMenuLeft [2] = "Just Go - der Aufbruchgottesdienst";

theSubMenues[2] = new Array(1);
theSubMenuesTarget[2] = new Array(1);
/* theSubMenues[2][0] = "Das Programm";
theSubMenuesTarget[2][0] = "justgo/justgo_programm.htm"; */
theSubMenues[2][0] = "Berichte";
theSubMenuesTarget[2][0] = "justgo/justgo_berichte.htm";

theHeightOfGapAfterMenues [2]    = 20;
theHeightOfGapAfterSubMenues [2] = 10;

/* Thino */
theLinesBeforeMenuLeft[3] = "";
theBlanksForMenuLeft [3] = "&nbsp;";
theStartPagesForMenuLeft [3] = "thino_einstieg.htm";
theMenuNamesForMenuLeft [3] = "thino";
theAlternateTextForMenuLeft [3] = "Theater in Nord-Ost";

theSubMenues[3] = new Array(0);
theSubMenuesTarget[3] = new Array(0);
/*theSubMenues[3][0] = "Vorschau";
theSubMenuesTarget[3][0] = "thino_vorschau.htm";*/
/* theSubMenues[3][0] = "R&uuml;ckschau";
theSubMenuesTarget[3][0] = "thino_rueckschau.htm"; */
/*theSubMenues[3][2] = "Das Team";
theSubMenuesTarget[3][2] = "thino_team.htm";
*/



theHeightOfGapAfterMenues [3]    = 20;
theHeightOfGapAfterSubMenues [3] = 20;

/* Kontakt */
theLinesBeforeMenuLeft[4] = "";
theBlanksForMenuLeft [4] = "&nbsp;";
theStartPagesForMenuLeft [4] = "nord_ost_ansprech.htm";
theMenuNamesForMenuLeft [4] = "kontakt";
theAlternateTextForMenuLeft [4] = "Kontakt";

theSubMenues[4] = new Array(0);
theSubMenuesTarget[4] = new Array(0);

theHeightOfGapAfterMenues [4]    = 20;
theHeightOfGapAfterSubMenues [4] = 20;

/* tob */
theLinesBeforeMenuLeft[5] = "";
theBlanksForMenuLeft [5] = "&nbsp;";
theStartPagesForMenuLeft [5] = "tob_einstieg.htm";
theMenuNamesForMenuLeft [5] = "tob";
theAlternateTextForMenuLeft [5] = "Jugendgottesdienst - der Jugend-Gottesdienst für 13 - 17 Jährige";

theSubMenues[5] = new Array(0);
theSubMenuesTarget[5] = new Array(0);
/* Submenue deaktiviert
theSubMenues[5][0] = "R&uuml;ckschau";
theSubMenuesTarget[5][0] = "tob_rueckschau.htm";
*/

theHeightOfGapAfterMenues [5]    = 20;
theHeightOfGapAfterSubMenues [5] = 10;

/* Download */
theLinesBeforeMenuLeft[6] = "";
theBlanksForMenuLeft [6] = "&nbsp;";
theStartPagesForMenuLeft [6] = "download_einstieg.htm";
theMenuNamesForMenuLeft [6] = "download";
theAlternateTextForMenuLeft [6] = "Download";

theSubMenues[6] = new Array(0);
theSubMenuesTarget[6] = new Array(0);

theHeightOfGapAfterMenues [6]    = 20;
theHeightOfGapAfterSubMenues [6] = 20;

/* END DEFINITION OF LEFT MENUE ENTRIES */
/* ********************************************* */
/* DEFINITION for Menu on top */
/*  Array for the Menu:
0 = besonderes
1 = gottesdienste
2 = veranstaltungen
3 = background
4 = seelsorge
5 = links

blanks: vor dem Bild
start: start-Page für menu
*/

var imageWidthMenueTop=100;
var imageHeightMenueTop=30;

theBlanksForMenuTop = new Array(6);

theStartPagesForMenuTop = new Array (6);
theMenuNamesForMenuTop = new Array (6);
theAlternateTextForMenuTop = new Array (6);

theMenuNamesForMenuTop [0] = "besonderes";
theStartPagesForMenuTop [0] = "besonderes_einstieg.htm";
theAlternateTextForMenuTop [0] = "Herzliche Einladung zu besonderen Events";
theBlanksForMenuTop [0] = "&nbsp;";

theMenuNamesForMenuTop [1] = "gottesdienste";
theStartPagesForMenuTop [1] = "gottesdienste_einstieg.htm";
theAlternateTextForMenuTop [1] = "Gottesdienste und mehr";
theBlanksForMenuTop [1] = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

theMenuNamesForMenuTop [2] = "veranstaltungen";
theStartPagesForMenuTop [2] = "nord_ost_veranstaltungen.htm";
theAlternateTextForMenuTop [2] = "Herzliche Einladung zu unseren regelmäßigen Veranstaltungen";
theBlanksForMenuTop [2] = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

theMenuNamesForMenuTop [3] = "kontakt";
theStartPagesForMenuTop [3] = "nord_ost_ansprech.htm";
theAlternateTextForMenuTop [3] = "Kontakt";
theBlanksForMenuTop [3] = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

theMenuNamesForMenuTop [4] = "seelsorge";
theStartPagesForMenuTop [4] = "seelsorge_einstieg.htm";
theAlternateTextForMenuTop [4] = "Möglichkeit zur Seelsorge";
theBlanksForMenuTop [4] = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";

theMenuNamesForMenuTop [5] = "links";
theStartPagesForMenuTop [5] = "links_einstieg.htm";
theAlternateTextForMenuTop [5] = "Interessante Links";
theBlanksForMenuTop [4] = "&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;";
/* END DEFINITION for NAV BAR */
function writeMenuEntry(menuNr)
{
         writeMenuStart(menuNr);
         writeMenuAnchor(menuNr);
         writeMenuMain(menuNr,"");
         writeAnchorEnd();
         writeMenuEnd();
         makeBlankLineInTable(theHeightOfGapAfterMenues[menuNr]);
}

function writeMenuEntryChosen(menuNr)
{
         writeMenuStart(menuNr);
         writeMenuAnchorChosen(menuNr);
         writeMenuMain(menuNr,"_on");
         writeAnchorEnd();
         writeMenuEnd();
         writeSubMenues(menuNr);
         makeBlankLineInTable(theHeightOfGapAfterSubMenues[menuNr]);
}

function writeMenuStart(menuNr)
{
         text = theLinesBeforeMenuLeft[menuNr] + "<tr><td>" + theBlanksForMenuLeft[menuNr];
         document.write(text);
}

function writeMenuAnchor(menuNr)
{
          text = "<a href=\"javascript:showPage('menue_links_" + theMenuNamesForMenuLeft[menuNr] + "_on.htm','menue_oben.htm','" + theStartPagesForMenuLeft[menuNr] + "')\" target=\"_top\" onmouseout=\"turn_off('menue_" + theMenuNamesForMenuLeft[menuNr] + "')\" onmouseover=\"turn_over('menue_" + theMenuNamesForMenuLeft[menuNr] + "')\">";
         document.write(text);
}

function writeMenuAnchorChosen(menuNr)
{
         text = "<a href=\"javascript:showPage('menue_links_" + theMenuNamesForMenuLeft[menuNr] + "_on.htm','menue_oben.htm','" + theStartPagesForMenuLeft[menuNr] + "')\" target=\"_top\">";
         document.write(text);
}

function writeMenuMain(menuNr,status)
{
         imageNr = menuNr + 1;
        text = "<img name=\"menue_" + theMenuNamesForMenuLeft[menuNr] + "\" src=\"images/menue/menu_B" + imageNr + status + ".gif\" alt=\"" + theAlternateTextForMenuLeft [menuNr] + "\" border=\"0\" width=\"" + imageWidthMenueLeft + "\" height=\"" + imageHeightMenueLeft + "\">";
        document.write(text);
}


function writeAnchorEnd()
{
        document.write("</a>");
}

function writeMenuEnd()
{
         document.writeln("</td></tr>");
}
function writeColumnEnd()
{
         document.writeln("</td>");
}

function writeSubMenues(menuNr)
{
     for (i=0; i < theSubMenues[menuNr].length;i++)
     {
     text = "<tr>" +
     "<td class=\"subentry\">" + theBlanksForMenuLeft[menuNr] +
     "<a target=\"nord_ost_content\" href=\"" + theSubMenuesTarget[menuNr][i] + "\">" +
"<img src=\"images/aufzaehl.gif\" alt=\"Aufzählungszeichen\" border=\"0\" width=\"12\" height=\"12\"></a>" +
        "&nbsp;<a target=\"nord_ost_content\" href=\"" + theSubMenuesTarget[menuNr][i] + "\" >"  + theSubMenues[menuNr][i] +
     "</a>" +
     "</td>" +
     "</tr>";
     document.writeln(text);
     }

}

/* make blank line with special heightz */
function makeBlankLineInTable(height)
{
        document.writeln("<tr><td height=\"" + height +"\"></td></tr>");
}

/* make blank line with special heightz */
function makeBlankLineInTableForMenueTop()
{
        height = 15;
        document.writeln("<tr><td height=\"" + height +"\"></td></tr>");
}
/*  menu top */
function makeTopEntry(menuNr)
{
      makeTopEntryStart(menuNr);
      makeTopEntryAnchor(menuNr);
      makeTopEntryMain(menuNr,"");
      writeAnchorEnd();
      writeColumnEnd();
}

/*  menu top */
function makeTopEntryChosen(menuNr)
{
      makeTopEntryStart(menuNr);
      makeTopEntryAnchorChosen(menuNr);
      makeTopEntryMain(menuNr,"_on");
      writeAnchorEnd();
      writeColumnEnd();
}

/*  menu top */
function makeTopEntryStart(menuNr)
{
      text = "<td>" + theBlanksForMenuTop [menuNr] + "</td>" +
      "<td>";
      document.write(text);
}


/*  menu top */
function makeTopEntryAnchor(menuNr)
{
      text="<a href=\"javascript:showPage('menue_links.htm','menue_oben_" +
      theMenuNamesForMenuTop[menuNr] + "_on.htm','" +
      theStartPagesForMenuTop[menuNr] + "')\" target=\"_top\"" +
      " onmouseout=\"turn_off('oben_" + theMenuNamesForMenuTop[menuNr] +
      "')\"" +
      " onmouseover=\"turn_over('oben_" + theMenuNamesForMenuTop[menuNr] +
      "')\">";
       document.write(text);
}
/*  menu top */
function makeTopEntryAnchorChosen(menuNr)
{
      text="<a href=\"javascript:showPage('menue_links.htm','menue_oben_" +
      theMenuNamesForMenuTop[menuNr] + "_on.htm','" +
      theStartPagesForMenuTop[menuNr] + "')\" target=\"_top\">"
      document.write(text);
}

function makeTopEntryMain(menuNr,status)
{
      imageNr = menuNr + 1;
      text="<img name=\"oben_" + theMenuNamesForMenuTop[menuNr] +
      "\" src=\"images/menue/oben_B" + imageNr + status + ".gif\" alt=\"" +
      theAlternateTextForMenuTop[menuNr] + "\" border=\"0\" width=\"" +
      imageWidthMenueTop + "\" height=\"" + imageHeightMenueTop + "\">";
      document.write(text);
}
function turn_off(ImageName)
{
        if (document.images != null)
        {
                document[ImageName].src = eval(ImageName + "_off.src");
        }
}

function turn_over(ImageName)
{
        if (document.images != null)
        {
                document[ImageName].src = eval(ImageName + "_over.src");
        }
}
function turn_on(ImageName)
{//alert ("active Menu = " + activeMenu);
// vorheriges Bild ausmachen
   /* if (activeMenu != "")
    {
        document[activeMenu].src=activeMenu + "_off.src");
    }

    activeMenu = ImageName;
*/
    if (document.images != null)

    {
        document[ImageName].src = eval(ImageName + "_on.src");
    }
}

function define_images_for_menue_left()
{    if (document.images)
    {
        menue_nord_ost_off = new Image();
        menue_nord_ost_off.src = "images/menue/menu_B1.gif";
        menue_nord_ost_over = new Image();
        menue_nord_ost_over.src = "images/menue/menu_B1_over.gif";
        menue_nord_ost_on = new Image();
        menue_nord_ost_on.src = "images/menue/menu_B1_on.gif";
        menue_cvjm_off = new Image();
        menue_cvjm_off.src = "images/menue/menu_B2.gif";
        menue_cvjm_over = new Image();
        menue_cvjm_over.src = "images/menue/menu_B2_over.gif";
        menue_cvjm_on = new Image();
        menue_cvjm_on.src = "images/menue/menu_B2_on.gif";
        menue_arche_off = new Image();
        menue_arche_off.src = "images/menue/menu_B3.gif";
        menue_arche_over = new Image();
        menue_arche_over.src = "images/menue/menu_B3_over.gif";
        menue_arche_on = new Image();
        menue_arche_on.src = "images/menue/menu_B3_on.gif";
        menue_thino_off = new Image();
        menue_thino_off.src = "images/menue/menu_B4.gif";
        menue_thino_over = new Image();
        menue_thino_over.src = "images/menue/menu_B4_over.gif";
        menue_thino_on = new Image();
        menue_thino_on.src = "images/menue/menu_B4_on.gif";
        menue_tob_off = new Image();
        menue_tob_off.src = "images/menue/menu_B6.gif";
        menue_tob_over = new Image();
        menue_tob_over.src = "images/menue/menu_B6_over.gif";
        menue_tob_on = new Image();
        menue_tob_on.src = "images/menue/menu_B6_on.gif";
        menue_download_off = new Image();
        menue_download_off.src = "images/menue/menu_B7.gif";
        menue_download_over = new Image();
        menue_download_over.src = "images/menue/menu_B7_over.gif";
        menue_download_on = new Image();
        menue_download_on.src = "images/menue/menu_B7_on.gif";


    }
    else
    {
     alert ("no images defined");
    }
}

 function define_images_for_menue_oben()
{
    if (document.images)
    {
        oben_besonderes_off = new Image();
        oben_besonderes_off.src = "images/menue/oben_B1.gif";
        oben_besonderes_over = new Image();
        oben_besonderes_over.src = "images/menue/oben_B1_over.gif";
        oben_besonderes_on = new Image();
        oben_besonderes_on.src = "images/menue/oben_B1_on.gif";
        oben_gottesdienste_off = new Image();
        oben_gottesdienste_off.src = "images/menue/oben_B2.gif";
        oben_gottesdienste_over = new Image();
        oben_gottesdienste_over.src = "images/menue/oben_B2_over.gif";
        oben_gottesdienste_on = new Image();
        oben_gottesdienste_on.src = "images/menue/oben_B2_on.gif";
        oben_veranstaltungen_off = new Image();
        oben_veranstaltungen_off.src = "images/menue/oben_B3.gif";
        oben_veranstaltungen_over = new Image();
        oben_veranstaltungen_over.src = "images/menue/oben_B3_over.gif";
        oben_veranstaltungen_on = new Image();
        oben_veranstaltungen_on.src = "images/menue/oben_B3_on.gif";
        oben_background_off = new Image();
        oben_background_off.src = "images/menue/oben_B4.gif";
        oben_background_over = new Image();
        oben_background_over.src = "images/menue/oben_B4_over.gif";
        oben_background_on = new Image();
        oben_background_on.src = "images/menue/oben_B4_on.gif";
        oben_seelsorge_off = new Image();
        oben_seelsorge_off.src = "images/menue/oben_B5.gif";
        oben_seelsorge_over = new Image();
        oben_seelsorge_over.src = "images/menue/oben_B5_over.gif";
        oben_seelsorge_on = new Image();
        oben_seelsorge_on.src = "images/menue/oben_B5_on.gif";
        oben_links_off = new Image();
        oben_links_off.src = "images/menue/oben_B6.gif";
        oben_links_over = new Image();
        oben_links_over.src = "images/menue/oben_B6_over.gif";
        oben_links_on = new Image();
        oben_links_on.src = "images/menue/oben_B6_on.gif";
        oben_kontakt_off = new Image();
        oben_kontakt_off.src = "images/menue/oben_B4.gif";
        oben_kontakt_over = new Image();
        oben_kontakt_over.src = "images/menue/oben_B4_over.gif";
        oben_kontakt_on = new Image();
        oben_kontakt_on.src = "images/menue/oben_B4_on.gif";


    }
}


function showPage(pageMenueLeft,pageMenueOben,pageContent)
{
 /* self.nord_ost_menue_links.location=pageMenueLeft;
 self.nord_ost_menue_oben.location=pageMenueOben;
 self.nord_ost_content.location=pageContent; */ 
 parent.nord_ost_menue_links.location=pageMenueLeft;
 parent.nord_ost_menue_oben.location=pageMenueOben;
 parent.nord_ost_content.location=pageContent; 


}

/* open an new browserwindow with the given html page */
function openPageInExtraWindow(aHTMLFileName,aWindowName)
{
        var theWindow = window.open(aHTMLFileName,aWindowName,'toolbar=yes,location=no,directories=no,status=no,scrollbars=yes,resizeable=yes,copyhistory=no,width=640,height=600');
        theWindow.focus();
}

/* open an new browserwindow with the given html page */
function openPageInBigWindow(aHTMLFileName,aWindowName)
{
        var theWindow = window.open(aHTMLFileName,aWindowName,'toolbar=no,location=no,directories=no,status=no,scrollbars=yes,resizeable=yes,copyhistory=no,width=800,height=600');
        theWindow.focus();
}