function menuRoot(id,xpos,ypos,titel){
	this.menu_id = id;
	this.menu_xpos = parseInt(xpos);
	this.menu_ypos = parseInt(ypos);
	this.menu_titel = titel;
	this.selected_item = false;
	this.root_layer = false;
	this.si_isset = false;
}

function menuLayer(id,parent,xpos,ypos,width,height,color,isvert){
	this.layer_id = "layer" + id;
	parent == 0 ? this.layer_parent = "root" : this.layer_parent = "item" + parent;
	this.layer_xpos = parseInt(xpos);
	this.layer_ypos = parseInt(ypos);
	this.layer_width = parseInt(width);
	this.layer_height = parseInt(height);
	this.layer_color = color;
	//isvert == "True" ? this.layer_isvert = true : this.layer_isvert = false;
	isvert == 1 ? this.layer_isvert = true : this.layer_isvert = false;
    this.layer_obj = false;
	this.is_built = false;
}

function menuItem(id,lid,child,weight,href,target,xpos,ypos,width,height,color){
	this.item_id = "item" + id;
	this.item_parent = "layer" + lid;
	child == 0 ? this.item_child = "none" : this.item_child = "layer" + child;
	this.item_weight = weight;
	this.item_href = href;
	this.item_target = target;
	this.item_xpos = parseInt(xpos);
	this.item_ypos = parseInt(ypos);
	this.item_width = parseInt(width);
	this.item_height = parseInt(height);
	this.item_color = color;
	this.item_over = false;
	this.item_out = false;
	this.item_obj = false;
}

function overItem(xpos,ypos,width,height,color,forecolor,align,valign,css,text,popind){
	this.over_xpos = parseInt(xpos);
	this.over_ypos = parseInt(ypos);
	this.over_width = parseInt(width);
	this.over_height = parseInt(height);
	this.over_color = color;
	this.over_forecolor = forecolor;
	this.over_align = align;
	this.over_valign = valign;
	this.over_css = css;
	this.over_text = text;
	this.over_popind = popind;
	this.over_obj = false;
}

function outItem(xpos,ypos,width,height,color,forecolor,align,valign,css,text,popind){
	this.out_xpos = parseInt(xpos);
	this.out_ypos = parseInt(ypos);
	this.out_width = parseInt(width);
	this.out_height = parseInt(height);
	this.out_color = color;
	this.out_forecolor = forecolor;
	this.out_align = align;
	this.out_valign = valign;
	this.out_css = css;
	this.out_text = text;
	this.out_popind = popind;
	this.out_obj = false;
}

var openTree = new Array();
var closeTree = new Array();
var closeTimer = 0;
var menuLayers = new Array();
var menuItems = new Array();




