var taal     = 'ned';
var subMenu  = new Array();
var titel    = "";
var subtitel = "";
var mainMenu = new Array();

function refreshMe(language)
{
    var refreshment = 'refresh_'+language+'()';
    if (taal!=language)
        {
        if (url.slice(-2).slice(0,1) == '-')
        {
            url = url.slice(0,-1)+language.slice(0,1);
        }
    }
    eval(refreshment);
    refreshMainMenu();
    refreshLeftPane();
    refreshHome();
    var id = syncMe(url);
    showLeftPane((id-id%10)/10, id%10);
    refreshLicense();
}

refresh_ned();

function menuBar(knop,titel,subtitel,pagina,upload,menu)
{   this.naam    = knop;
    this.titel   = titel;
    this.subtitel= subtitel;
    this.pagina  = pagina;
    this.upload  = upload;
    this.menu    = menu }
function refresh_ned()
{
taal='ned';
subMenu[0]=new Array();
subMenu[1]=new Array();
subMenu[1][1]= new menuBar ("Resumé",                "Resumé",                          "Adviseur stedelijke vernieuwing",                             "resume-boel-n", "", null);
subMenu[1][2]= new menuBar ("Achtergrond logo",      "Logo",                            "Het verhaal achter de 'bol'",                                 "logo-n", "", null);
subMenu[2]=new Array();
subMenu[2][1]= new menuBar ("Economie",              "Economische ontwikkeling",         "",                                                           "econ-project-n",  "bedrijfsverzamelgebied-n", null);
subMenu[2][2]= new menuBar ("Herontwikkeling",       "Herontwikkeling vastgoed",         "",                                                           "herontwik-project-n",             "herontwikkeling-n", null);
subMenu[3]=new Array(); 
subMenu[3][1]= new menuBar ("Stedelijke vernieuwing","Stedelijke vernieuwing",           "Economische ontwikkeling",                                   "econ-public-n", "", null);
subMenu[3][2]= new menuBar ("Herontwikkeling",       "Herontwikkeling vastgoed",         "",                                                           "herontwik-public-n", "herontwikkeling-n", null);
subMenu[3][3]= new menuBar ("Capacity Building",     "Capacity Building",                "Professionele, organisatie- en institutionele ontwikkeling", "cb-public-n", "capacity-building-e", null);
subMenu[3][4]= new menuBar ("Ondernemen",            "Kleinschalig ondernemen",          "",                                                           "ondern-public-n", "", null);
subMenu[4]=new Array();
subMenu[4][1]= new menuBar ("Mathenesserdijk",       "Mathenesserdijk",                  "Burgerparticipatie",                                         "mathenesserdijk-n", "", null);
subMenu[4][2]= new menuBar ("World Affairs",         "Conference on World Affairs",      "",                                                           "cwa-n", "", null);
subMenu[4][3]= new menuBar ("Dienstverlening",       "Maatschappelijke Dienstverlening", "",                                                           "dienstverlening-n", "", null);
subMenu[4][4]= new menuBar ("ATLANT Short-Stay",     "ATLANT Short-Stay",                "Appartement",                                                "atlant-n", "", null);
subMenu[5]=new Array();
subMenu[5][1]= new menuBar ("Stad010",               "Stad010 BV",                       "",                                                           "stad010-n", "", null);
subMenu[5][2]= new menuBar ("COiD",                  "COiD",                             "Centrum Ondernemen in Delfshaven",                           "coid-n", "", null);
subMenu[5][3]= new menuBar ("Netwerken",             "Professionele netwerken",          "",                                                           "prof-netwerk-n", "", null);
subMenu[6]=new Array();
subMenu[6][1]= new menuBar ("Route OV",              "Route per openbaar vervoer",       "Mathenesserdijk 430",                                        "route-ov-md430-n", "", null);
subMenu[6][2]= new menuBar ("Route auto",            "Route per auto",                   "Mathenesserdijk 430, 3026GV",                                "route-auto-md430-n", "", null);

mainMenu[0]= new menuBar    ("Home",                  "",                             "",            "home-n",              "", subMenu[0]);
mainMenu[1]= new menuBar    ("Profiel",               "Bestuurskracht met compassie*","",            "intro-profiel-n",     "", subMenu[1]);
mainMenu[2]= new menuBar    ("Projecten",             "Projecten",                    "Voorbeelden", "intro-project-n",     "", subMenu[2]);
mainMenu[3]= new menuBar    ("Publicaties",           "Publicaties",                  "Selectie",    "intro-publicaties-n", "", subMenu[3]);
mainMenu[4]= new menuBar    ("Bijzonder",             "Bijzondere activiteiten",      "",            "intro-bijzonder-n",   "", subMenu[4]);
mainMenu[5]= new menuBar    ("Netwerk",               "Werknetwerk",                  "",            "intro-werknetwerk-n", "", subMenu[5]);
mainMenu[6]= new menuBar    ("Contact",               "Contactgegevens",              "",            "intro-contact-n",     "", subMenu[6]);
}
function refresh_eng()
{
taal='eng';
subMenu[0]=new Array();
subMenu[1]=new Array();
subMenu[1][1]= new menuBar ("Résumé",                "Résumé",                         "Advisor Urban Renewal",                                      "resume-boel-e", "", null);
subMenu[1][2]= new menuBar ("Background Logo",       "Logo",                           "Story behind the Logo",                                      "logo-e", "", null);
subMenu[2]=new Array();
subMenu[2][1]= new menuBar ("Economy",                "Economic development",          "",                                                           "econ-project-e",  "", null);
subMenu[2][2]= new menuBar ("Property Redevelopment", "Property Redevelopment",        "",                                                           "herontwik-project-e",             "", null);
subMenu[3]=new Array();
subMenu[3][1]= new menuBar ("Urban Renewal",          "Urban Renewal",                 "Economic development",                                       "econ-public-e", "", null);
subMenu[3][2]= new menuBar ("Property Redevelopment", "Property Redevelopment",        "",                                                           "herontwik-public-e", "", null);
subMenu[3][3]= new menuBar ("Capacity Building",      "Capacity Building",             "Professional, organisational and institutional development", "cb-public-e", "capacity-building-e", null);
subMenu[3][4]= new menuBar ("Entrepreneurship",       "Small Scale Entrepreneurship",  "",                                                           "ondern-public-e", "", null);
subMenu[4]=new Array();
subMenu[4][1]= new menuBar ("Mathenesserdijk",        "Mathenesserdijk",               "",                                                           "mathenesserdijk-e", "", null);
subMenu[4][2]= new menuBar ("World Affairs",          "Conference on World Affairs",   "",                                                           "cwa-e", "", null);
subMenu[4][3]= new menuBar ("Community Service",      "Small Scale Community Service", "",                                                           "dienstverlening-e", "", null);
subMenu[4][4]= new menuBar ("ATLANT Short-Stay",      "ATLANT Short-Stay",             "",                                                           "atlant-e", "", null);
subMenu[5]=new Array();
subMenu[5][1]= new menuBar ("Stad010",                "Stad010 Ltd",                   "",                                                           "stad010-e", "", null);
subMenu[5][2]= new menuBar ("COiD",                   "COiD",                          "Centre for Entrepreneurship Delfshaven",                     "coid-e", "", null);
subMenu[5][3]= new menuBar ("Networks",               "Professional Networks",         "",                                                           "prof-netwerk-e", "", null);
subMenu[6]=new Array();
subMenu[6][1]= new menuBar ("Public Transport",       "Route by Public Transport",     "Mathenesserdijk 430",                                        "route-ov-md430-e", "", null);
subMenu[6][2]= new menuBar ("Car",                    "Route by Car",                  "Mathenesserdijk 430, 3026GV",                                "route-auto-md430-e", "", null);

mainMenu[0]= new menuBar    ("Home",                  "",                                          "",          "home-e",              "", subMenu[0]);
mainMenu[1]= new menuBar    ("Profile",               "Leadership with authority and compassion*", "",          "intro-profiel-e",     "", subMenu[1]);
mainMenu[2]= new menuBar    ("Projects",              "Projects",                                  "Examples",  "intro-project-e",     "", subMenu[2]);
mainMenu[3]= new menuBar    ("Publications",          "Publications",                              "Selection", "intro-publicaties-e", "", subMenu[3]);
mainMenu[4]= new menuBar    ("Special",               "Special Activities",                        "",          "intro-bijzonder-e",   "", subMenu[4]);
mainMenu[5]= new menuBar    ("Network",               "Worknetwork",                               "",          "intro-werknetwerk-e", "", subMenu[5]);
mainMenu[6]= new menuBar    ("Contact",               "Contact Information",                       "",          "intro-contact-e",     "", subMenu[6]);
}

