﻿

function win_GetWindowScan() {
    var divtop = 0;
    var eMeng = document.getElementById("eMeng");
    var divw = eMeng.clientWidth;
    var divh = eMeng.clientHeight;
    var windowWidth, windowHeight;
    if (self.innerHeight) {
        windowWidth = self.innerWidth;
        windowHeight = self.innerHeight;
    } else if (document.documentElement && document.documentElement.clientHeight) {
        windowWidth = document.documentElement.clientWidth;
        windowHeight = document.documentElement.clientHeight;
    } else if (document.body) {
        windowWidth = document.body.clientWidth;
        windowHeight = document.body.clientHeight;
    }
    divtop = parseInt(windowHeight - divh - 2);
    if (document.documentElement.scrollTop > 0) {
        divtop = parseInt(divtop + document.documentElement.scrollTop);
    }

    document.getElementById("eMeng").style.top = divtop + "px";
};


var objTimer;
function setstartindexrightcorner() {
    var eMeng = document.getElementById("eMeng");
    if (eMeng.style.display == "none") {
        eMeng.style.display = "block";
    }
    window.onresize = win_GetWindowScan;
    win_GetWindowScan();
    objTimer = setTimeout("setstartindexrightcorner();", 30);

}

function setstopindexrightcorner() {
    document.getElementById("eMeng").style.display = "none";
    document.getElementById("eMeng").innerHTML = "";

    if (objTimer) {
        clearTimeout(objTimer);
    }
}
        