/**************************************************************************************************
function: menu.js
description: this file builds a dhtml menu
called by: Container C and container D style sheets
**************************************************************************************************/

var gmenu_BorderWidth=1;		// Border width
var gmenu_BorderBtwnElmnts=1;		// Border between elements 1 or 0
var gmenu_FontBold=1;			// Bold menu items 1 or 0
var gmenu_FontItalic=0;			// Italic menu items 1 or 0
var gmenu_MenuTextCentered='left';	// Item text position 'left', 'center' or 'right'
var gmenu_MenuCentered='left';		// Menu horizontal position 'left', 'center' or 'right'
var gmenu_MenuVerticalCentered='top';	// Menu vertical position 'top', 'middle','bottom' or static
var gmenu_ChildOverlap=0;		// horizontal overlap child/ parent
var gmenu_ChildVerticalOverlap=0;	// vertical overlap child/ parent
var gmenu_StartTop=-500;		// Menu offset x coordinate
var gmenu_StartLeft=0;			// Menu offset y coordinate
var gmenu_VerCorrect=0;			// Multiple frames y correction
var gmenu_HorCorrect=0;			// Multiple frames x correction
var gmenu_LeftPaddng=2;			// Left padding
var gmenu_TopPaddng=2;			// Top padding
var gmenu_DissapearDelay=1000;		// delay before menu folds in
var gmenu_TargetLoc='MenuPos';		// span id for relative positioning
var gmenu_MenuWrap=1;			// enables/ disables menu wrap 1 or 0
var gmenu_RightToLeft=0;		// enables/ disables right to left unfold 1 or 0
var gmenu_ShowArrow=1;			// Uses arrow gifs when 1
var gmenu_KeepHilite=1;			// Keep selected path highligthed
var gmenu_CellBuffer=0;			// used to calculate the buffer added to each TLM item (for horizontal menu)
var gmenu_PixOffset=0;			// used to calculate the left over offest (added to the first TLM item for horizontal menu)
var gmenu_ArrowBuffer = 0;		// used in the buffer calculation for arrow widths (for horizontal menu)
var gmenu_TotalOffest = 0;		// used to total the buffer and offsets (for horizontal menu)

//config xml stuff
var gmenu_MaxTLMChars=14;
var gmenu_MaxSubNavChars=25;
var gmenu_NavHeight=20;
var gmenu_SubNavHeight=20;
var gmenu_NavWidth=130;
var gmenu_SubNavWidth=225;
var gmenu_BorderSubWidth=1;		// Border between elements 1 or 0
var gmenu_BorderSubBtwnElmnts=1;	// Border between elements 1 or 0
var gmenu_SubNavLeftPaddng=2;
var gmenu_SubNavTopPaddng=2;		// Top padding

var PLAYSTATE_PLAYING	= 3;

var gmenu_DomYes=document.getElementById?1:0;
var gmenu_NavYes=agt.indexOf('mozilla')!=-1&&agt.indexOf('compatible')==-1?1:0;
var gmenu_NS6Yes=agt.indexOf('netscape6')!=-1?1:0;
var gmenu_ieVer=0;
if (navigator.appVersion.indexOf("MSIE")!=-1){
	var ieVer=navigator.appVersion.split("MSIE")
	gmenu_ieVer=parseFloat(ieVer[1])
}
var gmenu_Opr=agt.indexOf('opera')!=-1?1:0;
var gmenu_Pixel=gmenu_DomYes?"px":"";
var gmenu_FirstLevelLoc;
var gmenu_SecondLevelLoc;
var gmenu_DocumentLoc;
var gmenu_SecondWindowWidth;
var gmenu_SecondWindowHeight; 
var gmenu_FirstWindowWidth;
var gmenu_FirstWindowHeight;
var gmenu_MenuLevel=0;
var gmenu_Loaded=0;
var gmenu_Created=0; 
var gmenu_subnavEnabled;
var gmenu_InitializeFlag;
var gmenu_FirstCntnr=null;
var gmenu_CurrentOver=null;
var gmenu_CloseTimer=null;
var gmenu_Ztop=1000;
var gmenu_ShowFlag=0;
var gmenu_StaticPos=0;
var gmenu_Hide='hidden';
var gmenu_Show='visible';
var gmenu_Counter=0;

gmenu_IsText=='True'?gmenu_IsText=1:gmenu_IsText=0;

gmenu_MenuTextCentered=gmenu_MenuTextCentered==1||gmenu_MenuTextCentered=='center'?'center':gmenu_MenuTextCentered==0||gmenu_MenuTextCentered!='right'?'left':'right';

