﻿function dhMaker(id) {
	this.Maker = $("#" + id);
	this.Name = "二级导航";
	this.Author = "Keboy";
	this.Version = "1.0";
	this.CreateDate = "2010-2-4";
}
dhMaker.prototype = {
	Default: function() {
		var leave , ishow;
		if ( $.browser.msie && $.browser.version == "6.0" ) {
			this.Maker.find("li").css("overflow","hidden");
		}
		this.Maker.find("ul li").each( function() {
			$(this).fadeTo(0,0.99).mouseover( function() {
				$(this).stop().fadeTo("fast",0.99);
			} ).mouseout( function() {
				$(this).stop().fadeTo("fast",0.99);
			} );
		} );
		this.Maker.find("li").mouseover( function() {
			$(this).parent().find("li").not($(this)).find("ul").hide();
			$(this).find("ul").show();
		} );
		this.Maker.mouseout( function() {
			var obj = $(this);
			ishow = false;
			leave = setInterval( function() {
				if ( !ishow ) {
					ishow = true;
				}
				else {
					obj.find("li ul").hide();
					clearInterval(leave);
				}
			},100 );
		} ).mousemove( function() {
			clearInterval(leave);
		} );
	}
};
