/** GENERATED: Tue, 07 Feb 2012 23:28:50 -0800 * For Javascripts used with BRdC_GENERATORBRdC_VERSION * SITE URI: BRdC_URI */ var BRdCPOIMax = -1; var BRdCPOIList = new Array( BRdCPOIMax+1 ); var BRdCPOIGrouped = [ ]; 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 ); } } }