//========================================================
// Global variables
//========================================================

var mouseX=0;
var mouseY=0;
var x1=0;
var y1=0;
var x2=0;
var y2=0;
var zleft=0;
var zright=0;
var ztop=0;
var zbottom=0;


//var imgWidth  = 350;  // map image width
//var imgHeight = 420;  // map image height
var imgWidth  = 324;  // map image width
var imgHeight = 270;  // map image height
var scrWidth;   // screen width
var scrHeight;  // screen height


//========================================================
// variables for map pixel offset from upper left corner of frame
var hspc = 188;	// horizontal offset
var vspc = 146;	// vertical offset
//var hspc2 = 2;	// horizontal offset
//var vspc2 = 22;	// vertical offset

var boxSize  = 2;  //used to be 3
//var boxColor = '#ff0000';
var zooming  = false;

var name_prefix = 'MapCtrl$MapImgCtrl$';
var id_prefix   = 'MapCtrl_MapImgCtrl_';

var mouseOutTimerID;            // timer Id for mouse cursor move out of the map image
var mouseOutTimerDelay = 500;   // timeout delay


// tools bars
//var tools = Array("ZoomIn","ZoomOut","Pan","SelectBox","Polygon");


