	function XMenu(o){
		this.$ = function(o){ return document.getElementById(o);}
		this.$$ = function(o, str){ return o.getElementsByTagName(str);}
		this.obj = o;
		this.bind();
	}
	XMenu.prototype = {
		bind : function(){
			var xxx = this.$(this.obj);	
			var xdt = this.$$(xxx, 'dt');
			var xdd = this.$$(xxx, 'dd');
			var xdtl = xdt.length;
			xxx['obj'] = xdt[0];
			for(var i=0; i<xdtl; i++){
				xdt[i]['dd'] = xdd[i];
				xdt[i]['div'] = xxx;
				xdt[i].onmouseover = function(){
					this['div']['obj'].className = 'normal';
					this['div']['obj']['dd'].className = 'none';
					this.className = 'over';
					this['dd'].className = 'block';
					this['div']['obj'] = this;
				}
			}
			xxx.onmouseout = function(){
				var d = this;
				this.hide = setTimeout(function(){
					d['obj'].className = 'normal';
					d['obj']['dd'].className = 'none';
					d = null;
				},200);	//鼠标移出后几秒隐藏。在这里设置时间[秒数*1000]
			}
			xxx.onmouseover = function(){
				if(this.hide){
					clearTimeout(this.hide);
				}
			}
		}
	}
	window.onload = function (){
		new XMenu('pinyin');	
	}