// Dynamic menu
function initMenu()
{
	var nodes = document.getElementById("menu").getElementsByTagName("li");
	for (var i=0; i<nodes.length; i++)
	{
		nodes[i].onmouseover = function()
		{
			this.className += " hover";
		}
		nodes[i].onmouseout = function()
		{
			this.className = this.className.replace(" hover", "");
		}
	}
}
if (window.attachEvent && !window.opera){window.attachEvent("onload", initMenu);}

/* Mootools powered items to initialize */
window.addEvent('domready', function() {
	
	// Accordian for projects and management pages
	var accordion = new Fx.Accordion(
		$$('.toggler'), // Class of the accordian buttons
		$$('.slide'), { // Class of the containers to open
			// Accordian options
			alwaysHide: true,
			opacity: true,
			display:-1,
			onActive: function(toggler, element) {
				toggler.setStyles({});
			},
			onBackground: function(toggler, element) {
				toggler.setStyles({});
			}
		}
	);
	
});
