document.onmousemove = getCursorXY;

var cx;
var cy;

function getCursorXY(e) {
    var f = document.getElementById("footer");
    var s = document.body.scrollTop; 
    cx = (window.Event) ? e.pageX : event.clientX + (document.documentElement.scrollLeft ? document.documentElement.scrollLeft : document.body.scrollLeft);
    cy = ((window.Event) ? e.pageY : event.clientY + (document.documentElement.scrollTop ? document.documentElement.scrollTop : document.body.scrollTop)) - s;
}

function popWindow(uri) {
    var s = document.body.scrollTop;
    var w = document.body.clientWidth;
    var h = document.body.clientHeight;
    var pop = document.getElementById("windowPop");
    var popc = document.getElementById("windowPopContent");
    popc.innerHTML = "<iframe frameborder=0 src="+uri+" height=100% width=477></iframe>";
    yOffset = pop.style.height;
    xOffset = pop.style.width;
    pop.style.display = "inline";
    pop.style.top = ((h / 2) - 250) + s;
    pop.style.left = (w / 2) - 250;
}

function closeWindow(obj) {
    obj.style.display = 'none';
}