//==============================================================================
// Main Routine
//==============================================================================
var goHPEP;

if (goHPEP == null) {
	var newLineChar = String.fromCharCode(10);
	var ie4 = document.all&&navigator.userAgent.indexOf("Opera")==-1;
	var ns6 = (document.getElementById && !document.all) || (navigator.userAgent.indexOf("Opera") != -1);
	var ToolBar_Supported = (ie4 || ns6)? true : false;
	var ToolbarMenu = 0; // This is old, can be removed in the feature
	var goHPSearchMenu;
	var goHPMenu;
	var goNav;
	var oNav2Menu = null;
	var oNav1Menu = null;
	var g_Host = "www.janixworld.com/";	// Host for templates
	var g_Path = "lib/navigation/";	// Path from root to header.js
	//var g_LogOffURL = "http://athp.hp.com/portal/index.jsp?epi-content=LOGOUT"; // URL for logOff Page
	//var g_LogOnURL = "http://athp.hp.com/portal/index.jsp?epi-content=LOGIN"; // URL for logOn Page

	//var g_DevFeedBack = "http://sdswebapp1.sdd.hp.com/universalfeedback/default.asp?appname=athp_headerjs";
	//var g_ReleaseNotes = "release_notes.htm";
	var g_Build = "Build 21";

	var arrBreadCrumbMapItem = null;

	_HPEPInitGlobals();
	_HPEPInitHorizontalNav();
}
//==============================================================================
// Internal APIs
//==============================================================================

//==============================================================================
// Function: _HPEPInitHPMenu()
// Description: Initialize the hp menu object
// Inputs: None
// Return: None
//==============================================================================
function _HPEPInitHPMenu() {
}

//==============================================================================
// Function: _HPEPInitHPSearchMenu()
// Description: Initialize the Peoplefinder/Search object
// Inputs: None
// Return: None
//==============================================================================
function _HPEPInitHPSearchMenu() {
}

//==============================================================================
// Function: _HPEPInitGlobals()
// Description: Initialize the Global object
// Inputs: None
// Return: None
// Notes: sets up information wrt to banner and footer
//==============================================================================
function _HPEPInitGlobals() {
	goHPEP = new Array();
	goHPEP.enableNav1Menu = false;
	goHPEP.enableLeftNavMenu = false;
	goHPEP.menuDropDown = true;
	goHPEP.lockMenu = false;
	goHPEP.versionNumber = "@hp Portal Version 5.3.0";
	goHPEP.pageRevision = "";
	goHPEP.bannerName = "Smarter.<br>Faster.<br>Connected.";
	goHPEP.bannerDrawn = false;
	goHPEP.homePage = "http://www.janixworld.com/x5/";
	goHPEP.hpComPage = "http://www.hp.com";
	goHPEP.loginEnabled = false;
	goHPEP.loggedIn = _HPEPIsLoggedIn();
	goHPEP.enablePortalImage = false;

	if (location.protocol == "file:")
		{goHPEP.pageProtocol = "http://";}
	else
		{goHPEP.pageProtocol = location.protocol + "//";}

	goHPEP.libPath = goHPEP.pageProtocol + g_Host + g_Path;
	goHPEP.images = goHPEP.libPath + "images/";
	goHPEP.warningMsg = "";
	goHPEP.warningMsgGlobal = "";
	goHPEP.greetingMsg = "";

	document.write("<link rel='stylesheet' type='text/css' href='" + goHPEP.libPath + "css/header.css'>");


	goNav = new Array();
	goNav.breadCrumbLinkMenuID = ""
	goNav.breadCrumbMenuID = ""
	goNav.breadCrumbNav1 = "";
	goNav.breadCrumbNav2 = "";
	goNav.breadCrumbNav3 = "";
	goNav.breadCrumbLabel = "";
	goMenu = new Array();

//	document.write("<script language='javascript' src='" + goHPEP.libPath + "global.js'></script>");
//	document.write("<script language='javascript' src='" + goHPEP.libPath + "servername.js'></script>");
}

//==============================================================================
// Function: _HPEPInitHorizontalNav()
// Description: Initialize the horizontal navigation
// Inputs: None
// Return: None
// Notes: sets up object to display and organize top
//				navigation
//==============================================================================
function _HPEPInitHorizontalNav() {
	goNav.menuString1 = "<table border=0 cellpadding=0 cellspacing=0 width='100%'> " +
									"<tr>" +
										"<!--LD_MENU_TITLES-->" +
										"<td class='nav1Filler' width='100%'></td>" +
									"</tr>" +
								"</table>";

	goNav.menuString = "";
}

//==============================================================================
// Function: _HPEPInitLeftNav()
// Description: Initialize the Left Navigation
// Inputs: None
// Return: None
// Notes: sets up object to display and organize left
//				hand navigation
//==============================================================================
function _HPEPInitLeftNav() {
}

//==============================================================================
// Function: _HPEPGetCookieVal(iOffset)
// Description: returns the value of a cookie starting at a
//						specified offset
// Inputs: iOffset - The starting position to read the value
//							from the cookie string
// Return: Value of requested attribute
//==============================================================================
function _HPEPGetCookieVal(iOffset) {
	var iEnd = document.cookie.indexOf (";", iOffset);

	if (iEnd == -1) {
		iEnd = document.cookie.length;
	}
	return unescape(document.cookie.substring(iOffset, iEnd));
}

//==============================================================================
// Function: _HPEPGetCookie(sCookieName)
// Description: return the value of a cookie
// Inputs: sCookieName - name of cookie attribute
// Return: Value of requested attribute or NULL, if attribute
//				does not exist
//==============================================================================
function _HPEPGetCookie(sCookieName) {
	var sArg = sCookieName + "=";
	var iArgLen = sArg.length;
	var iCookieLen = document.cookie.length;
	var iCookieIndx = 0;
	var iCookie = null;

	while (iCookieIndx < iCookieLen) {
		iCookie = iCookieIndx + iArgLen;
		if (document.cookie.substring(iCookieIndx, iCookie) == sArg) {
			return _HPEPGetCookieVal(iCookie);
		}

		iCookieIndx = document.cookie.indexOf(" ", iCookieIndx) + 1;
		if (iCookieIndx == 0)
			break;
	}
	return null;
}

//==============================================================================
// Function: _HPEPIsLoggedIn()
// Description: Checks to see if a user is logged in
// Inputs: None
// Return: true if user is logged into the portal
//			  otherwise false
//==============================================================================
function _HPEPIsLoggedIn() {
}

//==============================================================================
// Function: _HPEPOpenWindow(sURL, sName)
// Description: Opens a new browser window with the requested
//						content
// Inputs: sURL - URL of the page you want displayed in the new
//						window
//			  sName - Name of the window
// Return: None
//==============================================================================
function _HPEPOpenWindow(sURL, sName) {
	var sLoc = "width=600,height=500,left=350,top=0";
	var sOpts;
	var oRemote;

	if (_HPEPOpenWindow.arguments.length > 2) {
		sLoc = _HPEPOpenWindow.arguments[2];
	}

	sOpts= sLoc + ",toolbar=0,location=0,directories=0,status=0,menubar=0,scrollbars=1,resizable=1";
	oRemote = window.open('','sName', sOpts);
	oRemote.location.href = sURL;
	if (!oRemote.opener) {
		oRemote.opener = self;
	}
}

