
	function clearall() {
		for (i=1;i<=5;i++) {
			document.getElementById('ico'+i).className='hm1';
			document.getElementById('icos'+i).className='hm-1';
			document.getElementById('sub'+i).style.display='none';
		}
	}

	function onmover(scount) {
		clearall();
		document.getElementById('ico'+scount).className='hm2'; 
		document.getElementById('icos'+scount).className='hm-2'; 
		document.getElementById('sub'+scount).style.display='inline';
	}

	function onmenu(who,scount) {
		who.className='lm'+scount; 
	}


	function barexpand(who) {
			q = document.getElementById("submen"+who);
			q.style.display='block';
			fullH = q.offsetHeight;
			q.style.height='1px';

			var goH = setInterval(function() {
				var curH = q.offsetHeight;
				var newH = curH + 10;
				if (newH < fullH) {
					q.style.height = newH + "px";
				} else {
					clearInterval(goH);
					q.style.height = "";
					document.getElementById("expan"+who).src = "img/lmen_col.gif";
				}
			}, 10);
	}

	function barcollapse(who) {
			q = document.getElementById("submen"+who);
			fullH = q.offsetHeight;

			var goH = setInterval(function() {
				var curH = q.offsetHeight;
				var newH = curH - 10;
				if (newH > 1) {
					q.style.height = newH + "px";
				} else {
					clearInterval(goH);
					q.style.height = fullH;
					q.style.display='none';
					document.getElementById("expan"+who).src = "img/lmen_exp.gif";
				}
			}, 10);
	}


	function barswitch(who) {

		q = document.getElementById("submen"+who);
		if (q.style.display=='none' || q.style.display=='') {
			barexpand(who);
		} else {
			barcollapse(who);
		}
				
	}

