function getAbsoluteLeft(o) {
	var oLeft=o.offsetLeft;
	var oParent;
	var o;
	while(o.offsetParent!=null) { 
		oParent=o.offsetParent;
		oLeft+=oParent.offsetLeft;
		o=oParent;
	}
	return oLeft;
}

function getAbsoluteTop(o) { 
	var oTop=o.offsetTop;
	var oParent;
	var o;
	while(o.offsetParent!=null) {
		oParent=o.offsetParent;
		oTop+=oParent.offsetTop;
		o=oParent;
	}
	return oTop;
}

function getCurMarkerPos(map,markerLatLngPoint){
	gmapTopLeftLatLng=map.fromContainerPixelToLatLng(new GPoint(0,0));
	gmapTopLeftPixel=map.fromLatLngToDivPixel(gmapTopLeftLatLng);
	myMarkerDivPixel=map.fromLatLngToDivPixel(markerLatLngPoint);
	markerTop=getAbsoluteTop(map.getContainer())-gmapTopLeftPixel.y+myMarkerDivPixel.y;
	markerLeft=getAbsoluteLeft(map.getContainer())-gmapTopLeftPixel.x+myMarkerDivPixel.x;	
	return{top:markerTop,left:markerLeft};
}