//==============================================================================
// Function: _HPEPGoButton()
// Description: Submit appropriate form
// Inputs: None
// Return: None
// Notes: User has pressed GO button for site search or hp intranet
//==============================================================================
function _HPEPGoButton(sSearchType) {
}

//==============================================================================
// Function: _HPEPCreateMenu(sMenuID, sMenuDefObject, sMenuDisplay, sMenuURL, sTarget)
// Description: Internal Call - Create Top Level Menu (Level 1)
// Inputs: sMenuID - ID of menu to link 2nd level items
//			  sMenuDefObject - Menu Definition Object (goNav)
//			  sMenuDisplay - Title of menu item
//			  sMenuURL - link for the menu item
//			  sTarget - target location for document to be displayed
// Return: None
//==============================================================================
function _HPEPCreateMenu(sMenuID, sMenuDefObject, sMenuDisplay, sMenuURL, sTarget) {
	var obj = eval(sMenuDefObject);
	var sTag  = "<!--LD_MENU_TITLES-->";
	var sMenu = newLineChar;
	var sLinkMenuID = "AM_" + sMenuID;
	var sClassName;

	goHPEP.enableNav1Menu = true;

	// Find out if the menu matches the bread crumb.
	if (sMenuDisplay == goNav.breadCrumbNav1) {
		goNav.breadCrumbMenuID = sMenuID;
		goNav.breadCrumbLinkMenuID = sLinkMenuID;
		sClassName = "nav1Down";
	} else {
		if (sMenuDisplay == "Help") {
			sClassName = "nav1UpHelp";
		} else {
			sClassName = "nav1Up";
		}
	}

//	sMenu += "<td><div style='position:relative' onmouseout=\"_HPEPDelayHideMenu();\" " +
//				"onmouseover=\"_HPEPDoMenu(event, '" + sLinkMenuID + "', '" + sMenuID +
//				"');\"><table border=0 cellspacing=0 cellpadding=0 height=20><tr><td class='" +
//				sClassName + "' ID='" + sLinkMenuID + "' nowrap valign='middle'><a id='idLocalNav'";


	sMenu += "<td><div style='position:relative' ><table border=0 cellspacing=0 cellpadding=0 height=20><tr><td  class='" +
				sClassName + "' ID='" + sLinkMenuID + "' nowrap valign='middle'><a id='idLocalNav' onmouseout=\"_HPEPDelayHideMenu();\" " +
				"onmouseover=\"_HPEPDoMenu(event, '" + sLinkMenuID + "', '" + sMenuID +
				"');\"";

	if (sMenuURL != "") {
		sMenu += " target='" + sTarget + "'" + " href='" + sMenuURL + "'>";
	} else {
		sMenu += " style='cursor:default' href=\"javascript:void();\" onclick=\"window.event.returnValue=false;\">";
	}

	sMenu += "&nbsp;&nbsp;" + sMenuDisplay + "&nbsp;&nbsp;</a></td></tr></table></div></td>" +
			"<td><img src='" + goHPEP.images + "spacer.gif' height=20 width=2 border=0></td>" +
			sTag;

	obj.menuString1 = obj.menuString1.replace(sTag, sMenu);
}

//==============================================================================
// Function: _HPEPHideMenu
// Description: hide the dropdown menu
// Inputs: None
// Return: None
//==============================================================================
function _HPEPHideMenu() {
	var oBreadCrumbNav2Menu;


	// Check if we have a nav2 menu.
	if (oNav2Menu) {
		oBreadCrumbNav2Menu = document.getElementById(goNav.breadCrumbMenuID);

		// Check if this a vertical dropdown nav
		if (goHPEP.menuDropDown) {
			// It is, set the bread crum nav2 object to null.
			oBreadCrumbNav2Menu = null;
			if (ie4) {
				_HPEPShowElement("SELECT");
				_HPEPShowElement("OBJECT");
				_HPEPShowElement("IFRAME");
			}
		}

		if (oBreadCrumbNav2Menu == null) {
			oNav2Menu.thestyle.visibility = (ie4||ns6)? "hidden" : "hide";
			oNav2Menu.innerHTML = "";
		} else {
			oNav2Menu.innerHTML = oBreadCrumbNav2Menu.innerHTML;
		}


		// Reset the nav1 to up.
		if (oNav1Menu) {
			// Do not change the class setting if this matches the nav1 bread crumb.
			var oBreadCrumbNav1Menu = document.getElementById(goNav.breadCrumbLinkMenuID);

			if (oNav1Menu != oBreadCrumbNav1Menu) {
				if (oNav1Menu.innerText == "  Help  ")
					oNav1Menu.className = "nav1UpHelp";
				else
					oNav1Menu.className = "nav1Up";
			}
		}
	}
}

//==============================================================================
// Function: _HPEPContainsNS6
// Description: Determines if 1 element in contained in another
// Inputs: a - element
//         b - element
// Return: None
//==============================================================================
function _HPEPContainsNS6(a, b) {
	while (b.parentNode)
	{
		if ((b = b.parentNode) == a) {
			return true;
		}
	}
	return false;
}

//==============================================================================
// Function: _HPEPDynamicHide
// Description: Sets the delay for the hiding of the menu.
// Inputs: e - event
// Return: None
//==============================================================================
function _HPEPDynamicHide(e){
	if (ie4&&!oNav2Menu.contains(e.toElement))
		_HPEPDelayHideMenu();
	else if (ns6&&e.currentTarget!= e.relatedTarget&& !_HPEPContainsNS6(e.currentTarget, e.relatedTarget))
		_HPEPDelayHideMenu();

}

//==============================================================================
// Function: _HPEPDelayHideMenu
// Description: Sets the timeout to hide the menu.
// Inputs: None
// Return: None
//==============================================================================
function _HPEPDelayHideMenu(){
	if (ie4||ns6)
		delayhide=setTimeout("_HPEPHideMenu()",1500);
}

//==============================================================================
// Function: _HPEPClearHideMenuTimeout
// Description: Clears the timeout to hide the menu.
// Inputs: None
// Return: None
//==============================================================================
function _HPEPClearHideMenuTimeout(){
	if (window.delayhide)
		clearTimeout(delayhide);
}

