// ssc specific setting for the dhtml menu builder
var menuBorderColour = new Array();
menuBorderColour[0] = "#ffff00";
menuBorderColour[1] = "#00ffff";
menuBorderColour[2] = "#00ff00";
menuBorderColour[3] = "#663366";

var menuRowOff = new Array();
menuRowOff[0] = "#edf1f4";
menuRowOff[1] = "#edf1f4";
menuRowOff[2] = "#edf1f4";
menuRowOff[3] = "#edf1f4";

var menuRowOn = new Array();
menuRowOn[0] = "#663366";
menuRowOn[1] = "#663366";
menuRowOn[2] = "#663366";
menuRowOn[3] = "#663366";

var menuImage = new Array();
//menuImage[0] = "../images/system/level_1_arrow.gif";
menuImage[0] = "../images/nav-arrow-dim.gif";
menuImage[1] = "../images/system/_trans.gif";

var nav_top_img = "../images/system/main_nav_t.gif"
var nav_top_img2 = "../images/system/main_nav_t2.gif"
var nav_bottom_img = "../images/system/main_nav_b.gif"
var nav_bottom_img2 = "../images/system/main_nav_b2.gif"

var ns4 = (document.layers)? true:false;
var ie4 = (document.all)? true:false;
var dom = (document.getElementById && !ie4)? true:false;

var menuItems  = new Array();
var itemIndex = new Array();

function menuItem(parentID,myID,name,path,pos,images) {
	this.myID = myID;
	this.parentID = parentID;
	this.name = name;
	this.path = path;
	this.pos = pos;
	this.images = images;
	this.items = new Array();
	this.addItem = addItem;
	var count = itemIndex.length;
	itemIndex[count] = this.myID;
	menuItems[this.myID] = this;
	if (this.parentID != "0") {
		menuItems[this.parentID].addItem(this);
	}
}

// This function adds sub menuItem to a menuItem
function addItem(item) {
	var itemCount = this.items.length;
	this.items[itemCount] = item;
}
