function EksMenuItem( aName )
{
	// Properties
	this.pName;

	this.pText;
	this.pUrl;
	this.pDescription;
	this.pSubMenu;
	this.pParent;
	this.pParentMenu;

	this.pStyle = new Array();
	this.pAnchorStyle = new Array();
	this.pLeft0;
	this.pTop0;
	this.pLeft;
	this.pTop;
	this.pHeight;
	this.pWidth;
	this.pBottom;
	this.pRight;
	this.pOrientation = "vertical";
	this.pItemNumber = 0;

	// Methods
	this.Show = EksMenuItemShow;

	// Operation
	this.pName = aName;
}

function EksMenuItemShow()
{
	var lElem;
	var lName;
	var lStyle;
	var lAstyle;
	var lMouseover;

	this.pAnchorStyle["color"] = this.pStyle["color"];
	this.pAnchorStyle["text-decoration"] = (this.pStyle["text-decoration"])? this.pStyle["text-decoration"] : "none";
	if(this.pOrientation == "vertical") this.pStyle["float"] = "none";
	lStyle = EksCmnCssMakeStylestringFromArray(this.pStyle);
	lAstyle = EksCmnCssMakeStylestringFromArray(this.pAnchorStyle);
	lDescription = (this.pDescription == "")? "" : "title=\""+this.pDescription+"\"";
	lName = this.pName;
	lMouseover = (this.pSubMenu == "")? "" : "onmouseover=EksMenuCmnSetVisible(\""+this.pSubMenu+"\")";
	lOnClick = "onclick=EksMenuCmnHideSubmenus()";
	lOnClick = "";
	document.write("<div id=\""+lName+"\" class=menuitem "+lDescription+" "+lStyle+" "+lOnClick+" "+lMouseover+">");
	if(this.pUrl != "")document.write("<a href=\""+this.pUrl+"\" "+lAstyle+" >");
	document.write(this.pText);
	if(this.pUrl != "")document.write("</a>");
	if(this.pSubMenu!="")document.write(" &gt;");
	document.write("</div>");
	lElem = EksCmnDocGetElement(lName)
	this.pLeft	= this.pLeft0 + lElem.offsetLeft;
	this.pTop	= this.pTop0 + lElem.offsetTop;
	this.pWidth	= lElem.offsetWidth;
	this.pHeight= lElem.offsetHeight;
	this.pRight = this.pLeft + this.pWidth;
	this.pBottom= this.pTop + this.pHeight;
	//this.pBottom+= 40;
}