//==============================================================================
// Function: _HPEPHighlightNav2Menu
// Description: Highlights a link within the nav2 menu.
// Inputs: e - event element
//         state - state of the element
// Return: None
//==============================================================================
function _HPEPHighlightNav2Menu(e, state){
	var source_el;

	if (document.all)
		source_el=event.srcElement;
	else if (document.getElementById)
		source_el=e.target;

	if (source_el.className=="nav2menuitem"){
		source_el.id=(state=="on")? "nav2Down" : "";
	}
	else{
		while(source_el.id!="popmenu"){
			source_el=document.getElementById? source_el.parentNode : source_el.parentElement;

			if (source_el.className=="nav2menuitem"){
				source_el.id=(state=="on")? "nav2Down" : "";
			}
		}
	}
}

//==============================================================================
// Function: _HPEPClickDoMenu(e, sMenuID)
// Description: Build 2nd level of Navigation (DropDown)
// Inputs: sMenuID - ID of menu
// Return: True if built correctly otherwise false
//==============================================================================
function _HPEPClickDoMenu(e, sLinkMenuID, sMenuID) {

	_HPEPDoMenu(e, sLinkMenuID, sMenuID, true);
	goHPEP.lockMenu = true;
}

//============================================================================
// Function: _HPEPDoMenu(e, sMenuID)
// Description: Build 2nd level of Navigation (DropDown)
// Inputs: sMenuID - ID of menu
// Return: True if built correctly otherwise false
//==============================================================================
function _HPEPDoMenu(e, sLinkMenuID, sMenuID) {
	var eventX;
	var eventY;
	var nav1Height = 20;

	var oMenu = document.getElementById(sMenuID);
	var oSelectedNav1Menu = document.getElementById(sLinkMenuID);
	var oBreadCrumbNav1Menu = document.getElementById(goNav.breadCrumbLinkMenuID);

	// Set the selected menu as down.
	//oSelectedNav1Menu.className = "nav1DownHover";
	oSelectedNav1Menu.className = "nav1Down";

	// Check if we have an old nav 1 menu.
	if (oNav1Menu) {
		// Make sure that it doesn't match the selected one.
		if (oNav1Menu != oSelectedNav1Menu) {
			// Do not change the class setting if this matches the nav1 bread crumb.
			if (oNav1Menu != oBreadCrumbNav1Menu) {
				// Change it to nav1up.
				if (oNav1Menu.innerText == "  Help  ")
					oNav1Menu.className = "nav1UpHelp";
				else
					oNav1Menu.className = "nav1Up";
			} else {
				oNav1Menu.className = "nav1Down";
			}
		}
	}


	// Now remember the menu we just set down.
	oNav1Menu = oSelectedNav1Menu;

	if (oMenu == null) {
		window.event.cancelBubble = true;
		//HG force the 2nd row to be blank without the delay associated with 2nd level
		oMenu = new Array();
		oMenu.innerHTML = "<table></table>";
//		return false;
	}

	if (!document.all&&!document.getElementById&&!document.layers)
		return;


	_HPEPClearHideMenuTimeout();


	oNav2Menu=ie4? document.all.popmenu : document.getElementById("popmenu");
	oNav2Menu.thestyle=oNav2Menu.style;
	oNav2Menu.innerHTML=oMenu.innerHTML;

	if (goHPEP.menuDropDown) {
		if (ie4) {
			_HPEPShowElement("SELECT");
			_HPEPShowElement("OBJECT");
			_HPEPShowElement("IFRAME");
		}

		oNav2Menu.contentwidth=oNav2Menu.offsetWidth;
		oNav2Menu.contentheight=oNav2Menu.offsetHeight;

		if (ie4) {
			eventX = event.clientX - event.offsetX - 2;
			eventY = (event.clientY + nav1Height) - event.offsetY - 1;
		} else if (ns6) {
			eventX = e.pageX - e.layerX;
			eventY = e.pageY - e.layerY + 21;
		}

		//Find out how close the mouse is to the corner of the window
		var rightedge=ie4? document.body.clientWidth-eventX : window.innerWidth-eventX;
		var bottomedge=ie4? document.body.clientHeight-eventY : window.innerHeight-eventY;

		//if the horizontal distance isn't enough to accomodate the width of the context menu
		if (rightedge < oNav2Menu.contentwidth) {
			//move the horizontal position of the menu to the left by it's width
			oNav2Menu.thestyle.left=ie4? document.body.scrollLeft+eventX+event.srcElement.offsetWidth-oNav2Menu.contentwidth : window.pageXOffset+eventX+e.currentTarget.offsetWidth-oNav2Menu.contentwidth;
		} else {
			//position the horizontal position of the menu where the mouse was clicked
			oNav2Menu.thestyle.left=ie4? document.body.scrollLeft+eventX : window.pageXOffset+eventX;
		}

		//same concept with the vertical position
		if (bottomedge < oNav2Menu.contentheight) {
			oNav2Menu.thestyle.top=ie4? document.body.scrollTop+eventY-oNav2Menu.contentheight : window.pageYOffset+eventY-oNav2Menu.contentheight;
		} else {
			oNav2Menu.thestyle.top=ie4? document.body.scrollTop+eventY : window.pageYOffset+eventY;
		}

		if (ie4) {
			_HPEPHideElement(oNav2Menu, "SELECT");
			_HPEPHideElement(oNav2Menu, "OBJECT");
			_HPEPHideElement(oNav2Menu, "IFRAME");
		}
	}

	if ((oNav2Menu.innerText == "") && (goHPEP.menuDropDown))
		oNav2Menu.thestyle.visibility = (ie4||ns6)? "hidden" : "hide";
	else
		oNav2Menu.thestyle.visibility="visible";

	return false;
}

//============================================================================
// Function: _HPEPHideElement(elmID)
// Description: Hide Elements on screen when displaying vertical dropdown
// Inputs: elmID - Element Type to hide
// Return:
//==============================================================================
function _HPEPHideElement(oNav2Menu, elmID) {
	var i=0, obj, objLeft, objTop, objParent;
	var iNavTop, iNavLeft;

	iNavTop = oNav2Menu.thestyle.pixelTop;
	iNavLeft = oNav2Menu.thestyle.pixelLeft;

	for (i = 0; i < document.all.tags(elmID).length; i++) {
		obj = document.all.tags(elmID)[i];
		if (!obj || !obj.offsetParent) {
			continue;
		}

		objLeft   = obj.offsetLeft;
		objTop    = obj.offsetTop;
		objParent = obj.offsetParent;
		while (objParent.tagName.toUpperCase() != "BODY") {
			objLeft  += objParent.offsetLeft;
			objTop   += objParent.offsetTop;
			objParent = objParent.offsetParent;
		}

		if ((objTop < (iNavTop + oNav2Menu.contentheight)) &&
		    (objLeft > iNavLeft) &&
		    (objLeft < (iNavLeft + oNav2Menu.contentwidth))) {
			obj.style.visibility = (ie4||ns6)? "hidden" : "hide";
			obj.style.HPEPHide = true;
		} else if ((objTop < (iNavTop + oNav2Menu.contentheight)) &&
		    ((objLeft + obj.clientWidth) > iNavLeft) &&
		    ((objLeft + obj.clientWidth) < (iNavLeft + oNav2Menu.contentwidth))) {
			obj.style.visibility = (ie4||ns6)? "hidden" : "hide";
			obj.style.HPEPHide = true;
		} else if (objTop > (iNavTop + oNav2Menu.contentheight)) {
			return ;
		}
	}
}


