<!--
var preloadFlag = false;

function newImage(arg) {
	if (document.images) {
		rslt = new Image();
		rslt.src = arg;
		return rslt;
	}
}

function changeImages() {
	if (document.images && (preloadFlag == true)) {
		for (var i=0; i<changeImages.arguments.length; i+=2) {
			document[changeImages.arguments[i]].src = changeImages.arguments[i+1];
		}
	}
}

var preloadFlag = false;
function preloadImages() {
	if (document.images) {
		Nav01 = newImage("images/navigation/about-al-OVER.jpg");
		Nav02 = newImage("images/navigation/community-involvement-OVER.jpg");
		Nav03 = newImage("images/navigation/contribute-OVER.jpg");
		Nav04 = newImage("images/navigation/experience-education-OVER.jpg");
		Nav05 = newImage("images/navigation/home-OVER.jpg");
		Nav06 = newImage("images/navigation/volunteer-OVER.jpg");
		Nav07 = newImage("images/navigation/photo-gallery-OVER.jpg");
		Nav08 = newImage("images/navigation/multimedia-OVER.jpg");
	
		Rdm01 = newImage("images/random/body/about-al-body.gif");
		preloadFlag = true;
	}
}

var winLegal = null;
function goPrivacy() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('privacy.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

var winLegal = null;
function goNotices() {
	var windowWidth = 500;
	var windowHeight = 500;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=1';
	
	if ((winLegal != null) && !winLegal.closed) {
		winLegal.close();
	};
	
	winLegal = open('notices.aspx', 'winLegal', windowFeatures);
	winLegal.focus();
}

function checkMsg (msg, focusField) {
	if (msg == '')
		return true;
	else {
		msg = 'There Has Been An Error Processing Your Request.\nPlease Try Again!\n\n' + msg;
		alert (msg);
		focusField.focus();
		return false;
	}
}

function cancel (url) {
	window.location.replace(url);
}
var winFileName = null;
function goFileName (filename) {
	var windowWidth = 300;
	var windowHeight = 100;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var content = '';
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY
										 + ',scrollbars=0';
	
	if ((winFileName != null) && !winFileName.closed) {
		winFileName.close();
	};
	content = '<html><title>Link for Document</title><body>' + htmlEncode('<a href=\"media.aspx?f=' + escape(filename) + '\">' + filename + '</a>') + '</body></html>'
	
	winFileName = open('', 'winFileName', windowFeatures);
	winFileName.document.write(content);
	winFileName.focus();
}
function htmlEncode(s) {
	var str = new String(s);
	str = str.replace(/&/g, "&amp;");
	str = str.replace(/</g, "&lt;");
	str = str.replace(/>/g, "&gt;");
	str = str.replace(/"/g, "&quot;");

	return str;
}
var winMultimedia = null;
function goMultimedia(file, h, w) {
	var windowWidth = w+46;
	var windowHeight = h+45;
	var locX = (screen.width - windowWidth) / 2;
	var locY = (screen.height - windowHeight) / 2;
	var windowFeatures = 'width='+ windowWidth
										 + ',height=' + windowHeight
										 + ',screenX=' + locX
										 + ',screenY=' + locY
										 + ',left=' + locX
										 + ',top=' + locY;
	
	if ((winMultimedia != null) && !winMultimedia.closed) {
		winMultimedia.close();
	};
	
	winMultimedia = open('winMultimedia.aspx?f='+file+'&w='+w+'&h='+h, 'winMultimedia', windowFeatures);
	winMultimedia.focus();
}
// -->
