jQuery().ready(function($){ $(window).load( function() { /* loads google maps code */ firework_load(); //used to determine if it is appropriate time to force fireworks info to display fireworks_Date = new Date(); currentMonth = fireworks_Date.getMonth(); currentDay = fireworks_Date.getDate(); } // end function ); // end load $(window).unload( function() { /* unloads google maps code */ GUnload(); } // end function ); // end unload }); // end jQuery // refers to actual map being drawn var map; // loads up gmap function firework_load() { if( GBrowserIsCompatible() ) { firework_map = new GMap2(document.getElementById("firework_map")); // adds type control in upper right firework_map.addControl(new GSmallZoomControl3D()); // geocodes address var geocoder = new GClientGeocoder(); geocoder.getLatLng('6419 Del Amo Blvd, Lakewood, CA 90713', function(point) { // Create a base icon for all of our markers that specifies the var placeIcon = new GIcon(); placeIcon.iconSize = new GSize(61, 53); placeIcon.iconAnchor = new GPoint(-10,45); placeIcon.image = "http://www.cadistrict38.org/wp/wp-content/plugins/district_googlemaps/place_icon.png"; markerOptions = { icon:placeIcon }; firework_map.addOverlay(new GMarker(point, markerOptions)); firework_map.setCenter( point, 15 ); } // end function ); // end getLatLng } // end if } // end load function