//============================================================================
// Function: _HPEPShowElement(elmID)
// Description: Show Elements on screen when removing the vertical dropdown
// Inputs: elmID - Element Type to show
// Return:
//==============================================================================
function _HPEPShowElement(elmID) {
	var i=0, obj;

	for (i = 0; i < document.all.tags(elmID).length; i++) {
		obj = document.all.tags(elmID)[i];
		if (!obj)
			continue;

		if (obj.style.HPEPHide) {
			obj.style.visibility = "visible";
			obj.style.HPEPHide = false;
		}
	}
}


//==============================================================================
// Function: _HPEPAddMenuItem(sMenuID, sMenuDefObject, sSubMenu, sSubMenuURL, sTarget)
// Description: Associates this "sub-menu" item to the specified menu item for
//					 the top horizontal navigation
// Inputs:	sMenuID - ID of menu item
//				sMenuDefObject - Object to add item to (global top nav obj - goNav)
//				sSubMenu - Label
//				sSubMenuURL - URL
//				sTarget - target location for document to be displayed
// Return:	None
//==============================================================================
function _HPEPAddMenuItem(sMenuID, sMenuDefObject, sSubMenu, sSubMenuURL, sTarget) {
	var obj = eval(sMenuDefObject);
	var sMenuString = obj.menuString;
	var sURL = sSubMenuURL;
	var sMenuType = "idLocalNav";
	var sLookUpTag  = "<!--" + sMenuID + "-->";
	var iPos = sMenuString.indexOf(sLookUpTag);
	var sTemp = newLineChar;

	if (iPos <= 0) {
		sMenuString += newLineChar +
				newLineChar +
				"<div id='" + sMenuID + "' " +	" style='display:none;'>";
	}

	if (sURL) {
		sTemp += "<div class='nav2menuitem'><a id=\"" + sMenuType + "\" target=\"" + sTarget + "\" ";

		if (sMenuType == "idSearchMenu")
			sTemp += " onclick=\"" + sURL + "\" ";
		else
			sTemp += " href='" + sURL + "' ";

		sTemp += ">" + sSubMenu + "</a></div>";
	} else {
		sTemp += "<label>" + sSubMenu + "</label>";
	}

	sTemp += sLookUpTag;

	if (iPos <= 0) {
		sMenuString += sTemp + "</div>";
	}
	else {
		sMenuString = sMenuString.replace(sLookUpTag, sTemp);
	}

	if (sMenuType == "idLocalNav")
		goNav.menuString = sMenuString;
	else
		goHPMenu.menuString = sMenuString;
}

//==============================================================================
// Function: _HPEPAddHorMenuItem(sMenuID, sMenuDefObject, sSubMenu, sSubMenuURL, sTarget)
// Description: Associates this "sub-menu" item to the specified menu item for
//					 the top horizontal navigation
// Inputs:	sMenuID - ID of menu item
//				sMenuDefObject - Object to add item to (global top nav obj - goNav)
//				sSubMenu - Label
//				sSubMenuURL - URL
//				sTarget - target location for document to be displayed
// Return:	None
// Notes: Builds 2nd horizontal menu items
//==============================================================================
function _HPEPAddHorMenuItem(sMenuID, sMenuDefObject, sSubMenu, sSubMenuURL, sTarget) {
	var obj = eval(sMenuDefObject);
	var sMenuString = obj.menuString;
	var sURL = sSubMenuURL;
	var sMenuType = "idLocalNav";
	var sLookUpTag  = "<!--" + sMenuID + "-->";
	var iPos = sMenuString.indexOf(sLookUpTag);
	var sTemp = newLineChar;

	if (sURL) {
		if (iPos <= 0) {
			sMenuString += newLineChar +
					newLineChar +
					"<div id='" + sMenuID + "' " +	" style='display:none;'>" +
					"<table border=0 width='100%' cellspacing=0 cellpadding=0><tr>";
		}

		// Check if this is bread crumb nav2.
		if ((sMenuID == goNav.breadCrumbMenuID) & (sSubMenu == goNav.breadCrumbNav2)){
			sTemp += "<td><div class='nav2menuitem' id='nav2Down'><table border=0 cellpadding=0 cellspacing=0><tr><td nowrap height=20><a id='" + sMenuType + "' target=\"" + sTarget + "\" ";
		} else {
			sTemp += "<td><div class='nav2menuitem'><table border=0 cellpadding=0 cellspacing=0><tr><td nowrap height=20><a id='" + sMenuType + "' target=\"" + sTarget + "\" ";
		}

		if (sMenuType == "idSearchMenu")
			sTemp += " onclick=\"" + sURL + "\" ";
		else
			sTemp += " href='" + sURL + "' ";

		sTemp += ">&nbsp;&nbsp;" + sSubMenu + "&nbsp;&nbsp;</a></td></tr></table></div></td>" +
		"<td bgcolor='#FFFFFF'><img src='" + goHPEP.images + "spacer.gif' height=0 width=2 border=0></td>" +
		sLookUpTag;

		if (iPos <= 0) {
			sMenuString += sTemp + "<td width='100%'>&nbsp;</td></tr></table></div>";
		}
		else {
			sMenuString = sMenuString.replace(sLookUpTag, sTemp);
		}

		if (sMenuType == "idLocalNav") {
			goNav.menuString = sMenuString;
		} else {
			goHPMenu.menuString = sMenuString;
		}
	}
}

//==============================================================================
// Function: _HPEPAddMenuSeparator(sMenuID, sMenuDefObject)
// Description: Associates the separator of this "sub-menu" item to the specified
//					 menu item for the top horizontal navigation
// Inputs: sMenuID - ID of Menu to place separator in
//			  sMenuDefObject - Object to add item to (goNav)
// Return: None
//==============================================================================
function _HPEPAddMenuSeparator(sMenuID, sMenuDefObject) {
	var obj = eval(sMenuDefObject);
	var sLookUpTag = "<!--" + sMenuID + "-->";
	var sMenuString, sTemp;

	sMenuString = obj.menuString

	var iPos = sMenuString.indexOf(sLookUpTag);
	if (iPos > 0) {
		sTemp = newLineChar +
					"<div style='margin-top:4px;margin-bottom:4px;width:100%;height:1px;background-color:white'><img src='" + goHPEP.images + "spacer.gif' width=1 height=1></div>" + sLookUpTag;

		sMenuString = sMenuString.replace(sLookUpTag, sTemp);
	}

	obj.menuString = sMenuString;
}

