function MainMenuItem(target, shortTitle, id) {
	this.target = target;
	this.id = id;
	this.shortTitle = shortTitle;
	this.xaml = null;
	this.clickHandler = null;
	//this.xamlUrl = this.target.findName("itemXaml" + this.index.toString()).text;
	target.addEventListener("mouseEnter", delegate(this, this.handleMouseEnter));
	target.addEventListener("mouseLeave", delegate(this, this.handleMouseLeave));
	target.addEventListener("mouseLeftButtonUp", delegate(this, this.handleClick));
    target.addEventListener("mouseLeftButtonDown", delegate(this, this.handleMouseDown));
}

MainMenuItem.prototype.handleMouseEnter = function(sender, eventArgs) {

}

MainMenuItem.prototype.handleMouseLeave = function(sender, eventArgs) {

}

MainMenuItem.prototype.handleClick = function(sender, eventArgs) {	
	if (this.clickHandler != null) {
	    this.clickHandler(this.id, true, null);
	}
}

MainMenuItem.prototype.handleMouseDown = function(sender, eventArgs) {

}