// JavaScript Document
var arrFields;


function loadMenu() {	
	$('.ulMenu').accordion({ 
		active: false, 
		header: '.head', 
		navigation: true, 
		event: 'mouseover', 
		fillSpace: false, 
		animated: 'easeslide' 
	});
}

function newWindow() {
	$('a.newWindow').click(function(){
		window.open(this.href);
		return false;
	});
}

/* This function takes in params and converts to email. Use this function so emails aren't plainly shown in HTML */
function em2(alias,server,loc,params) {
	var a_ = String.fromCharCode(50 + 10) + "a h" + "re" + String.fromCharCode(100 + 2);
	var m_ = "ma" + "il" + "to" + String.fromCharCode(50 + 8);
	var em_ = alias + String.fromCharCode(60 + 4) + server + String.fromCharCode(40 + 6) + loc;
	document.write(a_ + '="' + m_ + em_ + '" ' + params + '>' + em_ + '</a>');
}


$(document).ready(function() {
	loadMenu();
	newWindow();
});

