var isDOM = (document.getElementById ? true : false);
var isIE4 = ((document.all && !isDOM) ? true : false);
var isNS4 = (document.layers ? true : false);
function getRef(id) {
if (isDOM) return document.getElementById(id);
if (isIE4) return document.all[id];
if (isNS4) return document.layers[id];
}
function getSty(id) {
return (isNS4 ? getRef(id) : getRef(id).style);
}
// Hide timeout.
var popTimer = 0;
// Array showing highlighted menu items.
var litNow = new Array();
function popOver(menuNum, itemNum) {
clearTimeout(popTimer);
hideAllBut(menuNum);
litNow = getTree(menuNum, itemNum);
changeCol(litNow, true);

if (menuNum == 0) {
	urlsuffix = '~menu0' + itemNum; //urlsuffix is added to url for highlighting selected product category
}

targetNum = menu[menuNum][itemNum].target;
if (targetNum > 0) {
	if (menu[menuNum][itemNum].ref.left != '') {
		thisX = parseInt(menu[menuNum][0].ref.left) + parseInt(menu[menuNum][itemNum].ref.left);}
	else {
		thisX = parseInt(menu[menuNum][0].ref.left);}
	if (menu[menuNum][itemNum].ref.top != '') {
		thisY = parseInt(menu[menuNum][0].ref.top) + parseInt(((itemNum - 1) * 26) + 'px');}
	else {
		thisY = parseInt(menu[menuNum][0].ref.top);}
with (menu[targetNum][0].ref) {
left = parseInt(thisX + menu[targetNum][0].x) + 'px';
top = parseInt(thisY + menu[targetNum][0].y) + 'px';
visibility = 'visible';
      }
   }
}
function popOut(menuNum, itemNum) {
if ((menuNum == 0) && !menu[menuNum][itemNum].target)
hideAllBut(0)
else
popTimer = setTimeout('hideAllBut(0)', 500);
}
function getTree(menuNum, itemNum) {

// Array index is the menu number. The contents are null (if that menu is not a parent)
// or the item number in that menu that is an ancestor (to light it up).
itemArray = new Array(menu.length);

while(1) {
itemArray[menuNum] = itemNum;
// If we've reached the top of the hierarchy, return.
if (menuNum == 0) return itemArray;
itemNum = menu[menuNum][0].parentItem;
menuNum = menu[menuNum][0].parentMenu;
   }
}

// Pass an array and a boolean to specify colour change, true = over colour.
function changeCol(changeArray, isOver) {
for (menuCount = 0; menuCount < changeArray.length; menuCount++) {
if (changeArray[menuCount]) {
newCol = isOver ? menu[menuCount][0].overCol : menu[menuCount][0].backCol;
// Change the colours of the div/layer background.
with (menu[menuCount][changeArray[menuCount]].ref) {
if (isNS4) bgColor = newCol;
else backgroundColor = newCol;
         }
      }
   }
}
function hideAllBut(menuNum) {
var keepMenus = getTree(menuNum, 1);
for (count = 0; count < menu.length; count++)
if (!keepMenus[count])
menu[count][0].ref.visibility = 'hidden';
changeCol(litNow, false);
}

// *** MENU CONSTRUCTION FUNCTIONS ***

function Menu(isVert, popInd, x, y, width, overCol, backCol, borderClass, textClass) {
// True or false - a vertical menu?
this.isVert = isVert;
// The popout indicator used (if any) for this menu.
this.popInd = popInd
// Position and size settings.
this.x = x;
this.y = y;
this.width = width;
// Colours of menu and items.
this.overCol = overCol;
this.backCol = backCol;
// The stylesheet class used for item borders and the text within items.
this.borderClass = borderClass;
this.textClass = textClass;
// Parent menu and item numbers, indexed later.
this.parentMenu = null;
this.parentItem = null;
// Reference to the object's style properties (set later).
this.ref = null;
}

function Item(text, href, frame, length, spacing, target) {
this.text = text;
this.href = href;
this.frame = frame;
this.length = length;
this.spacing = spacing;
this.target = target;
// Reference to the object's style properties (set later).
this.ref = null;
}

