if (navigator.product == "Gecko" && agt.indexOf('safari') == -1) { // for firefox
Document.prototype.elementFromPoint = function(x, y) {
return findElementFromPoint(document.getElementsByTagName("body")[0],x,y,0) ;
}
function findElementFromPoint(node,x,y,depth) {
var l = this.childElements(node) ;
for(var i=0;i<l.length;i++) {
var m = this.childElements(l[i]) ;
/// héhéhé ...
}
return false ;
}
function childElements(parentNode) { // returns children ignoring whitespace
var l= new Array();
/// héhéhé ...
return l;
}
}