/* Map Config */

mapConfig = {
			'rootDir'		: window.location.protocol + '//' + window.location.host + '/scripts/map/',
			'dataSource'	: window.location.protocol + '//' + window.location.host + '/index.cfm?fuseaction=utility.MapHotels',
			'detailUrl'		: getDetailUrlCH
			}
//mapConfig.dataSource = mapConfig.rootDir + mapConfig.dataSource;

/* ------------------------------- Map Helpers ------------------------ */

//CH Hotel Detail Link Builder
function getDetailUrlCH(map, item) {
	//Get base URL
	var bUrl = window.location.protocol + '//' + window.location.host;
	//Build path
	var bPath = "";
	//Hotel Name
	var hName = sanitize(item.name);
	var hCountry = sanitize(item.country);
	bPath = buildPath(['Hotel', hName, hCountry, item.id], true, true);
	bUrl += bPath;
	return bUrl;
}

