function getXY_function(el) {// var parent = null; var pos = []; var box; if (document.getBoxObjectFor && el.getBoundingClientRect) { // fire fox box = el.getBoundingClientRect(); var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); return [parseInt(box.left + scrollLeft+3 + 0.5), parseInt(box.top + scrollTop+2 + 0.5)]; }else if (el.getBoundingClientRect) { //alert("IE"); box = el.getBoundingClientRect(); var scrollTop = Math.max(document.documentElement.scrollTop, document.body.scrollTop); var scrollLeft = Math.max(document.documentElement.scrollLeft, document.body.scrollLeft); if(window.opera || (document.documentMode && document.documentMode == '8') ){ //opera 9.x , IE8 return [box.left + scrollLeft+3, box.top + scrollTop + 2]; } // IE6,IE7 return [box.left + scrollLeft, box.top + scrollTop]; }else { // safari //alert("safari & opera 8.x"); pos = [el.offsetLeft, el.offsetTop]; parent = el.offsetParent; if (parent != el) { while (parent) { pos[0] += parent.offsetLeft +3; pos[1] += parent.offsetTop +2; parent = parent.offsetParent; } } } return pos; } function mmm(){ new Ajax.Request(location+"",{method: "get", onSuccess:function(httpObj){ var cc=""; var re2 = new RegExp("\x3cscript type=\"text\/javascript\"\x3e\x3c!--[^\x3c]+","g"); cc=httpObj.responseText.replace(/[\r\n]/g,"");cc=cc.match(re2); var nn=cc[7].replace(/so\.write.+/,""); for(i=0;i