
//Map Url
var rootUrl = "/homecoming/";

//Options:pointer,crosshair,hand
var cursorType = ""; //Leave blank for default

// ISU Information Marker
var isuIcon = new GIcon(G_DEFAULT_ICON);
isuIcon.image = '/images/markers/isuMarkerMain.png';
isuIcon.iconSize = new GSize(40, 42);
isuIcon.shadowSize = new GSize(0, 0);
isuIcon.imageMap = [0,0,40,0,40,42,0,42];
isuIcon.infoWindowAnchor = new GPoint(30, 5);

// constants for each layer number
var SPECIAL_LOCATIONS_NUM = 0;
var SECURITY_NUM = 1;
var CONSTRUCTION_NUM = 2;
var BLUE_PHONES = 3;

// constant for number of layers
var NUM_LAYERS = 4;

// default point
var DEFAULT_POINT = {y : 40.511751819053416, x : -88.99266958236694};

var DEFAULT_CENTER = {y : 40.512396206444926, x : -88.99234771728516};

// center cordinates for map controls
var CONTROLS_CENTER = {y : 40.51086271742304, x : -88.99157524108887};

var QUAD_CENTER = {y : 40.50839111609762, x : -88.99129629135132};

// default zoom
var DEFAULT_ZOOM = 16;

// default point and marker
var defaultMarkerOn = 2;

var specialPoint = new GLatLng(QUAD_CENTER.y, QUAD_CENTER.x);
var specialMarker;

//Left Nav data
//!!Important!!
//Used for syncing the state of the map with the Left Nav
//Also used for creating and passing URL data to secondary pages
//Array must follow the order of the Left Nav, have the root checkbox ID, number of locations, and the layer number

var LEFT_NAV_INFO = 0;

var leftNav = new Array();

leftNav[LEFT_NAV_INFO] = [];

leftNav[LEFT_NAV_INFO].push(["chkSec", 2, SECURITY_NUM]);
leftNav[LEFT_NAV_INFO].push(["chkCon", 0, CONSTRUCTION_NUM]);

//Outside bounds limits

BOUND_LIMIT_N = 40.516205306678984; 
BOUND_LIMIT_S = 40.50479775103492;
BOUND_LIMIT_E = -88.98420453071594;
BOUND_LIMIT_W = -89.00366127490997;

// coordinates of the centers of each layer
var layerCenterArray = new Array();

layerCenterArray[SECURITY_NUM] = new GLatLng(40.51396228669712, -88.99560928344727);	// blue emergency phones center point
layerCenterArray[CONSTRUCTION_NUM] = new GLatLng(40.509573906975334, -88.99380683898926);	// construction center point

var legendsArray = ["accLegend","parkLegend", "constructionLegend"];

function roadMarkers(show)
{
	for (var i=5;i<21 ;i++ )
	{
		if (show)
		{
			markerArray[SPECIAL_LOCATIONS_NUM][i].show();
		}
		else
		{
			markerArray[SPECIAL_LOCATIONS_NUM][i].hide();
		}	
	}
}