$mode) { $var_value = (int) is_onmap($name); echo " var " . $name . "_onmap = " . $var_value . ";\n"; } } function info_window_content($loc) { /* * This will return a string from either the $monthly or * the $event array defined above based on the given key. * If the key doesn't exist in the array, an error message will be * passed as a string in the JavaScript code instead. */ global $map_mode, $monthly, $event; if (strtoupper($map_mode) == "E") { if (array_key_exists($loc, $event)) { return $event[$loc]; } else { return '\'ERROR: Could not find Event code \\\'' + $loc + '\\\'.\''; } } else { if (array_key_exists($loc, $monthly)) { return $monthly[$loc]; } else { return '\'ERROR: Could not find Monthly code \\\'' + $loc + '\\\'.\''; } } } function make_landmark_selector_options() { global $landmark_selector; foreach($landmark_selector as $landmark) { $comma_pos = strpos($landmark, ","); $lm_id = trim(substr($landmark, 0, $comma_pos)); $lm_short_id = (int) substr($lm_id, 1); $lm_name = trim(substr($landmark, $comma_pos + 1)); if(is_onmap($lm_id)) { echo " "; } } } function make_parking_selector_options() { global $parking_selector; foreach($parking_selector as $parking) { $comma_pos = strpos($parking, ","); $ezp_id = trim(substr($parking, 0, $comma_pos)); $ezp_short_id = (int) substr($ezp_id, 3); $ezp_name = trim(substr($parking, $comma_pos + 1)); if(is_onmap($ezp_id)) { echo " "; } } } ?> E-Z Parking Locator