function toggle(id){
  if(document.getElementById(id).style.display == 'block'){ document.getElementById(id).style.display = 'none'; 
  }else{ document.getElementById(id).style.display = 'block'; } }

function hide(id){ document.getElementById(id).style.display = 'none'; }
function show(id){ document.getElementById(id).style.display = 'block'; }
function hideall(id, a, b, c) { for (i=a; i<b; i++){ if(i!=c){ hide(id + i); } } }


$(document).ready(function() {
	$('.accordionButton').click(function() {
		$('.accordionButton').removeClass('on');
	 	$('.accordionContent').slideUp('normal');
		if($(this).next().is(':hidden') == true) {
			$(this).addClass('on');
			$(this).next().slideDown('normal');
		 } 		  
	 });

	$('.accordionButton').mouseover(function() {
		$(this).addClass('over');		
	}).mouseout(function() {
		$(this).removeClass('over');										
	});
		
	$('.accordionContent').hide();
	$("#opencategory").trigger("click");
});
