///////////////////////////////////
///////////////////////////////////
var mbg ="#787488";
var txt = new Array();
///////////////////////////////////
for (var a=0;a<15;a++)
  txt[a] = new Array();
///////////////////////////////////





//change menu items here
                 
txt[1][0] = "247"; //sub menu position left
txt[1][1] = "Air Compressor Parts|air.htm";
txt[1][2] = "Aluminium Piston|aluminium.htm";
txt[1][3] = "Liners & Sleeves|sleeves.htm";
txt[1][4] = "Investment Castings|investment.htm";
txt[1][5] = "Machined Parts|machinedparts.htm";
txt[1][6] = "Casting & Forgings|castings.htm";
txt[1][7] = "Valve & Valve Parts|valves.htm"; // Link | Path
                 
txt[2][0] = "130";
txt[2][1] = "Factory|factory.htm";
txt[2][2] = "Foundry Forging & Machine Shop|foundry.htm";
txt[2][3] = "CNC Machine Shop|cnc.htm";
txt[2][4] = "Tool Room|tool.htm";

txt[3][0] = "473";

////////////////////////////////////


var menuFormFoot = "</table></TD></TR></table>\n\n";
var menuFormHead ="<table border=\"1\" cellspacing=\"1\" cellpadding=\"0\">" + 
		"<tr><TD BGCOLOR=\""+mbg+"\" width=\"100%\"><table width=\"100%\">";

var MenuLength = txt.length;
for (i=1; i<MenuLength; i++) {
	var SubMenuLength = txt[i].length;
	var MenuFormBody = new Array();
	MenuFormBody[i]="";
	for (j=1; j<SubMenuLength; j++){
		var MenuArray = txt[i][j].split("|");
		MenuFormBody[i] += "\n"+
			" <tr>" + 
			"  <td onMouseOver=\"navOn(this); window.status='"+MenuArray[0]+"'; return true;\" onMouseOut=\"navOff(this); window.status=''; return true;\" onClick=\"navClick(this)\" nowrap>&nbsp;" + 
			"   <a href=\""+MenuArray[1]+"\" onMouseOver=\"window.status='"+MenuArray[0]+"'; return true;\" onMouseOut=\"window.status=''; return true;\" class=\"menu\">"+MenuArray[0]+"</a>" + 
			"  &nbsp;</td>" + 
			" </tr>";
	}
	var PosTop = 145;
	var PosLeft = txt[i][0];
//	var Text = MenuArray[0];
//	for ()
	var Text = menuFormHead+MenuFormBody[i]+menuFormFoot;
	var link = MenuArray[1];
	
	CreateLayer(Text, i, PosTop, PosLeft);
}
