/**	GENERATED: Mon, 14 Jul 2008 16:06:33 -0700
*	For Javascripts used with [BRdC] Spoke Card1.0b -- 20080110
*	SITE URI: http://www.bikeroute.com/BRdC/
*/



var BRdCPOIMax	= 1;
var BRdCPOIList	= new Array( BRdCPOIMax+1 );
BRdCPOIList[0]	= [ "Route Point", new FIconSeries("img/marker/marker", [13,24,32,48,64]) ];
BRdCPOIList[1]	= [ "City Hall", new FIconSeries("img/marker/cityhall", [[13,13,13],[24,24,24],[32,32,32],[48,48,48],[64,64,64]]) ];

var BRdCPOIGrouped = [
	{ pois: [0] },
	{ group:"City", pois: [1] } ];

function getPOI_IconSeries( poitype )
{	if (poitype>=0 && poitype<=BRdCPOIMax && BRdCPOIList[poitype])
		return BRdCPOIList[poitype][1];
	return false;
}
function getPOI_TypeName( poitype )
{	if (poitype>=0 && poitype<=BRdCPOIMax && BRdCPOIList[poitype])
		return BRdCPOIList[poitype][0];
	return '';
}

function select_POIOptions( selectdom )
{	for (var grp in BRdCPOIGrouped)
	{	var grouping = BRdCPOIGrouped[grp];
		if (typeof grouping.group=='string')
		{	groupdom = document.createElement('optgroup');
			groupdom.label = grouping.group;
			add_POIOptions( groupdom, grouping.pois );
			selectdom.appendChild( groupdom );
		}	else
		{	add_POIOptions( selectdom, grouping.pois );
		}
	}
}
function add_POIOptions( domelem, poiarray )
{	for (var poid in poiarray)
	{	var poi = BRdCPOIList[ poiarray[poid] ];
		if (typeof poi=='object')
		{	var opt = document.createElement('option');
			opt.value = poiarray[poid];
			opt.label = poi[0];
			opt.appendChild( document.createTextNode( poi[0] ) );
			domelem.appendChild( opt );
		}
	}
}