﻿var heatMapTip
var zoomToLocationTip
var showProvidersTip
var minMaxTip
var queryTip
var addAllTip
var showServiceAreasTip
var showTooltipsTip
var layersTip
var emailTip
var printTip
var providerReportTip
var coverageTip
var helpTip
var showAllTip
var resetTip
var selectAllTip
var zoomPreviousTip
var zoomNextTip
var zoomToGroupTip
var removeFromActiveProvidersTip
var clearEntryTip

function showLongTooltips() {
    zoomToLocationTip = 'Enter a city, county, zip code, or address';
    showProvidersTip = 'Enter a keyword such as \'food\', \'shelter\' or \'clothing\', or enter a name such as \'Salvation Army\'';
    minMaxTip = 'Click to hide or show this menu.';
    queryTip = '<b>Demographic Query Tool</b><br>Click this icon and then click anywhere within the 16<br>counties displayed on the map to run a census query.<br>Select the default radius distance in the drop-down<br>menu to the right of the icon.<br><br>Click the icon again to exit the tool.';
    addAllTip = 'Click to display all of the<br>provider types listed above.';
    showServiceAreasTip = 'If checked, the service area boundaries for certain<br>providers will display on the map when you hover<br>over the point with your mouse.';
    showTooltipsTip = 'If checked, tooltips will guide you through<br>using this application when you hover<br>over certain elements with your mouse.';
    layersTip = 'Check or uncheck these boxes to toggle layers on the map.<br>Note that at some scales, certain layers will not display, so<br>zoom in to see them.';
    emailTip = '<b>Email Map</b><br>This icon is for demonstration purposes only.<br><br>Future functionality could allow users to email<br>a link to the map in its current state.';
    printTip = '<b>Print Map</b><br>This icon is for demonstration purposes only.<br><br>Future functionality could allow users to load a<br> print-friendly version of this map.';
    providerReportTip = '<b>Generate Provider Report</b><br><br>View a report that lists all of the details for<br>each provider that is currently displayed.';
    coverageTip = '<b>Generate Service Coverage Map</b><br>Click to display map features representing the combined<br>service areas for the current providers displayed.<br><br>Click again to turn them off.'
    helpTip = 'View Help'
    showAllTip = 'Display all providers of any type on the map.'
    resetTip = 'Reset Map'
    selectAllTip = 'Click to display or hide all of<br>the provider types listed above.';
    zoomPreviousTip = 'Zoom the map to your previous extent.'
    zoomNextTip = 'Zoom to the map to the next extent.'
    zoomToGroupTip = 'Zoom map to display all of these providers.'
    removeFromActiveProvidersTip = 'Remove this item from your map.'
    clearEntryTip = 'Clear any text you have entered.'
}

function showShortTooltips() {
    zoomToLocationTip = 'City, county, zip code, or address';
    showProvidersTip = 'Keyword or name';
    minMaxTip = 'Hide/Show Menu';
    queryTip = 'Demographic Query';
    addAllTip = 'Add All';
    showServiceAreasTip = 'Toggle Service Areas';
    showTooltipsTip = 'Toggle Tooltips';
    layersTip = 'Toggle Map Layers';
    emailTip = 'Email Map';
    printTip = 'Print Map';
    providerReportTip = 'Provider Report';
    coverageTip = 'Service Coverages'
    helpTip = 'View Help'
    showAllTip = 'Show/Hide All'
    resetTip = 'Reset Map'
    selectAllTip = 'Select All';
    zoomPreviousTip = 'Zoom to Previous'
    zoomNextTip = 'Zoom to Next'
    zoomToGroupTip = 'Zoom to All'
    removeFromActiveProvidersTip = 'Remove From Map'
    clearEntryTip = 'Clear Entry'
}
function toggleTooltipDisplay() {
    if (document.getElementById("chkShowTooltips").checked == true) {
        showLongTooltips();
    }
    else {
        showShortTooltips();
    }
}