//==============================================================================
// Function: _HPEPAddNavLink(sSubMenu, sSubMenuURL, sTarget)
// Description: Add NavLinks to the Left Nav Menu (Level 3)
// Inputs: sSubMenu - Left hand menu name
//			  sSubMenuURL - URL of menu item
//			  Optional sTarget - target location for document to be displayed
// Return: None
//==============================================================================
function _HPEPAddNavLink(sSubMenu, sSubMenuURL, sTarget) {
}

//==============================================================================
// Function: _HPEPCreateNavExpandingList(sMenuID, sSubMenu, sSubMenuURL, bDefOpen, sTarget)
// Description: Creates a menu item with the ability to expand.
// Inputs: sMenuID - Unique ID for Menu item
//			  sSubMenu - String to display for menu Item
//			  sSubMenuURL - URL for the link
//				bDefOpen - Flags whether to open or close the list. True - Open List
// Return: None
//==============================================================================
function _HPEPCreateNavExpandingList(sMenuID, sSubMenu, sSubMenuURL, bDefOpen, sTarget) {
}

//==============================================================================
// Function: _HPEPAddNavExpandingListItem(sMenuID, sSubMenu, sSubMenuURL, sTarget, bSubItem)
// Description: Actual association of sub-menu item to an existing left nav menu item (level 4)
// Inputs: sMenuID - Unique ID for Menu item
//			  sSubMenu - String to display for menu Item
//			  sSubMenuURL - URL for the link
//			  sTarget - location to display the
// Return: None
//==============================================================================
function _HPEPAddNavExpandingListItem(sMenuID, sSubMenu, sSubMenuURL, sTarget) {
}

//==============================================================================
// Function: _HPEPOpenNavExpandingLists()
// Description: Expand Left Nav items
// Inputs: None
// Return: None
//==============================================================================
function _HPEPOpenNavExpandingLists() {
}

//==============================================================================
// Function: _HPEPAddNavImageLink(sSubImage, sSubMenuURL, sSubMenu, sTarget)
// Description: Actual creation of a link that is preceeded by an image
// Inputs: sSubImage - URL of image
//			  sSubMenuURL - URL for link
//			  sSubMenu - Label for alt tag
//			  sTarget - Location to display document
// Return: None
//==============================================================================
function _HPEPAddNavImageLink(sSubImage, sSubMenuURL, sSubMenu, sTarget) {
}

//==============================================================================
// Function: _HPEPAddNavImage(sSubImage, sSubMenuURL, sSubMenu, sTarget)
// Description: Creates a centered image in the local left vertical
// Inputs: sSubImage - Image URL
//			  sSubMenuURL - URL for link
//			  sSubMenu - Label for alt tag.
//			  sTarget - location to display document
// Return: None
//==============================================================================
function _HPEPAddNavImage(sSubImage, sSubMenuURL, sSubMenu, sTarget) {
}

//==============================================================================
// Function: _HPEPCreateFooter()
// Description: Draws the actual footer
// Inputs: None
// Return: None
//==============================================================================
function _HPEPCreateFooter() {
}

//==============================================================================
// Function: _HPEPToggleNavExpandingList(oButton, oItems)
// Description: Open/Closes the specified expanding list from the left nav.
// Inputs: oButton - handle to the image
//			  oItems - handle to area that is to be hidden/displayed.
// Return: None
// Notes: returns false (not sure why)
//==============================================================================
function _HPEPToggleNavExpandingList(sButton, sItem) {
}


//==============================================================================
// Function: _HPEPBuildMenus()
// Description: Builds HTML for all menus
// Inputs: None
// Return: None
//==============================================================================
function _HPEPBuildMenus() {
	var aMenu;

	for(var i=0; i < goMenu.length; i++) {
		aMenu = goMenu[i];
		switch (aMenu[0]) {
			case "Level1":
				_HPEPCreateMenu(aMenu[1], aMenu[2], aMenu[3], aMenu[4], aMenu[5]);
				break;

			case "Level2":
				if (goHPEP.menuDropDown)
					_HPEPAddMenuItem(aMenu[1], aMenu[2], aMenu[3], aMenu[4], aMenu[5]);
				else
					_HPEPAddHorMenuItem(aMenu[1], aMenu[2], aMenu[3], aMenu[4], aMenu[5]);
				break;

			case "Separator":
				if (goHPEP.menuDropDown)
					_HPEPAddMenuSeparator(aMenu[1], aMenu[2]);
				break;

			case "Level3 - AddNavLink":
				_HPEPAddNavLink(aMenu[1], aMenu[2], aMenu[3]);
				break;

			case "Level3 - AddNavSpacer":
				goNav.leftNavString += "<tr><td colspan=2 height=" + aMenu[1] + ">&nbsp;</td></tr>";
				break;

			case "Level3 - AddNavImage":
				_HPEPAddNavImage(aMenu[1], aMenu[2], aMenu[3], aMenu[4]);
				break;

			case "Level3 - addNavExpandingListSubItem":
				_HPEPAddNavExpandingListItem(aMenu[1], aMenu[2], aMenu[3], aMenu[4], aMenu[5]);
				break;

			case "Level3 - addNavExpandingListItem":
				_HPEPAddNavExpandingListItem(aMenu[1], aMenu[2], aMenu[3], aMenu[4]);
				break;

			case "Level3 - addNavLabel":
				goNav.leftNavString +=
					"<tr><td valign=top width=100% colspan=2>" +
					"<div class=clsTocHead style='cursor:default;color:" + goNav.foreground + ";margin-left:2px;margin-right:2px;font-family:Verdana;font-size:10px;font-weight:bold;'>" + aMenu[1] + "</div>" +
					"</td></tr>";
				break;

			case "Level3 - addNavImageLink":
				_HPEPAddNavImageLink(aMenu[1], aMenu[2], aMenu[3], aMenu[4]);
				break;

			case "Level3 - addNavSeparator":
				goNav.leftNavString += newLineChar + "<tr><td colspan=2><hr style='margin-left:1px;margin-right:1px;width:100%;height:2px;border-style:outset;border-right-width:0px;border-left-width:0px;background-color:" + goNav.hiliteBackground + ";color:" + goNav.foreground + "'></td></tr>";
				break;

			case "Level3 - createNavExpandingList":
				_HPEPCreateNavExpandingList(aMenu[1], aMenu[2], aMenu[3], aMenu[4], aMenu[5]);
				break;
		}
	}
	//clear out the array
	goMenu = new Array();
}

