	function get_home_flash() {
		document.write("<object classid=\"clsid:d27cdb6e-ae6d-11cf-96b8-444553540000\" codebase=\"http/fpdownload.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,0,0\" width=\"960\" height=\"272\" id=\"search_map\" align=\"middle\">");
		document.write("<param name=\"allowScriptAccess\" value=\"sameDomain\" />");
		document.write("<param name=\"movie\" value=\"flash/home.swf\" /><param name=\"quality\" value=\"high\" /><param name=\"bgcolor\" value=\"#FFFFFF\" /><embed src=\"flash/home.swf\" quality=\"high\" bgcolor=\"#FFFFFF\" width=\"960\" height=\"272\" name=\"main_flash\" align=\"middle\" allowScriptAccess=\"sameDomain\" type=\"application/x-shockwave-flash\" pluginspage=\"http/www.macromedia.com/go/getflashplayer\" />");
		document.write("</object>");
	}
	
	function get_regions(state, location) {
		var state;
		var location;
		new Ajax.Request('/ajax.php', {
			method: 'get',
			parameters: 'action=regions&state='+state+'&location='+location,
			onSuccess: function(transport) {
				var response = transport.responseText;
				if(response == 0) {
					get_properties(state, '', location);
				}
				else {
					if(location == 'home') {
						for(i in response.properties) {
							$('output').innerHTML = response;
						}
					}
				}
			}
		});
	}
	
	function get_properties(state, region, location) {
		new Ajax.Request('/ajax.php', {
			method: 'get',
			parameters: 'action=properties&state='+state+'&region='+region+'&location='+location,
			onSuccess: function(transport) {
				var response = transport.responseText;
				$('property').innerHTML = response;
				$('property').style.display = 'block';
			}
		});
	}
		

