
//Sets the class of active links to: .active

function scriptInit() {
if (!document.getElementById) {
	return;
	}
}
function addEvent(elm, evType, fn, useCapture) {
	if (elm.addEventListener) {
	elm.addEventListener(evType, fn, useCapture);
	return true;
	} else if (elm.attachEvent) {
	var r = elm.attachEvent('on' + evType, fn);
	return r;
	} else {
	elm['on' + evType] = fn;
	}
}
function checkActive() {
	var a = document.getElementsByTagName("a");
	if (window.location.href.substr(location.href.length - 1, 1) == '/') {
		var loc = window.location.href + 'index.html'; 
	}
	else {
		var loc = window.location.href;
	}
	for(var i=0; i < a.length; i++) {
		if (a[i].href == loc) {
			a[i].setAttribute("class", "active");
			a[i].setAttribute("className", "active");
		}
	}
}
addEvent(window, 'load', checkActive, false);



// Email Encrypting Script (Email Munger)

function AjamdYqlRzARWjO()
{
var WLDrvBCRAkLkQrA=["105","110","102","111","x40","101","100","109","101","x6e","x73","x6f","x6e","x61","x64","x61","x6d","115","x2e","99","111","46","x75","x6b"];
var DiPnASZCZtoSsHY=[" "];
var INPwgKIGBcZNcXN=["x69","110","x66","x6f","64","101","100","109","x65","110","x73","111","110","x61","100","97","109","115","46","x63","111","46","117","x6b"];
document.write("<a href=\"&#x6d;&#00097;&#x69;&#108;&#000116;&#111;&#58;");
for (i=0; i<WLDrvBCRAkLkQrA.length; i++) document.write("&#"+WLDrvBCRAkLkQrA[i]+";");
for (i=0; i<DiPnASZCZtoSsHY.length; i++) document.write(DiPnASZCZtoSsHY[i]);
document.write("\">");
for (i=0; i<INPwgKIGBcZNcXN.length; i++) document.write("&#"+INPwgKIGBcZNcXN[i]+";");
document.write('</a>');
}



// Initiates the Accordian Menu

jQuery().ready(function(){
	jQuery('#nav').accordion({
		active: false,
		header: '.head',
		navigation: true,
		event: 'mousedown',
		fillSpace: false,
		animated: 'easeslide'
	});
	
	$("#rightClick").noContext();

});