/**************************************************************************************************
function: BuildMenu
description: this is the main function that handles the menu build
inputs: none
outputs: none
called by: onload event
**************************************************************************************************/
function BuildMenu()
{

	try
	{
		
		if(!checkBrowser()){
			displayStaticNav();
			return;
		}

		gmenu_Created=0; 
		gmenu_Loaded=1;

		// if the frames exist set them, if not set these to the currect window
		gmenu_FirstLevelLoc=window;
		gmenu_SecondLevelLoc=window;
		gmenu_DocumentLoc=window;

		gmenu_FirstCntnr=CreateMenuStructure('Menu',gmenu_NoOffFirstLineMenus);
		
		if (gmenu_FirstLineHorizontal)
		{
			if(document.getElementById("menuPlaceHolder"))
			{
				document.getElementById("menuPlaceHolder").style.display= 'block';
			}
		}

		RePositionNav(0);

		window.onresize=RePositionNav;
		
		// initialize the menu with default values (mostly Hilite values of 0) 
		gmenu_InitializeFlag=1;
		InitiateMenu();
		gmenu_Created=1;
	}
	catch(e)
	{
		displayStaticNav();
	}
}
/**************************************************************************************************
function: CreateMenuStructure
description: creates the menu structure
inputs: MenuName, NumberOf
outputs: none
called by: CreateMenuStructure(), CreateMenuStructureAgain(), BuildMenu()
**************************************************************************************************/
function CreateMenuStructure(MenuName,NumberOf)
{
	try
	{
		gmenu_MenuLevel++;

		var i;
		var NoOffSubs;
		var MenuDiv;
		var Width=0;
		var Height=0;
		var MenuTitle=null;
		var MenuArray=MenuName+'1';
		var MenuWidth=eval(MenuArray+'[6]');
		var MenuHeight=eval(MenuArray+'[5]');
		var Location=gmenu_MenuLevel==1?gmenu_FirstLevelLoc:gmenu_SecondLevelLoc;

		// if the menu is horizontal the calculate the total width of the menu
		if (gmenu_MenuLevel==1&&gmenu_FirstLineHorizontal)
		{
			for(i=1;i<NumberOf+1;i++)
			{
				MenuArray=MenuName+eval(i);
				Width=eval(MenuArray+'[6]')?Width+eval(MenuArray+'[6]'):Width+MenuWidth;
			}

			Width=gmenu_BorderBtwnElmnts?Width+(NumberOf+1)*gmenu_BorderWidth:Width+2*gmenu_BorderWidth;Height=MenuHeight+2*gmenu_BorderWidth;
			//Width=gmenu_SiteWidth;
		}
		// if it's vertical calculate the total height
		else
		{		
			if (gmenu_MenuLevel==1)
			{
				for(i=1;i<NumberOf+1;i++)
				{
					MenuArray=MenuName+eval(i);
					Height=eval(MenuArray+'[5]')?Height+eval(MenuArray+'[5]'):Height+MenuHeight;
				}

				Height=gmenu_BorderBtwnElmnts?Height+(NumberOf+1)*gmenu_BorderWidth:Height+2*gmenu_BorderWidth;Width=MenuWidth+2*gmenu_BorderWidth;
			}
			else
			{
				for(i=1;i<NumberOf+1;i++)
				{
					MenuArray=MenuName+eval(i);
					Height=eval(MenuArray+'[5]')?Height+eval(MenuArray+'[5]'):Height+MenuHeight;
				}

				Height=gmenu_BorderSubBtwnElmnts?Height+(NumberOf+1)*gmenu_BorderSubWidth:Height+2*gmenu_BorderSubWidth;Width=MenuWidth+2*gmenu_BorderSubWidth;
			}
		}

		// create the div for the entire menu and add it to the DOM
		var MainMenuDiv=Location.document.createElement("div");
		MainMenuDiv.style.position='absolute';
		MainMenuDiv.style.visibility='visible';
		Location.document.body.appendChild(MainMenuDiv);

		// set the width, height, z-index, font and background colors for the top level
		MainMenuDiv.SetUp=CntnrSetUp;
		MainMenuDiv.SetUp(Width,Height,NumberOf);

		// creates all the divs for the menu and adds them to the main div
		for(i=1;i<NumberOf+1;i++)
		{
			MenuArray=MenuName+eval(i);
			NoOffSubs=eval(MenuArray+'[4]');
			Width=gmenu_MenuLevel==1&&gmenu_FirstLineHorizontal?eval(MenuArray+'[6]')?eval(MenuArray+'[6]'):MenuWidth:MenuWidth;
			Height=gmenu_MenuLevel==1&&gmenu_FirstLineHorizontal?MenuHeight:eval(MenuArray+'[5]')?eval(MenuArray+'[5]'):MenuHeight;		

			MenuDiv=Location.document.createElement("div");
			MenuDiv.style.position='absolute';
			MenuDiv.style.visibility='inherit';
			MainMenuDiv.appendChild(MenuDiv);

			MenuDiv.SetUp=MenuSetup;
			MenuDiv.SetUp(MainMenuDiv,MenuTitle,MenuArray,Width,Height);

			if(NoOffSubs)
			{
				MenuDiv.ChildCntnr=CreateMenuStructure(MenuArray+'_',NoOffSubs);
			}

			MenuTitle=MenuDiv;
		}

		MainMenuDiv.FirstMenuDiv=MenuDiv;
		gmenu_MenuLevel--;
		return(MainMenuDiv);
	}
	catch(e)
	{
		//displayStaticNav();
	}

}

