/****************************************************************************
*                   Copyright (c) 2006 Mercator GeoSystems Ltd
*
*                           Mercator GeoSystems Ltd
*                           10 St Quentin View
*                           Sheffield
*                           South Yorkshire
*                           S17 4PS
*                           ENGLAND
*
*                           Tel    +44 (0) 114 235 3409
*                           Fax    +44 (0) 114 235 3409
*                           E-Mail info@mercatorgeosystems.co.uk
*++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++++
*/

/* Revision history

$Id: mgGlobals.js 24 2006-05-08 14:10:12Z steve $

*/

/* Global variables are all declared here
   so the obfuscation config is easier to 
   generate */
   
// Applicaion globals
// define some global "handles"
// the pagecontrol (tab)
var pagecontrol;   
var start_page = 0;
// config url for this app
var config_url;
// create global reference to a map
var map;
// and the google map
var gmap;
// current language
var lang;
// Various UI strings
var strings = new Array();
// Wait message
var waitMsg;
// Customer id
var customer_id;

// Drive Time Options
var baseIcon;
var returnToBase = true;
var optimiseOnDistance = false;
var waitTime = 0;
var startTime = "8:00 am";
var btnGo;
var btnReset;
var btnOptions;
var progressInc = 1;
var optionWnd;

// Breaks
var scheduledBreak = false;
var cmbBreakDuration;
var breakStartlabel;
var inputBreakStartTime;
var breakStartTime = "12:30 pm";
var breakTpImg;
var breakDurationLabel;
var cbBreakToStop;
var breakAtStop = false;
var breakDuration = 30;

// Indiv waiting times
var indivWaitTimes = false;
var waitTimesWnd;
var lgWaitTimes;

var map_x;
var map_y;
var map_zoom;
