// JavaScript Document - Written by Marcy Sutton

	var a = document.getElementsByTagName('a');
	
	function showTooltip(id) {
		document.getElementById(id).style.visibility='visible';	
		var pid = document.getElementById(id+'p');
		for (i=0; i<=17; i++) {
			
			if (a[i].className == 'location') {				
				pid.style.backgroundImage="url(images/point-hover.png)";
				
			} 
		};
	}
	function hideTooltip(id) {
		document.getElementById(id).style.visibility='hidden';
		var pid = document.getElementById(id+'p');		
		for (i=0; i<=17; i++) {	
			if (a[i].className == 'location') {
				//alert(a[i].className);
				pid.style.backgroundImage="url(images/point.png)";
			
			} 
		};
	}
	function mapList(id) {
		//var pID = id + 'p';
		//var id = document.getElementById(id);
		var dlID = document.getElementById(id+'p').innerHTML;
		document.write('<td onmouseover="showTooltip(\''+id+'\');" onmouseout="hideTooltip(\''+id+'\');" class="mapList">' + dlID + '</td>');
	}

	function showFloorplan(img) {
		var path = 'images/floorplans/';
		document.getElementById('floorplan').src= path+img;
	}
	
		function showGallery(img) {
		var path = 'images/gallery/';
		document.getElementById('gallery').src= path+img;
	}