
function getMainMenu( sep )
{
    // Description: Retrieves the main menu for the header and footer of the page.
    //              Is called from various places in the page directory tree.
    //              The input argument may be omitted. Default set to "";
    //              Links and paragraphs are utilising the 'main.css' file classes.
    // 
    // Arguments:   string 'sep'
    //              The string is used to set the link directories of the meny
    //              to correct location in the directory tree.
    //              Moving up in the tree is made by the string '../'

    // set sep to default value
    if( sep == undefined || sep == null ) sep = "";

    // write menu items
    document.write( "<p class = mainmenu>" );
    document.write( "<a class = mymenu href=\"" + sep + "index.html\"><b>Startsida</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "fotoarkiv/fotoarkiv.html\"><b>Fotoarkiv</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "sys/subs/setsubscriber.php\"><b>Registrera</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "fotoarkiv/evenemang.html\"><b>Evenemang</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "fotoskola/fotoskola.html\"><b>Fotoskola</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "stallalbert/stall_albert.html\"><b>Stall Albert</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "galleri/galleri.html\"><b>Galleri</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "links/links.html\"><b>L&auml;nkar</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "australien/australienny.html\"><b>Australien</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "publicerat/publicerat.html\"><b>Publicerat</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "uppdaterat/uppdaterat.html\"><b>Uppdaterat</b></a> " );
    document.write( "<a href = \"" + sep + "index_e.html\" target = \"_blank\"><img class = noborder src=\"" + sep + "uk.jpg\" alt = \"English version\"></a>" );
    document.write( "</p>" );
    document.write( "<p class = \"redborder2\"><b>Inga bilder f&aring;r publiceras p&aring; Internetstall.</b></p>")

};

function getMainMenuE( sep )
{
    // Description: Retrieves the main menu for the header and footer of the page.
    //              Is called from various places in the page directory tree.
    //              The input argument may be omitted. Default set to "";
    //              Links and paragraphs are utilising the 'main.css' file classes.
    // 
    // Arguments:   string 'sep'
    //              The string is used to set the link directories of the meny
    //              to correct location in the directory tree.
    //              Moving up in the tree is made by the string '../'

    // set sep to default value
    if( sep == undefined || sep == null ) sep = "";

    // write menu items
    document.write( "<p class = mainmenu_e>" );
    document.write( "<a class = mymenu href=\"" + sep + "index_e.html\"><b>Home</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "fotoskola/fotoskola_english.html\"><b>Photo school</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "stallalbert/stall_albert_english.html\"><b>The Albert stable</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "fotoarkiv/fotoarkiv_english.html\"><b>Photo archive</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "galleri/galleri_english.html\"><b>Galleries</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "links/links_english.html\"><b>Links</b></a> " );
//    document.write( "<a class = mymenu href=\"" + sep + "australien/australienny_english.html\"><b>Australia</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "publicerat/publicerat_english.html\"><b>Published</b></a> " );
    document.write( "<a class = mymenu href=\"" + sep + "uppdaterat/uppdaterat_english.html\"><b>Uppdated</b></a> " );
    document.write( "<a href = \"" + sep + "index.html\" target = \"_blank\"><img class = noborder src=\"" + sep + "swe.jpg\" alt = \"Swedish version\"></a>" );
    document.write( "</p>" );
};

function getFooter()
{
    // Description: Retrieves the footer text for the page.
    //              The mail reference is split so 'mailsniffers' get a harder time
    //              to find a full address.

    var str = '<p class = bildtext>Copyright &copy; 2000-2007 ';
    str += '<a href = "mailto:';
    str += 'fotograf';
    str += '@johannalagnevall'
    str += '.com">';
    str += 'Johanna Lagnevall';
    str += '</a></p>';
    document.write( str );
};

function getContactAddress( text )
{

    // Description: Retrieves a contact link for the page.
    //              The mail reference is split so 'mailsniffers' get a harder time
    //              to find a full address.
    //
    // Arguments:   string 'text'
    //              Will be the text of the actual link in, '<a>text</a>'
    //              If the text is omitted or undefined a default text is set.

    if( text == undefined || text == null )
    {
        text = 'TEXT IS NOT SET';
    }
    var str = '<a href = "mailto:';
    str += 'fotograf';
    str += '@johannalagnevall';
    str += '.com">';
    str += text;
    str += '</a>';
    document.write( str );
};

