function writeMapsList() {
	
	var listML = '';

		for (var i=0;i<mapsArray.length ;i++ ) {
			listML += '<a class="mapsListLink" href="' + mapsArray[i].link + '" target="top">' +  mapsArray[i].title + '</a>';
		}


	document.getElementById('mapsToNativesListDiv').innerHTML = listML;
}



function selectFeaturedMap() {

	var featML = '';

	var fInd = rand(mapsArray.length) - 1;

	featML = '<div style="font-weight:bold;font-size:14px;"><a href="' + mapsArray[fInd].link + '" target="top">' + mapsArray[fInd].title + '</a></div>' +
			 '<div style="position:relative;float:left;height:300px;width:300px;overflow:hidden;">' + mapsArray[fInd].embed + '</div>' +
			 '<div style="position:relative;float:right;width:100px;padding-top:135px;font-weight:bold;"><a href="' + mapsArray[fInd].link + '" target="top">&nbsp;View Full Size &#187;</a></div>';

	document.getElementById('featuredMapDiv').innerHTML = featML;
}


function writeFeaturedMap() {

	var featML = '';

	var fInd = rand(mapsArray.length) - 1;

	featML = '<div style="position:relative;float:left;height:150px;width:150px;overflow:hidden;">' + replace(mapsArray[fInd].embed, '"300"', '"150"') + '</div>' +
			 '<div style="position:relative;clear:both;font-weight:bold;font-size:12px;"><a href="' + mapsArray[fInd].link + '" target="top">' + mapsArray[fInd].title + '</a></div>';

	document.getElementById('indFeaturedMapDiv').innerHTML = featML;
}


function writeHomepageFeaturedMap() {

	var featML = '';

	var fInd = rand(mapsArray.length) - 1;

	featML = '<div style="position:relative;left:75px;height:150px;width:150px;overflow:hidden;">' + replace(mapsArray[fInd].embed, '"300"', '"150"') + '</div>' +
			 '<div style="position:relative;clear:both;font-weight:bold;font-size:12px;text-align:center"><a href="/experience/maps_to_natives.html" target="top">' + mapsArray[fInd].title + '</a></div>';

	document.getElementById('indFeaturedMapDiv').innerHTML = featML;
}






var mapsArray = new Array();

var map = new Object();

function newMap() {

	map = new Object();
	map.title = null;
	map.link = null;
	map.embed = null;

}


function addMap() {

	mapsArray[mapsArray.length] = new Object();
	mapsArray[mapsArray.length - 1] = map;

}





//**************************************MAP ENTRIES

//********BEGIN MAP ENTRY
newMap();

map.title = 'Native Plants at San Bruno Mountain';
map.link = 'http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=108650570991930645424.0004397c981479c04bb29&t=h&z=16&om=1';
map.embed = '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.0004397c981479c04bb29&amp;t=h&amp;om=1&amp;ll=37.699937,-122.430857&amp;spn=0.00159,0.010921&amp;output=embed&amp;s=AARTsJp6iBiJyCqAmyb8FC87BryujuFxlQ"></iframe><br /><small><a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.0004397c981479c04bb29&amp;t=h&amp;om=1&amp;ll=37.699937,-122.430857&amp;spn=0.00159,0.010921&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>';

addMap();

//********END MAP ENTRY


//********BEGIN MAP ENTRY
newMap();

map.title = 'Serpentine Habitats in San Francisco';
map.link = 'http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=108650570991930645424.00043980937acdad376cb&ll=37.767187,-122.428036&spn=0.089154,0.128231&t=h&z=13&om=1';
map.embed = '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.00043980937acdad376cb&amp;ll=37.772828,-122.428961&amp;spn=0.038729,0.057468&amp;t=h&amp;om=1&amp;output=embed&amp;s=AARTsJobVjspkDOpX6jny5CyzxsQhhxIcg"></iframe><br /><small><a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.00043980937acdad376cb&amp;ll=37.772828,-122.428961&amp;spn=0.038729,0.057468&amp;t=h&amp;om=1&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>';

addMap();

//********END MAP ENTRY


//********BEGIN MAP ENTRY
newMap();

map.title = 'Native Plants at Mt. Davidson';
map.link = 'http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=108650570991930645424.000439914f7633735b00b&ll=37.738862,-122.45386&spn=0.005574,0.008014&t=h&z=17&om=1';
map.embed = '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.000439914f7633735b00b&amp;ll=37.739064,-122.453858&amp;spn=0.002267,0.003108&amp;t=h&amp;om=1&amp;output=embed&amp;s=AARTsJowqWdv9K2mf60g7oW77YdalbLCaA"></iframe><br /><small><a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.000439914f7633735b00b&amp;ll=37.739064,-122.453858&amp;spn=0.002267,0.003108&amp;t=h&amp;om=1&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>';

addMap();

//********END MAP ENTRY


//********BEGIN MAP ENTRY
newMap();

map.title = 'Native Plants at Bayview Hill';
map.link = 'http://maps.google.com/maps/ms?ie=UTF8&hl=en&msa=0&msid=108650570991930645424.00043b85d82e2e628a424&t=h&z=17&om=1';
map.embed = '<iframe width="300" height="300" frameborder="0" scrolling="no" marginheight="0" marginwidth="0" src="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.00043b85d82e2e628a424&amp;t=h&amp;om=1&amp;ll=37.716926,-122.394679&amp;spn=0.004176,0.005214&amp;output=embed&amp;s=AARTsJpVB1DnHZcsfCKf-aqXg8u4d-6ExA"></iframe><br /><small><a href="http://maps.google.com/maps/ms?ie=UTF8&amp;hl=en&amp;msa=0&amp;msid=108650570991930645424.00043b85d82e2e628a424&amp;t=h&amp;om=1&amp;ll=37.716926,-122.394679&amp;spn=0.004176,0.005214&amp;source=embed" style="color:#0000FF;text-align:left">View Larger Map</a></small>';

addMap();

//********END MAP ENTRY
