var menu_accordians = Array();

function init_menu(){
	var cAcc;
	cat_ids = [[102 , 0 ,  true ,false] , [113 , 0 ,  true ,false] , [108 , 0 ,  true ,false] , [44 , 0 ,  false ,true] , [54 , 44 ,  true ,false] , [57 , 44 ,  true ,false] , [53 , 44 ,  true ,false] , [58 , 44 ,  true ,false] , [59 , 44 ,  true ,false] , [60 , 44 ,  true ,false] , [107 , 44 ,  true ,false] , [100 , 44 ,  true ,false] , [61 , 44 ,  true ,false] , [55 , 44 ,  true ,false] , [62 , 44 ,  true ,false] , [63 , 44 ,  true ,false] , [66 , 44 ,  true ,false] , [65 , 44 ,  true ,false] , [56 , 44 ,  true ,false] , [64 , 44 ,  true ,false] , [99 , 44 ,  true ,false] , [72 , 44 ,  true ,false] , [73 , 44 ,  true ,false] , [74 , 44 ,  true ,false] , [75 , 44 ,  true ,false] , [76 , 44 ,  true ,false] , [77 , 44 ,  true ,false] , [78 , 44 ,  true ,false] , [52 , 0 ,  false ,false] , [79 , 52 ,  true ,false] , [80 , 52 ,  true ,false] , [103 , 52 ,  true ,false] , [81 , 52 ,  true ,false] , [82 , 52 ,  true ,false] , [98 , 52 ,  true ,false] , [67 , 0 ,  true ,false] , [70 , 0 ,  true ,false] , [68 , 0 ,  true ,false] , [105 , 0 ,  true ,false] , [106 , 0 ,  true ,false] , [114 , 0 ,  true ,false]];

	for(var a = 0; a < cat_ids.length; a++){
		if(!cat_ids[a][2]){
			menu_accordians[cat_ids[a][0]] = cAcc = new Accordian($('subMenu' + cat_ids[a][0]) , $('subMenuContents' + cat_ids[a][0]) , menu_accordians[cat_ids[a][1]] , cat_ids[a][1] , cat_ids[a][3]);
			cAcc.init();
			cAcc.allowPropagation = cat_ids[a][2];
		}else{
			menu_accordians[cat_ids[a][0]] = cAcc = new EmptyAccordian($('subMenu' + cat_ids[a][0]) , menu_accordians[cat_ids[a][1]] , cat_ids[a][1]);
			cAcc.init()
        }
		cAcc.onOpen = function(acc){set_accordian_style(acc , 'active');}
		cAcc.onClose = function(acc){set_accordian_style(acc, '');}
	}
}

function set_accordian_style(acc , style){
	mH = acc.getMenuHolder();
	if(mH){
		mH.parentNode.className = style;
	}
}