//==============================================================================
// Function: _HPEPDrawHorizontalNavigation()
// Description: Draw Top Level Menu (Level 1)
// Inputs: None
// Return: None
//==============================================================================
function _HPEPDrawHorizontalNavigation() {
	var sHTML;


	sHTML = goNav.menuString1;

	if (goHPEP.menuDropDown) {
		sHTML += "<div id='popmenu' class='nav2Skin' onMouseover=\"_HPEPClearHideMenuTimeout();_HPEPHighlightNav2Menu(event,'on');\" onMouseout=\"_HPEPHighlightNav2Menu(event,'off');_HPEPDynamicHide(event);\"></div>" +
				"<table width='100%' border=0 cellspacing=0 cellpadding=0><tr><td width=5><img src='" + goHPEP.images + "spacer.gif' height=10 width=5 border=0></td><td class='greetingMsg' align='right'>" + goNav.breadCrumbLabel + "</td><td width=5><img src='" + goHPEP.images + "spacer.gif' height=10 width=5 border=0></td></tr></table>" + goNav.menuString;
	} else {
		sHTML += "<table width='100%' cellspacing=0 cellpadding=0 border=0>" +
				"<tr>" +
					"<td><img src='" + goHPEP.images + "spacer.gif' height=21 width=5 border=0></td>" +
					"<td width='100%'><div id='popmenu' class='hNav2Skin' onMouseover=\"_HPEPClearHideMenuTimeout();_HPEPHighlightNav2Menu(event,'on');\" onMouseout=\"_HPEPHighlightNav2Menu(event,'off');_HPEPDynamicHide(event);\"></div></td>" +
					"<td><img src='" + goHPEP.images + "spacer.gif' height=21 width=5 border=0></td>" +
				"</tr>" +
				"</table>" +
				"<table width='100%' border=0 cellspacing=0 cellpadding=0><tr><td width=5><img src='" + goHPEP.images + "spacer.gif' height=10 width=5 border=0></td><td width=5><img src='" + goHPEP.images + "spacer.gif' height=10 width=5 border=0></td></tr></table>" + goNav.menuString;
	}

	document.write(sHTML);

	// Check if we have to draw the bread crumb.
	if (!goHPEP.menuDropDown) {
		var oBreadCrumbNav2Menu = document.getElementById(goNav.breadCrumbMenuID);

		if (oBreadCrumbNav2Menu) {
			oNav2Menu=ie4? document.all.popmenu : document.getElementById("popmenu");
			oNav2Menu.thestyle=oNav2Menu.style;
			oNav2Menu.innerHTML=oBreadCrumbNav2Menu.innerHTML;
			oNav2Menu.thestyle.visibility="visible";
		}
	}

	goHPEP.bannerDrawn = true;
}

//==============================================================================
// Function: _HPEPDrawHeader()
// Description: Displays the Banner
// Inputs: None
// Return: None
//==============================================================================
function _HPEPDrawHeader() {
}


//==============================================================================
// Function: _HPEPSymbolClick()
// Description: Back door to see what version and server the banner came from
// Inputs: e - The event that caused this routine to execute
// Return: None
//==============================================================================
function _HPEPSymbolClick(e) {
}

//==============================================================================
// Function: _HPEPImageClick()
// Description: Back door to display the header info
// Inputs: none
// Return: None
//==============================================================================
function _HPEPImageClick() {
}

//==============================================================================
// Function: _HPEPDrawMessages()
// Description: Displays alert\greeting message
// Inputs: None
// Return: None
//==============================================================================
function _HPEPDrawMessages() {
}

//==============================================================================
// Function: _HPEPSetBreadCrumbMappedItem()
// Description: Sets the bread crumb for the page that is displayed.
// Inputs: None
// Return: None
//==============================================================================
function _HPEPSetBreadCrumbMappedItem() {
	var sSubMenuURL;
	var nIndex;
	var nLength;
	var bFound = false;
	var arrBreadCrumbItem;

	// Check if the bread crumb has not been set and we have a bread crumb map.
	if ((goNav.breadCrumbNav1 == "") &  (arrBreadCrumbMapItem != null)) {
		// We have a mapped bread crumb, so find out if the URL matches any of the crumbs.
		nLength = arrBreadCrumbMapItem.length;

		for(nIndex = 0; nIndex < nLength; nIndex++) {
			arrBreadCrumbItem = arrBreadCrumbMapItem[nIndex];
			sSubMenuURL = arrBreadCrumbItem[0];

			// Check if the URL matches.
			if (unescape(location.href) == sSubMenuURL || unescape(location.pathname) == sSubMenuURL) {
				bFound = true;
				break;
			}
		}
	}

	// If we found the bread crumb, set the bread crumb page variables.
	if (bFound) {
		nLength = arrBreadCrumbItem.length;

		for (nIndex = 1; nIndex < nLength; nIndex++) {
			if (nIndex == 1) {
				goNav.breadCrumbNav1 = arrBreadCrumbItem[nIndex];
				goNav.breadCrumbLabel = goNav.breadCrumbNav1;
			} else {
				goNav.breadCrumbLabel += " > " + arrBreadCrumbItem[nIndex];
			}

			if (nIndex == 2) {
				goNav.breadCrumbNav2 = arrBreadCrumbItem[nIndex];
			}
		}
	}
}

//==============================================================================
// Public APIs
//==============================================================================

//==============================================================================
// Function: setBreadCrumbs()
// Description: Creates a horizontal space with respect to the given size in the
//					 local left vertical navigation.
// Inputs: (navigation arguments, i.e. sNav1, sNav2, sNav3, etc...)
// Return: None
//==============================================================================
function setBreadCrumbs() {
}

//==============================================================================
// Function: setTargetFrame(sFrame)
// Description: Sets the target frame for the feedback and support footers.
// Inputs: sFrame - The target frame to set.
// Return: None
//==============================================================================
function setTargetFrame(sFrame) {
}

//==============================================================================
// Function: setLocalSupportPage(sURL)
// Description: Set URL to SP's local support process
// Inputs: sURL - URL of local support process
// Return: None
//==============================================================================
function setLocalSupportPage(sURL) {
}

//==============================================================================
// Function: setFooterFeedbackPage(sURL)
// Description: Set URL to Feed Back page
// Inputs: sURL - URL to feedback page
// Return: None
//==============================================================================
function setFooterFeedbackPage(sURL) {
}

//==============================================================================
// Function: setFooterHelpPage(sURL)
// Description: Set URL to SP's help page
//==============================================================================
function setFooterHelpPage(sURL) {
}

//==============================================================================
// Function: setPageConfidential()
// Description: Display the confidential level
// Inputs: None
// Return: None
//==============================================================================
function setPageConfidential() {
}

//==============================================================================
// Function: setPagePublic()
// Description: Display the confidential level
// Inputs: None
// Return: None
//==============================================================================
function setPagePublic() {
	goHPEP.securityLabel = "HP Public";
}

//==============================================================================
// Function: drawFooter()
// Description: Display the footer
// Inputs: None
// Return: None
//==============================================================================
function drawFooter() {
}

//==============================================================================
// Function: drawHPFooter()
// Description: Display the footer
// Inputs: None
// Return: None
// Notes:  Kept to prevent existing sites from breaking
//==============================================================================
function drawHPFooter() {
}

//==============================================================================
// Function: drawSeparator(iHeight, sColor)
// Description: Builds a table to draw a horizontal line of specified height and
//					color
// Inputs: iHeight - Height to make the separator.
//			  sColor - Color to make the separator.
// Return: None
//==============================================================================
function drawSeparator(iHeight, sColor) {
}

