//##########################################################################################################################
//popup menu object
//##########################################################################################################################
function menu_obj()
{
	//coordinates
	this._x = 0;
	this._y = 0;
	
	this._deltaX = 0;
	
	this._name = "";
	
	this._visble = false;
	
	//width
	this._width = 0;
	
	//z index
	this._level = 0;
	
	//number of buttons
	this._size = 0;
	
	//position of menu in subnav
	this._position = 0;
	
	//array for links
	this._links = new Array();
	
	//array for buttons (description)
	this._buttons = new Array();
	
	//aray of link objects
	this.items = new Array();
	
	//aray of booleans - contains info about the existance of child menus
	this._hasChildren = new Array();
	
	//style options
	//main background
	this._background = "";
	
	//main background, on state
	this._background_on = "";
	
	//border color
	this._bordercolor = "";
	
	
	
}
//##########################################################################################################################




//##########################################################################################################################
//menu item object, represents one button in the menu
//##########################################################################################################################
function item_obj()
{
	//width
	this._width = 0;
	
	//position in menu
	this._position = 0;
	
	//path it links to
	this._link = "";
	
	//name of button (link)
	this._button = "";
	
	//object menu it belongs to
	this._parent;
	
	this._hasChildren = false;
	
	//object menu it generates (if necessary)
	this._child;
	
	//html code that builds the item
	this._html ="";
	
	//style options
	//main background
	this._background = "";
	
	//main background, on state
	this._background_on = "";
	
	//border color
	this._bordercolor = "";
	
}
//##########################################################################################################################


