// JavaScript Document

Event.observe (window, 'load', function () {
	if ($('mainContentBG')) {
		$('mainContentBG').focus();
	}
	getEmail();
	$$('.email').each (function (theLink) {
		Event.observe (theLink, 'mouseover', function () {
			theLink.href = 'mailto:' + email;
		});
	});
});
function getEmail () {
	var url='email.php';
	var options = {
		method : 'get',
		onSuccess : function (transport) {
			var response = transport.responseText.evalJSON(true) || 'no response text';
			response.each (function (o) {
				email = o.email;
			});
		}
	}
	new Ajax.Request (url, options);
}
