jQuery( function initialize() {
   var myOptions = {
     zoom: 17,
     center: new google.maps.LatLng(37.789690,-122.393080),
     mapTypeId: google.maps.MapTypeId.ROADMAP,
		disableDefaultUI: true
		//navigationControl: true,

   }
   var map = new google.maps.Map(document.getElementById("map_canvas"),
                                 myOptions);

   var image = 'http://tt.wpibeta.org/wp-content/themes/tempterm/images/terminal_marker3.png';
   var temptermpos = new google.maps.LatLng(37.789600,-122.393005);
   var newtermpos  = new google.maps.LatLng(37.789503,-122.396373);
   var newterm = new google.maps.Marker({
       position: newtermpos,
       map: map,
       icon: image
   });
   var tempterm = new google.maps.Marker({
       position: temptermpos,
       map: map,
       icon: image
   });
               /*
               var imageBounds = new google.maps.LatLngBounds(
                   new google.maps.LatLng(37.788864,-122.392741),
                   new google.maps.LatLng(37.790458,-122.393399)
               );
               var groundoverlay = new google.maps.GroundOverlay(
                   "http://www.lib.utexas.edu/maps/historical/newark_nj_1922.jpg",
                   imageBounds);
               groundoverlay.setMap(map);
               */
               var tempterminal;
               var newterminal;
               var newtermcoords = [
                 new google.maps.LatLng(37.788917,-122.397508),
                 new google.maps.LatLng(37.789445,-122.396846),
                 new google.maps.LatLng(37.789511,-122.396923),
                 new google.maps.LatLng(37.789938,-122.396376),
                 new google.maps.LatLng(37.789880,-122.396290),
                 new google.maps.LatLng(37.790266,-122.395797),
                 new google.maps.LatLng(37.789956,-122.395404),
                 new google.maps.LatLng(37.788608,-122.397115),
               ];
               var temptermcoords = [
                 new google.maps.LatLng(37.790535,-122.393409),
                 new google.maps.LatLng(37.789930,-122.394170),
                 new google.maps.LatLng(37.788765,-122.392700),
                 new google.maps.LatLng(37.789370,-122.391960)

               ];
               newterminal = new google.maps.Polygon({
                 paths: newtermcoords,
                 strokeColor: "#000",
                 strokeOpacity: 0.5,
                 strokeWeight: 1,
                 fillColor: "#333",
                 fillOpacity: 0.5
               });
               newterminal.setMap(map);
               tempterminal = new google.maps.Polygon({
                 paths: temptermcoords,
                 strokeColor: "#154679",
                 strokeOpacity: 1.0,
                 strokeWeight: 1,
                 fillColor: "#0892D0",
                 fillOpacity: 0.7
               });
               tempterminal.setMap(map);
//
//        var walkingPathCoords = [
//               new google.maps.LatLng(37.790266,-122.395797),
//               new google.maps.LatLng(37.790457,-122.393397)
//           ];
//  var walkingPath = new google.maps.Polyline({
//    path: walkingPathCoords,
//    strokeColor: "#FF0000",
//    strokeOpacity: 1.0,
//    strokeWeight: 2
//  });
//               walkingPath.setMap(map);

               var newtermcontentstring = 
                  '<b>Current Transbay Terminal</b>'+
                   '<p>Fremont Street between Mission and Howard<br/>' +
                   'San Francisco, CA 94105</p>';

               var temptermcontentstring = 
                   '<b>The Transbay Temporary Terminal</b>'+
                   '<p>The Corner of Howard & Main Streets<br/>' +
                   'San Francisco, CA 94105<br/>'+
									 '(415) 597-4620</p>'+
                   '<p><a target="_blank" class="blue_btn" href="http://maps.google.com/maps?f=q&source=s_q&hl=en&geocode=&q=Howard+%26+Main+Streets&sll=37.774989,-122.397995&sspn=0.069471,0.069265&ie=UTF8&hq=&hnear=Howard+St+%26+Main+St,+San+Francisco,+California+94105&z=17">Get Directions</a>'+
                   '</p>';

               var infowindow = new google.maps.InfoWindow({
                   content: temptermcontentstring,
										maxWidth: 500

               });
               var infowindow2 = new google.maps.InfoWindow({
                   content: newtermcontentstring
               });
               google.maps.event.addListener(tempterm, 'click', function() {
                 infowindow.open(map,tempterm);
               });
               google.maps.event.addListener(newterm, 'click', function() {
                 infowindow2.open(map,newterm);
               });

						//	infowindow.open(map,tempterm);
 });
