function initMenu()
{
	var nodes = document.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", "");
		}
	}
}
function initAccord () {
	var stretchers = $$('.slider');
	var togles = $$('.toggle')
	var myAccordion = new Fx.Accordion(togles, stretchers, {opacity: true, duration: 400});
	myAccordion.showThisHideOpen(stretchers[-1]);
	for(var i =0; i < togles.length; i++) {
		if(togles[i].className.indexOf("active") != -1) {
			myAccordion.showThisHideOpen(stretchers[i]);
			return false;
		}
	}
}
if (window.addEventListener) window.addEventListener("load", initAccord, false);
else if (window.attachEvent) window.attachEvent("onload", initAccord);
if (document.all && !window.opera) attachEvent("onload", initMenu);

