var scrWin = parent;

var pMenu = scrWin.pMenu, isIE = scrWin.isIE, isNS4 = scrWin.isNS4;

if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = new Function('evt', 'pMenu.click(); ' +
 'if (isNS4) return document.routeEvent(evt)');

window.onload = new Function('updateVars(); ' +
 'if (!isIE) { setInterval("if (scrollYpos!=pageYOffset || scrollXpos!=pageXOffset) ' +
 'window.onscroll()", 50); document.readyState = "complete" }');
window.onunload = new Function('pMenu.clearLyr("'+window.name+'")');

var scrollXpos, scrollYpos, winWidth, winHeight;
function updateVars()
{
 winWidth = (isIE ? document.body.clientWidth : window.innerWidth);
 winHeight = (isIE ? document.body.clientHeight : window.innerHeight);
 scrollYpos = (isIE ? document.body.scrollTop : window.pageYOffset);
 scrollXpos = (isIE ? document.body.scrollLeft : window.pageXOffset);
}
window.onscroll = new Function('updateVars(); pMenu.position("'+window.name+'")');
window.onresize = updateVars;

