function Menu(speed, h) {	var timer = null;	var ctrl = null;	var body = null;	var curr = 0;	var min = 0;	var max = 263;	if(!h) h = 8;	if(!speed) speed = 5;		var upMenu = function() {		curr += h;        if (curr >= max) {            window.clearInterval(timer);            timer = null;			curr = max;        }		body.style.height = curr+'px';    }    var downMenu = function() {		curr -= h;        if (curr <= min) {            window.clearInterval(timer);            timer = null;			curr = min;        }		body.style.height = curr+'px';    }		var expMenu = function(e) {		if (!e)            e = window.event;        var t = e.toElement;        if (!t) {            t = e.relatedTarget;        }        if (!t)            return;		if (timer)            window.clearInterval(timer);        timer = window.setInterval(upMenu, speed);	}	var collMenu = function(e) {		if (!e)            e = window.event;        var t = e.toElement;        if (!t) {            t = e.relatedTarget;        }        if (!t)            return;		if (t == body || contains(body, t))            return;			if (timer)            window.clearInterval(timer);        timer = window.setInterval(downMenu, speed);		}	this.register = function(ctrlDOM, bodyDOM, curr) {		if(!curr)			curr = 0;		ctrl = ctrlDOM;		body = bodyDOM;		if(bodyDOM.childNodes[1])			max = bodyDOM.childNodes[1].offsetHeight;		else if(bodyDOM.firstChild)			max = bodyDOM.firstChild.offsetHeight;		ctrl.onmouseover = expMenu;		ctrl.onmouseout = collMenu;		body.onmouseover = expMenu;		body.onmouseout = collMenu;		}}