var isInternetExplorer = navigator.appName.indexOf("Microsoft") != -1;
// Handle all the FSCommand messages in a Flash movie.
function flashmap_DoFSCommand(command, args) {
	var flashmapObj = isInternetExplorer ? document.all.flashmap : document.flashmap;
	
	if(command == "RedirectURL") 
	{
		RSRedirect(args);
	}
}


function MM_goToURL(url)
{
	//other redirect function here
}

function RSRedirect(url)
{
	// example url variable output is "05" for area only
	// example url variable output is "01_05" for area with sub area
	// this is the prefix for the url 
	var baseurl = "charlotte_area_";
	//alert(baseurl + url);

	// example url redirect is:
	 location.href = "/" + baseurl + url + ".html"
	
	// comment the line below to use your own redirect function.
//	location.href= "index.php?area=" + url;
	
	// MM_goToURL(url) -- other redirect function here
	
}


// Hook for Internet Explorer.
if (navigator.appName && navigator.appName.indexOf("Microsoft") != -1 && navigator.userAgent.indexOf("Windows") != -1 && navigator.userAgent.indexOf("Windows 3.1") == -1) {
	document.write('<script language=\"VBScript\"\>\n');
	document.write('On Error Resume Next\n');
	document.write('Sub flashmap_FSCommand(ByVal command, ByVal args)\n');
	document.write('	Call flashmap_DoFSCommand(command, args)\n');
	document.write('End Sub\n');
	document.write('</script\>\n');
}