TopMenu_opts = new Array(
"Home", "index.htm",
//"About", "about.htm",
"Events", "events.htm",
//"Gallery", "gallery/index.htm", 
"InterAct", "interact.htm",
"News", "news.htm", 
"Resources", "resource.htm",
"Recruitment", "join.htm",
"Training", "training.htm"
);
var BasePath;
MenuSize = TopMenu_opts.length;

function BuildTopMenu() {
    for (var x = 0; x < MenuSize; x = x + 2)
        document.write("<a href=" + BasePath + TopMenu_opts[x + 1] + ">[" + TopMenu_opts[x] + "]</a>&nbsp;");
}
function BuildLeftMenu() {
    for (var x = 0; x < LeftMenuSize; x = x + 3) {
        switch (LeftMenu[x]) {
            case "T": document.write("<span class=menutitle><a href=" + MenuPath + LeftMenu[x + 2] + ">" + LeftMenu[x + 1] + "</a></span><br/>"); break;
            case "1":
                if (LeftMenu[x + 2] == "") {
                    document.write("<br/>" + LeftMenu[x + 1]);
                }
                else {
                    document.write("<a href=" + MenuPath + LeftMenu[x + 2] + ">" + LeftMenu[x + 1] + "</a><br/>");
                }
                break;
            case "2": document.write("<span class=leftnavigationsub><li><a href=" + MenuPath + LeftMenu[x + 2] + ">" + LeftMenu[x + 1] + "</a></span><br/>"); break;
            case "2N": document.write("<span class=leftnavigationsub><li><a href=" + MenuPath + LeftMenu[x + 2] + " target=_blank>" + LeftMenu[x + 1] + "</a></span><br/>"); break;
            case "2X": document.write("<span class=leftnavigationsub><li><a href=" + LeftMenu[x + 2] + ">" + LeftMenu[x + 1] + "</a></span><br/>"); break;
            case "3": document.write("<span class=leftnavigationsub2><li><a href=" + MenuPath + LeftMenu[x + 2] + ">" + LeftMenu[x + 1] + "</a></span><br/>"); break;
            case "BR": document.write("<br/>"); break;
        }
    }
}
function BuildLeftMenuFour() {
    for (var x = 0; x < LeftMenuSize; x = x + 4) {
        if (LeftMenu[x + 1] == "GEN" || LeftMenu[x + 1] == SectionName) {
            switch (LeftMenu[x]) {
                case "T":
                    if (LeftMenu[x + 2] == "") {
                        document.write("<br/>" + LeftMenu[x + 1]);
                    }
                    else {
                        document.write("<span class=menutitle><a href=" + MenuPath + LeftMenu[x + 3] + ">" + LeftMenu[x + 2] + "</a><br/></span>");
                    }
                    break;
                case "1":
                    if (LeftMenu[x + 2] == "") {
                        document.write("<br/>" + LeftMenu[x + 1]);
                    }
                    else {
                        document.write("<a href=" + MenuPath + LeftMenu[x + 3] + ">" + LeftMenu[x + 2] + "</a><br/>");
                    }
                    break;
                case "2": document.write("<span class=leftnavigationsub><li><a href=" + MenuPath + LeftMenu[x + 3] + ">" + LeftMenu[x + 2] + "</a></span><br/>"); break;
                case "2N": document.write("<span class=leftnavigationsub><li><a href=" + MenuPath + LeftMenu[x + 3] + " target=_blank>" + LeftMenu[x + 2] + "</a></span><br/>"); break;
                case "2X": document.write("<span class=leftnavigationsub><li><a href=" + LeftMenu[x + 3] + ">" + LeftMenu[x + 2] + "</a></span><br/>"); break;
                case "BR": document.write("<br/>"); break;
                case "3": document.write("<span class=leftnavigationsub>&nbsp;&nbsp;&bull;&nbsp;<a href=" + MenuPath + LeftMenu[x + 3] + ">" + LeftMenu[x + 2] + "</a></span><br/>"); break;
            }
        }
    }
}



// Standard logo
//document.write('<div style="position: absolute; left: 20pt; top: 10pt;"><img src="' + BasePath + 'images/atc5573.gif" width="55"></div>');
// AC 70
document.write('<div style="position: absolute; left: 20pt; top: 10pt;"><img src="' + BasePath + 'images/ac70.jpg" width="98"></div>');

document.write('<div id="topnavigation">');
document.write('<span style="font-size: 18pt;">' + PageTitle + '</span><br/>');
document.write('<span style="font-size: 14pt; font-style: oblique;">"Ingenio et Labore"</span><br/><br/>');
BuildTopMenu();
document.write('</div>');
document.write('<div style="position: absolute; right: 20pt; top: 10pt;"><img src="' + BasePath + 'images/sqn5573.gif" width="55"></div>');
