function initAccordion(showValue) {
	//convert showValue to an int
	showValue = parseInt(showValue)
	
	//if showValue is not a number then set to -1, i.e. all menues collapsed
	if (isNaN(showValue)){
		showValue = -1
	}
	
	new Accordion($('sidemenu'), '#sidemenu .toggler', '#sidemenu .drop', {
		opacity: false,
		show: showValue,
		redirect: true,
		onActive: function(toggler, element) {
			element.getParent().addClass('active');
		},
		onBackground: function(toggler, element) {
			element.getParent().removeClass('active');
		}
	})
}


//window.addEvent('domready', function() {
//	initAccordion();
//})