function area_select( which ) { switch( which ) { case 'Central': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.899, 144.91), new google.maps.LatLng(-37.717, 145.185)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Western Plains': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-38.019, 144.545), new google.maps.LatLng(-37.702, 144.949)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Maribyrnong': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.834, 144.695), new google.maps.LatLng(-37.608, 144.948)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'North': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.782, 144.898), new google.maps.LatLng(-37.583, 145.083)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Yarra North': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.742, 145.054), new google.maps.LatLng(-37.61, 145.285)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Yarra Valley': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.851, 145.168), new google.maps.LatLng(-37.633, 145.419)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Eastern': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.91, 145.075), new google.maps.LatLng(-37.795, 145.213)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Dandenong Foothills': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-37.964, 145.175), new google.maps.LatLng(-37.804, 145.354)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Southern': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-38.059, 144.962), new google.maps.LatLng(-37.872, 145.305)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Peninsula': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-38.514, 144.626), new google.maps.LatLng(-38.026, 145.397)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'SouthEast': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-38.254, 145.267), new google.maps.LatLng(-37.928, 145.538)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Geelong Region': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-38.29, 144.2), new google.maps.LatLng(-38, 144.71)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; case 'Bendigo Region': var bounds = new google.maps.LatLngBounds(new google.maps.LatLng(-36.65, 144.18), new google.maps.LatLng(-36.9, 144.3)); map.setCenter(bounds.getCenter()); map.fitBounds(bounds); map.setZoom(map.getZoom() + 1); break; default: map.setCenter(new google.maps.LatLng(-37.821969, 145.04540297)); map.setZoom(8); break; } }