//==============================================================================
// Function: setVersionNumber(sVersionNumber)
// Description: Sets the version Number
// Inputs: sVersionNumber - Version Number to set to.
// Return: None
//==============================================================================
function setVersionNumber(sVersionNumber) {
}

//==============================================================================
// Function: setPortalVersionNumber(sVersionNumber)
// Description: Sets the portal version Number
// Inputs: sVersionNumber - Version Number to set to.
// Return: None
//==============================================================================
function setPortalVersionNumber(sVersionNumber) {
}

//==============================================================================
// Function: addNavSpacer( iHeight )
// Description: Creates a horizontal space with respect to the given size in the
//					 local left vertical navigation.
// Inputs: iheight - size of spacer
// Return: None
//==============================================================================
function addNavSpacer( iHeight ) {
}

//==============================================================================
// Function:	addNavImage(sSubImage, sSubMenuURL, sSubMenu)
// Description: Creates a centered image in the local left vertical navigation
//					 which serves as a link.
// Inputs: sSubImage - URL for Image
//			  sSubMenuURL - URL for link
//			  sSubMenu - Label for alt tag
//			  Optional sTarget - target location for document
// Return: None
//==============================================================================
function addNavImage(sSubImage, sSubMenuURL, sSubMenu) {
}

//==============================================================================
// Function: addNavExpandingListSubItem(sMenuID, sSubMenu, sSubMenuURL)
// Description: Add a SubItem to the left nav sub-item
// Inputs: None
// Return: None
// Notes: This may already be deprecated
//==============================================================================
function addNavExpandingListSubItem(sMenuID, sSubMenu, sSubMenuURL) {
}

//==============================================================================
// Function: addNavLabel(sSubMenu)
// Description: Add a label to the Left Nav menu
// Inputs: sSubMenu - text to display
// Return: None
//==============================================================================
function addNavLabel(sSubMenu) {
}

//==============================================================================
// Function: addNavImageLink(sSubImage, sSubMenuURL, sSubMenu)
// Description: Create a link that is preceeded by an image
// Inputs: sSubImage - URL of image
//			  sSubMenuURL - URL for link
//			  sSubMenu - Label for alt tag
// Return: None
//==============================================================================
function addNavImageLink(sSubImage, sSubMenuURL, sSubMenu) {
}

//==============================================================================
// Function: drawLeftNavigation()
// Description: Draw the left hand navigation
// Inputs: None
// Return: None
//==============================================================================
function drawLeftNavigation() {
}

//==============================================================================
// Function: addNavExpandingListItem(sMenuID, sSubMenu, sSubMenuURL)
// Description: Add a sub-menu item to an existing left nav menu item (level 4)
// Inputs: sMenuID - Unique ID for Menu item
//			  sSubMenu - String to display for menu Item
//			  sSubMenuURL - URL for the link
//			  Optional sTarget - location to place document
// Return: None
//==============================================================================
function addNavExpandingListItem(sMenuID, sSubMenu, sSubMenuURL) {
}

//==============================================================================
// Function: addNavSeparator
// Description: Adds a horizontal separator to the left nav
// Inputs: None
// Return: None
//==============================================================================
function addNavSeparator() {
}

//==============================================================================
// Function: createNavExpandingList(sMenuID, sMenuDisplay, sMenuURL, bDefOpen, sTarget)
// Description: Creates a menu item with the ability to expand.
// Inputs: sMenuID - Unique ID for Menu item
//			  sMenuDisplay - String to display for menu Item
//			  sMenuURL - URL for the link
//			  bDefOpen - Flags whether to open or close the list. True - Open List
//			  sTarget - Optional, specifies where to open the new URL
// Return: None
//==============================================================================
function createNavExpandingList(sMenuID, sMenuDisplay, sMenuURL, bDefOpen) {
}

//==============================================================================
// Function: setWarningMessage(sMsg)
// Description: Sets the warning message to be displayed and enables msg display
// Inputs: sMsg - Alert message to display
// Return: None
//==============================================================================
function setWarningMessage(sMsg) {
}

//==============================================================================
// Function: setGlobalWarningMessage(sMsg)
// Description: Sets the warning message to be displayed and enables msg display
// Inputs: sMsg - Alert message to display
// Return: None
//==============================================================================
function setGlobalWarningMessage(sMsg) {
}

//==============================================================================
// Function: setGreetingMessage(sMsg)
// Description: Sets the greeting message to be displayed and enables msg display
// Inputs: sMsg - Greeting message to display
// Return: None
//==============================================================================
function setGreetingMessage(sMsg) {
}

//==============================================================================
// Function: addNavLink(sSubMenu, sSubMenuURL)
// Description: Add NavLinks to the Left Nav Menu (Level 3)
// Inputs: sSubMenu - Left hand menu name
//			  sSubMenuURL - URL of menu item
//			  Optional sTarget - target location for document to be displayed
// Return: None
//==============================================================================
function addNavLink(sSubMenu, sSubMenuURL) {
}

//==============================================================================
// Function: addMenuSeparator(sMenuID)
// Description: Adds a separator to the sub-menu item under the specified menu
//					 item found in the top horizontal navigation.
// Inputs: sMenuID - ID of Menu to place separator in
// Return: None
//==============================================================================
function addMenuSeparator(sMenuID) {
}

//==============================================================================
// Function: addMenuItem
// Description: Adds a sub-menu item under the specified menu item found in the
//					 top horizontal navigation.
// Inputs: sMenuID - ID of menu item
//			  sSubMenu - Label for Sub-Menu item
//			  sSubMenuURL - URL associated with the sub-menu item
//			  Optional sTarget - target location for document to be displayed
// Return:		None
//==============================================================================
function addMenuItem(sMenuID, sSubMenu, sSubMenuURL) {
	var sTarget = "_top"; // Target of link.
	var aMenu = new Array(6);

	if (addMenuItem.arguments.length > 3) {
		sTarget = addMenuItem.arguments[3];
	}

	aMenu[0] = "Level2";
	aMenu[1] = "LD_" + sMenuID + "_MENU";
	aMenu[2] = 'goNav';
	aMenu[3] = sSubMenu;
	aMenu[4] = sSubMenuURL;
	aMenu[5] = sTarget;

	goMenu.push(aMenu);

	/*
	if (goHPEP.menuDropDown)
		_HPEPAddMenuItem("LD_" + sMenuID + "_MENU", "goNav", sSubMenu, sSubMenuURL, sTarget);
	else
		_HPEPAddHorMenuItem("LD_" + sMenuID + "_MENU", "goNav", sSubMenu, sSubMenuURL, sTarget);
	*/
}