/**************************************************************************************************
function: MenuSetup
description: this function set the properties for each menu item
inputs: MainMenuDiv, MenuTitle, MenuArray, Width, Height
outputs: none
called by: CreateMenuStructure()
**************************************************************************************************/
function MenuSetup(MainMenuDiv,MenuTitle,MenuArray,Width,Height)
{
	try
	{
		var Location=gmenu_MenuLevel==1?gmenu_FirstLevelLoc:gmenu_SecondLevelLoc;
		var MenuText=eval(MenuArray+'[0]');
		var menuTextNode;
		var arrowImg;
		var arrowSource;
		var arrowTop;
		var arrowLeft;
		var arrowWidth;
		var arrowHeight;
		var arrow;
		var OffBgColor;
		var OnBgColor;
		var OffFontColor;
		var OnFontColor;
		
		var LeftExtra;
		var TopExtra;

		if(gmenu_MenuLevel==1)
		{
			LeftExtra=gmenu_NavYes?gmenu_LeftPaddng:0;
			TopExtra=gmenu_NavYes?gmenu_TopPaddng:0;
		}
		else
		{
			LeftExtra=gmenu_NavYes?gmenu_SubNavLeftPaddng:0;
			TopExtra=gmenu_NavYes?gmenu_SubNavTopPaddng:0;
		}		

		// set some default values for the current menu item
		this.PrvMenuDiv=MenuTitle;
		this.Level=gmenu_MenuLevel;
		this.LinkTxt=eval(MenuArray+'[1]');
		this.Container=MainMenuDiv;
		this.ChildCntnr=null;
		this.Hilite=0;
		this.style.overflow='hidden';
		this.style.cursor=is_ie&&(this.LinkTxt)?'hand':'default';
		this.ro=0;

		this.value=MenuText;

		// if the current menu item is top level set the specific mouseon and off colors
		if(gmenu_MenuLevel==1)
		{
			OffBgColor=gmenu_LowBgColor;
			OnBgColor=gmenu_HighBgColor;
			OffFontColor=gmenu_FontLowColor;
			OnFontColor=gmenu_FontHighColor;
		}
		// if the current menu item is sub level set the specific mouseon and off colors
		else
		{
			OffBgColor=gmenu_LowSubBgColor;
			OnBgColor=gmenu_HighSubBgColor;
			OffFontColor=gmenu_FontSubLowColor;
			OnFontColor=gmenu_FontSubHighColor;
		}

		// set the mouseon and off colors
		this.LoBck=OffBgColor;
		this.LwFntClr=OffFontColor;
		this.HiBck=OnBgColor;
		this.HiFntClr=OnFontColor;

		// set the off font color
		this.style.color=this.LwFntClr;

		//if the off background color is set, then set the background of the current menu item to that color
		if(this.LoBck)
		{
			this.style.backgroundColor=this.LoBck;
		}

		// set the text alignment
		this.style.textAlign=gmenu_MenuTextCentered;

		// if the menu text is not HTML, set the width, height and padding of the div, otherwise set the width and height
		if(MenuText.indexOf('<')==-1)
		{
			this.style.width=Width-LeftExtra+gmenu_Pixel;
			this.style.height=Height-TopExtra+gmenu_Pixel;

			if(gmenu_MenuLevel==1)
			{
				this.style.paddingLeft=gmenu_LeftPaddng+gmenu_Pixel;
				this.style.paddingTop=gmenu_TopPaddng+gmenu_Pixel
			}
			else
			{
				this.style.paddingLeft=gmenu_SubNavLeftPaddng+gmenu_Pixel;
				this.style.paddingTop=gmenu_SubNavTopPaddng+gmenu_Pixel
			}		
		}
		else
		{	
			this.style.width=Width+gmenu_Pixel;
			this.style.height=Height+gmenu_Pixel
		}

		// if the menu is horizontal and has both on and off images create the roll over divs
		if(gmenu_MenuLevel==1&&!gmenu_IsText&&gmenu_FirstLineHorizontal)
		{
			gmenu_Counter++;
			this.navID = gmenu_Counter;	
			var strHTML = '<div id="nav_on_' +gmenu_Counter+'" name="nav_on_' +gmenu_Counter+'" style="z-index:1000;display:none">'
			strHTML += '<table width="100%" cellspacing="0" cellpadding="0" background="'+gmenu_BgGfx[0]+'">';
			strHTML += '<tr width="100%">';
			strHTML += '<td align="left" width="'+gmenu_LftGfx[2]+'" valign="top"><img src="'+gmenu_LftGfx[0]+'"></td>';
			strHTML += '<td align="center" valign="middle"><img src="'+eval(MenuArray+"[2]")+'" alt="' + unescape(MenuText) + '"' + 'title="' + unescape(MenuText) + '"></td>';
			strHTML += '<td align="right" width="'+gmenu_RtGfx[2]+'" valign="top"><img src="'+gmenu_RtGfx[0]+'"></td>';
			strHTML += '</tr>';
			strHTML += '</table>';
			strHTML += '</div>';
			strHTML += '<div id="nav_off_' +gmenu_Counter+'" name="nav_off_' +gmenu_Counter+'" style="z-index:1000;display:block">'
			strHTML += '<table width="100%" cellspacing="0" cellpadding="0" background="'+gmenu_BgGfx[1]+'">';
			strHTML += '<tr width="100%">';
			strHTML += '<td align="left" width="'+gmenu_LftGfx[2]+'" valign="top"><img src="'+gmenu_LftGfx[1]+'"></td>';
			strHTML += '<td align="center" valign="middle"><img src="'+eval(MenuArray+"[3]")+'" alt="' + unescape(MenuText) + '"' + 'title="' + unescape(MenuText) + '"></td>';
			strHTML += '<td align="right" width="'+gmenu_RtGfx[2]+'" valign="top"><img src="'+gmenu_RtGfx[1]+'"></td>';
			strHTML += '</tr>';
			strHTML += '</table>';
			strHTML += '</div>';		
			this.innerHTML=strHTML;
		}
		// if the menu is vertical and has both on and off images create the roll over divs
		else if(gmenu_MenuLevel==1&&!gmenu_IsText&&!gmenu_FirstLineHorizontal)
		{
			gmenu_Counter++;
			this.navID = gmenu_Counter;
			var strHTML = '<div id="nav_on_' +gmenu_Counter+'" name="nav_on_' +gmenu_Counter+'" style="z-index:1000;display:none">'
			strHTML += '<table width="100%" cellspacing="0" cellpadding="0">';
			strHTML += '<tr width="100%">';
			strHTML += '<td align="center" valign="middle"><img src="'+eval(MenuArray+"[2]")+'" alt="' + unescape(MenuText) + '"' + 'title="' + unescape(MenuText) + '"></td>';
			strHTML += '</tr>';
			strHTML += '</table>';
			strHTML += '</div>';
			strHTML += '<div id="nav_off_' +gmenu_Counter+'" name="nav_off_' +gmenu_Counter+'" style="z-index:1000;display:block">'
			strHTML += '<table width="100%" cellspacing="0" cellpadding="0">';
			strHTML += '<tr width="100%">';
			strHTML += '<td align="center" valign="middle"><img src="'+eval(MenuArray+"[3]")+'" alt="' + unescape(MenuText) + '"' + 'title="' + unescape(MenuText) + '"></td>';
			strHTML += '</tr>';
			strHTML += '</table>';
			strHTML += '</div>';		
			this.innerHTML=strHTML;
		}
		// if the menu text contains HTML create as a textnode and append it to the current menu div
		else if(MenuText.indexOf('<')==-1)
		{
			try
			{
				menuTextNode=Location.document.createTextNode(unescape(MenuText));
				this.appendChild(menuTextNode);
			}
			catch(e)
			{
				// do nothing
			}
		}
		// if the menu text is plain text set the current divs innerHTML to the text
		else this.innerHTML=MenuText;

		// if there are arrow images set and showarrow is true, create the arrows in the current menu div
		if((gmenu_MenuLevel!=1&&!gmenu_IsText)||(!eval(MenuArray+'[2]')&&!eval(MenuArray+'[3]')))
		{
			if(eval(MenuArray+'[4]')&&gmenu_ShowArrow)
			{
				// get the arrow source, width, height and position
				arrow=gmenu_MenuLevel==1&&gmenu_FirstLineHorizontal?3:gmenu_RightToLeft?6:0;
				arrowSource=gmenu_Arrows[arrow];
				arrowWidth=gmenu_Arrows[arrow+1];
				arrowHeight=gmenu_Arrows[arrow+2];
				arrowTop=gmenu_MenuLevel==1&&gmenu_FirstLineHorizontal?Height-arrowHeight-2:(Height-arrowHeight)/2;
				arrowLeft=gmenu_RightToLeft?2:Width-arrowWidth-2;

				arrowImg=Location.document.createElement('img');
				this.appendChild(arrowImg);
				arrowImg.style.position='absolute';
				arrowImg.src=arrowSource;
				arrowImg.style.width=arrowWidth+gmenu_Pixel;
				arrowImg.style.height=arrowHeight+gmenu_Pixel;
				arrowImg.style.top=arrowTop+gmenu_Pixel;
				arrowImg.style.left=arrowLeft+gmenu_Pixel
			}
		}
		// if the browser is Explorer cancel the onselectstart event(fires when the object is being selected) and set the mouseover and mouseout to open the menu
		if(is_ie)
		{
			this.onselectstart=CancelOnSelect;
			this.onmouseover=OpenMenu;
			this.onmouseout=CloseMenu;
			this.onclick=GoToURL;
		}
		// if the browser is not Explorer set the mouseover and mouseout to open the menu via the addEventListener method
		else
		{
			this.addEventListener('mouseover',OpenMenu,false);
			this.addEventListener('mouseout',CloseMenu,false);
			this.addEventListener('click',GoToURL,false);
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: HiliteItem
description: this function hilites the current item onmouseover
inputs: P (current item)
outputs: none
called by: OpenMenu(), OpenMenuClick()
**************************************************************************************************/
function HiliteItem(CurrentItem)
{
	try
	{
		
		// hide the iframes, objects and drop downs on the page
		if(gmenu_FirstLineHorizontal)
		{
			hideIframes();
		}
			
		hideItems("SELECT");

		// if the current menu item is a top level item and has an ID (has on and off images) swap the divs highlighting the item
		if(CurrentItem.Level==1&&CurrentItem.navID)
		{	
			document.getElementById('nav_on_'+CurrentItem.navID).style.display='block';
			document.getElementById('nav_off_'+CurrentItem.navID).style.display='none';
		}
		else
		{
			if(CurrentItem.HiBck)
			{
				CurrentItem.style.backgroundColor=CurrentItem.HiBck;
			}
			if(CurrentItem.HiFntClr)
			{
				CurrentItem.style.color=CurrentItem.HiFntClr;
			}
		}

		// set Hilite=1 denoting that this div has been highlighted
		CurrentItem.Hilite=1;
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: LowItem
description: this function un-hilites a hilited item onmouseout
inputs: P (current item)
outputs: none
called by: InitMenu(), ClearAllChildlen(), GoToURL(), CloseMenu()
**************************************************************************************************/
function LowItem(CurrentItem)
{

	try
	{
		// show the iframes, objects and drop downs on the page
		if(gmenu_FirstLineHorizontal)
		{
			showIframes();
		}
		
		showItems("SELECT");

		// if the current menu item is a top level item and has an ID (has on and off images) swap the divs highlighting the item
		if(CurrentItem.Level==1&&CurrentItem.navID)
		{		
			document.getElementById('nav_on_'+CurrentItem.navID).style.display='none';
			document.getElementById('nav_off_'+CurrentItem.navID).style.display='block';
		}
		// otherwise set the background color of the div and the font to the highlighted values
		else
		{
			if(CurrentItem.LoBck)
			{
				CurrentItem.style.backgroundColor=CurrentItem.LoBck;
			}
			if(CurrentItem.LwFntClr)
			{
				CurrentItem.style.color=CurrentItem.LwFntClr;
			}
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: OpenMenu
description: this function opens the menu if there are children onmouseover
inputs: none
outputs: none
called by: MenuSetup(), NavMenuSetup()
**************************************************************************************************/
function OpenMenu()
{
	try
	{
		// if the menu is not gmenu_Loaded or even create exit
		if(!gmenu_Loaded||!gmenu_Created)
		{
			return;
		}

		// determine the top and left limits of the browser
		var TopScrollLimit=gmenu_SecondLevelLoc.document.body.scrollTop;
		var LeftScrollLimit=gmenu_SecondLevelLoc.document.body.scrollLeft;

		// grab the child menu item, the height, width, left and right postion of the menu item
		var ChildMenu=this.ChildCntnr;
		var ThisHeight=parseInt(this.style.height);
		var ThisWidth=parseInt(this.style.width);
		
		var ThisLeft=parseInt(this.Container.style.left);
		var ThisTop=parseInt(this.Container.style.top);

		var CurrentItem=this;

		gmenu_CurrentOver=this;
		gmenu_InitializeFlag=0;

		// clear the children of the current menu item
		ClearAllChildlen(this.Container.FirstMenuDiv);

		// highlight the current menu item
		HiliteItem(CurrentItem);			

		// if there the menu item has children
		if(ChildMenu!=null)
		{
			if(!gmenu_ShowFlag)
			{
				gmenu_ShowFlag=1;
			}

			// determine the width and height of the child menu items
			var ChildMenuWidth=parseInt(this.ChildCntnr.style.width);
			var ChildMenuHeight=parseInt(this.ChildCntnr.style.height);

			// determine the width and height of the child menu items
			var ChildMenuStyle=this.ChildCntnr.style;

			// determine the top and left coordinates of the child menu items
			var SubLeft=ChildMenu.OrgLeft+ThisLeft;
			var SubTop=ChildMenu.OrgTop+ThisTop;

			if(gmenu_MenuWrap)
			{
				// if the menu is right to left
				if(gmenu_RightToLeft)
				{
					// make sure the sub menu doesn't go beyond the bounds of the browser, if it does, make adjustments
					if(SubLeft<LeftScrollLimit)
						SubLeft=this.Level==1?LeftScrollLimit:SubLeft+(ChildMenuWidth+(1-2*gmenu_ChildOverlap)*ThisWidth);
					if(SubLeft+ChildMenuWidth>gmenu_SecondWindowWidth+LeftScrollLimit)
						SubLeft=gmenu_SecondWindowWidth+LeftScrollLimit-ChildMenuWidth;
				}
				// if the menu is left to right
				else
				{	
					// make sure the sub menu doesn't go beyond the bounds of the browser, if it does, make adjustments
					if(SubLeft+ChildMenuWidth>gmenu_SecondWindowWidth+LeftScrollLimit)
						SubLeft=this.Level==1?gmenu_SecondWindowWidth+LeftScrollLimit-ChildMenuWidth:SubLeft-(ChildMenuWidth+(1-2*gmenu_ChildOverlap)*ThisWidth);
					if(SubLeft<LeftScrollLimit)
						SubLeft=LeftScrollLimit;
				}

				// make sure the sub menu doesn't go beyond the bounds of the browser, if it does, make adjustments
				if(SubTop+ChildMenuHeight>TopScrollLimit+gmenu_SecondWindowHeight)
					SubTop=this.Level==1?SubTop=TopScrollLimit+gmenu_SecondWindowHeight-ChildMenuHeight:SubTop-ChildMenuHeight+(1-2*gmenu_ChildVerticalOverlap)*ThisHeight;
				if(SubTop<TopScrollLimit)
					SubTop=TopScrollLimit
			}

			// set the new (possibly adjusted) position variables
			ChildMenuStyle.top=SubTop+gmenu_Pixel;
			ChildMenuStyle.left=SubLeft+gmenu_Pixel;
			if(gmenu_subnavEnabled)
			{
				ChildMenuStyle.visibility=gmenu_Show;
			}
		}

		// show the link in the status bar
		status=this.LinkTxt;
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: CloseMenu
description: this function closes the menu children onmouseout
inputs: none
outputs: none
called by: MenuSetup(), NavMenuSetup()
**************************************************************************************************/
function CloseMenu()
{	
	try
	{
		// if the menu is not gmenu_Loaded or even create exit
		if(!gmenu_Loaded||!gmenu_Created) 
		{
			return;
		}

		// if the menu item should not stay highlited, then unhighlited the current menu item
		if(!gmenu_KeepHilite)
		{
			var CurrentItem=this;
			LowItem(CurrentItem)
		}

		// clear the status bar
		status='';

		if(this==gmenu_CurrentOver)
		{
			gmenu_InitializeFlag=1;

			// if there is a delay set onmouseout of menu item, clear the existing settimeout
			if(gmenu_CloseTimer)
			{
				clearTimeout(gmenu_CloseTimer);
			}

			// set the delay to unhighlite a menu item via the settimeout method
			gmenu_CloseTimer=setTimeout('InitiateMenu(gmenu_CurrentOver)',gmenu_DissapearDelay);
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**********************************************************************************************
function: hideIframes
description: this function is used to hide the inline video on a page on menu mouseover
inputs: none
outputs: none
called by: HiliteItem()
**********************************************************************************************/
function hideIframes() 
{
	try
	{
		if(window.frames["wnsz_47"].document.getElementById("WMP7"))
		{
			if(window.frames["wnsz_47"].document.getElementById("WMP7").playState == PLAYSTATE_PLAYING)
			{
				window.frames["wnsz_47"].document.getElementById("WMP7").style.visibility = "hidden";
				window.frames["wnsz_47"].document.getElementById("divMPlayer").style.visibility = "hidden";
			}
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**********************************************************************************************
function: showIframes
description: this function is used to show the inline video on a page on menu mouseout
inputs: none
outputs: none
called by: LowItem()
**********************************************************************************************/
function showIframes() 
{
	try
	{
		if(window.frames["wnsz_47"].document.getElementById("WMP7"))
		{
			if(window.frames["wnsz_47"].document.getElementById("WMP7").playState == PLAYSTATE_PLAYING)
			{
				window.frames["wnsz_47"].document.getElementById("WMP7").style.visibility = "visible";
				window.frames["wnsz_47"].document.getElementById("divMPlayer").style.visibility = "visible";
			}
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**********************************************************************************************
function: hideItems
description: this function is used to hide items on a page on menu mouseover
inputs: tagName
outputs: none
called by: HiliteItem()
**********************************************************************************************/
function hideItems(tagName) 
{
	try
	{
		var items = document.getElementsByTagName(tagName);
		for (var i=0; i < items.length; i++) 
		{
			items[i].style.visibility = "hidden";
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**********************************************************************************************
function: showItems
description: this function is used to show items on a page on menu mouseout
inputs: tagName
outputs: none
called by: LowItem()
**********************************************************************************************/
function showItems(tagName) 
{
	try
	{
		var items = document.getElementsByTagName(tagName);
		for (var i=0; i < items.length; i++) 
		{
			items[i].style.visibility = "visible";
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**********************************************************************************************
function: CancelOnSelect
description: this function is used to cancel the onselectstart property of an element
inputs: none
outputs: none
called by: MenuSetup()
**********************************************************************************************/
function CancelOnSelect()
{
	return false;
}

/**************************************************************************************************
function: RePositionNav
description: this function is used to resize the navigation based on a user's available window size
inputs: none
outputs: none stopped
called by: BuildMenu()
**************************************************************************************************/
function RePositionNav(subnavEnabled)
{

	try
	{
	
		if(subnavEnabled)
			gmenu_subnavEnabled = 1;
			
		// set the browser width and height variables
		gmenu_FirstWindowWidth=gmenu_FirstLevelLoc.document.body.clientWidth;
		gmenu_FirstWindowHeight=gmenu_FirstLevelLoc.document.body.clientHeight;
		gmenu_SecondWindowWidth=gmenu_SecondLevelLoc.document.body.clientWidth;
		gmenu_SecondWindowHeight=gmenu_SecondLevelLoc.document.body.clientHeight;

		gmenu_StartTop = 0;

		if(getCoords(document.getElementById('MenuPos')).y < 0)
		{
			gmenu_FirstCntnr.style.visibility=gmenu_Hide;
			gmenu_FirstCntnr.style.display='none';
		}
		else
		{
			gmenu_FirstCntnr.style.visibility=gmenu_Show;
			gmenu_FirstCntnr.style.display='block';
		}

		if(gmenu_MenuCentered=='justify'&&gmenu_FirstLineHorizontal)
		{
			gmenu_FirstCntnr.style.width=gmenu_FirstWindowWidth+gmenu_Pixel;
			var LeftExtra=gmenu_NavYes?gmenu_LeftPaddng:0;

			ClcJustify();
			var CurrentItem=gmenu_FirstCntnr.FirstMenuDiv,W=Menu1[6],i;
			for(i=0;i<gmenu_NoOffFirstLineMenus;i++)
			{
				CurrentItem.style.width=W+gmenu_Pixel;CurrentItem=CurrentItem.PrvMenuDiv;
			}
		}

		gmenu_StaticPos=-1;

		if(gmenu_TargetLoc)
		{
			ClcTarget();
		}

		if(gmenu_MenuCentered)
		{
			ClcLeft();
		}

		if(gmenu_MenuVerticalCentered)
		{
			ClcTop();
		}

		PositionMenu(gmenu_FirstCntnr,gmenu_StartTop,gmenu_StartLeft);
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: ClcJustify
description: this function justifies the menu
inputs: none
outputs: none
called by: RePositionNav(), BuildMenu()
**************************************************************************************************/
function ClcJustify()
{
	try
	{
		if (gmenu_MenuLevel==1)
		{
			var a=gmenu_BorderBtwnElmnts?1:2,b=gmenu_BorderBtwnElmnts?gmenu_BorderWidth:0;
			var Size=Math.round(((gmenu_FirstWindowWidth-a*gmenu_BorderWidth)/gmenu_NoOffFirstLineMenus)-b),i,j;
		}
		else
		{
			var a=gmenu_BorderSubBtwnElmnts?1:2,b=gmenu_BorderSubBtwnElmnts?gmenu_BorderSubWidth:0;
			var Size=Math.round(((gmenu_FirstWindowWidth-a*gmenu_BorderSubWidth)/gmenu_NoOffFirstLineMenus)-b),i,j;
		}

		for(i=1;i<gmenu_NoOffFirstLineMenus+1;i++)
		{
			j=eval('Menu'+i);
			j[6]=Size;
		}

		gmenu_StartLeft=0;
	}
	catch(e)
	{
		//displayStaticNav();
	}
}
	
/**************************************************************************************************
function: ClcTarget
description: this function adjusts the relative positioning of the navigation
inputs: none
outputs: none
called by: RePositionNav(), BuildMenu()
**************************************************************************************************/
function ClcTarget()
{
	try
	{
		var TLoc=gmenu_FirstLevelLoc.document.getElementById(gmenu_TargetLoc);
		while(TLoc)
		{
			gmenu_StartTop+=TLoc.offsetTop;gmenu_StartLeft+=TLoc.offsetLeft;
			TLoc=TLoc.offsetParent;
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: ClcLeft
description:
inputs: none
outputs: none
called by: RePositionNav(), BuildMenu()
**************************************************************************************************/
function ClcLeft()
{
	try
	{
		if(gmenu_MenuCentered!='left'&&gmenu_MenuCentered!='justify')
		{
			var Size=gmenu_FirstWindowWidth-(parseInt(gmenu_FirstCntnr.style.width));
			gmenu_StartLeft+=gmenu_MenuCentered=='right'?Size:Size/2;
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**************************************************************************************************
function: ClcTop
description:
inputs: none
outputs: none
called by: RePositionNav(), BuildMenu()
**************************************************************************************************/
function ClcTop()
{
	try
	{
		if(gmenu_MenuVerticalCentered!='top'&&gmenu_MenuVerticalCentered!='static')
		{
			var Size=gmenu_FirstWindowHeight-(parseInt(gmenu_FirstCntnr.style.height));
			gmenu_StartTop+=gmenu_MenuVerticalCentered=='bottom'?Size:Size/2;
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**************************************************************************************************
function: PositionMenu
description:
inputs: CntnrPntr, Tp, Lt
outputs: none
called by: RePositionNav(), BuildMenu(), PositionMenu()
**************************************************************************************************/
function PositionMenu(CntnrPntr,Tp,Lt)
{
	try
	{
		gmenu_MenuLevel++;
		var LeftExtra;
		var TopExtra;

		if(gmenu_MenuLevel==1)
		{
			LeftExtra=gmenu_NavYes?gmenu_LeftPaddng:0;
			TopExtra=gmenu_NavYes?gmenu_TopPaddng:0;
		}
		else
		{
			LeftExtra=gmenu_NavYes?gmenu_SubNavLeftPaddng:0;
			TopExtra=gmenu_NavYes?gmenu_SubNavTopPaddng:0;
		}		

		var Topi,Lefti,Hori;
		var Cntnr=CntnrPntr;
		var MMenuDiv=Cntnr.FirstMenuDiv;
		var CntnrStyle=Cntnr.style;
		var MMenuDivStyle=MMenuDiv.style;
		var PadL=MMenuDiv.value.indexOf('<')==-1?LeftExtra:0;
		var PadT=MMenuDiv.value.indexOf('<')==-1?TopExtra:0;
		var MMenuDivWt=parseInt(MMenuDivStyle.width)+PadL;
		var MMenuDivHt=parseInt(MMenuDivStyle.height)+PadT;
		var CntnrWt=parseInt(CntnrStyle.width);
		var CntnrHt=parseInt(CntnrStyle.height);
		var SubTp,SubLt;
		CntnrStyle.top=gmenu_MenuLevel==1?Tp+gmenu_Pixel:0;
		Cntnr.OrgTop=Tp;
		CntnrStyle.left=gmenu_MenuLevel==1?Lt+gmenu_Pixel:0;
		Cntnr.OrgLeft=Lt;

		if(getCoords(document.getElementById('MenuPos')).y < 0)
		{
			gmenu_FirstCntnr.style.visibility=gmenu_Hide;
			gmenu_FirstCntnr.style.display='none';
		}
		else
		{
			gmenu_FirstCntnr.style.visibility=gmenu_Show;
			gmenu_FirstCntnr.style.display='block';
		}

		if (gmenu_MenuLevel==1 && gmenu_FirstLineHorizontal)
		{
			Hori=1;Lefti=CntnrWt-MMenuDivWt-2*gmenu_BorderWidth;Topi=0;
		}
		else
		{	
			if (gmenu_MenuLevel==1)
			{
				Hori=Lefti=0;Topi=CntnrHt-MMenuDivHt-2*gmenu_BorderWidth;
			}
			else
			{
				Hori=Lefti=0;Topi=CntnrHt-MMenuDivHt-2*gmenu_BorderSubWidth;
			}
		}

		while(MMenuDiv!=null)
		{
			if (gmenu_MenuLevel==1)
			{
				MMenuDivStyle.left=Lefti+gmenu_BorderWidth+gmenu_Pixel;
				MMenuDivStyle.top=Topi+gmenu_BorderWidth+gmenu_Pixel;
			}		
			else
			{		
				MMenuDivStyle.left=Lefti+gmenu_BorderSubWidth+gmenu_Pixel;
				MMenuDivStyle.top=Topi+gmenu_BorderSubWidth+gmenu_Pixel;
			}

			if(MMenuDiv.ChildCntnr)
			{
				if(gmenu_RightToLeft)ChldCntnrWidth=parseInt(MMenuDiv.ChildCntnr.style.width);
				if(Hori)
				{	
					if (gmenu_MenuLevel==1)
						SubTp=Topi+MMenuDivHt+2*gmenu_BorderWidth;
					else
						SubTp=Topi+MMenuDivHt+2*gmenu_BorderSubWidth;

					SubLt=gmenu_RightToLeft?Lefti+MMenuDivWt-ChldCntnrWidth:Lefti;
				}
				else
				{	
					if (gmenu_MenuLevel==1)
						SubLt=gmenu_RightToLeft?Lefti-ChldCntnrWidth+gmenu_ChildOverlap*MMenuDivWt+gmenu_BorderWidth:Lefti+(1-gmenu_ChildOverlap)*MMenuDivWt+gmenu_BorderWidth;
					else
						SubLt=gmenu_RightToLeft?Lefti-ChldCntnrWidth+gmenu_ChildOverlap*MMenuDivWt+gmenu_BorderSubWidth:Lefti+(1-gmenu_ChildOverlap)*MMenuDivWt+gmenu_BorderSubWidth;
					SubTp=Topi+gmenu_ChildVerticalOverlap*MMenuDivHt;
				}

				PositionMenu(MMenuDiv.ChildCntnr,SubTp,SubLt);
			}

			MMenuDiv=MMenuDiv.PrvMenuDiv;

			if(MMenuDiv)
			{	
				MMenuDivStyle=MMenuDiv.style;
				PadL=MMenuDiv.value.indexOf('<')==-1?LeftExtra:0;
				PadT=MMenuDiv.value.indexOf('<')==-1?TopExtra:0;
				MMenuDivWt=parseInt(MMenuDivStyle.width)+PadL;
				MMenuDivHt=parseInt(MMenuDivStyle.height)+PadT;

				if (gmenu_MenuLevel==1)
					Hori?Lefti-=gmenu_BorderBtwnElmnts?(MMenuDivWt+gmenu_BorderWidth):(MMenuDivWt):Topi-=gmenu_BorderBtwnElmnts?(MMenuDivHt+gmenu_BorderWidth):(MMenuDivHt);
				else
					Hori?Lefti-=gmenu_BorderSubBtwnElmnts?(MMenuDivWt+gmenu_BorderSubWidth):(MMenuDivWt):Topi-=gmenu_BorderSubBtwnElmnts?(MMenuDivHt+gmenu_BorderSubWidth):(MMenuDivHt);
			}
		}

		gmenu_MenuLevel--;
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**************************************************************************************************
function: InitiateMenu
description:
inputs: none
outputs: none
called by: CloseMenu(), BuildMenu()
**************************************************************************************************/
function InitiateMenu()
{
	try
	{
		if(gmenu_InitializeFlag)
		{	
			InitMenu(gmenu_FirstCntnr);
			gmenu_InitializeFlag=0;
			if(gmenu_ShowFlag)
				gmenu_ShowFlag=0;
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: InitMenu
description:
inputs: CntnrPntr
outputs: none
called by: InitMenu(), InitiateMenu()
**************************************************************************************************/
function InitMenu(CntnrPntr)
{
	try
	{
		var MMenuDiv=CntnrPntr.FirstMenuDiv;
		var MCStyle=CntnrPntr.style;
		gmenu_MenuLevel++;

		//hide or show the menu
		if(gmenu_Created||gmenu_FirstLineHorizontal)
			MCStyle.visibility=gmenu_MenuLevel==1?gmenu_Show:gmenu_Hide;
		else
			MCStyle.visibility=gmenu_MenuLevel==1?gmenu_Hide:gmenu_Hide;


		while(MMenuDiv!=null)
		{
			if(MMenuDiv.Hilite)
			{
				MMenuDiv.Hilite=0;
				if(gmenu_KeepHilite)
					LowItem(MMenuDiv);
			}

			if(MMenuDiv.ChildCntnr) 
				InitMenu(MMenuDiv.ChildCntnr);

			MMenuDiv=MMenuDiv.PrvMenuDiv;
		}

		gmenu_MenuLevel--;
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**************************************************************************************************
function: ClearAllChildlen
description:
inputs: Pntr
outputs: none
called by: ClearAllChildlen(), OpenMenu(), OpenMenuClick()
**************************************************************************************************/
function ClearAllChildlen(Pntr)
{
	try
	{
		var CPCCStyle;
		while (Pntr)
		{
			if(Pntr.Hilite)
			{
				Pntr.Hilite=0;
				if(gmenu_KeepHilite)LowItem(Pntr);

				if(Pntr.ChildCntnr)
				{
					CPCCStyle=Pntr.ChildCntnr.style;
					CPCCStyle.visibility=gmenu_Hide;
					ClearAllChildlen(Pntr.ChildCntnr.FirstMenuDiv);
				}

				break;
			}
			Pntr=Pntr.PrvMenuDiv;
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}
}

/**************************************************************************************************
function: GoToURL
description: this function navigates to the url associated with the menu item when its clicked
inputs: none
outputs: none
called by: MenuSetup(), NavMenuSetup()
**************************************************************************************************/
function GoToURL()
{
	try
	{
		if(this.LinkTxt)
		{
			status='';
			var HP=this;
			LowItem(HP);
			this.LinkTxt.indexOf('javascript:')!=-1?eval(this.LinkTxt):gmenu_DocumentLoc.location.href=this.LinkTxt;
		}
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**************************************************************************************************
function: CntnrSetUp
description:
inputs: Width, Height, NoOff
outputs: none
called by: CreateMenuStructure(), 
**************************************************************************************************/
function CntnrSetUp(Width,Height,NoOff)
{
	try
	{
		var color=gmenu_MenuLevel==1?gmenu_BorderColor:gmenu_BorderSubColor;
		this.FirstMenuDiv=null;
		this.OrgLeft=this.OrgTop=0;

		if(color)
		{
			this.bgColor=color;
			this.style.backgroundColor=color;
		}
		this.style.width=Width+gmenu_Pixel;
		this.style.height=Height+gmenu_Pixel;
		this.style.fontFamily=gmenu_FontFamily;
		this.style.fontWeight=gmenu_FontBold?'bold':'normal';
		this.style.fontStyle=gmenu_FontItalic?'italic':'normal';
		this.style.fontSize=gmenu_FontSize+'px';
		this.style.zIndex=gmenu_MenuLevel+gmenu_Ztop;
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**********************************************************************************************
function: getCoords
description: this function is used to determine the x and y coordinates of an element on a page
inputs: element
outputs: element
called by: BuildMenu()
**********************************************************************************************/
function getCoords (element)
{ 
	try
	{
	     var coords = { x: 0, y: 0, width: element.offsetWidth, height: element.offsetHeight }; 
	     while (element) 
	     { 
	       coords.x += element.offsetLeft; 
	       coords.y += element.offsetTop; 
	       element = element.offsetParent;
	     }

	     return coords;
	}
	catch(e)
	{
		//displayStaticNav();
	}	
} 

/**********************************************************************************************
function: checkBrowser
description: 
inputs: 
outputs: 
called by:Container C, D and Links_Plus_2005
**********************************************************************************************/
function checkBrowser ()
{ 
	if(gmenu_DomYes)
	{
		if(gmenu_NS6Yes||gmenu_Opr||is_ie&&is_mac||is_ie&&gmenu_ieVer<5.5)
		{
			if(document.getElementById("staticNav"))
			{
				document.getElementById("staticNav").style.display= 'block';
			}

			if(document.getElementById("dynamicNavSpace"))
			{
				document.getElementById("dynamicNavSpace").style.display= 'none';
			}
		
			return false;
		}
		else
		{
			return true;
		}
	}
	else
	{
		if (document.all)
		{
			if(document.all["staticNav"])
			{
				document.all["staticNav"].style.display= 'block';
			}
			if(document.all["dynamicNavSpace"])
			{
				document.all["dynamicNavSpace"].style.display= 'none';
			}
		}
		else if (document.layers)
		{
			if(document.layers["staticNav"])
			{
				document.layers["staticNav"].style.display= 'block';
			}
			if(document.layers["dynamicNavSpace"])
			{
				document.layers["dynamicNavSpace"].style.display= 'none';
			}
		}
		
		return false;
	}
}

/**********************************************************************************************
function: calculateImageOffest
description: 
inputs: 
outputs: 
called by:Container C, D and Links_Plus_2005
**********************************************************************************************/
function calculateImageOffest ()
{ 
	try
	{
		var i=0;
		var pixelTot=0;
		var pixelWidth=0;
		var pixelFlag=1;

		while(pixelFlag&&i<gmenu_NoOffFirstLineMenus){
			pixelWidth=itemWidth[i];
			pixelWidth+=gmenu_pixLeft+gmenu_pixRight;
			if(gmenu_BorderBtwnElmnts)
				pixelWidth+=gmenu_BorderWidth;
			if((pixelWidth+pixelTot)<=gmenu_SiteWidth){
				pixelTot+=pixelWidth;
				i++;}
			else
				pixelFlag=0;
			}

		gmenu_NoOffFirstLineMenus=i;
		gmenu_CellBuffer=parseInt((gmenu_SiteWidth-(pixelTot))/(i));

		if((gmenu_SiteWidth-((gmenu_CellBuffer*i)+pixelTot))<=gmenu_SiteWidth)
			gmenu_PixOffset=gmenu_SiteWidth-((gmenu_CellBuffer*i)+pixelTot);

		gmenu_TotalOffest = gmenu_pixLeft+gmenu_pixRight+gmenu_CellBuffer;
	}
	catch(e)
	{
		//displayStaticNav();
	}
}


/**********************************************************************************************
function: checkBrowser
description: 
inputs: 
outputs: 
called by:Container C, D and Links_Plus_2005
**********************************************************************************************/
function calculateTextOffest ()
{ 
	try
	{
		var i=0;
		var pixelTot=0;
		var pixelWidth=0;
		var pixelFlag=1;

		while(pixelFlag&&i<gmenu_NoOffFirstLineMenus){
			pixelWidth=document.getElementById(Nav_L1[i]+'_nav').offsetWidth;
			pixelWidth+=gmenu_LeftPaddng+2;
			if(gmenu_BorderBtwnElmnts)
				pixelWidth+=gmenu_BorderWidth;
			if(gmenu_ShowArrow)
				pixelWidth+=gmenu_Arrows[4];
			if((pixelWidth+pixelTot)<gmenu_SiteWidth){
				pixelTot+=pixelWidth;
				i++;}
			else
				pixelFlag=0;
			}

		gmenu_NoOffFirstLineMenus=i;
		gmenu_CellBuffer=parseInt((gmenu_SiteWidth-(pixelTot))/(i));

		if((gmenu_SiteWidth-((gmenu_CellBuffer*i)+pixelTot))<gmenu_SiteWidth)
			gmenu_PixOffset=gmenu_SiteWidth-((gmenu_CellBuffer*i)+pixelTot);
					
		if(gmenu_ShowArrow)
			gmenu_ArrowBuffer=gmenu_Arrows[4];

		gmenu_TotalOffest = gmenu_ArrowBuffer+gmenu_LeftPaddng+gmenu_CellBuffer;
	}
	catch(e)
	{
		//displayStaticNav();
	}	
}

/**********************************************************************************************
function: displayStaticNav
description: 
inputs: 
outputs: 
called by:Container C, D and Links_Plus_2005
**********************************************************************************************/
function displayStaticNav()
{
	try
	{
		if(document.getElementById("staticNav"))
		{
			document.getElementById("staticNav").style.display= 'block';
		}
		
		if (gmenu_FirstLineHorizontal)
		{
			if(document.getElementById("menuPlaceHolder"))
			{
				document.getElementById("menuPlaceHolder").style.display= 'none';
			}
		}
		
		if(document.getElementById("dynamicNavSpace"))
		{
			document.getElementById("dynamicNavSpace").style.display= 'none';
		}		
	}
	catch(e)
	{
		//do nothing
	}
}