var dis = -1;
window.addEvent('domready', function() {
	var cur = $$('#pages').getElement('li.current_page_item');
	if( $type(cur.getLast()) != false ) {
		dis = 0;
	} 
});
window.addEvent('domready', function() {
var myAccordion = new Accordion($('menu'), 'h2.menuheader', 'div.menucontent', {
opacity:true,
display: dis,
duration: 300,
alwaysHide: true,
		onActive: function(menuheader, menucontent){
			menuheader.setStyle('font-weight', 'bold');
		},
		onBackground: function(menuheader, menucontent){
			menuheader.setStyle('font-weight', 'bold');
		}
});
});

	window.addEvent('domready', function() {
	
	if (dis != 0) {
	
	var myAccordion = new Accordion($('maincol'), 'h2.contentheader', 'div.content', {
	opacity:true,
	display: -1,
	duration: 300,
	alwaysHide: true,

			onActive: function(contentheader, content){
				contentheader.setStyle('font-weight', 'bold');
			},
			onBackground: function(contentheader, content){
				contentheader.setStyle('font-weight', 'bold');
			}
	});
	}
	});

	/* maincol accordeon */
	window.addEvent('domready', function(){

	var fAcc = new Accordion($('maincol'),'h3','h3+p', {
	opacity:true,
	display: -1,
	duration: 300,
	alwaysHide: true,

			onActive: function(contentheader, content){
				contentheader.setStyle('font-weight', 'bold');
			},
			onBackground: function(contentheader, content){
				contentheader.setStyle('font-weight', 'bold');
			}

	});
	});