function writeMenus() {
if (!isDOM && !isIE4 && !isNS4) return;

for (currMenu = 0; currMenu < menu.length; currMenu++) with (menu[currMenu][0]) {
// Variable for holding HTML for items and positions of next item.
var str = '', itemX = 0, itemY = 0;

(currMenu == '35' ? str += '<div><table cellspacing=0 cellpadding=0>' : '');

// Remember, items start from 1 in the array (0 is menu object itself, above).
// Also use properties of each item nested in the other with() for construction.
for (currItem = 1; currItem < menu[currMenu].length; currItem++) with (menu[currMenu][currItem]) {
var itemID = 'menu' + currMenu + 'item' + currItem;

// The width and height of the menu item - dependent on orientation!
var w = (isVert ? width : length);
var h = (isVert ? length : width);

(currMenu == '35' ? (currItem % 2 == 1 ? str += '<tr>' : '') : '');
(currMenu == '35' ? str += '<td>' : '');

// Create a div or layer text string with appropriate styles/properties.
// Thanks to Paul Maden (www.paulmaden.com) for helping debug this in IE4, apparently
// the width must be a miniumum of 3 for it to work in that browser.
if (isDOM || isIE4) {
str += '<div id="' + itemID + '" style="position: relative; z-index:3000; left: ' + itemX + 'px; top: ' + itemY + 'px; width: ' + w + 'px; height: ' + h + 'px; visibility: inherit; ';
if (backCol) str += 'background: ' + backCol + '; ';
str += '" ';
}
if (isNS4) {
str += '<layer id="' + itemID + '" left="' + itemX + '" top="' + itemY + '" width="' +  w + '" height="' + h + '" visibility="inherit" ';
if (backCol) str += 'bgcolor="' + backCol + '" ';
}
if (borderClass) str += 'class="' + borderClass + '" ';

// Add mouseover handlers and finish div/layer.
str += 'onMouseOver="popOver(' + currMenu + ',' + currItem + ')" onMouseOut="popOut(' + currMenu + ',' + currItem + ')">';

// Add contents of item (default: table with link inside).
// In IE/NS6+, add padding if there's a border to emulate NS4's layer padding.
// If a target frame is specified, also add that to the <a> tag.

//str += '<table width="' + (w - 8) + 'px " border="0px" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td class="sub_menu_middle_pdm" onclick="javascript:redir(\'' + href + '\');" align="left" height="' + (h - 7) + 'px">' + '<a href="' + href + '"' + (frame ? ' target="' + frame + '">' : '>') + text + '</a></td>';
str += '<table width="' + (w - 8) + 'px " border="0px" cellspacing="0" cellpadding="' + (!isNS4 && borderClass ? 3 : 0) + '"><tr><td id="menu' + currMenu + currItem + '" class="sub_menu_middle_pdm" onclick="javascript:redir(\'' + href + '\');" align="left" height="' + (h - 7) + 'px">' + text + '</td>';

if (target > 0) {

// Set target's parents to this menu item.
menu[target][0].parentMenu = currMenu;
menu[target][0].parentItem = currItem;

// Add a popout indicator.
if (popInd) str += '<td class="' + textClass + '" align="right">' + popInd + '</td>';
}
str += '</tr></table>' + (isNS4 ? '</layer>' : '</div>');

(currMenu == '35' ? str += '</td>' : '');
(currMenu == '35' ? (currItem % 2 == 0 ? str += '</tr>' : '') : '');

//if (isVert) itemY += length + spacing;
//else itemX += length + spacing;
}

(currMenu == '35' ? str += '</table></div><tr><td>' : '');

if (isDOM) {
var newDiv = document.createElement('div');
newDiv.id = 'catmeny';
document.getElementsByTagName('body').item(0).appendChild(newDiv);
newDiv.innerHTML = str;
ref = newDiv.style;
ref.position = 'absolute';
ref.visibility = 'hidden';
}

// Insert a div tag to the end of the BODY with menu HTML in place for IE4.
if (isIE4) {
document.body.insertAdjacentHTML('beforeEnd', '<div id="menu' + currMenu + 'div" ' + 'style="position: absolute; z-index:3000; visibility: hidden">' + str + '</div>');
ref = getSty('menu' + currMenu + 'div');
}

// In NS4, create a reference to a new layer and write the items to it.
if (isNS4) {
ref = new Layer(0);
ref.document.write(str);
ref.document.close();
}

for (currItem = 1; currItem < menu[currMenu].length; currItem++) {
itemName = 'menu' + currMenu + 'item' + currItem;
if (isDOM || isIE4) menu[currMenu][currItem].ref = getSty(itemName);
if (isNS4) menu[currMenu][currItem].ref = ref.document[itemName];
   }
}
with(menu[0][0]) {
ref.left = x + 'px';
ref.top = y + 'px';
ref.visibility = 'visible';
//alert(this.ref);
   }
}

// Syntaxes: *** START EDITING HERE, READ THIS SECTION CAREFULLY! ***
//
// menu[menuNumber][0] = new Menu(Vertical menu? (true/false), 'popout indicator', left, top,
// width, 'mouseover colour', 'background colour', 'border stylesheet', 'text stylesheet');
//
// Left and Top are measured on-the-fly relative to the top-left corner of its trigger, or
// for the root menu, the top-left corner of the page.
//
// menu[menuNumber][itemNumber] = new Item('Text', 'URL', 'target frame', length of menu item,
//  additional spacing to next menu item, number of target menu to popout);
//
// If no target menu (popout) is desired, set it to 0. Likewise, if your site does not use
// frames, pass an empty string as a frame target.
//
// Something that needs explaining - the Vertical Menu setup. You can see most menus below
// are 'true', that is they are vertical, except for the first root menu. The 'length' and
// 'width' of an item depends on its orientation -- length is how long the item runs for in
// the direction of the menu, and width is the lateral dimension of the menu. Just look at
// the examples and tweak the numbers, they'll make sense eventually :).

//document.write('<script type = "text/javascript" src="actualmenu.js"></script>');
var menu = new Array();
// Default colours passed to most menu constructors (just passed to functions, not
// a global variable - makes things easier to change later in bulk).
var defOver = '#707070', defBack = '#596f9a'; //dark-grey and agora web blue

// Default 'length' of menu items - item height if menu is vertical, width if horizontal.
var defLength = 20;

//document.write('alert('here')');

menu[0] = new Array();

var vpwidth = getviewportdim();
if (navigator.appName == "Microsoft Internet Explorer" || navigator.appName == "Netscape") {
    vpwidth = (vpwidth / 2 - 399)
}
else {
    vpwidth = (vpwidth / 2 - 398)
};

// A non-vertical menu with a few different colours and no popout indicator, as an example.
// *** MOVE ROOT MENU AROUND HERE ***  it's positioned at (0, 150) and is 30px high now.
menu[0][0] = new Menu(false, '', vpwidth, 132, 25, '#707070', '#596f9a', 'itemBorder', 'itemText'); //5th parameter - height set to zero to suppress
// Notice how the targets are all set to nonzero values...
// The 'length' of each of these items is 40, and there is spacing of 10 to the next item.
// Most of the links are set to '#' hashes, make sure you change them to actual files.
//menu[0][1] = new Item('  ', '#', '', 170, 10, 1); //4th parameter - width set to zero to suppress
//menu[0][2] = new Item('  ', '#', '', 170, 10, 2);
//menu[0][3] = new Item('  Help', '#', '', 40, 10, 3);
// An example of a link with a target frame/window as well...
//menu[0][4] = new Item('  Site', 'http://www.agoraleather.com', '_new', 40, 10, 0);

