if($('#map-charlottesville').length>-1){if($('#google-jsapi-script').length<1){$(init_google_map_loader());}$(document).one("scroll",loadMaps);}function mapsLoaded(){var map_charlottesville=new google.maps.Map2(document.getElementById("map-charlottesville"),{size:new GSize(400,300)});map_charlottesville.setCenter(new google.maps.LatLng(38.083427,-78.475616),13);map_charlottesville.setUIToDefault();map_charlottesville.removeMapType(G_PHYSICAL_MAP);var point_rio=new GLatLng(38.083427,-78.475616);var marker_rio=new GMarker(point_rio);map_charlottesville.addOverlay(marker_rio);var html_rio='<h3 style="margin:5px;">700 W. Rio Rd., Charlottesville</h3><p style="margin-left:5px;">By appointment only</p>';marker_rio.openInfoWindowHtml(html_rio);GEvent.addListener(map_charlottesville,"mouseover",function(){marker_rio.closeInfoWindow();});GEvent.addListener(map_charlottesville,"mouseout",function(){marker_rio.openInfoWindowHtml(html_rio);});var map_alexandria=new google.maps.Map2(document.getElementById("map-alexandria"),{size:new GSize(400,300)});map_alexandria.setCenter(new google.maps.LatLng(38.083427,-78.475616),13);map_alexandria.setUIToDefault();map_alexandria.removeMapType(G_PHYSICAL_MAP);var point_mteagle=new GLatLng(38.837708,-77.081182);var marker_mteagle=new GMarker(point_mteagle);map_alexandria.addOverlay(marker_mteagle);var html_mteagle='<h3 style="margin:5px;">5901 Mt. Eagle Dr., Alexandria</h3><p style="margin-left:5px;">By appointment only</p>';marker_mteagle.openInfoWindowHtml(html_mteagle);GEvent.addListener(map_alexandria,"mouseover",function(){marker_mteagle.closeInfoWindow();});GEvent.addListener(map_alexandria,"mouseout",function(){marker_mteagle.openInfoWindowHtml(html_mteagle);});}function loadMaps(){google.load("maps","2",{"callback":mapsLoaded});}function init_google_map_loader(){var script=document.createElement("script");script.src="http://www.google.com/jsapi?key=ABQIAAAAYt_8xijTD1K1ivSO33637xQe3UbkOBCdarXp_yvxSzSSE8UWwRTOJnDoNByCX4_tjXgcE9KEP3GWsg";script.type="text/javascript";document.getElementsByTagName("head")[0].appendChild(script);}function unload_google_maps(){GUnload();}$(function(){$(window).unload(unload_google_maps);});
