<!--
function showIndexPage( id, s, e, t )
{
    if ( t == 'T' )
        window.contentSubframe.location.href = 'cemindexsub.jsp?id=' + id + '&s=' + s + '&e=' + e;
    else
        window.contentSubframe.location.href = 'cemsextonsub.jsp?id=' + id + '&s=' + s + '&e=' + e;
}
function showPeopleIndex( a )
{
   window.contentSubframe.location.href = 'dcpeoplesub.jsp?a=' + a;
}
function setPeopleMenu()
{
    var s = '';
    s += '<a href="dcpeople.jsp" class="mmenu" title="Surname Index">Surname Index</a> | ';
    s += '<a href="today.jsp" class="mmenu" title="Remembering those who were born or passed today">Today</a> | ';
    s += '<a href="pindex.jsp" class="mmenu" title="Pioneers Index">Pioneers</a> | ';
    s += '<a href="tindex.jsp" class="mmenu" title="Digital Cemetery Trees">Trees</a>';
    document.getElementById( "submenu" ).innerHTML = s;
    document.getElementById( "subtitle" ).innerHTML = 'people';
}
function setHomeMenu()
{
    var s = '';
    s += '<a href="index.jsp" class="smenu" title="Index of Cemeteries">Cemetery List</a> | ';
    s += '<a href="countymap.jsp?county=Johnson&state=KS" class="smenu" title="GoogleMap of Johnson County Cemeteries">Cemetery GoogleMap</a> | ';
    s += '<a href="today.jsp" class="smenu" title="Today in the Digital Cemetery">Today</a>';
    document.getElementById( "submenu" ).innerHTML = s;
    document.getElementById( "subtitle" ).innerHTML = 'cemeteries';
}
function setAboutMenu()
{
    var s = '';
    s += '<a href="dcabout.jsp" class="smenu" title="About the Digital Cemetery project">About</a> | ';
    s += '<a href="dccredits.jsp" class="smenu" title="The many Volunteers">Volunteers</a> | ';
    s += '<a href="http://digitalcemetery.blogspot.com/" class="smenu" title="The Digital Cemetery Blog" target="_blank">Blog</a>';
    document.getElementById( "submenu" ).innerHTML = s;
    document.getElementById( "subtitle" ).innerHTML = 'about';
}
function setPageHead( s )
{
    document.getElementById( "pghead" ).innerHTML = s;
}
function getLost( pg )
{
    window.contentSubframe.location.href = 'lost/' + pg;
}
function getLostNo( n )
{
    window.contentSubframe.location.href = 'lost/lost' + n + '.html';
}
function getAtlasPath()
{
   return 'http://ci.cottonhills.com/maps/atlas/';
}
function showAtlas( file )
{
    open( getAtlasPath() + file, 'photo' );
}
function loadMap( lat, lon, msg ) 
{
	if ( GBrowserIsCompatible() ) 
	{
		var point = new GLatLng( lat, lon );
		
		var map = new GMap2( document.getElementById("map") );
		map.addControl( new GSmallMapControl() );
		map.addControl( new GMapTypeControl() );
		map.setCenter(  point, 15 );
		
		var icon = new GIcon();
		icon.image = "images/greenmarker.png";
		icon.shadow = "images/shadow.png";
		icon.iconSize = new GSize( 22, 36 );
		icon.shadowSize = new GSize( 50, 36 );
		icon.iconAnchor = new GPoint( 6, 20 );
		icon.infoWindowAnchor = new GPoint( 5, 1 );
		
		var marker = new GMarker( point, icon );
		map.addOverlay( marker );
		//marker.openInfoWindowHtml( msg );
		
		GEvent.addListener( marker, "click", 
			function() { marker.openInfoWindowHtml( msg ); } );
	}
}
// -->