			function setopac(val) {
				value = val;
			}
			function getopac() {
				return value;
			}
			var divheight = new Array;
//			divheight = {0:0, 1:1, 2:2, 3:4, 4:8, 5:12, 6:16, 7:20, 8:24, 9:28, 10:32, 11:36, 12:40, 13:44, 14:48, 15:52, 16:56, 17:60, 18:64, 19:68, 20:70, 21:71, 22:72 };
			var movetime = new Array;
			function init() {
				for(var h=0;h<16;h++) {
					divheight[h]=18+h*5;
				}
				for(var t=0;t<16;t++) {
					movetime[t]=(t+1)*30;
				}
//				for(var t=0;t<23;t++) {
//					alert("t="+t+" movetime="+movetime[t]);
//				}
			}
			init();
			var dopen=98;
			var dclose=18;
//			movetime = {0:50, 1:100, 2:150, 3:200, 4:250, 5:300, 6:350, 7:400, 8:450, 9:500, 10:550, 11:600, 12:650, 13:700, 14:750, 15:800, 16:850, 17:900, 18:950, 19:1000, 20:1050, 21:1100, 22:1150 };
			function roll(id,u) {
//				opacity=getopac();
//				alert(opacity);
				menu=document.getElementById(id);
				c = menu.style.height;
				currht = c.substr(0,c.length-2)-0;
				if(u>0) {
					delta=(Math.round((98-currht)/10));
//					alert(delta+" "+currht);
					currht=Math.floor(currht+delta,dopen);
					menu.style.height=currht+'px';
//					opacity+=delta/100;
//					setopac(opacity);
//					alert("opacity="+opacity)
//					for(s=1;s<5;s++) {
//						obj=document.getElementById(id+s);
//						obj.style.opacity = opacity;
//						obj.style.MozOpacity = opacity;
//						obj.style.filter = 'alpha(opacity=' + (opacity*100) + ')';
//					}
					if(currht>dopen-1) {
						clearInterval(menu.timer);
					}
				} else {
//					opacity=1;
					delta=(Math.round(currht/20));
					currht=Math.ceil(currht-delta,dclose);
					menu.style.height=currht+'px';
//					for(s=1;s<5;s++) {
//						obj=document.getElementById(id+s);
//						obj.style.opacity = 1;
//						obj.style.MozOpacity = 1;
//						obj.style.filter = 'alpha(opacity=' + 100 + ')';
//					}
					if(currht<=dclose) {
						clearInterval(menu.timer);
					}
				}
			}
			function rollmedown(id) {
				menu=document.getElementById(id);
				clearInterval(menu.timer);
				menuht=menu.style.height;
				menuhtval=menuht.substr(0,menuht.length-2)
				if (menuhtval >= dopen) {
					return
				} else {
					u=1;
					menu.timer=setInterval("roll('"+id+"',"+u+")",10)
				}
			}
			function rollmeup(id) {
				menu=document.getElementById(id);
				clearInterval(menu.timer);
				menuht=menu.style.height;
				menuhtval=menuht.substr(0,menuht.length-2)
				if (menuhtval <= dclose) {
					return
				} else {
					u=-1;
					menu.timer=setInterval("roll('"+id+"',"+u+")",10)
				}
			}

