function getAnchorPosition(_1){
var _2=false;
var _3=new Object();
var x=0,y=0;
var _6=false,_7=false,_8=false;
if(document.getElementById){
_6=true;
}else{
if(document.all){
_7=true;
}else{
if(document.layers){
_8=true;
}
}
}
if(_6&&document.all){
x=AnchorPosition_getPageOffsetLeft(document.all[_1]);
y=AnchorPosition_getPageOffsetTop(document.all[_1]);
}else{
if(_6){
var o=document.getElementById(_1);
x=AnchorPosition_getPageOffsetLeft(o);
y=AnchorPosition_getPageOffsetTop(o);
}else{
if(_7){
x=AnchorPosition_getPageOffsetLeft(document.all[_1]);
y=AnchorPosition_getPageOffsetTop(document.all[_1]);
}else{
if(_8){
var _a=0;
for(var i=0;i<document.anchors.length;i++){
if(document.anchors[i].name==_1){
_a=1;
break;
}
}
if(_a==0){
_3.x=0;
_3.y=0;
return _3;
}
x=document.anchors[i].x;
y=document.anchors[i].y;
}else{
_3.x=0;
_3.y=0;
return _3;
}
}
}
}
_3.x=x;
_3.y=y;
return _3;
}
function getAnchorWindowPosition(_c){
var _d=getAnchorPosition(_c);
var x=0;
var y=0;
if(document.getElementById){
if(isNaN(window.screenX)){
x=_d.x-document.body.scrollLeft+window.screenLeft;
y=_d.y-document.body.scrollTop+window.screenTop;
}else{
x=_d.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
y=_d.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
}
}else{
if(document.all){
x=_d.x-document.body.scrollLeft+window.screenLeft;
y=_d.y-document.body.scrollTop+window.screenTop;
}else{
if(document.layers){
x=_d.x+window.screenX+(window.outerWidth-window.innerWidth)-window.pageXOffset;
y=_d.y+window.screenY+(window.outerHeight-24-window.innerHeight)-window.pageYOffset;
}
}
}
_d.x=x;
_d.y=y;
return _d;
}
function AnchorPosition_getPageOffsetLeft(el){
var ol=el.offsetLeft;
while((el=el.offsetParent)!=null){
ol+=el.offsetLeft;
}
return ol;
}
function AnchorPosition_getWindowOffsetLeft(el){
return AnchorPosition_getPageOffsetLeft(el)-document.body.scrollLeft;
}
function AnchorPosition_getPageOffsetTop(el){
var ot=el.offsetTop;
while((el=el.offsetParent)!=null){
ot+=el.offsetTop;
}
return ot;
}
function AnchorPosition_getWindowOffsetTop(el){
return AnchorPosition_getPageOffsetTop(el)-document.body.scrollTop;
}

