// Creates an object that will hold the Destinations for a city 
// Information is extracted from the provided JSON representation
function CityDestinations(jsonData){

 	var jsonData   = eval('('+jsonData+')');
	var dataHolder = jsonData.destinationsForCity;

	//  First marker will be the City center so pull that out first
	this.city = dataHolder.city;
	
	this.destinations = new Array();
    for (var i = 0; i < dataHolder.destinations.length; i++){
		this.destinations[i] = dataHolder.destinations[i].destination; 
	}
}

function Destination(id,type,name,latitude,longitude,streetAddress,description){
	this.id       = id;
	this.type     = type;
	this.name     = name;
	this.location = new GLatLng(latitude,longitude);
	this.streetAddress = streetAddress;
	this.description = description;	
}

function City(cityId,cityName,state,country,latitude,longitude) {
	this.id       = cityId;
	this.name     = cityName;
	this.state 	  = state;
	this.country  = country;	
	this.location = new GLatLng(latitude,longitude);
}
