<!--
// Misc. variables I created
var flagIcon = new GIcon();
flagIcon.image = "images/map/flag_icon.png";
flagIcon.shadow = "images/clear.gif";
flagIcon.iconSize = new GSize(52, 31);
flagIcon.shadowSize = new GSize(1, 1);
flagIcon.iconAnchor = new GPoint(6, 31);
flagIcon.infoWindowAnchor = new GPoint(6, 31);
		
var hotelIcon = new GIcon();
hotelIcon.image = "images/map/hotel_icon.png";
hotelIcon.shadow = "images/clear.gif";
hotelIcon.iconSize = new GSize(50, 53);
hotelIcon.shadowSize = new GSize(1, 1);
hotelIcon.iconAnchor = new GPoint(30, 30);
hotelIcon.infoWindowAnchor = new GPoint(1, 1);
		

// creates the popup when link is clicked
function showCourseDetails(point,detail) {
	//map.centerAndZoom(point,6);
	map.openInfoWindowHtml(detail);
}
		
function showAccomDetails(point,detail) {
	//map.centerAndZoom(point,6);
	map.openInfoWindowHtml(point,detail);
}
		 
function clearMap() {
	map.centerAndZoom(center,7);
	map.closeInfoWindow();
}

function buildAccomContents(point,detail,container,address,city,state){
	showAccomDetails(point,detail);
	buildDropDown(container,address,city,state);
}
	    
function buildCourseContents(point,detail,container,address,city,state){
	showCourseDetails(point,detail);
	buildDropDown(container,address,city,state);
}
		
function openDirections(dropDown,index){
	var stringToSplit = dropDown[index].value;
	if (stringToSplit != ''){
		var temp = new Array;
		temp = stringToSplit.split('|');
		var w = window.open('http://www.hookersnslicers.com/directions.html?aa=' + temp[0] + '&ac=' + temp[1] + '&as=' + temp[2] + '&ba=' + temp[3] + '&bc=' + temp[4] + '&bs=' + temp[5] + '&callingpage=directions.html','directionsWindow','toolbar=no,scrollbars=yes,location=no,resizable=yes,directories=no,status=no,menubar=no,width=630,height=500,screenX=0,screenY=0,left=0,top=0');
		w.focus(); 
	}
}


// -->