//==============================================================================
// Function: addBreadCrumbMapItem()
// Description: Creates a mapping of all the bread crumb items.
// Inputs: (navigation arguments, i.e. sURL, sNav1, sNav2, sNav3, etc...)
// Return: None
//==============================================================================
function addBreadCrumbMapItem() {
	var nIndex;
	var nLength = addBreadCrumbMapItem.arguments.length;
	var arrItem = new Array();

	// Check if we have any thing already, if not create one.
	if (arrBreadCrumbMapItem == null) {
		arrBreadCrumbMapItem = new Array();
	}

	// Collect all the argument values.
	for (nIndex = 0; nIndex < nLength; nIndex++) {
		arrItem[nIndex] = addBreadCrumbMapItem.arguments[nIndex];
	}

	// Get the end of the array.
	nIndex = arrBreadCrumbMapItem.length;

	// Add the crumb item to the list.
	arrBreadCrumbMapItem[nIndex] = arrItem;
}

//==============================================================================
// Function: drawHeader()
// Description: Draw the Banner
// Inputs: None
// Return: None
//==============================================================================
function drawHeader() {

	if (goHPEP.bannerDrawn)
		return;

	// Set the bread crumb
	//_HPEPSetBreadCrumbMappedItem();

	// Draw the banner
	//_HPEPDrawHeader();

	// Draw the Alert Messages and Greeting
	//_HPEPDrawMessages();

	// Build the menus
	_HPEPBuildMenus();

	if ((ToolBar_Supported) && (goHPEP.enableNav1Menu))
		_HPEPDrawHorizontalNavigation();

}

//==============================================================================
// Function: displayLogin(Optional sURL)
// Description: Displays the login button in the banner.
// Inputs:	Optional sURL - site protected URL
// Return: None
// Notes: Default is not to display the login button
//	   This is used primarily by the @hp portal, can be used
//		by SP's if they use same SM instance as portal to allow
//		login to their site
//==============================================================================
function displayLogin(sURL) {
}

//==============================================================================
// Function: createMenu(sMenuID, sMenuDisplay)
// Description: Create Top Level Menu (Level 1)
// Inputs: sMenuID - ID of menu to link 2nd level items
//			  sMenuDisplay - Title to display on the menubar
//			  Optional sMenuURL - If menu item does not
//					contain submenu then URL to go to
// Return: None
//==============================================================================
function createMenu(sMenuID, sMenuDisplay) {
	var sTarget = "_top";	// Target for link
	var sMenuURL = "";	// URL to point to
	var aMenu = new Array(6);

	goHPEP.enableNav1Menu = true;

	if (createMenu.arguments.length > 2)
		sMenuURL = createMenu.arguments[2];

	if (createMenu.arguments.length > 3)
		sTarget = createMenu.arguments[3];

	aMenu[0] = "Level1";
	aMenu[1] = "LD_" + sMenuID + "_MENU";
	aMenu[2] = 'goNav';
	aMenu[3] = sMenuDisplay;
	aMenu[4] = sMenuURL;
	aMenu[5] = sTarget;
	//_HPEPCreateMenu("LD_" + sMenuID + "_MENU", 'goNav', sMenuDisplay, sMenuURL, sTarget);
	goMenu.push(aMenu);
}

//==============================================================================
// Function: setHorizontalNav()
// Description: Tells system that we will be using 2
//					 horizontal navigations
// Inputs: None
// Return: None
// Notes: defaults set to drop down navigation, cannot be
// jmh change for menu style changed if user has already made a call to add
//			 menu items
//==============================================================================
function setHorizontalNav() {
	//var sDropDownNav = _HPEPGetCookie("DropDownNav")

	//if (sDropDownNav == "true")
	//	return false;

	goHPEP.menuDropDown = true;
}

//==============================================================================
// Function: setBanner(sBanner)
// Description: Set Banner Name
// Inputs: sBanner - Title to display in the banner
// Return: None
//==============================================================================
function setBanner(sBanner) {
}

//==============================================================================
// Function: setportalImage()
// Description: Loads the portal image into the banner
// Inputs: None
// Return: None
//==============================================================================
function setPortalImage() {
}

//==============================================================================
// Function: setSiteSearch(sSID)
// Description: Set Site Search
// Inputs: sSID - Search ID as defined by Site Search tool
//			  Optional sCaption - Label for Site Search
// Return: None
//==============================================================================
function setSiteSearch(sSID) {
}

//==============================================================================
// Function: getCurrentDate()
// Description: Gets the current date from the users pc
// Inputs: None
// Return: None
//==============================================================================
function getCurrentDate() {
var day;
var now;

	now = new Date();
   day = now.getDay();
   var dayname;
   if (day == 0) dayname = "Sunday";
   if (day == 1) dayname = "Monday";
   if (day == 2) dayname = "Tuesday";
   if (day == 3) dayname = "Wednesday";
   if (day == 4) dayname = "Thursday";
   if (day == 5) dayname = "Friday";
   if (day == 6) dayname = "Saturday";

   var month
   month = now.getMonth();
	var monthname;
   if (month == 0) monthname = "January";
   if (month == 1) monthname = "February";
	if (month == 3) monthname = "April";
   if (month == 4) monthname = "May";
   if (month == 5) monthname = "June";
   if (month == 6) monthname = "July";
   if (month == 7) monthname = "August";
	if (month == 8) monthname = "September";
   if (month == 9) monthname = "October";
   if (month == 10) monthname = "November";
   if (month == 11) monthname = "December";

   date = now.getDate();
   year = now.getYear();
   if (year < 1000)
		year += 1900;

	//document.write(dayname + ", " + monthname + " " + date + ", " + year);
	//return (dayname + ", " + monthname + " " + date + ", " + year);
	return (monthname + " " + date + ", " + year);
}

//==============================================================================
// Function: displayPageRevision()
// Description: Displays the last modified date in the footer after version number
// Inputs: None
// Return: None
//==============================================================================
function displayPageRevision() {
}


//==============================================================================
// DEPRECATED PUBLIC APIs
//==============================================================================

//==============================================================================
// Function: setTheme
// Description: Allows you to set the theme for the page.
//==============================================================================
function setTheme(sThemeName) {return;}

//==============================================================================
// Function: setCSSUseR3
// Description: Sets the cssUseR3 variable to true, telling header.js to use
//					 Release 3 version of the stylesheet.
//==============================================================================
function setCSSUseR3() {return;}

//==============================================================================
// Function: setCSSDisabled()
// Description: Disable Cascading Stylesheets
//==============================================================================
function setCSSDisabled() {return;}

//==============================================================================
// Function: setSearchCollection(sCollection)
// Description: Set Search option are we performing
//==============================================================================
function setSearchCollection(sCollection) {return;}

//==============================================================================
// Function: drawWarningMsg()
// Description: Display alert message
//==============================================================================
function drawWarningMsg() {return;}

//==============================================================================
// Function: drawHorizontalNavigation()
// Description: Draw Top Level Menu (Level 1)
//==============================================================================
function drawHorizontalNavigation() {return;}

//==============================================================================
// Function: scriptInTable()
// Description: Tells header.js that you are running the script in a table
//==============================================================================
function scriptInTable() {return;}



