﻿

function win_GetWindowScan2() {
    var divtop = 0;
    var eMeng = document.getElementById("eMeng2");
    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);
    }
    divtop -= 200;
    document.getElementById("eMeng2").style.top = divtop + "px";
};


var objTimer2;
function setstartindexrightcorner2() {
    var eMeng = document.getElementById("eMeng2");
    if (eMeng.style.display == "none") {
        eMeng.style.display = "block";
    }
    window.onresize = win_GetWindowScan2;
    win_GetWindowScan2();
    objTimer2 = setTimeout("setstartindexrightcorner2();", 30);

}

function setstopindexrightcorner2() {
    document.getElementById("eMeng2").style.display = "none";
    document.getElementById("eMeng2").innerHTML = "";

    if (objTimer) {
        clearTimeout(objTimer2);
    }
}
        