function GPositionInfo(myMap) {
	this.myMap = myMap;
	this.initVars();
	
	GEvent.bind(this.myMap.map, "mousemove", this, this.mouseMoved);
}

GPositionInfo.prototype = new GControl();

GPositionInfo.prototype.initVars = function() {}

GPositionInfo.prototype.initialize = function(map) {
	this.button = document.createElement("div");
	this.setButtonStyle_(this.button);
	map.getContainer().appendChild(this.button);
	
	return this.button;
}

GPositionInfo.prototype.setButtonStyle_ = function(button) {
	button.style.width = "305px";
	button.style.height = "20px";
	button.style.padding = "2px";
}

GPositionInfo.prototype.getDefaultPosition = function(button) {
	return new GControlPosition(G_ANCHOR_TOP_RIGHT, new GSize(5, 30));
}

/*************
	Actions
**************/
GPositionInfo.prototype.mouseMoved = function(latlng) {
	this.button.innerHTML = latlng.lat() + " , " + latlng.lng();
}
