Hacked By AnonymousFox
//############################
function setLayerPos(obj,lyr,tbl) {
//############################
// browser sniffer
var ns4up = (document.layers) ? 1 : 0;
var ie4up = (document.all) ? 1 : 0;
if (ns4up) { docWidth = self.innerWidth; }
if (ie4up) { docWidth = document.body.clientWidth; }
var newX = findPosX(obj);
var newY = findPosY(obj)+obj.offsetHeight;
lyr.style.top = newY + 'px';
lyr.style.left = newX + 'px';
}
//############################
function findPosX(obj) {
//############################
var curleft = 0;
if (obj.offsetParent) {
while (obj.offsetParent) {
curleft += obj.offsetLeft
obj = obj.offsetParent;
}
} else if (obj.x)
curleft += obj.x;
return curleft;
}
//############################
function findPosY(obj) {
//############################
var curtop = 0;
if (obj.offsetParent) {
while (obj.offsetParent) {
curtop += obj.offsetTop
obj = obj.offsetParent;
}
} else if (obj.y)
curtop += obj.y;
return curtop;
}
Hacked By AnonymousFox1.0, Coded By AnonymousFox