function MyGMap2(parent){
	this.map=new GMap2(parent)
	this.markers=new Array()
}
MyGMap2.prototype.getBoundsArr=function(){
	var bounds=this.map.getBounds()
	var ne=bounds.getNorthEast()
	var sw=bounds.getSouthWest()
	var arr=new Array()
	arr["neLat"]=ne.lat()
	arr["neLng"]=ne.lng()
	arr["swLat"]=sw.lat()
	arr["swLng"]=sw.lng()
	return arr
}
MyGMap2.prototype.getIcon=
function(imgVURL,iSize,sSize,aPoint,iaPoint){
	if(!sSize)sSize=new GSize(0,0)
	if(!aPoint)aPoint=new GPoint(0,0)
	if(!iaPoint)iaPoint=new GPoint(0,0)
	var icon=new GIcon()
	icon.image=imgVURL
	icon.iconSize=iSize
	icon.shadowSize=sSize
	icon.iconAnchor=aPoint
	icon.infoWindowAnchor=iaPoint
	return icon
}
MyGMap2.prototype.getMarker=function(lat,lng,icon,name){
	var point=new GLatLng(lat,lng)
	var marker=new GMarker(point,icon)
	marker.name=name
	return marker
}
MyGMap2.prototype.MouseoverMarkerBox_set=function(name,backgroundColor){
	if(!backgroundColor)backgroundColor="#ffffff"
	this.overMarkerBox=new MyBox(document.getElementById("body"),meta1.mousemoveXY[0]+10,			meta1.mousemoveXY[1]-20,backgroundColor,"","0px")
	var span=new HtmlSpan(this.overMarkerBox.div.element,name)
	span.element.style.padding="2px 5px"
}
MyGMap2.prototype.MouseoverMarkerBox_remove=function (){
	if(this.overMarkerBox.div.element)
		myDoc.removeElement(this.overMarkerBox.div.element)
}
MyGMap2.prototype.isMarker=function(name){
	for(var x=0;x<this.markers.length;x++)
		if(this.markers[x]["marker"].name==name)return 1
}
MyGMap2.prototype.removeOutOfBounds=function(bounds){
	var updMarkers=new Array()
	var markers=new Array()
	for(var x=0;x<this.markers.length;x++){
		var latLng=this.markers[x]["marker"].getLatLng()
		var lat=latLng.lat()
		var lng=latLng.lng()
		if(lat>bounds["neLat"]
		||lat<bounds["swLat"]
		||lng>bounds["neLng"]
		||lng<bounds["swLng"]){
	this.map.removeOverlay(this.markers[x]["marker"])
	for(var y=0;y<this.markers[x]["eventlisteners"].length;y++){
		GEvent.removeListener(
			this.markers[x]["eventlisteners"][y])
	}
		}else{
	updMarkers.push(this.markers[x])
		}
	}
	this.markers=updMarkers
}
