Ext.menu.Menubar = function(config){
	config.plain = true;
	Ext.menu.Menubar.superclass.constructor.call(this, config);
	this.cls += " x-menubar";
	if (this.orientation == "vertical") {
		this.subMenuAlign = "tl-tr?";
		this.cls += " x-vertical-menubar";
	} else {
		this.subMenuAlign = "tl-bl?";
		this.cls += " x-horizontal-menubar";
	}
};
Ext.extend(Ext.menu.Menubar, Ext.menu.Menu, {
	minWidth : 156,
	shadow : false,
	orientation: "vertical",
	hide: function(){
		if(this.activeItem){
			this.activeItem.deactivate();
		 delete this.activeItem;
		}
	},
	onMouseOver : function(e){
		if (this.activeItem) {
			var t;
			if(t = this.findTargetItem(e)){
				if(t.canActivate && !t.disabled){
					this.setActiveItem(t, true);
				}
			}
			this.fireEvent("mouseover", this, e, t);
		}
		else {
			var t;
			if(t = this.findTargetItem(e)){
				if(t.canActivate && !t.disabled){
					this.setActiveItem(t, true);
				}
			}
			this.fireEvent("mouseover", this, e, t);
		}
	}
});