// File menu.

// START CUSTOMIZING MENU CONTENTS BEGINS HERE

menu[1] = new Array();
menu[1][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[2] = new Array();
menu[2][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[3] = new Array();
menu[3][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[4] = new Array();
menu[4][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[5] = new Array();
menu[5][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[6] = new Array();
menu[6][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[7] = new Array();
menu[7][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[8] = new Array();
menu[8][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[9] = new Array();
menu[9][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[10] = new Array();
menu[10][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[11] = new Array();
menu[11][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[12] = new Array();
menu[12][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[13] = new Array();
menu[13][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[14] = new Array();
menu[14][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[15] = new Array();
menu[15][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[16] = new Array();
menu[16][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[17] = new Array();
menu[17][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[18] = new Array();
menu[18][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[19] = new Array();
menu[19][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[20] = new Array();
menu[20][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[21] = new Array();
menu[21][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[22] = new Array();
menu[22][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[23] = new Array();
menu[23][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[24] = new Array();
menu[24][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[25] = new Array();
menu[25][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[26] = new Array();
menu[26][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[27] = new Array();
menu[27][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[28] = new Array();
menu[28][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[29] = new Array();
menu[29][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');
menu[30] = new Array();
menu[30][0] = new Menu(true, '<img src=images/menu-right-arrow.gif>', 170, 0, 180, defOver, defBack, 'itemBorder', 'itemText');

menu[0][1] = new Item('Bags, Pouches & Zipper Cases', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases', '', 175, 0, 1);
menu[0][2] = new Item('Boots & Holsters', 'products.aspx?prodcat=Boots & Holsters', '', 175, 0, 6);
menu[0][3] = new Item('Business Products', 'products.aspx?prodcat=Business Products', '', 175, 0, 11);
menu[0][4] = new Item('Components & Hardware', 'products.aspx?prodcat=Components & Hardware', '', 175, 0, 12);
menu[0][5] = new Item('Computer Cases', 'products.aspx?prodcat=Computer Cases', '', 175, 0, 16);
menu[0][6] = new Item('Foam-Filled Cases', 'products.aspx?prodcat=Foam-Filled Cases', '', 175, 0, 17);
menu[0][7] = new Item('Instrument Cases', 'products.aspx?prodcat=Instrument Cases', '', 175, 0, 18);
menu[0][8] = new Item('Luggage', 'products.aspx?prodcat=Luggage', '', 175, 0, 19);
menu[0][9] = new Item('Molded Products', 'products.aspx?prodcat=Molded Products', '', 175, 0, 20);
menu[0][10] = new Item('Promotional Products', 'products.aspx?prodcat=Promotional Products', '', 175, 0, 21);
menu[0][11] = new Item('Sales & Sample Cases', 'products.aspx?prodcat=Sales & Sample Cases', '', 175, 0, 22);
menu[0][12] = new Item('Specialty Products', 'products.aspx?prodcat=Specialty Products', '', 175, 0, 23);
menu[0][13] = new Item('Straps', 'products.aspx?prodcat=Straps', '', 175, 0, 24);
menu[0][14] = new Item('Tool Cases & Pallets', 'products.aspx?prodcat=Tool Cases & Pallets', '', 175, 0, 25);
menu[0][15] = new Item('Wearables', 'products.aspx?prodcat=Wearables', '', 175, 0, 26);

menu[1][1] = new Item('Bags', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Bags', '', 25, 0, 2);
menu[1][2] = new Item('Pouches', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Pouches', '', 25, 0, 3);
menu[1][3] = new Item('Zipper Cases', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Zipper Cases', '', 25, 0, 4);
menu[6][1] = new Item('Boots', 'products.aspx?prodcat=Boots & Holsters~Boots', '', 25, 0, 0);
menu[6][2] = new Item('Holster Attachment Options', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options', '', 25, 0, 8);
menu[6][3] = new Item('Holsters', 'products.aspx?prodcat=Boots & Holsters~Holsters', '', 25, 0, 9);
menu[11][1] = new Item('Backpacks', 'products.aspx?prodcat=Business Products~Backpacks', '', 25, 0, 0);
menu[11][2] = new Item('Briefcases', 'products.aspx?prodcat=Business Products~Briefcases', '', 25, 0, 0);
menu[11][3] = new Item('Catalog Cases', 'products.aspx?prodcat=Business Products~Catalog Cases', '', 25, 0, 0);
menu[11][4] = new Item('Padfolios/Portfolios', 'products.aspx?prodcat=Business Products~Padfolios/Portfolios', '', 25, 0, 0);
menu[11][5] = new Item('Ringbinders', 'products.aspx?prodcat=Business Products~Ringbinders', '', 25, 0, 0);
menu[12][1] = new Item('Components', 'products.aspx?prodcat=Components & Hardware~Components', '', 25, 0, 13);
menu[12][2] = new Item('Injection Molded Parts', 'products.aspx?prodcat=Components & Hardware~Injection Molded Parts', '', 25, 0, 14);
menu[16][1] = new Item('Data Capture', 'products.aspx?prodcat=Computer Cases~Data Capture', '', 25, 0, 0);
menu[16][2] = new Item('Laptop & Notebook', 'products.aspx?prodcat=Computer Cases~Laptop & Notebook', '', 25, 0, 0);
menu[16][3] = new Item('PDA (Binder)', 'products.aspx?prodcat=Computer Cases~PDA (Binder)', '', 25, 0, 0);
menu[16][4] = new Item('Printer Cases', 'products.aspx?prodcat=Computer Cases~Printer Cases', '', 25, 0, 0);
menu[16][5] = new Item('Roller', 'products.aspx?prodcat=Computer Cases~Roller', '', 25, 0, 0);
menu[16][6] = new Item('RoutePad', 'products.aspx?prodcat=Computer Cases~RoutePad', '', 25, 0, 0);
menu[16][7] = new Item('Tablet Case', 'products.aspx?prodcat=Computer Cases~Tablet Case', '', 25, 0, 0);
menu[17][1] = new Item('Instrument Cases', 'products.aspx?prodcat=Foam-Filled Cases~Instrument Cases', '', 25, 0, 0);
menu[17][2] = new Item('Sales Display Cases', 'products.aspx?prodcat=Foam-Filled Cases~Sales Display Cases', '', 25, 0, 0);
menu[17][3] = new Item('Tool Cases', 'products.aspx?prodcat=Foam-Filled Cases~Tool Cases', '', 25, 0, 0);
menu[18][1] = new Item('Form Fit', 'products.aspx?prodcat=Instrument Cases~Form Fit', '', 25, 0, 0);
menu[18][2] = new Item('Leather', 'products.aspx?prodcat=Instrument Cases~Leather', '', 25, 0, 0);
menu[18][3] = new Item('Padded', 'products.aspx?prodcat=Instrument Cases~Padded', '', 25, 0, 0);
menu[18][4] = new Item('Pressure Formed', 'products.aspx?prodcat=Instrument Cases~Pressure Formed', '', 25, 0, 0);
menu[19][1] = new Item('Luggage', 'products.aspx?prodcat=Luggage~Luggage', '', 25, 0, 0);
menu[20][1] = new Item('Molded Products', 'products.aspx?prodcat=Molded Products~Molded Products', '', 25, 0, 0);
menu[21][1] = new Item('Desk', 'products.aspx?prodcat=Promotional Products~Desk', '', 25, 0, 0);
menu[21][2] = new Item('Money', 'products.aspx?prodcat=Promotional Products~Money', '', 25, 0, 0);
menu[21][3] = new Item('Pocket', 'products.aspx?prodcat=Promotional Products~Pocket', '', 25, 0, 0);
menu[21][4] = new Item('Trade Show', 'products.aspx?prodcat=Promotional Products~Trade Show', '', 25, 0, 0);
menu[21][5] = new Item('Travel', 'products.aspx?prodcat=Promotional Products~Travel', '', 25, 0, 0);
menu[22][1] = new Item('Display Cases/Demo', 'products.aspx?prodcat=Sales & Sample Cases~Display Cases/Demo', '', 25, 0, 0);
menu[22][2] = new Item('Product Sample Cases', 'products.aspx?prodcat=Sales & Sample Cases~Product Sample Cases', '', 25, 0, 0);
menu[23][1] = new Item('Artist Display Case', 'products.aspx?prodcat=Specialty Products~Artist Display Case', '', 25, 0, 0);
menu[23][2] = new Item('Audio Visual', 'products.aspx?prodcat=Specialty Products~Audio Visual', '', 25, 0, 0);
menu[23][3] = new Item('Cable Wrap', 'products.aspx?prodcat=Specialty Products~Cable Wrap', '', 25, 0, 0);
menu[23][4] = new Item('Cooler/Insulated', 'products.aspx?prodcat=Specialty Products~Cooler/Insulated', '', 25, 0, 0);
menu[23][5] = new Item('Dust Cover', 'products.aspx?prodcat=Specialty Products~Dust Cover', '', 25, 0, 0);
menu[23][6] = new Item('EMT Case', 'products.aspx?prodcat=Specialty Products~EMT Case', '', 25, 0, 0);
menu[23][7] = new Item('ESD', 'products.aspx?prodcat=Specialty Products~ESD', '', 25, 0, 0);
menu[23][8] = new Item('Fishing Belt', 'products.aspx?prodcat=Specialty Products~Fishing Belt', '', 25, 0, 0);
menu[23][9] = new Item('Flashlight Holder', 'products.aspx?prodcat=Specialty Products~Flashlight Holder', '', 25, 0, 0);
menu[23][10] = new Item('Lens Case', 'products.aspx?prodcat=Specialty Products~Lens Case', '', 25, 0, 0);
menu[23][11] = new Item('Lighter Case', 'products.aspx?prodcat=Specialty Products~Lighter Case', '', 25, 0, 0);
menu[23][12] = new Item('Log Book Cover', 'products.aspx?prodcat=Specialty Products~Log Book Cover', '', 25, 0, 0);
menu[23][13] = new Item('Machette Case', 'products.aspx?prodcat=Specialty Products~Machette Case', '', 25, 0, 0);
menu[23][14] = new Item('Oxygen Case', 'products.aspx?prodcat=Specialty Products~Oxygen Case', '', 25, 0, 0);
menu[23][15] = new Item('Ruck Sack', 'products.aspx?prodcat=Specialty Products~Ruck Sack', '', 25, 0, 0);
menu[23][16] = new Item('Sail Maker&rsquo;s Palm', 'products.aspx?prodcat=Specialty Products~Sail Maker>>s Palm', '', 25, 0, 0);
menu[23][17] = new Item('Seat Cover', 'products.aspx?prodcat=Specialty Products~Seat Cover', '', 25, 0, 0);
menu[23][18] = new Item('Seat Sack', 'products.aspx?prodcat=Specialty Products~Seat Sack', '', 25, 0, 0);
menu[23][19] = new Item('Security Cart', 'products.aspx?prodcat=Specialty Products~Security Cart', '', 25, 0, 0);
menu[23][20] = new Item('Shower Bag', 'products.aspx?prodcat=Specialty Products~Shower Bag', '', 25, 0, 0);
menu[23][21] = new Item('Sleeve', 'products.aspx?prodcat=Specialty Products~Sleeve', '', 25, 0, 0);
menu[23][22] = new Item('Sun Visor', 'products.aspx?prodcat=Specialty Products~Sun Visor', '', 25, 0, 0);
menu[23][23] = new Item('Sword Case', 'products.aspx?prodcat=Specialty Products~Sword Case', '', 25, 0, 0);
menu[23][24] = new Item('TV Case', 'products.aspx?prodcat=Specialty Products~TV Case', '', 25, 0, 0);
menu[24][1] = new Item('Cord/Tether', 'products.aspx?prodcat=Straps~Cord/Tether', '', 25, 0, 0);
menu[24][2] = new Item('Custom', 'products.aspx?prodcat=Straps~Custom', '', 25, 0, 0);
menu[24][3] = new Item('Hand', 'products.aspx?prodcat=Straps~Hand', '', 25, 0, 0);
menu[24][4] = new Item('Neck', 'products.aspx?prodcat=Straps~Neck', '', 25, 0, 0);
menu[24][5] = new Item('Shoulder', 'products.aspx?prodcat=Straps~Shoulder', '', 25, 0, 0);
menu[24][6] = new Item('Waist Belt', 'products.aspx?prodcat=Straps~Waist Belt', '', 25, 0, 0);
menu[24][7] = new Item('Wrist', 'products.aspx?prodcat=Straps~Wrist', '', 25, 0, 0);
menu[25][1] = new Item('Aviation Tool Control', 'products.aspx?prodcat=Tool Cases & Pallets~Aviation Tool Control', '', 25, 0, 0);
menu[25][2] = new Item('Tool Cases/Field Service', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service', '', 25, 0, 27);
menu[25][3] = new Item('Tool Kits', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Kits', '', 25, 0, 0);
menu[25][4] = new Item('Tool Pallets', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Pallets', '', 25, 0, 28);
menu[25][5] = new Item('Tool Pouches', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Pouches', '', 25, 0, 0);
menu[26][1] = new Item('Arm', 'products.aspx?prodcat=Wearables~Arm', '', 25, 0, 29);
menu[26][2] = new Item('Back of Hand', 'products.aspx?prodcat=Wearables~Back of Hand', '', 25, 0, 0);
menu[26][3] = new Item('Elbow', 'products.aspx?prodcat=Wearables~Elbow', '', 25, 0, 0);
menu[26][4] = new Item('Head Harness', 'products.aspx?prodcat=Wearables~Head Harness', '', 25, 0, 0);
menu[26][5] = new Item('Knee', 'products.aspx?prodcat=Wearables~Knee', '', 25, 0, 0);
menu[26][6] = new Item('Suspender', 'products.aspx?prodcat=Wearables~Suspender', '', 25, 0, 0);
menu[26][7] = new Item('Vest/Harness', 'products.aspx?prodcat=Wearables~Vest/Harness', '', 25, 0, 0);
menu[26][8] = new Item('Waist/Back', 'products.aspx?prodcat=Wearables~Waist/Back', '', 25, 0, 0);
menu[26][9] = new Item('Wrist', 'products.aspx?prodcat=Wearables~Wrist', '', 25, 0, 0);

menu[2][1] = new Item('Duffel/Gym', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Bags~Duffel/Gym', '', 25, 0, 0);
menu[2][2] = new Item('General Purpose', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Bags~General Purpose', '', 25, 0, 0);
menu[2][3] = new Item('Travel/Tote', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Bags~Travel/Tote', '', 25, 0, 0);
menu[3][1] = new Item('Document', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Pouches~Document', '', 25, 0, 0);
menu[3][2] = new Item('Instrument Pouch', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Pouches~Instrument Pouch', '', 25, 0, 0);
menu[3][3] = new Item('Roll', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Pouches~Roll', '', 25, 0, 0);
menu[3][4] = new Item('Zip', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Pouches~Zip', '', 25, 0, 0);
menu[4][1] = new Item('Leather', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Zipper Cases~Leather', '', 25, 0, 0);
menu[4][2] = new Item('Sales Display', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Zipper Cases~Sales Display', '', 25, 0, 0);
menu[4][3] = new Item('Tool', 'products.aspx?prodcat=Bags, Pouches & Zipper Cases~Zipper Cases~Tool', '', 25, 0, 0);
menu[8][1] = new Item('Belt Loop', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~Belt Loop', '', 25, 0, 0);
menu[8][2] = new Item('Cell Clip/Belt Clip', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~Cell Clip/Belt Clip', '', 25, 0, 0);
menu[8][3] = new Item('Integrated Belt', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~Integrated Belt', '', 25, 0, 0);
menu[8][4] = new Item('Leg Strap', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~Leg Strap', '', 25, 0, 0);
menu[8][5] = new Item('Swivel-D', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~Swivel-D', '', 25, 0, 0);
menu[8][6] = new Item('Waist Pad', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~Waist Pad', '', 25, 0, 0);
menu[8][7] = new Item('With Retractor', 'products.aspx?prodcat=Boots & Holsters~Holster Attachment Options~With Retractor', '', 25, 0, 0);
menu[9][1] = new Item('Open', 'products.aspx?prodcat=Boots & Holsters~Holsters~Open', '', 25, 0, 0);
menu[9][2] = new Item('Phone', 'products.aspx?prodcat=Boots & Holsters~Holsters~Phone', '', 25, 0, 0);
menu[9][3] = new Item('Vehicle Mount', 'products.aspx?prodcat=Boots & Holsters~Holsters~Vehicle Mount', '', 25, 0, 0);
menu[9][4] = new Item('Wall Mount', 'products.aspx?prodcat=Boots & Holsters~Holsters~Wall Mount', '', 25, 0, 0);
menu[9][5] = new Item('With Flap/Strap', 'products.aspx?prodcat=Boots & Holsters~Holsters~With Flap/Strap', '', 25, 0, 0);
menu[9][6] = new Item('Zipper Shoulder', 'products.aspx?prodcat=Boots & Holsters~Holsters~Zipper Shoulder', '', 25, 0, 0);
menu[13][1] = new Item('File Folder', 'products.aspx?prodcat=Components & Hardware~Components~File Folder', '', 25, 0, 0);
menu[13][2] = new Item('Insert', 'products.aspx?prodcat=Components & Hardware~Components~Insert', '', 25, 0, 0);
menu[13][3] = new Item('Pads & Gaskets', 'products.aspx?prodcat=Components & Hardware~Components~Pads & Gaskets', '', 25, 0, 0);
menu[13][4] = new Item('Pallet', 'products.aspx?prodcat=Components & Hardware~Components~Pallet', '', 25, 0, 0);
menu[13][5] = new Item('Retractors', 'products.aspx?prodcat=Components & Hardware~Components~Retractors', '', 25, 0, 0);
menu[14][1] = new Item('Labeler Belt Clip', 'products.aspx?prodcat=Components & Hardware~Injection Molded Parts~Labeler Belt Clip', '', 25, 0, 0);
menu[14][2] = new Item('Rugged Swivel Clip', 'products.aspx?prodcat=Components & Hardware~Injection Molded Parts~Rugged Swivel Clip', '', 25, 0, 0);
menu[27][1] = new Item('Double', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Double', '', 25, 0, 0);
menu[27][2] = new Item('Mechanics', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Mechanics', '', 25, 0, 0);
menu[27][3] = new Item('Notebook', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Notebook', '', 25, 0, 0);
menu[27][4] = new Item('QC Clip', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~QC Clip', '', 25, 0, 0);
menu[27][5] = new Item('Roller', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Roller', '', 25, 0, 0);
menu[27][6] = new Item('Single', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Single', '', 25, 0, 0);
menu[27][7] = new Item('Small Parts Storage', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Small Parts Storage', '', 25, 0, 0);
menu[27][8] = new Item('Triple', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Cases/Field Service~Triple', '', 25, 0, 0);
menu[28][1] = new Item('Diskette', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Pallets~Diskette', '', 25, 0, 0);
menu[28][2] = new Item('Hinged', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Pallets~Hinged', '', 25, 0, 0);
menu[28][3] = new Item('Single', 'products.aspx?prodcat=Tool Cases & Pallets~Tool Pallets~Single', '', 25, 0, 0);
menu[29][1] = new Item('Elbow', 'products.aspx?prodcat=Wearables~Arm~Elbow', '', 25, 0, 0);
menu[29][2] = new Item('Forearm', 'products.aspx?prodcat=Wearables~Arm~Forearm', '', 25, 0, 0);
menu[29][3] = new Item('Pressure Infuser', 'products.aspx?prodcat=Wearables~Arm~Pressure Infuser', '', 25, 0, 0);








menu[0][16] = new Item('', '#', '', 0, 0, 31)
menu[0][17] = new Item('', '#', '', 0, 0, 32)
menu[0][18] = new Item('', '#', '', 0, 0, 33)
menu[0][19] = new Item('', '#', '', 0, 0, 34)
menu[0][20] = new Item('', '#', '', 0, 0, 35)

menu[31] = new Array();
menu[31][0] = new Menu(true, '', 179, -362, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[32] = new Array();
menu[32][0] = new Menu(true, '', 256, -389, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[33] = new Array();
menu[33][0] = new Menu(true, '', 382, -414, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[34] = new Array();
menu[34][0] = new Menu(true, '', 514, -441, 150, defOver, defBack, 'itemBorder', 'itemText');
menu[35] = new Array();
menu[35][0] = new Menu(true, '', 478, -467, 150, defOver, defBack, 'itemBorder', 'itemText');


menu[31][1] = new Item('Business', 'products.aspx?prodattr=Application~Business', '', 20, 0, 0);
menu[31][2] = new Item('Industrial', 'products.aspx?prodattr=Application~Industrial', '', 20, 0, 0);
menu[31][3] = new Item('Instrument protection', 'products.aspx?prodattr=Application~Instrument protection', '', 20, 0, 0);
menu[31][4] = new Item('Leisure', 'products.aspx?prodattr=Application~Leisure', '', 20, 0, 0);
menu[31][5] = new Item('Mobility', 'products.aspx?prodattr=Application~Mobility', '', 20, 0, 0);
menu[31][6] = new Item('Retail', 'products.aspx?prodattr=Application~Retail', '', 20, 0, 0);
menu[32][1] = new Item('Fabricated Metal', 'products.aspx?prodattr=Unique Processes~Fabricated Metal', '', 20, 0, 0);
menu[32][2] = new Item('Foam Cavities', 'products.aspx?prodattr=Unique Processes~Foam Cavities', '', 20, 0, 0);
menu[32][3] = new Item('French-Stitched', 'products.aspx?prodattr=Unique Processes~French-Stitched', '', 20, 0, 0);
menu[32][4] = new Item('Heat-sealed', 'products.aspx?prodattr=Unique Processes~Heat-sealed', '', 20, 0, 0);
menu[32][5] = new Item('Injection Molded', 'products.aspx?prodattr=Unique Processes~Injection Molded', '', 20, 0, 0);
menu[32][6] = new Item('Pressure-formed', 'products.aspx?prodattr=Unique Processes~Pressure-formed', '', 20, 0, 0);
menu[32][7] = new Item('RF-welded', 'products.aspx?prodattr=Unique Processes~RF-welded', '', 20, 0, 0);
menu[32][8] = new Item('Riveted', 'products.aspx?prodattr=Unique Processes~Riveted', '', 20, 0, 0);
menu[32][9] = new Item('Transform CAD input to Digitized Cutting', 'products.aspx?prodattr=Unique Processes~Transform CAD input to Digitized Cutting', '', 35, 0, 0);
menu[32][10] = new Item('Ultrasonically welded', 'products.aspx?prodattr=Unique Processes~Ultrasonically welded', '', 20, 0, 0);
menu[32][11] = new Item('Vacuum-formed Plastic', 'products.aspx?prodattr=Unique Processes~Vacuum-formed Plastic', '', 20, 0, 0);
menu[32][12] = new Item('Vacuum-formed Polyurethane', 'products.aspx?prodattr=Unique Processes~Vacuum-formed Polyurethane', '', 35, 0, 0);
menu[33][1] = new Item('Dustproof', 'products.aspx?prodattr=Work Environment~Dustproof', '', 20, 0, 0);
menu[33][2] = new Item('ESD Conducting', 'products.aspx?prodattr=Work Environment~ESD Conducting', '', 20, 0, 0);
menu[33][3] = new Item('Fire-resistant', 'products.aspx?prodattr=Work Environment~Fire-resistant', '', 20, 0, 0);
menu[33][4] = new Item('Freezer', 'products.aspx?prodattr=Work Environment~Freezer', '', 20, 0, 0);
menu[33][5] = new Item('Heated', 'products.aspx?prodattr=Work Environment~Heated', '', 20, 0, 0);
menu[33][6] = new Item('Outdoor use (Rugged)', 'products.aspx?prodattr=Work Environment~Outdoor use (Rugged)', '', 20, 0, 0);
menu[33][7] = new Item('Reflective', 'products.aspx?prodattr=Work Environment~Reflective', '', 20, 0, 0);
menu[33][8] = new Item('Washable', 'products.aspx?prodattr=Work Environment~Washable', '', 20, 0, 0);
menu[33][9] = new Item('Water-resistant', 'products.aspx?prodattr=Work Environment~Water-resistant', '', 20, 0, 0);
menu[33][10] = new Item('Wearable on body', 'products.aspx?prodattr=Work Environment~Wearable on body', '', 20, 0, 0);
menu[34][1] = new Item('Auto ID', 'products.aspx?prodattr=Industry~Auto ID', '', 20, 0, 0);
menu[34][2] = new Item('Aviation', 'products.aspx?prodattr=Industry~Aviation', '', 20, 0, 0);
menu[34][3] = new Item('Chemical', 'products.aspx?prodattr=Industry~Chemical', '', 20, 0, 0);
menu[34][4] = new Item('Electrical', 'products.aspx?prodattr=Industry~Electrical', '', 20, 0, 0);
menu[34][5] = new Item('Field Service', 'products.aspx?prodattr=Industry~Field Service', '', 20, 0, 0);
menu[34][6] = new Item('Finance', 'products.aspx?prodattr=Industry~Finance', '', 20, 0, 0);
menu[34][7] = new Item('Food & Beverage', 'products.aspx?prodattr=Industry~Food & Beverage', '', 20, 0, 0);
menu[34][8] = new Item('Hardware', 'products.aspx?prodattr=Industry~Hardware', '', 20, 0, 0);
menu[34][9] = new Item('Marine', 'products.aspx?prodattr=Industry~Marine', '', 20, 0, 0);
menu[34][10] = new Item('Medical', 'products.aspx?prodattr=Industry~Medical', '', 20, 0, 0);
menu[34][11] = new Item('Mobile computers', 'products.aspx?prodattr=Industry~Mobile computers', '', 20, 0, 0);
menu[34][12] = new Item('Office Products', 'products.aspx?prodattr=Industry~Office Products', '', 20, 0, 0);
menu[34][13] = new Item('Promotional', 'products.aspx?prodattr=Industry~Promotional', '', 20, 0, 0);
menu[34][14] = new Item('Safety', 'products.aspx?prodattr=Industry~Safety', '', 20, 0, 0);
menu[34][15] = new Item('Telecom', 'products.aspx?prodattr=Industry~Telecom', '', 20, 0, 0);
menu[34][16] = new Item('Test & Measurements', 'products.aspx?prodattr=Industry~Test & Measurements', '', 20, 0, 0);
menu[34][17] = new Item('Training', 'products.aspx?prodattr=Industry~Training', '', 20, 0, 0);
menu[34][18] = new Item('Transportation', 'products.aspx?prodattr=Industry~Transportation', '', 20, 0, 0);
menu[34][19] = new Item('Travel', 'products.aspx?prodattr=Industry~Travel', '', 20, 0, 0);
menu[35][1] = new Item('Clear Polyurethane', 'products.aspx?prodattr=Material Complements~Clear Polyurethane', '', 20, 0, 0);
menu[35][2] = new Item('Conductive', 'products.aspx?prodattr=Material Complements~Conductive', '', 20, 0, 0);
menu[35][3] = new Item('Cord', 'products.aspx?prodattr=Material Complements~Cord', '', 20, 0, 0);
menu[35][4] = new Item('Cotton duck', 'products.aspx?prodattr=Material Complements~Cotton duck', '', 20, 0, 0);
menu[35][5] = new Item('Elastic', 'products.aspx?prodattr=Material Complements~Elastic', '', 20, 0, 0);
menu[35][6] = new Item('Elastic Coil', 'products.aspx?prodattr=Material Complements~Elastic Coil', '', 20, 0, 0);
menu[35][7] = new Item('Fabric Ballistic Nylon', 'products.aspx?prodattr=Material Complements~Fabric Ballistic Nylon', '', 20, 0, 0);
menu[35][8] = new Item('Fabric Cordura', 'products.aspx?prodattr=Material Complements~Fabric Cordura', '', 20, 0, 0);
menu[35][9] = new Item('Fabric Packcloth', 'products.aspx?prodattr=Material Complements~Fabric Packcloth', '', 20, 0, 0);
menu[35][10] = new Item('Fabric Polyduck', 'products.aspx?prodattr=Material Complements~Fabric Polyduck', '', 20, 0, 0);
menu[35][11] = new Item('Fiberglass PTFE', 'products.aspx?prodattr=Material Complements~Fiberglass PTFE', '', 20, 0, 0);
menu[35][12] = new Item('Foam', 'products.aspx?prodattr=Material Complements~Foam', '', 20, 0, 0);
menu[35][13] = new Item('Kevlar', 'products.aspx?prodattr=Material Complements~Kevlar', '', 20, 0, 0);
menu[35][14] = new Item('Kydex', 'products.aspx?prodattr=Material Complements~Kydex', '', 20, 0, 0);
menu[35][15] = new Item('Lamination', 'products.aspx?prodattr=Material Complements~Lamination', '', 20, 0, 0);
menu[35][16] = new Item('Leather Heavy', 'products.aspx?prodattr=Material Complements~Leather Heavy', '', 20, 0, 0);
menu[35][17] = new Item('Leather Soft', 'products.aspx?prodattr=Material Complements~Leather Soft', '', 20, 0, 0);
menu[35][18] = new Item('Loop Material', 'products.aspx?prodattr=Material Complements~Loop Material', '', 20, 0, 0);
menu[35][19] = new Item('Mesh Fabric', 'products.aspx?prodattr=Material Complements~Mesh Fabric', '', 20, 0, 0);
menu[35][20] = new Item('Metal', 'products.aspx?prodattr=Material Complements~Metal', '', 20, 0, 0);
menu[35][21] = new Item('Mordura', 'products.aspx?prodattr=Material Complements~Mordura', '', 20, 0, 0);
menu[35][22] = new Item('Neoluxe', 'products.aspx?prodattr=Material Complements~Neoluxe', '', 20, 0, 0);
menu[35][23] = new Item('Neoprene', 'products.aspx?prodattr=Material Complements~Neoprene', '', 20, 0, 0);
menu[35][24] = new Item('Nomex', 'products.aspx?prodattr=Material Complements~Nomex', '', 20, 0, 0);
menu[35][25] = new Item('Plastics', 'products.aspx?prodattr=Material Complements~Plastics', '', 20, 0, 0);
menu[35][26] = new Item('Reflective', 'products.aspx?prodattr=Material Complements~Reflective', '', 20, 0, 0);
menu[35][27] = new Item('Rubber', 'products.aspx?prodattr=Material Complements~Rubber', '', 20, 0, 0);
menu[35][28] = new Item('Sail Cloth', 'products.aspx?prodattr=Material Complements~Sail Cloth', '', 20, 0, 0);
menu[35][29] = new Item('Stamoid', 'products.aspx?prodattr=Material Complements~Stamoid', '', 20, 0, 0);
menu[35][30] = new Item('Suede', 'products.aspx?prodattr=Material Complements~Suede', '', 20, 0, 0);
menu[35][31] = new Item('Thinsulate', 'products.aspx?prodattr=Material Complements~Thinsulate', '', 20, 0, 0);
menu[35][32] = new Item('ToughTek', 'products.aspx?prodattr=Material Complements~ToughTek', '', 20, 0, 0);
menu[35][33] = new Item('Vinyl', 'products.aspx?prodattr=Material Complements~Vinyl', '', 20, 0, 0);
menu[35][34] = new Item('Webbing Nylon', 'products.aspx?prodattr=Material Complements~Webbing Nylon', '', 20, 0, 0);
menu[35][35] = new Item('Webbing Polypropylene', 'products.aspx?prodattr=Material Complements~Webbing Polypropylene', '', 20, 0, 0);// START CUSTOMIZING MENU CONTENTS ENDS HERE


// *** OPTIONAL CODE FROM HERE DOWN ***

// These two lines handle the window resize bug in NS4. See <body onResize="...">.
// I recommend you leave this here as otherwise when you resize NS4's width menus are hidden.

var popOldWidth = window.innerWidth;
nsResizeHandler = new Function('if (popOldWidth != window.innerWidth) location.reload()');


// This is a quick snippet that captures all clicks on the document and hides the menus
// every time you click. Use if you want.

if (isNS4) document.captureEvents(Event.CLICK);
document.onclick = clickHandle;

function clickHandle(evt)
{
 if (isNS4) document.routeEvent(evt);
 hideAllBut(0);
}


// This is just the moving command for the example.

function moveRoot()
{
 with(menu[0][0].ref) left = ((parseInt(left) < 100) ? 100 : 5) + 'px';
}

function repositionpcmenu() {
    var vpwidth = getviewportdim();
    if (navigator.appName == "Microsoft Internet Explorer") {
        vpwidth = (vpwidth / 2 - 390)
    }
    else {
        vpwidth = (vpwidth / 2 - 398)
    };

    document.getElementById('catmeny').style.left = vpwidth + 'px';
}

function getviewportdim() {
    var viewportwidth;
    var viewportheight;

    // the more standards compliant browsers (mozilla/netscape/opera/IE7) use window.innerWidth and window.innerHeight

    if (typeof window.innerWidth != 'undefined') {
        viewportwidth = window.innerWidth,
      viewportheight = window.innerHeight
    }

    // IE6 in standards compliant mode (i.e. with a valid doctype as the first line in the document)

    else if (typeof document.documentElement != 'undefined'
     && typeof document.documentElement.clientWidth !=
     'undefined' && document.documentElement.clientWidth != 0) {
        viewportwidth = document.documentElement.clientWidth,
       viewportheight = document.documentElement.clientHeight
    }

    // older versions of IE

    else {
        viewportwidth = document.getElementsByTagName('body')[0].clientWidth,
       viewportheight = document.getElementsByTagName('body')[0].clientHeight
    }
    //document.write('<p>Your viewport width is ' + viewportwidth + 'x' + viewportheight + '</p>');
    return viewportwidth;}
