// Create my icon
function CreateGIcon (icon_file, icon_x, icon_y, shadow_file, shadow_x, shadow_y, anchor_x, anchor_y) {
	var icon = new GIcon();
	icon.image = icon_file;
	icon.shadow = shadow_file;
	icon.iconSize = new GSize(icon_x, icon_y);
	icon.shadowSize = new GSize(shadow_x, shadow_y);
	icon.iconAnchor = new GPoint(anchor_x, anchor_y);
	return icon;
}

// Create map
function CreateGMap (id, x, y, zoom, icon) {
	var map = new GMap2(document.getElementById(id));
	map.addControl(new GSmallMapControl());
	map.addControl(new GMapTypeControl());
	map.setCenter(new GLatLng(y, x), zoom);
	var marker = new GMarker(new GPoint(x,y), icon);
	map.addOverlay(marker);
}
