function initialize() {
  var myLatlng = new google.maps.LatLng(-34.397, 150.644);
  var myOptions = {
    zoom: 8,
    center: myLatlng,
    mapTypeId: google.maps.MapTypeId.ROADMAP
  }
  var map = new google.maps.Map(document.getElementById("map_canvas"), myOptions);
}
  
function loadScript() {
  var script = document.createElement("script");
  script.type = "text/javascript";
  script.src = "http://maps.google.com/maps/api/js?sensor=false&callback=initialize";
  document.body.appendChild(script);
}
  
window.onload = loadScript;

/*
function showDistributors(country)
{
	var xmlhttp;
	/*
	if (str=="")
	{
		document.getElementById("txtHint").innerHTML="";
		return;
	}
	*
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
			document.getElementById("DealerInfoList").innerHTML=xmlhttp.responseText;
		}
	}
	xmlhttp.open("GET","../includes/show_distributors.php?country="+country,true);
	xmlhttp.send();
}

function narrowDealers(location_type, location_name)
{
	var xmlhttp;
	/*
	if (str=="")
	{
		document.getElementById("txtHint").innerHTML="";
		return;
	}
	*
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
			document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
		}
	}
	xmlhttp.open("GET","../includes/dealers_ajax.php?location_type="+location_type+"&location_name="+location_name,true);
	xmlhttp.send();
}

function showDealers(country, provinceState, city)
{
	var xmlhttp;
	/*
	if (str=="")
	{
		document.getElementById("txtHint").innerHTML="";
		return;
	}
	*
	if (window.XMLHttpRequest)
	{// code for IE7+, Firefox, Chrome, Opera, Safari
		xmlhttp=new XMLHttpRequest();
	}
	else
	{// code for IE6, IE5
		xmlhttp=new ActiveXObject("Microsoft.XMLHTTP");
	}
	xmlhttp.onreadystatechange=function()
	{
		if (xmlhttp.readyState==4 && xmlhttp.status==200)
		{
			document.getElementById("txtHint").innerHTML=xmlhttp.responseText;
		}
	}
	xmlhttp.open("GET","../includes/dealers_ajax.php?location_type="+location_type+"&location_name="+location_name,true);
	xmlhttp.send();
}
*/
