var menu = function() {
	var t = 50, a;
	function dd(n) { this.n = n; this.c = [] }
	function sl(c,f) { c.style.display = (f) ? 'block' : 'none'; }
	dd.prototype.init = function(p,c) {
		var w = document.getElementById(p), s = w.getElementsByTagName('ul'), l = s.length, i = 0;
		for(i;i<l;i++){
			var h = s[i].parentNode; this.c[i] = s[i];
			h.onmouseover = new Function(this.n + '.st('+i+',1)');
			h.onmouseout = new Function(this.n + '.st('+i+',0)');
		}
	}
	dd.prototype.st = function(x,f) {
		var c = this.c[x];
		clearInterval(c.t);
		c.t = setInterval(function(){sl(c,f)},(f) ? 0 : t);
	}
	return{dd:dd}
}();
