
function displayMenu(currentMenu) {

    var thisMenu = document.getElementById(currentMenu).style

    // If the menu is expanded, contract it
    if (thisMenu.display == "block") {
        thisMenu.display = "none"
    }
    else {
        // If the menu is contracted, expand it
        thisMenu.display = "block"
    }
    return false
}
