///////////////////
// Hotel Template
///////////////////

//Extracts pin coordinates and image names for each pin
RDPLVirtualEarthMap.prototype.ParseMapPoints = function() {
    
	this.Locations = new Array();
	var locations = this.LocationsString.substr(1, this.LocationsString.length - 2);
    var locationString;
    var pointLongitude;
    var pointLatitude;
    var imageName;
    var pin;
    var titleDesc;
    var textDesc;
    var hotelId;

	this.Locations = new Array();
	var locations = this.LocationsString.substr(1, this.LocationsString.length - 2);
	locations = locations.split('||');
	
	for(var i=0; i<locations.length; i++) {
		
		locationString = locations[i].split('|');
		pointLongitude = locationString[0];		
		pointLatitude = locationString[1];
		imageName = locationString[2];
		titleDesc = locationString[3];
		textDesc = locationString[4];
		hotelId = locationString[5];
		
		// New V6.1 pushpin system
        var pin = new VEShape(VEShapeType.Pushpin, new VELatLong(pointLongitude, pointLatitude));
        pin.SetTitle("<a href=/pub/agent.dll/qscr=dspv/nojs=1/htid=" + hotelId + ">" + titleDesc + "</a>");
        pin.SetCustomIcon("/eta/mapicons/" + imageName + ".gif");
        pin.SetDescription(textDesc);
		this.Locations.push(pin);
	}
}
