
function load_to_div(div, filename)
{

	var completed_callback = function(response_text)
	{
		// clear it first, then load the div with the new html
		document.getElementById(div).innerHTML = response_text;
		document.getElementById(div).scrollTop = 0;
	}

	// force the browser to pull the most recent version
	var refresh_number = new String((Math.round((Math.random()*99)+1)));

	ajax_exec(filename + '?' + refresh_number, '', completed_callback, '', 'GET');
}

function load_location_gmap(location)
{
	switch (location)
	{
		// chattanooga, tn
		case 1:
			var latitude = -85.30752897262573;
			var longitude = 35.06234631593327;
			var short_name = 'Clumpies';
			var descr = '<strong>Clumpies Ice Cream Co.</strong><br />26B Frazier Ave.<br />Chattanooga, TN  37405';
			break;

		// hixson, tn
		case 2:
			var latitude = -85.249228;
			var longitude = 35.145003;
			var short_name = 'Clumpies';
			var descr = '<strong>Clumpies Ice Cream Co.</strong><br />5523 Highway 153<br />Hixson, TN  37343';
			break;

		// mountain brook, al
		case 3:
			var latitude = -86.755471;
			var longitude = 33.50229;
			var short_name = 'Clumpies';
			var descr = '<strong>Clumpies Ice Cream Co.</strong><br />63 Church Street<br />Mountain Brook, AL  35213';
			break;

		default:
	}

	// hide locations, show map
	swap_div('locations', 'map');
	show_map('map', latitude, longitude, short_name, descr);

	return(true);
}

function swap_div(hide, show)
{
	document.getElementById(hide).style.display = 'none';
	document.getElementById(show).style.display = 'block';
}