// WiFi categories
var W_SHARED = "1";           
var W_AIRPORT = "2";           
var W_GAS = "3";           
var W_TRAIN = "4";           
var W_COFFEE = "5";           
var W_HOTEL = "6";           
var W_OTHER = "14";           

// Normal size category images
IMG_AP = Array();
IMG_AP[1]  = "../api/img/wifi_free.png";
IMG_AP[2]  = "../api/img/wifi_airport.png";
IMG_AP[3]  = "../api/img/wifi_petrol_station.png";
IMG_AP[4]  = "../api/img/wifi_trainstation.png";
IMG_AP[5]  = "../api/img/wifi_coffee.png";
IMG_AP[6]  = "../api/img/wifi_hotel.png";
IMG_AP[14] = "../api/img/wifi_other.png";

// Large AP category images
IMG_AP_L = Array();
IMG_AP_L[1]  = "../api/img/wifi_free_large.png";
IMG_AP_L[2]  = "../api/img/wifi_airport_large.png";
IMG_AP_L[3]  = "../api/img/wifi_petrol_station_large.png";
IMG_AP_L[4]  = "../api/img/wifi_trainstation_large.png";
IMG_AP_L[5]  = "../api/img/wifi_coffee_large.png";
IMG_AP_L[6]  = "../api/img/wifi_hotel_large.png";
IMG_AP_L[14] = "../api/img/wifi_other_large.png";

// The relative path to these scripts
var EXEC_QUERY_SCRIPT_URL = "../api/includes/w_query.php";
var WIFI_PICTURES_URL = "../api/includes/w_getpicture.php";

// The coordinates of the center of the map the first time is loaded
var LOAD_LAT = 30;   
var LOAD_LON = -20;

// The zoom level when the map is loaded for the first time
var LOAD_ZOOM = 2;

// The zoom level at which the access points appear on map
var AP_DISPLAY = 2;

// Maximum number of signals displayed
var MAX_ACCESS_POINTS_DISPLAYED = 500;

// DIVs that hold variable content
APLIST_DIV = "apList";
APCOUNT_DIV = "apCount";
ADDRESS_DIV = "apAddress";
NEARESTCITY_DIV = "nearestCity";
GEOCODED_DIV = "geocodedCity";

// Callback functions
FN_REVERSE_GEOCODER = "procResultRev";

// Map geocoder result precisions and corresponding zoom levels
var GeoAccuracy = Array();
	GeoAccuracy[0] = 3 ;
	GeoAccuracy[1] = 4 ;
	GeoAccuracy[2] = 8 ;
	GeoAccuracy[3] = 10 ;
	GeoAccuracy[4] = 12 ;
	GeoAccuracy[5] = 14 ;
	GeoAccuracy[6] = 14 ;
	GeoAccuracy[7] = 15 ;
	GeoAccuracy[8] = 16 ;
    