function CreateDirLvl(DirLvl) { var counter = 0; var tempLvl = ''; var DirLvlNo = 0; if (isNaN(DirLvl)) DirLvlNo = 0; else DirLvlNo = DirLvl; for (counter=1; counter<=DirLvlNo; counter++) tempLvl = '../' + tempLvl; return tempLvl; } function dropitLayer(eventobj, xvalue) { return dropit(eventobj, 'document.dropmenu' + xvalue); } // # prints standard and dynamic navigation bar function GenerateNavBar(Key, NavArray, DirLvl, GenerateUniqueURL, UserId) { var aspPath; var imgPath; var extraPath; // relative path var defaultImgPath = 'images'; var str=''; extraPath = CreateDirLvl(DirLvl); aspPath = extraPath; imgPath = extraPath + defaultImgPath; //************************** top menu bar set up ************************* var i,j; str = '' + '
' + '' + '' + ''; str += ''; str += '
'; for (x=0; x'; } else { str += ''; } str += ''; str += ''; } str += ''; // check if resolution is higher than 800x600 if(screen.width > 800 && screen.height > 600){ //check that the user id logged in if (UserId != ''){ str += ''; } } str += '
 Member Id:  ' + UserId + '
'; if (ShowDropdownMenu) { //drop down menus for (x=0; x'; str += '
'; if (menu[x][2] != null) str += '
'; str += ''; var firstTime = true; for (y=2; y'; str += ''; } str += '
' + menu[x][y] + '
'; if (menu[x][2] != null) str += '
'; str += '



'; str += ''; } } return str; }