 google.load("maps", "2");
	  //dev site code
	//ABQIAAAAbeuxmsa85KLDwEN82sRwGhQ4Pz5odPQvY2Qehcb3OkbgR5gdgxThCkdnj8axF33pnIdPmx28EPWI2A
	//Localhost
	//ABQIAAAAbeuxmsa85KLDwEN82sRwGhTb-vLQlFZmc2N8bgWI8YDPp5FEVBTPUKWcVNGn1OnSZGVq4tf27A63Fg
      // Call this function when the page has been loaded
      function initialize() {
        var map = new google.maps.Map2(document.getElementById("map"));
        map.setCenter(new google.maps.LatLng(41.285489, -80.846272), 8);
		map.addControl(new GLargeMapControl());
		//map.addControl(new GSmallMapControl());
		//map.addControl(new GSmallZoomControl());
		map.addControl(new GMapTypeControl());
		map.addControl(new GScaleControl());
		map.addControl(new GOverviewMapControl());
		//
		var generic_icon = new GIcon(G_DEFAULT_ICON)
		generic_icon.image= "http://www.google.com/intl/en_us/mapfiles/ms/micons/blue-dot.png";
		markerOptions = {icon:generic_icon};
		//
		var Point_Warren = new GLatLng(41.285489, -80.846272);
		//var Point_Kinsman = new GLatLng(41.440102, -80.846272);
		var Point_Kinsman = new GLatLng(41.440102, -80.588999);
		var Point_Jamestown = new GLatLng(41.484552, -80.434857);
		var Point_Middlefield = new GLatLng(41.461985, -81.072194);
		var Point_Akron = new GLatLng(40.975159, -81.499233);
		//
		var baseIcon = new GIcon();
		baseIcon.shadow = "/images/map-icons/icon-shadow.png";
		baseIcon.iconSize = new GSize(91,29);
		baseIcon.shadowSize = new GSize(113,29);
		baseIcon.iconAnchor = new GPoint(45,29);
		//
		baseIcon.infoWindowAnchor= new GPoint(45,2);
		baseIcon.infoShadowAnchor = new GPoint(90,25);
		
		
		var Marker_Warren = new GIcon(baseIcon);
		Marker_Warren.image = "/images/map-icons/icon-warren.png";
		
		var Marker_Kinsman = new GIcon(baseIcon);
		Marker_Kinsman.image = "/images/map-icons/icon-kinsman.png";
		
		var Marker_Jamestown = new GIcon(baseIcon);
		Marker_Jamestown.image = "/images/map-icons/icon-jamestown.png";
		
		var Marker_Middlefield = new GIcon(baseIcon);
		Marker_Middlefield.image = "/images/map-icons/icon-middlefield.png";
		
		var Marker_Akron = new GIcon(baseIcon);
		Marker_Akron.image = "/images/map-icons/icon-akron.png";
		
		
		var Warren = new GMarker(Point_Warren,Marker_Warren);
		var Kinsman = new GMarker(Point_Kinsman,Marker_Kinsman);
		var Jamestown =new GMarker(Point_Jamestown,Marker_Jamestown);
		var Middlefield= new GMarker(Point_Middlefield,Marker_Middlefield);
		var Akron = new GMarker(Point_Akron,Marker_Akron);
		
		var FieldText ="Enter a Starting Address."
		
		
		var WarrenAddress = "<div class='MapSubtitle'>Family Pet Center - All Creatures</div>4680 Mahoning Avenue<br />Champion, OH 44483<br />Phone: (330) 847-7205<br />";
		WarrenAddress += "<div class='MapSubtitle'>Countryside Veterinary Service - Large Animal</div>4680 Mahoning Avenue<br />Champion, OH 44483<br />Phone: (330) 847-7337";
		var KinsmanAddress ="<div class='MapSubtitle'>Family Pet Center - Countryside Animal Hospital</div>8004 State Route 5<br />Kinsman, OH 44428<br />Phone: (330) 876-5555";
		var JamestownAddress ="<div class='MapSubtitle'>Jamestown Veterinary Clinic</div>504 Liberty Street<br />Jamestown, PA 16134<br />Phone: (724) 932-3865";
		var MiddlefieldAddress = "<div class='MapSubtitle'>Middlefield Veterinary Clinic</div>15967 E. High Street<br />P.O. Box 249<br />Middlefield, OH 44062<br />Phone: (440) 632-9181";
		var AkronAddress = "<div class='MapSubtitle'>Turkeyfoot Family Pet Center</div>687 E. Turkeyfoot Lake Rd.<br />Akron, OH 44319<br />Phone: (330) 896-1700<br />Fax: (330) 896-1810";
		
		
		Warren.description = WarrenAddress + "<p><input name='startAddress' type='text' class='EnterAddress' id='startAddress' onfocus='ClearValue(this)' value='" + FieldText +"' size='30' /><br /><br /><input name='GetDirections' type='submit' class='GetDirectionsButton' id='GetDirections' onClick='GetDirections(\"Warren\")' value='Get Directions' /></p>";
		Kinsman.description = KinsmanAddress + "<p><input name='startAddress' type='text' class='EnterAddress' id='startAddress' onfocus='ClearValue(this)' value='" + FieldText +"' size='30' /><br /><br /><input name='GetDirections' type='submit' class='GetDirectionsButton' id='GetDirections' onClick='GetDirections(\"Kinsman\")' value='Get Directions' /></p>";
		Jamestown.description =JamestownAddress + "<p><input name='startAddress' type='text' class='EnterAddress' id='startAddress' onfocus='ClearValue(this)' value='" + FieldText +"' size='30' /><br /><br /><input name='GetDirections' type='submit' class='GetDirectionsButton' id='GetDirections' onClick='GetDirections(\"Jamestown\")' value='Get Directions' /></p>";;
		Middlefield.description = MiddlefieldAddress + "<p><input name='startAddress' type='text' class='EnterAddress' id='startAddress' onfocus='ClearValue(this)' value='" + FieldText +"' size='30' /><br /><br /><input name='GetDirections' type='submit' class='GetDirectionsButton' id='GetDirections' onClick='GetDirections(\"Middlefield\")' value='Get Directions' /></p>";
		Akron.description = AkronAddress + "<p><input name='startAddress' type='text' class='EnterAddress' id='startAddress' onfocus='ClearValue(this)' value='" + FieldText +"' size='30' /><br /><br /><input name='GetDirections' type='submit' class='GetDirectionsButton' id='GetDirections' onClick='GetDirections(\"Akron\")' value='Get Directions' /></p>";
		
		Warren.description = "<span class='MapTitle'>Champion, OH</span><br /><span class='MapDescription'>"+ Warren.description+ "</span><p><a href='/facilities-locations/champion-ohio.php' class='MapLink'>Click Here for More Info<br />Family Pet Center - All Creatures</a></p><p><a href='/facilities-locations/champion-ohio-large-animal.php' class='MapLink'>Click Here for More Info<br />Countryside Veterinary Services - Large Animal</a></p>";
		Kinsman.description = "<span class='MapTitle'>Kinsman, OH</span><br /><span class='MapDescription'>"+ Kinsman.description + "</span><p><a href='/facilities-locations/kinsman-ohio.php' class='MapLink'>Click Here for More Info</a></p>";
		Jamestown.description = "<span class='MapTitle'>Jamestown, PA</span><br /><span class='MapDescription'>"+ Jamestown.description+ "</span><p><a href='/facilities-locations/jamestown-pennsylvania.php' class='MapLink'>Click Here for More Info</a></p>";
		Middlefield.description = "<span class='MapTitle'>Middlefield, OH</span><br /><span class='MapDescription'>"+ Middlefield.description+ "</span><p><a href='/facilities-locations/middlefield-ohio.php' class='MapLink'>Click Here for More Info</a></p>";
		Akron.description = "<span class='MapTitle'>Akron, OH</span><br /><span class='MapDescription'>"+ Akron.description+ "</span><p><a href='/facilities-locations/akron-ohio.php' class='MapLink'>Click Here for More Info</a></p>";
								//
		GEvent.addListener(Warren, "click", function(){this.openInfoWindowHtml(this.description);});	
		GEvent.addListener(Kinsman, "click", function(){this.openInfoWindowHtml(this.description);});	
		GEvent.addListener(Jamestown, "click", function(){this.openInfoWindowHtml(this.description);});	
		GEvent.addListener(Middlefield, "click", function(){this.openInfoWindowHtml(this.description);});	
		GEvent.addListener(Akron, "click", function(){this.openInfoWindowHtml(this.description);});	
		
		
		
		//
		map.addOverlay(Warren);
		map.addOverlay(Kinsman);
		map.addOverlay(Jamestown);
		map.addOverlay(Middlefield);
		map.addOverlay(Akron);
	
		

     
      }
      google.setOnLoadCallback(initialize);
