// JavaScript Document<!-- Moo FX-->

function moostart() {
	 
	myHeight1 = new fx.Height('subcat000');
	$('trigger1').onclick = function() {
	document.getElementById('subcat000').style.display = 'block';
	myHeight1.toggle();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(1);
	};
	
	myHeight2 = new fx.Height('subcat02');
	myHeight2.hide();
	$('trigger2').onclick = function() {
	document.getElementById('subcat02').style.display = 'block';
	myHeight2.toggle();
	myHeight1.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(2);
	};
	
	myHeight3 = new fx.Height('subcat03');
	myHeight3.hide();
	$('trigger3').onclick = function() {
	document.getElementById('subcat03').style.display = 'block';
	myHeight3.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(3);
	};
	
	myHeight4 = new fx.Height('subcat04');
	myHeight4.hide();
	$('trigger4').onclick = function() {
	document.getElementById('subcat04').style.display = 'block';
	myHeight4.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(4);
	};
	
	myHeight5 = new fx.Height('subcat05');
	myHeight5.hide();
	$('trigger5').onclick = function() {
	document.getElementById('subcat05').style.display = 'block';
	myHeight5.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(5);
	};
	
	myHeight6 = new fx.Height('subcat06');
	myHeight6.hide();
	$('trigger6').onclick = function() {
	document.getElementById('subcat06').style.display = 'block';
	myHeight6.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(6);
	};
	
		
	myHeight7 = new fx.Height('subcat07');
	myHeight7.hide();
	$('trigger7').onclick = function() {
	document.getElementById('subcat07').style.display = 'block';
	myHeight7.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight8.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(7);
	};
	
	
	myHeight8 = new fx.Height('subcat08');
	myHeight8.hide();
	$('trigger8').onclick = function() {
	document.getElementById('subcat08').style.display = 'block';
	myHeight8.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight9.hide();
	myHeight10.hide();
	toggle(8);
	};
	
	myHeight9 = new fx.Height('subcat09');
	myHeight9.hide();
	$('trigger9').onclick = function() {
	document.getElementById('subcat09').style.display = 'block';
	myHeight9.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight10.hide();
	toggle(9);
	};
	
	myHeight10 = new fx.Height('subcat10');
	myHeight10.hide();
	$('trigger10').onclick = function() {
	document.getElementById('subcat10').style.display = 'block';
	myHeight10.toggle();
	myHeight1.hide();
	myHeight2.hide();
	myHeight3.hide();
	myHeight4.hide();
	myHeight5.hide();
	myHeight6.hide();
	myHeight7.hide();
	myHeight8.hide();
	myHeight9.hide();
	toggle(10);
	};
	
	
	
	
	
	
var isOpen=new Array(false);

function toggle(index){
	
	var idx = index - 1;
	
	isOpen[idx] = !isOpen[idx];
	
	for (var i = 0; i < isOpen.length; i++) {
	
	if (i != idx)
	
		isOpen[i] = false;
	
		if (isOpen[i])
		
		document.getElementById("img" + (i + 1)).src = "http://www.mdswebmaster.com/UK/MDS2007/images/grey_arrow_2.gif";
		
		else
		
		document.getElementById("img" + (i + 1)).src = "http://www.mdswebmaster.com/UK/MDS2007/images/grey_arrow.gif";
	}
}
	
};
	
<!-- Moo FX-->
