if (typeof aay == "undefined") {
	aay = {};
}

if (typeof aay.ecc == "undefined") {
	aay.ecc = {};
}

if (typeof aay.ecc.core == "undefined") {
	aay.ecc.core = {};
}

aay.ecc.core.sessionId = "";

aay.ecc.core.init = function() {
	// Initialise Google Analytics
	aay.ecc.google.analytics.init();

	// Focus in first input field on page
	try {
		var inputs = document.getElementsByTagName("input");
		for (var i = 0; i < inputs.length; i++) {
			if (inputs[i].getAttribute("type") == "text") {
				inputs[i].focus();
				i = inputs.length;
			}
		}
	} catch(ex) {}
	
	// Load the Google Map, if available
	try {
		if (aay.ecc.google.maps.display == true) {
			aay.ecc.google.maps.load();
		}
	} catch(ex) {}
}