function MM_popupMsg(theMsg, theURL) { //v1.2
    if (confirm(theMsg)) {
        window.location = theURL
    };
}

function MM_openBrWindow(theURL, winName, features) { //v2.0
    window.open(theURL, winName, features);
}

function MM_swapImgRestore() { //v3.0
    var i, x, a = document.MM_sr; for (i = 0; a && i < a.length && (x = a[i]) && x.oSrc; i++) x.src = x.oSrc;
}

function MM_preloadImages() { //v3.0
    var d = document; if (d.images) {
        if (!d.MM_p) d.MM_p = new Array();
        var i, j = d.MM_p.length, a = MM_preloadImages.arguments; for (i = 0; i < a.length; i++)
            if (a[i].indexOf("#") != 0) { d.MM_p[j] = new Image; d.MM_p[j++].src = a[i]; } 
    }
}

function MM_findObj(n, d) { //v4.01
    var p, i, x; if (!d) d = document; if ((p = n.indexOf("?")) > 0 && parent.frames.length) {
        d = parent.frames[n.substring(p + 1)].document; n = n.substring(0, p);
    }
    if (!(x = d[n]) && d.all) x = d.all[n]; for (i = 0; !x && i < d.forms.length; i++) x = d.forms[i][n];
    for (i = 0; !x && d.layers && i < d.layers.length; i++) x = MM_findObj(n, d.layers[i].document);
    if (!x && d.getElementById) x = d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
    var i, j = 0, x, a = MM_swapImage.arguments; document.MM_sr = new Array; for (i = 0; i < (a.length - 2); i += 3)
        if ((x = MM_findObj(a[i])) != null) { document.MM_sr[j++] = x; if (!x.oSrc) x.oSrc = x.src; x.src = a[i + 2]; }
}

function changeNavBGcolors(state, subnav, linkname) {

    var row1 = findDOM(subnav + "_row1", 1)
    var row2 = findDOM(subnav + "_row2", 1)
    var row3 = findDOM(subnav + "_row3", 1)
    var thelink = findDOM(linkname, 1)

    if (state == "on") {
        row1.backgroundColor = "000000";
        row2.backgroundColor = "731A3F";
        row3.backgroundColor = "000000";
        thelink.color = "FFFFFF";
    } else if (state == "off") {
        row1.backgroundColor = "9c9c9c";
        row2.backgroundColor = "9c9c9c";
        row3.backgroundColor = "9c9c9c";
        thelink.color = "313131";
    }
}



function changeNavBGcolors2(state, subnav, linkname) {

    var row1 = findDOM(subnav + "_row1", 1)
    var row2 = findDOM(subnav + "_row2", 1)
    var row3 = findDOM(subnav + "_row3", 1)
    var thelink = findDOM(linkname, 1)

    if (state == "on") {
        row1.backgroundColor = "000000";
        row2.backgroundColor = "3399CC";
        row3.backgroundColor = "000000";
        thelink.color = "FFFFFF";
    } else if (state == "off") {
        row1.backgroundColor = "E5E5E1";
        row2.backgroundColor = "E5E5E1";
        row3.backgroundColor = "E5E5E1";
        thelink.color = "313131";
    }
}


function changeNavBGcolors4(state, subnav, linkname) {

    var row1 = findDOM(subnav + "_row1", 1)
    var row2 = findDOM(subnav + "_row2", 1)
    var row3 = findDOM(subnav + "_row3", 1)
    var thelink = findDOM(linkname, 1)

    if (state == "on") {
        row1.backgroundColor = "000000";
        row2.backgroundColor = "66FC69";
        row3.backgroundColor = "000000";
        thelink.color = "000000";
    } else if (state == "off") {
        row1.backgroundColor = "006599";
        row2.backgroundColor = "006599";
        row3.backgroundColor = "006599";
        thelink.color = "FFFFFF";
    }
}

function changeNavBGcolors3(state, subnav, linkname) {

    var row1 = findDOM(subnav + "_row1", 1)
    var row2 = findDOM(subnav + "_row2", 1)
    var row3 = findDOM(subnav + "_row3", 1)
    var thelink = findDOM(linkname, 1)

    if (state == "on") {
        row1.backgroundColor = "000000";
        row2.backgroundColor = "66FC69";
        row3.backgroundColor = "000000";
        thelink.color = "000000";
    } else if (state == "off") {
        row1.backgroundColor = "006599";
        row2.backgroundColor = "006599";
        row3.backgroundColor = "006599";
        thelink.color = "FFB910";
    }
}




function changeNavBGcolorsSub(state, subnav, linkname) {

    var row1 = findDOM(subnav + "_row1", 1)
    var row2 = findDOM(subnav + "_row2", 1)
    var row3 = findDOM(subnav + "_row3", 1)
    var thelink = findDOM(linkname, 1)

    if (state == "on") {
        row1.backgroundColor = "000000";
        row2.backgroundColor = "731A3F";
        row3.backgroundColor = "000000";
        thelink.color = "FFFFFF";
    } else if (state == "off") {
        row1.backgroundColor = "9c9c9c";
        row2.backgroundColor = "9c9c9c";
        row3.backgroundColor = "9c9c9c";
        thelink.color = "71193F";
    }
}

function preloadOne() {


    image2 = new Image();
    image2.src = '/_graphics/nav/nav00_dn.gif'

    image3 = new Image();
    image3.src = '/_graphics/nav/nav05_dn.gif'

    image4 = new Image();
    image4.src = '/_graphics/nav/nav06_dn.gif'

    image5 = new Image();
    image5.src = '/_graphics/nav/nav07_dn.gif'

    image6 = new Image();
    image6.src = '/_graphics/nav/nav08_dn.gif'

    image10 = new Image();
    image10.src = '/_graphics/nav/left_icon1_ro.gif'

    image11 = new Image();
    image11.src = '/_graphics/nav/left_icon2_dn.gif'
}

function preloadTwo() {

    image7 = new Image();
    image7.src = '/_graphics/nav/nav01_ro.gif'

    image8 = new Image();
    image8.src = '/_graphics/nav/nav02_ro.gif'

    image9 = new Image();
    image9.src = '/_graphics/nav/nav03_ro.gif'

}