// this script sets the main menu active class based on the URL -- it uses mootools classes
// written by Teri Hoyer

window.addEvent('domready', function() {
	if ((location.pathname !== "/about/") && (location.pathname !== "/about/contact/")) $$('div#menu li a[href^="/' + location.pathname.split("/")[1]+ '"]').addClass('active');
	if (location.pathname == "/about/contact/") $$('div#menu li a[href="/about/contact"]').addClass('active');
	if (location.pathname == "/about/") $$('div#menu li a[href="/about"]').addClass('active');
});

