

/*
if (document.layers) {
    document.captureEvents(Event.MOUSEMOVE);
    document.onmousemove = myScroll;
} else if (document.getElementById) {
    document.onmousemove = myScroll;
}
*/

function myScroll(e) {
    if (document.layers) {
         document.layers['w'].left = e.screenX - window.screenX - (window.outerWidth - window.innerWidth);
         document.layers['w'].top = e.screenY - window.screenY - (window.outerHeight - window.innerHeight) + 25;
    }
    else if (document.all) {
        document.all('w').style.posLeft = window.event.x;
        document.all('w').style.posTop = window.event.y;
    }
    else if (document.getElementById) {
        document.getElementById('w').style.left = e.screenX - window.screenX - (window.outerWidth - window.innerWidth);
        document.getElementById('w').style.top = e.screenY - window.screenY - (window.outerHeight - window.innerHeight) + 25;
    }

}


function returnObjById( id )
{
    if (document.getElementById)
        var returnVar = document.getElementById(id);
    else if (document.all)
        var returnVar = document.all[id];
    else if (document.layers)
        var returnVar = document.layers[id];
    return returnVar;
}

function placeWindows() {
  var bg = returnObjById('faq');
  bg.style.posLeft = (document.body.clientWidth/2) - (bg.offsetWidth/2);
  bg.style.posTop = (document.body.clientHeight/2) - (bg.offsetHeight/2);
}

// <body onMouseMove="myScroll()">
//onLoad="javascript:placeWindows();"