var threshold = 0;
if (debug === 1) { document.write("Set Threshold to 0"+"<BR>");}
function pageDropdown(){
var pageTable = document.getElementById('TabsTable');
if (debug === 1) { document.write("Fetched the TabsTable Table
object"+"<BR>");}
tabSepTD.className = "TabSep";
tabSepTD.innerHTML = " ";
if (debug === 1) { document.write("Setup new TabSep"+"<BR>");}
tabHiCellTD.className = "TabHiCell";
if (debug === 1) { document.write("Setup new TabHiCell"+"<BR>");}
tabHiFontLinkA.className = 'TabHiFontLink';
tabHiFontLinkA.href = 'javascript:void(null)';
if (debug === 1) { document.write("Updated tabHiFontLinkA"+"<BR>");}
myPopUpGroupDIV.className = 'NQWMenu';
myPopUpGroupDIV.setAttribute('menuInit','BannerInitPortalMenu');
myPopUpGroupDIV.id = divID;
myPopUpGroupDIV.onclick = function (){
NQWClearActiveMenu();
};
menuShadowWrapperTABLE.cellspacing = 0;
menuShadowWrapperTABLE.className = 'menuShadowWrapper';
if (debug === 1) { document.write("Setup menuShadowWrapperTABLE"+"<BR>");}
shadowMenuCellTD.className = 'shadowMenuCell';
shadowOffsetCellRightTD.className = 'shadowOffsetCellRight';
shadowRightTD.className = 'shadowRight';
shadowBottomTD.className = 'shadowBottom';
shadowOffsetCellBottomTD.className = 'shadowOffsetCellBottom';
shadowCornerTD.className = 'shadowCorner';
if (debug === 1) { document.write("Updated five TD's class names"+"<BR>");}
shadowRightTD.innerHTML = ' ';
shadowBottomTD.innerHTML = ' ';
if (debug === 1) { document.write("Added spaces to two TDs"+"<BR>");}
shadowMenuCellTD.rowSpan = 2;
shadowMenuCellTD.colSpan = 2;
if (debug === 1) { document.write("Updated shadowMenuCellTD's rowspan and
colspan"+"<BR>");}
var pageTDs = pageTR.getElementsByTagName('td');
if (debug === 1) { document.write("Got page TD array"+"<BR>");}
var count = 0;
if (debug === 1) { document.write("Setup count variable for number of
pages"+"<BR>");}
var text;
if (debug === 1) { document.write("Got the page anchor"+"<BR>");}
if(pageTDs[pageTD].className == 'TabHiCell'){
text = pageA.getElementsByTagName('span')[0].innerHTML;
message = text;
if (debug === 1) { document.write("Set message to:
"+message+"<BR>");}
}
else {
text = pageA.innerHTML;
}
newA.className = 'NQWMenuItem';
if (debug === 1) { document.write("Set the anchor class name to
NQWMenuItem"+"<BR>");}
newA.target = '_self';
if (debug === 1) { document.write("Set the anchor target to
_self"+"<BR>");}
var stringFunc =
(String(pageA.onclick)).substr((String(pageA.onclick)).indexOf('return'),
(String(pageA.onclick)).length - 2 -(String(pageA.onclick)).indexOf('return'));
if (debug === 1) { document.write("Got string function:
"+stringFunc+"<BR>");}
stringFunc.replace(/"/gi,"'");
if (debug === 1) { document.write("Updated string function:
"+stringFunc+"<BR>");}
newA.onclick = newFunc;
if (debug === 1) { document.write("Set the anchor onclick:
"+String(newA.onclick)+"<BR>");}
newA.href = 'javascript:void(null)';
if (debug === 1) { document.write("Set the anchor href to
javascript:void(null)"+"<BR>");}
newA.name = 'DashboardBannerLink';
if (debug === 1) { document.write("Set the anchor name to
DashboardBannerLink"+"<BR>");}
newA.title = text;
if (debug === 1) { document.write("Set the anchor title to
"+newA.title+"<BR>");}
newSpan.className = 'TabHiFont';
if (debug === 1) { document.write("Set span class to
TabHiFont"+"<BR>");}
newSpan.innerHTML = text;
if (debug === 1) { document.write("Set span innerHTML to
"+newSpan.innerHTML+"<BR>");}
newA.appendChild(newSpan);
if (debug === 1) { document.write("Appended the span to the
anchor"+"<BR>");}
shadowMenuCellTD.appendChild(newA);
if (debug === 1) { document.write("Appended the anchor to the
TD"+"<BR>");}
count++;
if (debug === 1) { document.write("Incremented Count variable to:
"+count+"<BR>");}
}
tabHiFontLinkA.innerHTML = message;
firstTR.appendChild(shadowMenuCellTD);
firstTR.appendChild(shadowOffsetCellRightTD);
if (debug === 1) { document.write("Appended shadowMenuCellTD and
shadowOffsetCellRightTD to firstTR"+"<BR>");}
secondTR.appendChild(shadowRightTD);
if (debug === 1) { document.write("Appended shadowRightTD to
secondTR"+"<BR>");}
thirdTR.appendChild(shadowOffsetCellBottomTD);
thirdTR.appendChild(shadowBottomTD);
thirdTR.appendChild(shadowCornerTD);
if (debug === 1) { document.write("Appended shadowOffsetCellBottomTD,
shadowBottomTD and shadowCornerTD to thirdTR"+"<BR>");}
menuShadowWrapperTABLE.appendChild(firstTR);
menuShadowWrapperTABLE.appendChild(secondTR);
menuShadowWrapperTABLE.appendChild(thirdTR);
if (debug === 1) { document.write("Appended firstTR, secondTR and thirdTR to
menuShadowWrapperTABLE"+"<BR>");}
myPopUpGroupDIV.appendChild(menuShadowWrapperTABLE);
if (debug === 1) { document.write("Appended a menuShadowWrapperTABLE to
myPopUpGroupDIV"+"<BR>");}
tabHiCellTD.appendChild(tabHiFontLinkA);
if (debug === 1) { document.write("Appended a tabHiFontLinkA to
tabSepTD"+"<BR>");}
tabHiCellTD.appendChild(myPopUpGroupDIV);
if (debug === 1) { document.write("Appended a myPopUpGroupDIV to
tabSepTD"+"<BR>");}
newTR.appendChild(tabSepTD);
newTR.appendChild(tabHiCellTD);
newTR.appendChild(tabSepHiCellTD);
if (debug === 1) { document.write("Appended a tabSepTD, tabHiCellTD and
tabSepHiCellTD to newTR"+"<BR>");}
pageDropdown();