

var myBrowser = new Browser();


function AeEnv(){
	var def = new defaultLatLngZoom();
	this.defLat = def.lat; 
	this.defLong = def.lng; 
	this.defZoom = def.zoom; 
	this.defStyle = 'h';
		
	this.mapToolsX = 10;
	this.mapToolsY = 10;
		
	this.mapName = "MyMap"; // the name of the Map DIV
	this.myMap = null;  // the Map object
	
	this.calloutLocName = "calloutLoc"; // the name of the gnote DIV
	this.calloutLocAnchorX = 45; //x-offset of anchor point
	this.calloutLocAnchorY = -2; //y-offset of anchor point

	this.AeErrorDivName = "AeErrors"; // name DIV that receives errors
	
	this.serverErrorMsgs = null;
	this.serverErrorMsgId = null;
		
		
	AeEnv.prototype.onload = function (){
		var style;
			
		this.mapElement = document.getElementById(this.mapName);
			style = getStyle(this.mapElement);
			this.mapTop = parseInt(style.top);
			this.mapLeft = parseInt(style.left);
			this.mapWidth = parseInt(style.width);
			this.mapHeight = parseInt(style.height);
	}
}

	var badUserNames = new Array();
	var j = 0;
	
	function onloadHandler(){
		env.onload();
		initializeMap();
	}

	var env = new AeEnv(); //setup env
	initLocationList(env, '25');

