var menuHideTimer = null;
function showMenu() {
    var menu = document.getElementById("balloon");
    menu.style.display = 'block';
    hideMenu(null,60000);
}
function hideMenu(flag,timeout) {
    var menu = document.getElementById("balloon");
    if (menu.style.display != 'none') {
       if (!flag) {
                timeout = (timeout) ? timeout : 800;
                menuHideTimer = setTimeout('hideMenu(1)',timeout);
       } else if (flag == 1) {
            menu.style.display = 'none';
       }
       if ((flag == 2) || (flag == 1)) {
            if (menuHideTimer) {
                clearTimeout(menuHideTimer);
                menuHideTimer = null;
            }
       }
    } else return;
}
