/*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 _a = -1;
	togles.each(function(_el, _ind){ if(_el.hasClass('active')){ _a = _ind;}});
	
	var myAccordion = new Fx.Accordion(togles, stretchers, {
		display: _a,
		opacity: true,
		duration: 400,
		onActive: function(toggler, element){
			toggler.addClass('active');
		},
		onBackground: function(toggler, element){
			toggler.removeClass('active');
		}
	});
	
	
}
if (window.addEventListener) window.addEventListener("load", initAccord, false);
else if (window.attachEvent) window.attachEvent("onload", initAccord);
