// JavaScript Document

    function displaySubMenu(li) {
        var subMenu = li.getElementsByTagName("ul")[0];
        subMenu.style.display = "block";
    }
    
    function hideSubMenu(li) {
        var subMenu = li.getElementsByTagName("ul")[0];
        subMenu.style.display = "none";
    }   
    
    function QuickLink() {
        if (frmMain.document.getElementById("tb") != null) {
            var quickLink = frmMain.document.getElementById("tb");
            quickLink.style.position = "absolute";
            var top = 73;
            
            var left = 19;
            //quickLink.style.zIndex = 1000;
            //Y位置
            if (document.documentElement.scrollTop == 0) {
                quickLink.style.top = 6;
                quickLink.style.left = 19;
            }
            else {
                quickLink.style.top = document.documentElement.scrollTop - top;
                quickLink.style.left = document.documentElement.scrollLeft + left;
            }
        }

        if (document.getElementById("imgTop") != null) {
            var imgTop = document.getElementById("imgTop");
            imgTop.style.position = "absolute";
            if (document.documentElement.scrollTop == 0) {
                imgTop.style.display = "none";
            }
            else {
                imgTop.style.display = "";
                imgTop.style.top = 577 + document.documentElement.scrollTop;
                imgTop.style.left = 944;
            }
        }
        //quickLink.style.bottom = document.documentElement.scrollBottom;
        //X位置
        /*       var cw = document.documentElement.clientWidth;
        if (cw > 1000)
        {
        cw = (cw - 1000) / 2;
        }
        
        quickLink.style.left = document.documentElement.scrollLeft + document.documentElement.clientWidth - quickLink.offsetWidth - cw - right;
        */

    }

    window.onscroll = QuickLink;
    window.onresize = QuickLink;
    window.onload = QuickLink;

    function MM_jumpMenu(restore) {
        //eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
        ///if (restore) selObj.selectedIndex=0;
        if (restore.value != "") {
            window.open(restore.value);
        }
    }
    
    