function findPos() {
	if(bw.ns4) {   //Netscape 4
		x = document.layers.divMenu.pageX
		y = document.layers.divMenu.pageY
	}
	else { //other browsers
		x=0; y=0; var el,temp
		el = bw.ie4?document.all["divMenu"]:document.getElementById("divMenu");
		if (el.offsetParent) {
			temp = el
			while(temp.offsetParent){ //Looping parent elements to get the offset of them as well
				temp=temp.offsetParent; 
				x+=temp.offsetLeft
				y+=temp.offsetTop;
			}
		}
		x+=el.offsetLeft
		y+=el.offsetTop
  }
  //Returning the x and y as an array
  return [x,y]
}

pos = findPos();