
var arrPlace = new Array(-41.285562547039554,174.77861881256104,'TSB Arena, Queens Wharf',
												-41.288553470754046,174.7772455215454,'City Art Gallery',
												-41.28988160653016,174.77780610322952,'Wellington Convention Centre/Town Tall',
												-41.290185925184495,174.7803944349289,'Circa Theatre',
												-41.29056077932412,174.78127956390389,'Te Papa, The National Museum of NZ',
												-41.29169742064481,174.77780878543854,'The State Opera House',
												-41.29321291160026,174.7798204421997,'St James Theatre',
												-41.293301582853154,174.78107571601868,'Downstage Theatre',
												-41.29420844101977,174.78407979011536,'Embassy Theatre',
												-41.29015771026962,174.78594660758972,'Overseas Terminal',
												-41.285078826820985,174.76741790771484,'Botanical Gardens',
												-41.27961253915377,174.77999210357666,'Wellington Railway Station',
												-41.27306529119907,174.78582859039307,'Westpac Stadium'
												)

var sListTitle = '<h2>Prime Hotels</h2>';
sListTitle += '<br/>';
sListTitle += '<ul type="none" style="list-style-type:none;list-style-image:none;padding:none;">';
	sListTitle += '<li style="list-style-image:url(http://www.primehotels.co.nz/~images/content/map/icon_abel.jpg);cursor:pointer;" onclick="hilightPoint(-1);map.setCenter(new GLatLng(-41.29086711014,174.773941040039), 15);">';
		sListTitle += 'Abel Tasman Hotel, Wellington';
	sListTitle += '</li>';
	sListTitle += '<li style="list-style-image:url(http://www.primehotels.co.nz/~images/content/map/icon_central.jpg);cursor:pointer;" onclick="hilightPoint(-1);map.setCenter(new GLatLng(-41.29079858889821,174.7753357887268), 15);">';
		sListTitle += 'Central City Hotel, Wellington';
	sListTitle += '</li>';
	sListTitle += '<li style="list-style-image:url(http://www.primehotels.co.nz/~images/content/map/icon_capital.jpg);cursor:pointer;" onclick="hilightPoint(-1);map.setCenter(new GLatLng(-41.29698939411844,174.7706687450409), 15);">';
		sListTitle += 'Capital Accommodation, Wellington';
	sListTitle += '</li>';
	sListTitle += '<li style="list-style-image:url(http://www.primehotels.co.nz/~images/content/map/icon_beachside.jpg);cursor:pointer;" onclick="hilightPoint(-1);map.setCenter(new GLatLng(-36.83002214354162,175.70506453514), 15);">';
		sListTitle += 'Beachside Resort Motel, Whitianga';
	sListTitle += '</li>';
	sListTitle += '<li style="list-style-image:url(http://www.primehotels.co.nz/~images/content/map/icon_primeproperty.jpg);cursor:pointer;" onclick="hilightPoint(-1);map.setCenter(new GLatLng(-41.283397871180355,174.77519631385803), 15);">';
		sListTitle += 'Prime Property Head Office, Wellington';
	sListTitle += '</li>';
sListTitle += '</ul>';
sListTitle += '<br/>';
sListTitle += '<h2>Local Points of Interest</h2>';
var sList = '<ol id="olInterest" type="none" style="list-style:none;margin:0;padding:0;">';

var mapIx=0;
for(var i=0;i<arrPlace.length;i=i+3)
{
	
	var point = new GLatLng(arrPlace[i],arrPlace[i+1]);
  var marker = createLetterMarker(point,mapIx,arrPlace[i+2],arrPlace[i+2]);
  map.addOverlay(marker);
	
	var letter = String.fromCharCode("A".charCodeAt(0) + mapIx);
	
	sList += '<li class="listNoHilite" style=""text-align:left;font-family:courier new;"" id="pt_'+mapIx+'" onclick="hilightPoint('+mapIx+');map.setCenter(new GLatLng('+arrPlace[i]+','+arrPlace[i+1]+'), 15);">';
		sList += '<span style="font-family:lucida console">'+letter + '.&nbsp;&nbsp;</span>' + arrPlace[i+2];
	sList += '</li>';
	
	mapIx++;
	
}
 sList += '</ol>';
	
document.getElementById('interestList').innerHTML = sListTitle + sList;

function hilightPoint(pointIx)
{
	
	resetPoints();
	
	if(pointIx >= 0)
	{
		var oLi = document.getElementById('pt_'+pointIx);
		oLi.className = 'listHilite';	
	}
	
}

function resetPoints()
{
	
	var mapIx=0; 
	for(var i=0;i<arrPlace.length;i=i+3)
	{
		oLi = document.getElementById('pt_'+mapIx);
		oLi.className = 'listNoHilite';
		mapIx++;
	}
	
}
