
var cVillalat = 33.615121;
var cVillalong = -117.929840;



var cbaselinkShow = "ShowProperty.asp?id="

var iconOcean, iconOffice, iconSteps, iconYearly
	// Create icons
    var iconOcean = new GIcon();
	iconOcean.image = cIconOceanFront;
	iconOcean.shadow = "../images/gicon_red_shadow.png";
	iconOcean.iconSize = new GSize(12, 20);
	iconOcean.shadowSize = new GSize(22, 20);
	iconOcean.iconAnchor = new GPoint(6, 20);
	iconOcean.infoWindowAnchor = new GPoint(5, 1);

    var iconOffice = new GIcon(iconOcean);
	iconOffice.image = cIconOffice;

    var iconSteps = new GIcon(iconOcean);
	iconSteps.image = cIconStepsToSand;

    var iconYearly = new GIcon(iconOcean);
	iconYearly.image = cIconYearly;

	function createPropertyMarker(point, icon, propid, street, beds, baths, sleeps) {
		var marker = new GMarker(point,icon);
		var html = "<span style='FONT-FAMILY: Arial; FONT-SIZE: 11px'>" + street + "<BR>";
		html += "BR: " + beds + ", BA: " + baths + ", Sleeps: " + sleeps;
		html += "<BR><a href='" + cbaselinkShow + propid + "' target=_top>View Property</a>";
		GEvent.addListener(marker, 'click', function() {
			marker.openInfoWindowHtml(html);
		});	
		return marker;
	}

	function createGenericMarker(point, icon, htmlin) {
		var marker = new GMarker(point,icon);
		var html = "<span style='FONT-FAMILY: Arial; FONT-SIZE: 11px'>" + htmlin + "</SPAN>";
		GEvent.addListener(marker, 'click', function() {
			marker.openInfoWindowHtml(html);
		});	
		return marker;
	}
    
    function createMarkerNoWindow(point,icon){
		marker = new GMarker(point,icon);
		return marker;
    }
