///////////////////////////////////////////////////////////////////////////////////
// googleSationMap - function to display a static image of the Google 
//                   Map for a given event/station 
//
// Inputs:
//    event       -- event location as a string in the form of lat,lon
//    eventColor  -- color name for the event marker
//    station     -- station location as a string in the form of lat,lon
//    stationColor-- color name for the event marker
//    width       -- map width in pixels
//    height      -- map height in pixels
//    zoom        -- map zoom level
//
// seismicityMap   - function to display seismicity map for a given lat & lon
//
// Inputs:
//    lat         -- event latitude
//    lon         -- event longituide
//    width       -- map width in pixels
//    height      -- map height in pixels
//
// Revision History:
//    2010-01-15 Manoch: created googleStationMap
//    2010-01-19 Manoch: created seismicityMap
//
///////////////////////////////////////////////////////////////////////////////////
function googleStaticMap(event,eventColor,station,stationColor,width,height,zoom,areaColor,minLat,maxLat,minLon,maxLon) 
	{
	mapUrl='http://maps.google.com/maps/api/staticmap?center=';
	mapParam='&zoom='+zoom+'&maptype=hybrid&markers=size:tiny|color:'+eventColor+'|'+event+'&markers=size:tiny|color:'+stationColor+'|'+station+'&size='+width+'x'+height+'&sensor=true';
	url=mapUrl+event+mapParam;
	url=url+'&path=color:'+areaColor+'|weight:1|fillcolor:'+areaColor+'|'+minLat+','+minLon+'|'+minLat+','+maxLon+'|'+maxLat+','+maxLon+'|'+maxLat+','+minLon+'|'+minLat+','+minLon;
	map = window.open( url,'map','toolbar=0,location=0,scrollbars=0,titlebar=0,status=no,menubar=0,resizable=0,width='+width+',height='+height)
        map.focus();
        }

function seismicityMap(lat,lon,width,height) 
	{
	url='http://www.iris.edu/seismon/zoom/?view=eveday&lat='+lat+'&lon='+lon;
	smap = window.open( url,'smap','toolbar=0,location=0,scrollbars=0,titlebar=0,status=no,menubar=0,resizable=0,width='+width+',height='+height)
        smap.focus();
	}

