var _nPosX=0,_nPosY=0;function readyMousePositions(oDocument){top.addEvent(oDocument,'mousemove',function(event){moveMouse((window.event)?window.event:event);});}function moveMouse(e){_nPosX=(top._gE==0)?e.x:e.pageX;_nPosY=(top._gE==0)?e.y:e.pageY;}function APosX(sID){return APos(sID,0);}function APosY(sID){return APos(sID,1);}var _nTimesTableCollapse=0;function APos(oID,nAxis){var oTag=oID,nX=0,nY=0;while(oTag.tagName!='BODY'&&(oTag.style.overflow==''||oTag.style.overflow=='visible')){if(oTag.style.position!='absolute'){if(top._gE==0){if(oTag.tagName=='FIELDSET'){if(oTag.style.borderWidth!=''){nX+=parseInt(oTag.style.borderWidth,10);nY+=parseInt(oTag.style.borderWidth,10);}else{nX+=2;nY+=2;}}if(oTag.tagName=='TABLE'&&oTag.style.borderCollapse=='collapse'&&parseInt(oTag.border,10)>0){if(_nTimesTableCollapse>0)nX-=1;nY-=1;_nTimesTableCollapse++;}if(oTag.tagName=='TABLE')if(oTag.border>0)nX+=1;nY+=1;}nX+=oTag.offsetLeft-oTag.scrollLeft;nY+=oTag.offsetTop-oTag.scrollTop;}oTag=oTag.offsetParent;}_nTimesTableCollapse=0;return(nAxis==0)?nX:nY;}

