');
document.writeln('');
// If no Level 2 Navigation for this page, create one blank cell
if (stOption == "NONE") {
document.writeln(' | ');
}
// Indent the SubMenu as indicated
if (nIndent > 0) {
document.writeln(' | ');
}
// "Padding" and separator at beginning
document.write(' | ');
document.write(' | ');
gnCurrentLevel=2;
gnCurrLevelCnt=0;
}
// -------------------------------------------------
// Begin_Actions
// 1st param: NONE if no actions on this page
// -------------------------------------------------
function Begin_Actions(stOption)
{
// End Level 2 Navigation Table
//Next line needed to end NavLev2 Styles - Moved to function
//document.writeln('
| ');
// Begin Actions Table
// If no Actionsfor this page, use Level 2 Navigation background
// and create one blank cell
if (stOption == "NONE") {
document.writeln('');
document.writeln('');
document.writeln('');
document.writeln(' | ');
}
else {
document.writeln('');
document.writeln('');
document.writeln('');
}
gnCurrentLevel=3;
gnCurrLevelCnt=0;
}
// ----------------------------------------------------------------------
// Add_Item()
// Based on nCurrentLevel, adds a Navigation Item with Proper "state"
// 1st param: Item Label
// 2nd param: Item HRef (or JavaScript)
// 3rd param: Item Tooltip (OPTIONAL)
// ----------------------------------------------------------------------
function Add_Item(stItem, stHRef, stTooltip )
{
// create ID for tooltip
gnCurrLevelCnt++;
stTTid = "tt_"+gnCurrentLevel+"_"+gnCurrLevelCnt;
switch (stHRef)
{
case "SELECTED":
switch (gnCurrentLevel)
{
default:
// HypCSS:
document.write(' | ');
if (gnCurrentLevel == 0) {
document.write(' | ');
}
if (gnCurrentLevel == 2) {
document.write(' | ');
}
document.write(''+stItem+' | ');
if (gnCurrentLevel == 2) {
document.write(' | ');
}
document.write(' | ');
break;
}
break;
case "NONE":
switch (gnCurrentLevel)
{
default:
// Disabled Items: All Levels (updated 2/3/04 bc)
document.writeln(' | ');
document.writeln('');
document.writeln(' | ');
document.writeln(''+stItem+' | ');
document.write(' | ');
break;
}
break;
default:
switch (gnCurrentLevel)
{
default:
document.write(' | ');
if (gnCurrentLevel == 0) {
document.write('');
document.write('');
document.write(' | ');
}
document.write(''+stItem+' | ');
document.write(' | ');
break;
}
break;
}
if (gnCurrentLevel==1 && gHasLevel1Bars){
if (stTooltip == "YES") {
document.write(' | ');
}
}
if (gnCurrentLevel==2 && gHasLevel2Bars){
if (stTooltip =="YES") {
document.write(' | ');
}
}
}
// -------------------------------------------------
// End_Navigation
// -------------------------------------------------
function End_Navigation()
{
// End Horizontal Level 2 Actions and Second Navigation Tables
document.writeln(' | ');
document.writeln('
| ');
// determine tooltip style
var stTTClass = "TooltipIE";
if (isNS4){
stTTClass = "TooltipNAV";
}
// write out Global tooltips (hidden until mouseover)
gnCurrLevelCnt=0;
for (i=0; i'+ gstTTip_Global[i]+'');
}
// write out Level1 tooltips (hidden until mouseover)
gnCurrLevelCnt=0;
for (i=0; i'+ gstTTip_Level1[i]+'');
}
// write out Level2 tooltips (hidden until mouseover)
if(gnParent>=0) {
gnCurrLevelCnt=0;
for (i=0; i'+ gstTTip_Level2[gnParent][i]+'');
}
gnCurrLevelCnt=0;
for (i=0; i'+ gstTTip_Actions[i]+'');
}
}
}
// -----------------------------------------------------------
// Begin_Horizontal_Navigation
// -----------------------------------------------------------
function Begin_Horizontal_Navigation(stProductName, stParent, stChild, stPageTitle)
{
// -------------------------------------------------
// Begin Navigation
// 1st param: Product/Application Name
// 2nd param: Page Title
// -------------------------------------------------
Begin_Navigation();
// -------------------------------------------------
// Add Global Navigation Items
// 1st param: Item Label
// 2nd param: Item HRef (or "NONE" to disable)
// -------------------------------------------------
// -------------------------------------------------
// Commented out for tadpole
// -------------------------------------------------
for (i=0; i=0) {
stColor2 = gstColor_Level2[gnParent];
nIndent = gnIndent_Level2[gnParent];
}
// -------------------------------------------------
// Begin the Level 1 Navigation
// -------------------------------------------------
// 1st param: Color
Begin_Level1(gstColor_Level1, stColor2)
// -------------------------------------------------
// Add Level 1 Navigation Items
// 1st param: Item Label
// 2nd param: Item HRef (or "SELECTED" or "NONE")
// -------------------------------------------------
for (i=0; i=0) {
for (i=0; i');
document.writeln('');
// begin tabs table
document.writeln('');
document.writeln('');
}
// ----------------------------------------------------------------------
// Add_PageTab()
// ----------------------------------------------------------------------
function Add_PageTab(stItem, stLink)
{
// write a tab
if(stLink==""){
//document.writeln(' | ');
//document.writeln(''+stItem+' | ');
//document.writeln(' | ');
document.writeln(' | ');
document.writeln(''+stItem+' | ');
document.writeln(' | ');
document.writeln('  | ');
document.writeln(' | ');
document.writeln(' |
| ');
}
else{
document.writeln(' | ');
document.writeln('');
document.writeln(''+stItem+' | ');
document.writeln(' | ');
document.writeln('  | ');
document.writeln(' | ');
document.writeln(' |
| ');
}
}
function Add_PageTabFiller() {
document.writeln(' ');
document.writeln(' | ');
}
// ----------------------------------------------------------------------
// Begin_PageTabBody()
// ----------------------------------------------------------------------
function Begin_PageTabBody()
{
// end tabs table and row
document.writeln('
|  |  |  | ');
// begin border row and table
document.writeln('');
document.writeln('');
document.writeln('');
// begin inner table and row
document.writeln('');
}
// ----------------------------------------------------------------------
// End_PageTabs()
// ----------------------------------------------------------------------
function End_PageTabs()
{
// end of inner table
document.writeln(' ');
// end of border table
document.writeln(' | ');
// end of outer table
document.writeln(' |  |  |  |  |  |  |  |  |  |  |  |  |  |  |  | ');
}
// strings to pull from a resource bundle or properties file
var openDropdown = "Open dropdown menu";
var unhighlightedBGColor = "#ffffff";
var highlightedBGColor = "#99cccc";
// existing code for drawing action buttons for comparison/reference
function DrawActionBtn(stText, stHRef, stClick, stToolTip, stAccessKey) {
document.writeln('');
document.write(' 0)) {
document.write(';loadURL(stHref);');
}
document.write('"');
}
document.write('>');
if ((stToolTip == null) || (stToolTip == "")) {
stToolTip = stText;
}
if ((stHRef == null) || (stHRef == "")) {
stHRef = "javascript:void(0)";
}
document.write(' ' + stText + ' ');
document.writeln(' | ');
document.writeln('');
}
function highlight(obj) {
obj.style.backgroundColor = highlightedBGColor;
}
function unhighlight(obj) {
obj.style.backgroundColor = unhighlightedBGColor;
}
function loadURL(url) {
document.location = url;
}
// new code for drawing action dropdown buttons
var dropdownMonitor = new Array(); // each watches to close a menu when mouseout of all a menu's elements
var openDropdowns = new Array(); // which menus are open
var dropdownCounter = -1; // tracks number of menus
var dropdownWidths = new Array(); // holds the length in chars of longest element within each dropdown for sizing later
var menuCloseDelay = 300; // min 100ms - otherwise menu can close when navigating between subitems
function drawActionDropdown (ddName, ddHrefs, ddTooltips, ddLabels, ddActions) {
dropdownCounter ++;
openDropdowns[dropdownCounter] = false; // menus start closed
dropdownSize = ddLabels.length;
dropdownWidths[dropdownCounter] = 0;
// Draw the menu label (the open/close control)
document.writeln('');
document.write('');
// Draw the menu items (the sub elements visible when the control is open)
document.writeln('');
document.writeln('');
for (i=0; i dropdownWidths[dropdownCounter]) {
dropdownWidths[dropdownCounter] = ddLabels[i].length;
}
document.write('');
if ((ddTooltips[i] == null) || (ddTooltips[i] == "")) {
ddTooltips[i] = ddLabels[i];
}
document.write('');
document.write('');
document.write(' ' + ddLabels[i] + ' ');
document.writeln(' | ');
}
document.writeln(' ');
document.writeln('');
document.writeln('');
// if not handled in setTimeout, IE doesn't render and reports incorrect sizes (0).
setTimeout("sizeMenu("+dropdownCounter+","+dropdownSize+")",0);
}
function sizeMenu(ddc, dds) {
var menuSpan = document.getElementById("ActionDrop"+ddc);
var menuTable = document.getElementById("ActionDropTable"+ddc);
var minWidth = document.getElementById("ActionDropLabel"+ddc).offsetWidth;
if (document.all)
minWidth = minWidth-2; // IE counts the 1 pixel left and right borders, NS does not
var correctWidth = menuSpan.offsetWidth;
if (correctWidth";
}
}
}
function toggleDropdown(which) {
var menu = document.getElementById("ActionDrop"+which);
if (menu.style.visibility!="visible") {
menu.style.visibility = "visible";
openDropdowns[which] = true;
highlight(document.getElementById("ActionDropLabel"+which));
}
else {
menu.style.visibility = "hidden";
openDropdowns[which] = false;
unhighlight(document.getElementById("ActionDropLabel"+which));
}
}
function closeDropdown(which) {
var menu = document.getElementById("ActionDrop"+which);
menu.style.visibility = "hidden";
openDropdowns[which] = false;
unhighlight(document.getElementById("ActionDropLabel"+which));
}
// dismiss the timeout used to close the menu if the user leaves the control
function highlightDropdown(sub, which) {
if (dropdownMonitor != null) {
clearTimeout(dropdownMonitor[which])
}
dropdownMonitor[which] = null;
highlight(sub);
}
// start a timeout that will close the menu if the user leaves the control
// more than menuCloseDelay milliseconds.
function unhighlightDropdown(sub, which) {
unhighlight(sub);
dropdownMonitor[which] = setTimeout("closeDropdown("+which+")",menuCloseDelay);
}
// for now same behavior as sub elements
function highlightDropdownLabel(sub, which) {
highlightDropdown(sub,which);
}
// different behavior for top open/close element - stays highlighted as long as open
// instead of just onmouseover
function unhighlightDropdownLabel(sub, which) {
if (openDropdowns[which]==false) {
unhighlight(sub);
}
dropdownMonitor[which] = setTimeout("closeDropdown("+which+")",350);
}
// dummy test function just to verify that buttons and dropdowns are
// actually capable of performing some function.
function doAction(which) {
alert("" + which);
}
function doClearAction(which, stNum) {
var i_ctr
var i_checked = 0
alert("" + which);
document.docMgr.docMgrText.value = 0;
for (i_ctr=0; i_ctr |