function loadMap() {
	if (GBrowserIsCompatible())
	{
		// map
		var map = new GMap2(document.getElementById("map"));
		// zoom,movement controls
		map.addControl(new GSmallMapControl());
		// this is where we want the map
		var point = new GLatLng( $( "latitude" ).value, $( "longitude" ).value );
		// go to that point
		map.setCenter(point, 16);
		// set map type
		if ( $( "cinema_name" ).innerHTML == "Cinema Not Found" ) map.setMapType( G_SATELLITE_MAP );
		// add a marker
		var marker = new GMarker(point);
		map.addOverlay(marker);
	}
}

Event.observe( window, "load", loadMap );