// http://gisweb.azdeq.gov/arcgis/veiareas/
// ADEQ: Arizona Department of Environmental Quality

function ShowLegend()
{
    var html = dojo.byId("results").innerHTML;
    if (html.indexOf('>Legend<') > 0) return;

    html = '<div align="center">';
    html += '<span class="title">Legend</span>';
    html += '</div>';
    html += '<br>';
    html += '<fieldset style="width:200px">';
    html += '<table><tr>';
    html += '<td align="left"><img src="images/area-a.gif" height="16" width="16" alt=""></td>';
    html += '<td align="left">VEI Area A (Phoenix)</td>';
    html += '</tr><tr>';
    html += '<td align="left"><img src="images/area-b.gif" height="16" width="16" alt=""></td>';
    html += '<td align="left">VEI Area B (Tucson)</td>';
    html += '</tr><tr>';
    html += '<td align="left"><img src="images/stations.gif" height="16" width="20" alt=""></td>';
    html += '<td align="left">VEI Inspection Stations</td>';
    html += '</tr></table>';
    html += '</fieldset>';
    html += '<br><br>';
    html += '<div align="center">';
    html += '<fieldset style="width:200px">';
    html += 'Base map and geocoding<br>courtesy of<br>ESRI\'s ArcGIS Online';
    html += '</fieldset>';
    html += '</div>';

    dojo.byId("results").innerHTML = html;
}

