// ************ Initialize global variables and call load functions **************
/*var isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
var IEmac = ((document.all)&&(isMac)) ? true : false;
var site = getSite();
var section = getSection(site);

buildSiteMap();
var currentSite = eval(site + "Sections");
var currentSection = eval(site + "Section" + section);
var homeURL = getHomeLink();

preloadRollovers();
buildNav(); // Also correctly assigns Banner Image*/

// *************** Functions *********************

//this sets the cookie for the site - member, provider, agent - that the user is on
var textNavArray = new Array(20);
textNavArray[0] = "";

function getSite()
{
	site = "member";
	var siteValue = new Array("","");
	if(document.cookie)
	{
		var cookies = document.cookie.split(";");
		for(var s=0; s < cookies.length; s++)
		{
			if(cookies[s].indexOf("Regence") > -1)
			{  siteValue = cookies[s].split("=");  }
		}
		if(siteValue[0] != "")
		{  site = siteValue[1].toLowerCase();  }
		else
		{  site = "member";  }
	}
	else
	{  site = "member";  }
	
		
	return site;
}


//this controls what site - member, provider, agent - the user gets to when they click the "home" button at the top of the page
function setSite()
{
	var whichHome;
	 
	if(currentHome.indexOf("/agent/") > -1)
	{  whichHome = "agent"; }
	else if (currentHome.indexOf("/physician/") > -1)
	{  whichHome = "physician";  }
	else
	{  whichHome = "member";  }
	
	
	var expDate = new Date();
	expDate.setTime(expDate.getTime() + 1000 * 60 * 60 * 24 * 365);
	
	document.cookie = "RegenceUser=" + whichHome + ";expires=" + expDate + ";path=/";
	return whichHome;
}


//when a new main section is added, it needs to be added here. note that the files for the five main sections must all live within the correct directories - /learn/, /meet/, /resources/, /prescriptions/ , /programs/ - as specified below. 
function getSection(site)
{
	if(document.URL.indexOf("/meet/") > -1)
	{  section = "MeetRegRx";  }
	else if(document.URL.indexOf("/learn/") > -1)
	{
		if(site == "member")
		{  section = "LearnMeds";  }
		else
		{  section = "ResMeds";  }
	}
	else if(document.URL.indexOf("/resources/") > -1)
	{
		if(site == "member")
		{  section = "MemberRes";  }
		else if(site == "agent")
		{  section = "AgentRes";  }
		else
		{  section = "PhysicianRes";  }
	}
	else if(document.URL.indexOf("/prescriptions/") > -1)
	{
		if(site == "member")
		{  section = "GetPres";  }
		else
		{  section = "EducationalTools";  }
	}
	
	else if(document.URL.indexOf("/programs/") > -1)
	{
		if(site == "member")
		{  section = "BenProgs";  }
		else
		{  section = "ViewProgs";  }
	}
	
	return section;
}


//this defines the home page is for each site //
function getHomeLink()
{
	switch(site)
	{
		case "member":
			homeURL = "/index.html";
			break;
		case "agent":
			homeURL = "/agent/index.html";
			break;
		case "physician":
			homeURL = "/physician";
			break;
	}
	return homeURL;
}


//builds the logo and link to correct (member, physician or agent) home page//
function buildTopBanner()
{
	var topBannerText = "";
	topBannerText += "\&nbsp\;\&nbsp\;\&nbsp\;<a href='" + homeURL + "'><img src='/images/regencerx_logo2.gif' border='0' alt='RegenceRx logo'></a><br>\&nbsp\;";
	document.write(topBannerText);
}


//builds top persistent navigation. homeURL is variable depending on what site - member, physician, agent - site you are on.//
function buildTopNav()
{
	var spacerText = "\&nbsp\;\&nbsp\; \&nbsp\;<font color='#7f868f'>|</font>\&nbsp\;\&nbsp\; \&nbsp\;";
	var topNavText = "<a href='" + homeURL + "' ID='linkHome' class='topNav'>Home</a>";
	topNavText += spacerText;
	topNavText += "<a href='/faq.html' ID='linkFaq' class='topNav'>FAQs</a>";
	topNavText += spacerText;
	topNavText += "<a href='/meet/contact/index.html' ID='linkContact' class='topNav'>Contact Us</a>";
	topNavText += spacerText;
	topNavText += "<a href='/siteMap.html' ID='linkSiteMap' class='topNav'>Site Map</a> ";

	document.write(topNavText);
}


//builds left navigation and breadcrumb on interior pages - no editing necessary to change navigation. This is really all the behind the scenes stuff//
function buildNav()
{
	navText = "";  // navText is Global Variable
	navText += "<table border='0' cellspacing='0' cellpadding='0'>";
	navRowText = "";
	var navClass;
	var sectionImage;
	var leftImage;
	var itemText;
	
	for(var j = 0;j<currentSite.length;j++)
	{
		sectionImage = currentSite[j][0][3].toString().split("member");

		navText += "<tr><td>";
		if(currentSite[j] == currentSection)
		{
			bannerText = currentSite[j][0][0];  // Sets the alt text for the banner image defined later -- bannerText is global variable
			navText += "<a href='" + currentSite[j][0][1] + "'><img src='/images/sn_" + sectionImage + "_on.gif' border='0' alt='" + currentSite[j][0][0] + "'></a><br>";
			navText += "<span class='leftnav'><table border='0' cellspacing='0' cellpadding='0'>";
			
			if(document.URL.indexOf(currentSection[0][1]) > -1 && currentSection[0][1] != "")
			{  doBreadCrumb(currentSection, 0);  }  // Sets BreadCrumb if user on section main page
			
			for(var i = 1; i < currentSection.length; i++)
			{
				leftImage = "spacer.gif";
				//alert(currentSection[i][0] + ", " + navClass);
				// Reset Class name unless currentSection is 3rd level page and a sibling/child of current page
				if(currentSection[i][2] < 2)
				{  navClass = "noClass";  }
				else if(currentSection[i].className != "subShow")
				{  navClass = "subHide";  }		
				
				itemText = "<a href='" + currentSection[i][1] + "'>" + currentSection[i][0] + "</a>";
				
				if(document.URL.indexOf(currentSection[i][1]) > -1 && currentSection[i][1] != "")
				{  
					leftImage = "sn_arrow.gif";
					doBreadCrumb(currentSection, i); // Sets BreadCrumb
					if(currentSection[i][2] < 2)
					{  
						navClass = "lnLevelSelected";
						if(currentSection[i+1])
						{
							if(currentSection[i+1][2] > 1)
							{  displaySubNavForward(currentSection, i);  }
						}
					}
					else if(currentSection[i][2] == 9)
					{
						displayParent(currentSection,i);
					}
					else
					{
						navClass = "subShow";
						if(currentSection[i+1])
						{
							if(currentSection[i+1][2] > 1)
							{  displaySubNavForward(currentSection, i);  }
						}
						
						if(currentSection[i-1][2] > 1)
						{  displaySubNavBackward(currentSection, i);  }
					}
					
					itemText = currentSection[i][0];
				}
								
				if(currentSection[i][2] < 2)
				{ navRowText += "<tr><td colspan='3'><img src='/images/spacer.gif' width='1' height='7'></td></tr>";  }			
						
				// Hide 2nd level row
				if(navClass == "subHide")
				{ navRowText += "<tr class='" + navClass + "'>";  }
				else
				{  navRowText += "<tr>";  }
				
				navRowText += "<td width='19' align='right'><img src='/images/" + leftImage + "'></td>";
				navRowText += "<td width='5'><img src='/images/spacer.gif' width='5' height='5'></td>";
				navRowText += "<td id='navCell" + i + "' class='" + navClass + "'>";
				if(currentSection[i][2] > 1)
				{  navRowText += "\&\#183\;\&\#160\;";  }
				
				navRowText += itemText + "</td></tr>";
				textNavArray[i] = navRowText;
				navRowText = "";
				
				
				navClass = "";
				
//				alert(textNavArray[i]);
			}
			for(var q = 1; q < textNavArray.length; q++)
			{  
				if(textNavArray[q])
				{  navText += textNavArray[q];  }
			}
			
			navText += "</table></span><br>";			
		}
		else
		{  navText += "<a href='" + currentSite[j][0][1] + "'><img src='/images/sn_" + sectionImage + ".gif' border='0' id='" + currentSite[j][0][3] + "' onmouseover='mOver(this.id)' onmouseout='mOver()' alt='" + currentSite[j][0][0] + "'></a><br>";  }

		navText += "</td></tr>";
		navText += "<tr><td height='3' bgcolor='#8692a0'><img src='/images/spacer.gif' alt='' width='1' height='3'></td></tr>";		
	}
	
	navText += "</table>";
	navText += "</td>";	
//	alert(navText);
}

function displayParent(currentSection, i)
{
	var x = 1;
	var j = 0;
	while(currentSection[i-x][2] == 9)
	{  x++;  }
	
	j = i-x;	

	while(textNavArray[j].indexOf("subHide") > -1)
	{  textNavArray[j] = textNavArray[j].replace(/subHide/,"subShow");  }
	while(textNavArray[j].indexOf("noClass") > -1)
	{  textNavArray[j] = textNavArray[j].replace(/noClass/,"lnLevelSelected");  }
	
	var spacerText = "<img src='/images/spacer.gif'>";
	var spacerReplace = "<img src='/images/sn_arrow.gif'>";
	
	textNavArray[j] = textNavArray[j].replace(spacerText,spacerReplace);
	
	if(currentSection[j+1])
	{
		if(currentSection[j+1][2] > 1)
		{  displaySubNavForward(currentSection, j);  }
	}
	
	if(currentSection[j-1][2] > 1)
	{  displaySubNavBackward(currentSection, j);  }
}

function displaySubNavBackward(currentSection, z)
{
	var j = z-1;	
	while(currentSection[j][2] > 1)
	{
		if(currentSection[j][2] != 9)
		{	
			while(textNavArray[j].indexOf("subHide") > -1)
			{  textNavArray[j] = textNavArray[j].replace(/subHide/,"subShow");  }
		}
		j--;
	}
}

function displaySubNavForward(currentSection, z)
{
	var k = z+1;
	while(currentSection[k][2] > 1)
	{
		if(currentSection[k][2] != 9)
		{  currentSection[k].className = "subShow";   }
		else
		{  currentSection[k].className = "subHide";  }

		k++;
		if(!(currentSection[k]))
                {  return;  }
	}
}

	
//builds links to physician, agent and member sites in header//
function buildSubSiteLinks()
{
	var subSiteText;
	var memberHomeLink = "<a href='/index.html'><img src='/images/button/btn_member_norm.gif' border='0' id='members' onmouseover='mOver(\"members\")' onmouseout='mOver()' alt='For Members'></a><br>";
	var agentHomeLink = "<a href='/agent/index.html'><img src='/images/button/btn_agent_norm.gif' border='0' id='agents' onmouseover='mOver(\"agents\")' onmouseout='mOver()' alt='For Agents'></a><br>";
	var physicianHomeLink = "<a href='/physician'><img src='/images/button/btn_phys_norm.gif' border='0' id='physicians' onmouseover='mOver(\"physicians\")' onmouseout='mOver()' alt='For Physicians'></a><br>";
	
	switch(site)
	{
		case "member":
			subSiteText =  physicianHomeLink + agentHomeLink;  
			break;
		case "agent":
		subSiteText = memberHomeLink + physicianHomeLink;
			break;
		case "physician":
			subSiteText = memberHomeLink + agentHomeLink;
			break;
	}
	document.write(subSiteText);
}


//builds banner/title image in header, no editing necessary to add a new banner. 
function buildBanner()
{
	var banner = document.getElementById("contentBanner");
	banner.src = "/images/topHeader_" + section + ".jpg";
	banner.alt = bannerText;  // bannerText assigned in buildNav() above
}

//builds breadcrumb. no code editing necesary
function doBreadCrumb(currentSection, i)
{
	var currIndex = i;
	var prevIndex = i-1;	
	var arrayIndex = 1;
	var bcArray = new Array();
	bcText = "";
	
	bcArray[0] = "<a href='" + currentSection[i][1] + "' class='currentbreadcrumblink'>" + currentSection[i][0] + "</a>";
	
	while(currentSection[currIndex][2] > 0)
	{
		if(currentSection[prevIndex][2] != 9)
		{
			if(currentSection[prevIndex][2] < currentSection[currIndex][2])
			{
				bcArray[arrayIndex] = "<a href='" + currentSection[prevIndex][1] + "' class='breadcrumblink'>" + currentSection[prevIndex][0] + "</a>\&\#160\; \&gt\; \&\#160\;";
				arrayIndex++;
				currIndex = prevIndex;
			}
			
		}
		prevIndex--;
	}
	
	for(var p = bcArray.length - 1; p > -1; p--)
	{  bcText += bcArray[p];  }
}

//builds home navigation. no editing necessary when changing nav items//
function doHomeNav(currentSite)
{
	var homeNavText = "";
	
	for(var i = 0; i < currentSite.length; i++)
	{
		homeNavText += "<table border='0' cellspacing='0' cellpadding='0'><tr><td>";
		homeNavText += "<a href='" + currentSite[i][0][1] + "'><img src='/images/hn_" + currentSite[i][0][3] + ".gif' alt='" + currentSite[i][0][0] + "' border='0' id='home" + currentSite[i][0][3] + "' onmouseover='mOverNav(this.id)' onmouseout='mOverNav()'></a>";
		homeNavText += "</td></tr></table>";
	}
	document.write(homeNavText);
	doHomeSubNav();
}

//builds the home page sub navs. no editing necessary when changing sub-nav items.//
function doHomeSubNav()
{
	var homeSubNavText = "";
	for(var i = 0; i < currentSite.length; i++)
	{
		homeSubNavText += "<table border='0' cellpadding='5' cellspacing='1' width='280' class='homeSubNavTables' id='home" + currentSite[i][0][3] + "Table'>";
		for(var j = 1; j < currentSite[i].length; j++)
		{
			if(currentSite[i][j][2] < 2)
			{
				homeSubNavText += "<tr><td width='250' align='left' bgcolor='#EBEEF3' class='leftnav'>";
				homeSubNavText += "<a href='" + currentSite[i][j][1] + "'>" + currentSite[i][j][0] + "</a>";
				homeSubNavText += "</td></tr>";
			}
		}
		homeSubNavText += "</table>";
		document.write(homeSubNavText);
		homeSubNavText="";
	}
}		


//code for a medication search feature. not currently being used 
function clearTextBox(element)
{
	var box = document.getElementById(element);
	if(box.value == "Enter a medication name")
	{  box.value = "";  }
}


//puts the curser in the search box when the page is loaded
function searchFocus(focus)
{  document.getElementById(focus).focus();  }


//This code controlls the print-friendly feature
function showPrint()
{
	window.open('/print.html'); 
}

function loadPrintText()
{	
	try
	{
		if (window.opener && !window.opener.closed) 
	    { 
			var printText = window.opener.document.getElementById("mainContent").innerHTML;

			while(printText.indexOf("sub_dottedLine.gif") > -1)
			{  printText = printText.replace(/sub_dottedLine.gif/,"print_dottedLine.gif");  }
						
			document.getElementById("mainContent").innerHTML = printText;
		}
	}
	catch(ex)
	{}
}

function returnToSite()
{
	window.opener.focus();
	window.close();
}

function hidePrintFriendly()
{
	document.getElementById("printFriendly").style.display = "none";
}

function showLegend(whichIcon)
{
	var legendBox = document.getElementById("legend");
	if(whichIcon)
	{  
		var icon = document.getElementById(whichIcon);
		var isMac = (navigator.appVersion.indexOf("Mac")!=-1) ? true : false;
		var IEmac = ((document.all)&&(isMac)) ? true : false;

		if(IEmac)
		{  legendBox.style.top = findPosY(icon) - findPosY(document.getElementById("contentTable")) + 30 + "px";  }
		else
		{  legendBox.style.top = findPosY(icon) + 30 + "px";  }
		legendBox.style.left = findPosX(icon) - 150 + "px";					
		legendBox.style.display = "block";
	}
	else
	{  legendBox.style.display = "none";  }
}

//This code builds the site map pages. Note: each site - member, provider, agent - has its own site map page that is dymanically generated
function buildSiteMapPage()
{
	var siteMapText = "";
	var columnWidth = 100 / currentSite.length;
	var siteTitle = site.charAt(0).toUpperCase() + site.substring(1,site.length);
	
	siteMapText += "<h3>" + siteTitle + " Site Map</h3>";
	siteMapText += "<table border='0' cellpadding='10' cellspacing='0' width='100%'><tr>";
	
	for(var i = 0; i < currentSite.length; i++)
	{
		siteMapText += "<td width='" + columnWidth + "%' valign='top'>";
		for(var j = 0; j < currentSite[i].length; j++)
		{
			if(currentSite[i][j][2] == 0)
			{
				siteMapText += "<a href='" + currentSite[i][j][1] + "' class='sitemap1'>" + currentSite[i][j][0] + "</a><br>";
			}
			else if(currentSite[i][j][2] != 9)
			{
				siteMapText += "<table border='0' cellspacing='0' cellpadding='0' style='margin-left:" + (currentSite[i][j][2] * 15) + "px'>";
				siteMapText += "<tr>";
				siteMapText += "<td valign='top' width='10'>- </td>";
				siteMapText += "<td><a class='sitemap2' href='" + currentSite[i][j][1] + "'>" + currentSite[i][j][0] + "</a>";
				siteMapText += "</td></tr>";
				siteMapText += "</table>";
			}
		}
		siteMapText += "</td>";
	}
	siteMapText += "</tr></table>";
	document.write(siteMapText);
}	
	
//this code determines the users browser window size. information to be used in code following//
function findPosX(obj)
{
	var curleft = 0;
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curleft += obj.offsetLeft;
			obj = obj.offsetParent;
		}
	}
	else if (obj.x)
	{  curleft += obj.x;  }
	return curleft;
}

function findPosY(obj)
{
	var curtop = 0;	
	if (obj.offsetParent)
	{
		while (obj.offsetParent)
		{
			curtop += obj.offsetTop;
			obj = obj.offsetParent;
		}
	}
	else if (obj.y)
	{	curtop += obj.y;  }
	
	return curtop;
}

//dynamically lengthens the left nav table according to the overall length of the page//
function navFill()
{
	var fillTable = document.getElementById('leftNavFill');
	var footTable = document.getElementById('footerTable');
	var topFill = findPosY(fillTable);
	var topFoot = findPosY(footTable);
	fillTable.style.height = topFoot - topFill;
}

//dynamically lengthens the page according to the overall length of the users browser window//
function expandPage()
{
	var mainContentTable = document.getElementById('mainContent');
	var footerTable = document.getElementById('footerTable');
	var bottom = document.getElementById('bottom');
	var fullPage = document.getElementById('pageTable');	
	var contentTop = findPosY(mainContentTable);
	var contentHeight = findPosY(footerTable);
	var pageBottom = findPosY(bottom);	

	var footerHeight = pageBottom - contentHeight;

	if(document.body.clientHeight)
	{
		if(pageBottom < document.body.clientHeight)
		{  
			fullPage.style.height = document.body.clientHeight;
			var height = (document.body.clientHeight - contentTop - footerHeight)
			mainContentTable.style.height = height + "px";
			
			// Double check height, and readjust if necessary
			var bottom2 = findPosY(bottom);
			var contentHeight2 = findPosY(footerTable);
			if(bottom2 - contentHeight2 > footerHeight)
			{  mainContentTable.style.height = height + ((bottom2 - contentHeight2) - footerHeight) + 9 + "px";  }
		}
	}
	else
	{
		if(pageBottom < window.innerHeight)
		{  
			fullPage.style.height = window.innerHeight;
			var height = (window.innerHeight - contentTop - footerHeight);
			mainContentTable.style.height = height + "px";
			
			// Double check height, and readjust if necessary
			var bottom2 = findPosY(bottom);
			var contentHeight2 = findPosY(footerTable);
			if(bottom2 - contentHeight2 > footerHeight)
			{  mainContentTable.style.height = height + ((bottom2 - contentHeight2) - footerHeight) + 9  + "px";  }
		}
	}
}

//dynamically lengthens the site map and privacy policy pages according to the users browser window//
function sitemapExpand()
{
	var top1 = findPosY(document.getElementById("mainTable"));
	var top2 = findPosY(document.getElementById("footerTable"));

	if(document.body.clientHeight)
	{
		if((top2 + 42) < document.body.clientHeight)
		{  document.getElementById("mainTable").style.height = (document.body.clientHeight - top1 - 42) + "px";  }
	}
	else
	{
		if((top2 + 42) < window.innerHeight)
		{  document.getElementById("mainTable").style.height = (window.innerHeight - top1 - 42) + "px";  }
	}
}

//dynamically lengthens the page according to the overall length of the users browser window and page content//
function bottomFill()
{
	bottomFillTable = document.getElementById('bottomFill'); // Global variable
	contentHeight = findPosY(bottomFillTable);  // Global variable
		
	if(document.body.clientHeight)
	{
		if(contentHeight < document.body.clientHeight)
		{  bottomFillTable.style.height = (document.body.clientHeight - contentHeight) + 9 +"px";  }
	}
	else
	{
		if(contentHeight < window.innerHeight)
		{  bottomFillTable.style.height = (window.innerHeight - contentHeight) + 9 + "px"; }
	}

	setTimeout('delayedBottomFill()',1000);
}

// Backup in case the first script executed before page was fully rendered
function delayedBottomFill()
{
	if(document.body.clientHeight)
	{
		if(contentHeight < document.body.clientHeight)
		{  bottomFillTable.style.height = (document.body.clientHeight - contentHeight) + 9 +"px";  }
	}
	else
	{
		if(contentHeight < window.innerHeight)
		{  bottomFillTable.style.height = (window.innerHeight - contentHeight) + 9 + "px"; }
	}
}

function mOver(strWhich) 
{
	if(strWhich)
	{
		strLastOver = strWhich;
		document.images[strWhich].src = eval(strWhich + "_on.src");
	} 
	else
	{
		document.images[strLastOver].src = eval(strLastOver + "_off.src");
	}
}

function mOverNav(strWhich)
{
	if(strWhich == "hide")
	{  
		if(whichTable != null)
		{
			document.getElementById(whichTable).style.display = "none";
			return;
		}
	}
	else if(strWhich)
	{
		if(whichTable != null)
		{  document.getElementById(whichTable).style.display = "none";  }
		strLastOver = strWhich;
		whichTable = strWhich + "Table";
		document.images[strWhich].src = eval(strWhich + "_on.src");
		var xPos = findPosX(document.getElementById(strWhich)) + 230;
		var yPos = findPosY(document.getElementById(strWhich));	
		//var test = document.getElementById(strWhich).height;
		//var test2 = yPos - test;
		//alert(yPos + " - " + (yPos - test));
		document.getElementById(whichTable).style.left = xPos + "px";
		
		if(IEmac)
		{  	document.getElementById(whichTable).style.top = yPos - findPosY(document.getElementById("contentTable")) + "px";  }
		else
		{  document.getElementById(whichTable).style.top = yPos + "px";  }
			
		document.getElementById(whichTable).style.display = "inline";
	} 
	else
	{  document.images[strLastOver].src = eval(strLastOver + "_off.src");  }
}

//preloads the rollover navigational images and buttons
function preloadRollovers()
{
	members_off = new Image(); members_off.src = "/images/button/btn_member_norm.gif";
	members_on = new Image(); members_on.src = "/images/button/btn_member_over.gif";
	agents_off = new Image(); agents_off.src = "/images/button/btn_agent_norm.gif";
	agents_on = new Image(); agents_on.src = "/images/button/btn_agent_over.gif";
	physicians_off = new Image(); physicians_off.src = "/images/button/btn_phys_norm.gif";
	physicians_on = new Image(); physicians_on.src = "/images/button/btn_phys_over.gif";
	search_off = new Image(); search_off.src = "/images/button/btn_search_norm.gif";
	search_on = new Image(); search_on.src = "/images/button/btn_search_over.gif";
	search2_off = new Image(); search2_off.src = "/images/button/btn_search_norm.gif";
	search2_on = new Image(); search2_on.src = "/images/button/btn_search_over.gif";
	searchArrow_off = new Image(); searchArrow_off.src = "/images/button/btn_searchArrow.gif";
	searchArrow_on = new Image(); searchArrow_on.src = "/images/button/btn_searchArrow_over.gif";
	searchArrow2_off = new Image(); searchArrow2_off.src = "/images/button/btn_searchArrow.gif";
	searchArrow2_on = new Image(); searchArrow2_on.src = "/images/button/btn_searchArrow_over.gif";
	searchArrow3_off = new Image(); searchArrow3_off.src = "/images/button/btn_searchArrow.gif";
	searchArrow3_on = new Image(); searchArrow3_on.src = "/images/button/btn_searchArrow_over.gif";
	printFriendly_off = new Image(); printFriendly_off.src = "/images/button/btn_printerFriendly.gif";
	printFriendly_on = new Image(); printFriendly_on.src = "/images/button/btn_printerFriendly_o.gif";
	print_off = new Image(); print_off.src = "/images/button/btn_printPage.gif";
	print_on = new Image(); print_on.src = "/images/button/btn_printPage_o.gif";
	backToSite_off =  new Image(); backToSite_off.src = "/images/button/btn_backToSite.gif";
	backToSite_on =  new Image(); backToSite_on.src = "/images/button/btn_backToSite_o.gif";

	BenProgs_on = new Image();   BenProgs_on.src = "/images/sn_BenProgs_over.gif";
	BenProgs_off = new Image();	 BenProgs_off.src = "/images/sn_BenProgs.gif";
	AgentRes_on = new Image();	 AgentRes_on.src = "/images/sn_AgentRes_over.gif";
	AgentRes_off = new Image();  AgentRes_off.src = "/images/sn_AgentRes.gif";
	GetPres_on = new Image();	 GetPres_on.src = "/images/sn_GetPres_over.gif";
	GetPres_off = new Image();	 GetPres_off.src = "/images/sn_GetPres.gif";
	LearnMeds_on = new Image();	 LearnMeds_on.src = "/images/sn_LearnMeds_over.gif";
	LearnMeds_off = new Image(); LearnMeds_off.src = "/images/sn_LearnMeds.gif";
	MeetRegRx_on = new Image();	 MeetRegRx_on.src = "/images/sn_MeetRegRx_over.gif";
	MeetRegRx_off = new Image(); MeetRegRx_off.src = "/images/sn_MeetRegRx.gif";
	MemberRes_on = new Image();	 MemberRes_on.src = "/images/sn_MemberRes_over.gif";
	MemberRes_off = new Image(); MemberRes_off.src = "/images/sn_MemberRes.gif";
	ResMeds_on = new Image();	 ResMeds_on.src = "/images/sn_ResMeds_over.gif";
	ResMeds_off = new Image();	 ResMeds_off.src = "/images/sn_ResMeds.gif";
	RxNews_on = new Image();	 RxNews_on.src = "/images/sn_RxNews_over.gif";
	RxNews_off = new Image();	 RxNews_off.src = "/images/sn_RxNews.gif";
	ViewProgs_on = new Image();	 ViewProgs_on.src = "/images/sn_ViewProgs_over.gif";
	ViewProgs_off = new Image(); ViewProgs_off.src = "/images/sn_ViewProgs.gif";
	PhysicianRes_on = new Image();	 PhysicianRes_on.src = "/images/sn_PhysicianRes_over.gif";
	PhysicianRes_off = new Image(); PhysicianRes_off.src = "/images/sn_PhysicianRes.gif";
	EducationalTools_on = new Image();	 EducationalTools_on.src = "/images/sn_EducationalTools_over.gif";
	EducationalTools_off = new Image(); EducationalTools_off.src = "/images/sn_EducationalTools.gif";

	homeBenProgs_on = new Image();   homeBenProgs_on.src = "/images/hn_BenProgs_over.gif";
	homeBenProgs_off = new Image();	 homeBenProgs_off.src = "/images/hn_BenProgs.gif";
	homeAgentRes_on = new Image();	 homeAgentRes_on.src = "/images/hn_AgentRes_over.gif";
	homeAgentRes_off = new Image();  homeAgentRes_off.src = "/images/hn_AgentRes.gif";
	homeGetPres_on = new Image();	 homeGetPres_on.src = "/images/hn_GetPres_over.gif";
	homeGetPres_off = new Image();	 homeGetPres_off.src = "/images/hn_GetPres.gif";
	homeLearnMeds_on = new Image();	 homeLearnMeds_on.src = "/images/hn_LearnMeds_over.gif";
	homeLearnMeds_off = new Image(); homeLearnMeds_off.src = "/images/hn_LearnMeds.gif";
	homeMeetRegRx_on = new Image();	 homeMeetRegRx_on.src = "/images/hn_MeetRegRx_over.gif";
	homeMeetRegRx_off = new Image(); homeMeetRegRx_off.src = "/images/hn_MeetRegRx.gif";
	homeMemberRes_on = new Image();	 homeMemberRes_on.src = "/images/hn_MemberRes_over.gif";
	homeMemberRes_off = new Image(); homeMemberRes_off.src = "/images/hn_MemberRes.gif";
	homeResMeds_on = new Image();	 homeResMeds_on.src = "/images/hn_ResMeds_over.gif";
	homeResMeds_off = new Image();	 homeResMeds_off.src = "/images/hn_ResMeds.gif";
	homeRxNews_on = new Image();	 homeRxNews_on.src = "/images/hn_RxNews_over.gif";
	homeRxNews_off = new Image();	 homeRxNews_off.src = "/images/hn_RxNews.gif";
	homeViewProgs_on = new Image();	 homeViewProgs_on.src = "/images/hn_ViewProgs_over.gif";
	homeViewProgs_off = new Image(); homeViewProgs_off.src = "/images/hn_ViewProgs.gif";
	homePhysicianRes_on = new Image();	 homePhysicianRes_on.src = "/images/hn_PhysicianRes_over.gif";
	homePhysicianRes_off = new Image(); homePhysicianRes_off.src = "/images/hn_PhysicianRes.gif";
	homeEducationalTools_on = new Image();	 homeEducationalTools_on.src = "/images/hn_EducationalTools_over.gif";
	homeEducationalTools_off = new Image(); homeEducationalTools_off.src = "/images/hn_EducationalTools.gif";


	rxInfo_off = new Image(); rxInfo_off.src = "/images/rxInfo.gif";
	rxInfo_on = new Image(); rxInfo_on.src = "/images/rxInfo_over.gif";
}


//Here's where it all happens. This code below controlls the navigation, breadcrumb and site map for the sites. Each time a page is added to the site, it needs to be added to the code below. 
function buildSiteMap()
{
	var z = 0;
	//{{{{{{{{{{{{{{{{{{{{{{{ Member Site }}}}}}}}}}}}}}}}}}}}}}}}}}}}}
	//************** Meet RegenceRx Section ***************************
memberMeetRegRx = new Array("Meet RegenceRx","/meet/index.html",0,"MeetRegRx");	 				
	memberAboutRegence = new Array("About the Regence Group","/meet/aboutTRG/index.html",1);		 						
	memberPharmNetwork = new Array("Our Pharmacy Network","/meet/pharmNetwork/index.html",1);
	memberVendorMeeting = new Array("Vendor Meeting Requests","/meet/vendorMeeting/index.html",1);
	memberManagedCare = new Array("Managed Care Residency","/meet/managedCare/index.html",1);
	memberRxNews = new Array("RxNews","/meet/rxNews/index.html",1);
			memberNewsMcKesson = new Array("McKesson Specialty","/meet/rxNews/060331McKessonSpecialtyPickedAsSpecialtyProvider.html",9);
			memberNewsMcKessonSelected = new Array("McKesson Specialty Pharmacy","/meet/rxNews/0604RegenceGroupSelectsMcKessonSpecialty.html",9);
			memberNewsDepressingPregnantWomen = new Array("Anti-depressants Risk for Pregnant Women","/meet/rxNews/060808PregnantWomenAntiDepressantsRisk.html",9);
			memberNewsGenericStatins = new Array("Generics First – Statin Program","/meet/rxNews/070202StatinProgram.html",9);
		memberNewsArchive = new Array("RxNews Archive","/meet/rxNews/archive.html",2);
			memberNewsMerckRecalls = new Array("Merck Recalls Arthritis Drug Vioxx","/meet/rxNews/040930MerckRecallsVioxx.html",9);
			memberNewsPaxilAvandamet = new Array("Paxil CR and Avandamet Availability","/meet/rxNews/050311PaxilCR.html",9);
			memberNewsBextra = new Array("Bextra","/meet/rxNews/050407BextraWithdrawal.html",9);
			memberNewsDextromethorphan = new Array("Dextromethorphan","/meet/rxNews/050523MedwatchDextromethorphan.html",9);
			memberNewsAntiDepressant = new Array("AntiDepressant","/meet/rxNews/050712AntidepressantMedsRisk.html",9);
			memberNewsPalladoneSales = new Array("Palladone","/meet/rxNews/050714PalladoneSalesSuspended.html",9);
			memberNewsDuragesicFentanyl = new Array("Duragesic","/meet/rxNews/050719FentanylPatches.html",9);
			memberNewsAllergyRelief = new Array("Allergy Relief","/meet/rxNews/050815ReliefForAllergySufferers.html",9);
			memberNewsStrattera = new Array("Strattera","/meet/rxNews/051003IncreasedRiskOfSuicidalThinking.html",9);
		memberContact = new Array("Contact Us","/meet/contact/index.html",1);  
					

	 	memberSectionMeetRegRx = new Array(); 
		memberSectionMeetRegRx[z] = memberMeetRegRx;				z++;
		memberSectionMeetRegRx[z] = memberAboutRegence;	 			z++;
		memberSectionMeetRegRx[z] = memberPharmNetwork;				z++;
		memberSectionMeetRegRx[z] = memberVendorMeeting;			z++;
		memberSectionMeetRegRx[z] = memberManagedCare;				z++;
		memberSectionMeetRegRx[z] = memberRxNews;					z++;
		memberSectionMeetRegRx[z] = memberNewsMcKesson; 			z++;
		memberSectionMeetRegRx[z] = memberNewsMcKessonSelected; 	z++;
		memberSectionMeetRegRx[z] = memberNewsDepressingPregnantWomen; 	z++;
		memberSectionMeetRegRx[z] = memberNewsGenericStatins; 		z++;
		memberSectionMeetRegRx[z] = memberNewsArchive;				z++;
		memberSectionMeetRegRx[z] = memberNewsMerckRecalls;			z++;
		memberSectionMeetRegRx[z] = memberNewsPaxilAvandamet;		z++;
		memberSectionMeetRegRx[z] = memberNewsBextra;				z++;
		memberSectionMeetRegRx[z] = memberNewsDextromethorphan;		z++;
		memberSectionMeetRegRx[z] = memberNewsAntiDepressant;		z++;
		memberSectionMeetRegRx[z] = memberNewsPalladoneSales;		z++;
		memberSectionMeetRegRx[z] = memberNewsDuragesicFentanyl;	z++;
		memberSectionMeetRegRx[z] = memberNewsAllergyRelief;		z++;
		memberSectionMeetRegRx[z] = memberNewsStrattera;			z++;
		memberSectionMeetRegRx[z] = memberContact;					z++;
    //************** End Meet RegenceRx Section ********************************
	
	z = 0;
	
	//************** Learn About Medications Section ***************************
	 memberLearnMeds = new Array("Learn About Medications","/learn/index.html",0,"LearnMeds");
		 memberCovered = new Array("What's Covered/Formulary","/learn/covered/index.html",1);
		 memberAlphaList = new Array("Preferred Medication List (PML)","/learn/covered/alpha/index.html",2);
 				memberHealthyOptions = new Array("Healthy Options OTC","/learn/covered/healthyOptionsOTC.html",9);
		 memberPriceGuide = new Array("RxPrice Guide","/learn/rxPriceGuide/index.html",1);
		 memberAltMeds = new Array("Alternatives to Non-Formulary","/learn/alternatives/index.html",1);
		 memberAuth = new Array("Prior Auth/Medication Quantities","/learn/priorAuth/index.html",1);
		 	 	memberAuthRRx = new Array("RegenceRx","/learn/priorAuth/noMedicalPriorAuth.html",9);
				memberAuthID = new Array("Regence BlueShield of Idaho","/learn/priorAuth/idahoPriorAuth.html",9);
				memberAuthOR = new Array("Regence BlueCross BlueShield of Oregon","/learn/priorAuth/oregonPriorAuth.html",9);
				memberAuthUT = new Array("Regence BlueCross BlueShield of Utah","/learn/priorAuth/utahPriorAuth.html",9);
				memberAuthWA = new Array("Regence BlueShield (Washington)","/learn/priorAuth/washingtonPriorAuth.html",9);
				memberAuthANH = new Array("Asuris Northwest Health","/learn/priorAuth/asurisPriorAuth.html",9);
		 memberComparisonShop = new Array("Comparison Shopping","/learn/comparisonShop/index.html",1);
		 memberGenerics = new Array("About Generics","/learn/generics/index.html",1);
		 memberConsumer = new Array("ConsumerRx","/learn/consumer/index.html",1);
		
		
	memberSectionLearnMeds = new Array();
		memberSectionLearnMeds[z] = memberLearnMeds;		 z++;
		memberSectionLearnMeds[z] = memberCovered;		 	 z++;
		memberSectionLearnMeds[z] = memberAlphaList;		 z++;
		memberSectionLearnMeds[z] = memberHealthyOptions;	 z++;
		memberSectionLearnMeds[z] = memberPriceGuide;		 z++;
		memberSectionLearnMeds[z] = memberAltMeds;		 	 z++;
		memberSectionLearnMeds[z] = memberAuth;		 		 z++;
		memberSectionLearnMeds[z] = memberAuthRRx;		 	 z++;
		memberSectionLearnMeds[z] = memberAuthID;			 z++;
		memberSectionLearnMeds[z] = memberAuthOR;			 z++;
		memberSectionLearnMeds[z] = memberAuthUT;			 z++;
		memberSectionLearnMeds[z] = memberAuthWA;			 z++;
		memberSectionLearnMeds[z] = memberAuthANH;			 z++;
		memberSectionLearnMeds[z] = memberComparisonShop;	 z++;
		memberSectionLearnMeds[z] = memberGenerics;			 z++;
		memberSectionLearnMeds[z] = memberConsumer;			 z++;
	//************** End Learn About Medications Section ***********************

	z = 0;
	
	//************** Use Member Resources Section ******************************
	 memberMemberRes = new Array("Use Member Resources","/resources/index.html",0,"MemberRes");
		memberTiered = new Array("How Your Rx Benefits Work","/resources/tiered/index.html",1);
		 	memberThreeTier = new Array("Three-Tier Rx Benefits","/resources/tiered/threeTier.html",2);
		 	memberOpen = new Array("Open Rx Benefits","/resources/tiered/open.html",2);
		 	memberClosed = new Array("Closed Rx Benefits","/resources/tiered/closed.html",2);
		memberInsCoverage = new Array("Understanding Health Care Costs","/resources/basics/index.html",1);
		memberFormulary = new Array("Formulary Decisions","/resources/formulary/index.html",1);
		memberGlossary = new Array("Glossary of Terms","/resources/glossary/index.html",1);
		memberWellness = new Array("Health Calculators","/resources/wellness/index.html",1);
		memberAssistance = new Array("Financial/Patient Assistance","/resources/assistance/index.html",1);		 memberCommunication = new Array("Good Communication with Your Doctor","/resources/communication/index.html",1);
  
 	memberSectionMemberRes = new Array();
		memberSectionMemberRes[z] = memberMemberRes;	 z++;
		memberSectionMemberRes[z] = memberTiered;		 z++;
		memberSectionMemberRes[z] = memberThreeTier;	 z++;
		memberSectionMemberRes[z] = memberOpen;		 	 z++;
		memberSectionMemberRes[z] = memberClosed;		 z++;
		memberSectionMemberRes[z] = memberInsCoverage;	 z++;
		memberSectionMemberRes[z] = memberFormulary;	 z++;
		memberSectionMemberRes[z] = memberGlossary;		 z++;
		memberSectionMemberRes[z] = memberWellness;		 z++;
		memberSectionMemberRes[z] = memberAssistance;	 z++;
		memberSectionMemberRes[z] = memberCommunication; z++;
		
	//************** End Use Member Resources Section **************************

	z = 0;
	
	//************** Get Prescriptions Section *********************************
	 memberGetPres = new Array("Get Prescriptions","/prescriptions/index.html",0,"GetPres");
		 memberLocatePharm = new Array("Locate a Pharmacy","/prescriptions/locate/index.html",1);
			 memberPartPharm = new Array("Participating Pharmacy Chains","/prescriptions/locate/pharmChains/index.html",2);
		 memberMailOrder = new Array("Order by Mail","/prescriptions/mailOrder/index.html",1);
		 memberDownloadForms = new Array("Download Forms","/prescriptions/forms/index.html",1);

	 memberSectionGetPres = new Array();
		memberSectionGetPres[z] = memberGetPres;		 z++;
		memberSectionGetPres[z] = memberLocatePharm;	 z++;
		memberSectionGetPres[z] = memberPartPharm;		 z++;
		memberSectionGetPres[z] = memberMailOrder;		 z++;
		memberSectionGetPres[z] = memberDownloadForms;	 z++;
	//************** End Get Prescriptions Section *****************************

	z = 0;
	
	//************** Benefit from Special Programs Section *********************
	 memberBenProgs = new Array("Benefit from Special Programs","/programs/index.html",0,"BenProgs");
		 memberGenericIncentive = new Array("Generic Incentive Program","/programs/genericIncentive/index.html",1);
		 memberGlucoseMeter = new Array("Blood Glucose Meter","/programs/bloodGlucose/index.html",1);
		 memberCurascript = new Array("Walgreens Specialty Pharmacy","/programs/walgreens/member-index.html",1);
		 memberHalfTablet = new Array("Half-Tablet","/programs/halfTablet/index.html",1);

	 memberSectionBenProgs = new Array();
		memberSectionBenProgs[z] = memberBenProgs;		 	 z++;
		memberSectionBenProgs[z] = memberGenericIncentive;	 z++;
		memberSectionBenProgs[z] = memberGlucoseMeter;		 z++;
		memberSectionBenProgs[z] = memberCurascript;		 z++;
		memberSectionBenProgs[z] = memberHalfTablet;		 z++;
	
	//************** End Benefit from Special Programs Section *****************

	 memberSections = new Array(memberSectionMeetRegRx,memberSectionLearnMeds,memberSectionMemberRes,memberSectionGetPres,memberSectionBenProgs);

	////{{{{{{{{{{{{{{{{{{{{{{{ End Member Site }}}}}}}}}}}}}}}}}}}}}}}}}}}}}

	// --------------------------------------------------------------------------

	//{{{{{{{{{{{{{{{{{{{{{{{{{ Agent Site }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
	
	z = 0;
	
	//************** Meet RegenceRx Section ***************************
agentMeetRegRx = new Array("Meet RegenceRx","/meet/agentMeet/index.html",0,"MeetRegRx");
	agentAboutRegence = new Array("About the Regence Group","/meet/aboutTRG/index.html",1);
	agentNews = new Array("RxNews","/meet/agentNews/index.html",1);
			agentNewsMcKesson = new Array("McKesson Specialty","/meet/rxNews/060331McKessonSpecialtyPickedAsSpecialtyProvider.html",9);
			agentNewsMcKessonSelected = new Array("McKesson Specialty Pharmacy","/meet/rxNews/0604RegenceGroupSelectsMcKessonSpecialty.html",9);
			agentNewsDepressedPregnantWomen = new Array("Anti-depressants Risk for Pregnant Women","/meet/rxNews/060808PregnantWomenAntiDepressantsRisk.html",9);						
			agentNewsGenericStatins = new Array("Generics First – Statin Program","/meet/rxNews/070202StatinProgram.html",9);
		agentNewsArchive = new Array("RxNews Archive","/meet/agentNews/archive.html",2);
		    agentNewsPaxilAvandamet = new Array("Paxil CR and Avandamet Availability","/meet/rxNews/050311PaxilCR.html",9);
			agentNewsTysabri = new Array("Voluntary suspension of Tysabri Marketing","/meet/physicianNews/040228TysabriMarketingSuspension.html",9);
		 	agentNewsRegencePlanSaves = new Array("Regence pharmacy plan saves $140M","/meet/rxNews/040906RegenceRxPlanSaves.html",9);
			agentNewsBextra = new Array("Bextra","/meet/rxNews/050407BextraWithdrawal.html",9);
			agentNewsPalladoneSales = new Array("Palladone","/meet/rxNews/050714PalladoneSalesSuspended.html",9);
			agentNewsAllergyRelief = new Array("Allergy Relief","/meet/rxNews/050815ReliefForAllergySufferers.html",9);
			agentNewsStrattera = new Array("Strattera","/meet/rxNews/051003IncreasedRiskOfSuicidalThinking.html",9);
	agentContact = new Array("Contact Us","/meet/contact/index.html",1);
		 

	 agentSectionMeetRegRx = new Array();
		agentSectionMeetRegRx[z] = agentMeetRegRx;		 		z++;
		agentSectionMeetRegRx[z] = agentAboutRegence;	 		z++;
		agentSectionMeetRegRx[z] = agentNews;		 			z++;
		agentSectionMeetRegRx[z] = agentNewsMcKesson;			z++;
		agentSectionMeetRegRx[z] = agentNewsMcKessonSelected;	z++;
		agentSectionMeetRegRx[z] = agentNewsDepressedPregnantWomen;	z++;
		agentSectionMeetRegRx[z] = agentNewsGenericStatins; 	z++;
		agentSectionMeetRegRx[z] = agentNewsArchive; 			z++;
		agentSectionMeetRegRx[z] = agentNewsPaxilAvandamet;		z++;
		agentSectionMeetRegRx[z] = agentNewsTysabri;			z++;
		agentSectionMeetRegRx[z] = agentNewsRegencePlanSaves;	z++;
		agentSectionMeetRegRx[z] = agentNewsBextra;				z++;
		agentSectionMeetRegRx[z] = agentNewsPalladoneSales;		z++;
		agentSectionMeetRegRx[z] = agentNewsAllergyRelief;		z++;
		agentSectionMeetRegRx[z] = agentNewsStrattera;	  	 	z++;
		agentSectionMeetRegRx[z] = agentContact;		 		z++;
		
		
	//************** End Meet RegenceRx Section ********************************

	z = 0;
	
	//************** Research Medications Section ***************************
	 agentResMeds = new Array("Research Medications","/learn/agentResearch/index.html",0,"ResMeds");
	<!--	 agentMedSearch = new Array("Medication Search","/learn/medsearch.html",1);
		 agentCovered = new Array("Preferred Medication List (PML)","/learn/agentResearch/covered/index.html",1);
			 agentAlphaList = new Array("Alphabetical List","/learn/covered/alpha/index.html",2);
			 agentTheraList = new Array("Therapeutic Class List","/learn/covered/therapeutic/index.html",2);
			 agentHealthyOptions = new Array("Healthy Options OTC","/learn/covered/healthyOptionsOTC.html",9);
		 agentPriceGuide = new Array("RxPrice Guide","/learn/agentResearch/rxPriceGuide/index.html",1);
		 agentAltMeds = new Array("Alternatives to Non-Formulary","/learn/agentResearch/alternatives/index.html",1);
		 agentAuth = new Array("Prior Auth/Medication Quantities","/learn/priorAuth/index.html",1);
		  		agentAuthRRx = new Array("RegenceRx","/learn/priorAuth/noMedicalPriorAuth.html",9);
				agentAuthID = new Array("Regence BlueShield of Idaho","/learn/priorAuth/idahoPriorAuth.html",9);
				agentAuthOR = new Array("Regence BlueCross BlueShield of Oregon","/learn/priorAuth/oregonPriorAuth.html",9);
				agentAuthUT = new Array("Regence BlueCross BlueShield of Utah","/learn/priorAuth/utahPriorAuth.html",9);
				agentAuthWA = new Array("Regence BlueShield (Washington)","/learn/priorAuth/washingtonPriorAuth.html",9);
				agentAuthANH = new Array("Asuris Northwest Health","/learn/priorAuth/asurisPriorAuth.html",9);
		 agentComparisonShop = new Array("Comparison Shopping","/learn/comparisonShop/index.html",1);
		 agentEPocrates = new Array("ePocrates","/resources/physicianResources/ePocrates/index.html",1);
		 agentPrescriptions = new Array("Getting Prescriptions Filled","/learn/agentResearch/prescriptions/index.html",1);
		 	agentLocate = new Array("Locate a Pharmacy","/learn/agentResearch/prescriptions/locate/index.html",2);
		 	agentPharmChains = new Array("Participating Pharmacy Chains","/learn/agentResearch/prescriptions/pharmChains.html",2);
		 	agentMailOrder = new Array("Mail Order Options","/learn/agentResearch/prescriptions/mailOrder.html",2);
		
	 agentSectionResMeds = new Array();
		agentSectionResMeds[z] = agentResMeds;		 	z++;
		<!--agentSectionResMeds[z] = agentMedSearch;	z++;
		agentSectionResMeds[z] = agentCovered;		 	z++;
		agentSectionResMeds[z] = agentAlphaList;		z++;
		agentSectionResMeds[z] = agentTheraList;		z++;
		agentSectionResMeds[z] = agentHealthyOptions;	z++;
		agentSectionResMeds[z] = agentPriceGuide;		z++;
		agentSectionResMeds[z] = agentAltMeds;		 	z++;
		agentSectionResMeds[z] = agentAuth;		 		z++;
		agentSectionResMeds[z] = agentAuthRRx;		 	z++;
		agentSectionResMeds[z] = agentAuthID;		 	z++;
		agentSectionResMeds[z] = agentAuthOR;		 	z++;
		agentSectionResMeds[z] = agentAuthUT;		 	z++;
		agentSectionResMeds[z] = agentAuthWA;		 	z++;
		agentSectionResMeds[z] = agentAuthANH;		 	z++;
		agentSectionResMeds[z] = agentComparisonShop;	z++;
		agentSectionResMeds[z] = agentEPocrates;		z++;
		agentSectionResMeds[z] = agentPrescriptions;	z++;
		agentSectionResMeds[z] = agentLocate;		 	z++;
		agentSectionResMeds[z] = agentPharmChains;		z++;
		agentSectionResMeds[z] = agentMailOrder;		z++;
		
	//************** End Research Medications Section ***********************

	z = 0;
	
	//************** RFP Resources Section ***************************
	 agentAgentRes = new Array("RFP Resources","/resources/agentResources/index.html",0,"AgentRes");
		 agentPML = new Array("PML/Formulary Services","/resources/agentResources/PML/index.html",1);
		 	agentPriorAuth = new Array("Prior Auth/Medication Quantities","/resources/agentResources/PML/priorAuth.html",2);
		 	agentTheraReview = new Array("Therapeutic Class Reviews","/resources/agentResources/PML/theraClassReview.html",2);
		 agentClaims = new Array("Claims Processing Services","/resources/agentResources/claims/index.html",1);
		 agentClinical = new Array("Clinical Services","/resources/agentResources/clinical/index.html",1);
			agentDrugUse = new Array("Drug Utilization Reviews (DURs)","/resources/agentResources/clinical/drugUse.html",2);
			agentCareMgmt = new Array("Care/Disease Management","/resources/agentResources/clinical/careMgmt.html",2);
		 agentConsulting = new Array("Consulting Services","/resources/agentResources/consulting/index.html",1);
		 	agentBenDesign = new Array("Benefit Design Support","/resources/agentResources/consulting/benefitDesign.html",2);
		 <!--  	agentSupport = new Array("Marketing Support","/resources/agentResources/consulting/support.html",2);
		 agentOutreach = new Array("Outreach Services","/resources/agentResources/outreach/index.html",1);
		 agentNetwork = new Array("Rx Network Services","/resources/agentResources/network/index.html",1);
		 	agentMaxCost = new Array("Maximum Allowable Cost","/resources/agentResources/network/maxAllowCost.html",2);
		 	agentAudits = new Array("Pharmacy Audits","/resources/agentResources/network/audits.html",2);
		 agentRebate = new Array("Rebate Services","/resources/agentResources/rebate/index.html",1);
		 	agentGuarantee = new Array("Rebate Guarantees","/resources/agentResources/rebate/guarantees.html",2);
		 agentReporting = new Array("Reporting Services","/resources/agentResources/reporting/index.html",1);
		 agentReqRFP = new Array("Request an Rx Proposal","https://www.regence.com/regenceRx/forms/agentRFP.html",1);
		 agentFAQ = new Array("Agent/Broker FAQs","/resources/agentResources/FAQ/index.html",1);

	 agentSectionAgentRes = new Array();
		agentSectionAgentRes[z] = agentAgentRes;		 z++;
		agentSectionAgentRes[z] = agentPML;				 z++;
		agentSectionAgentRes[z] = agentPriorAuth;		 z++;
		agentSectionAgentRes[z] = agentTheraReview;		 z++;
		agentSectionAgentRes[z] = agentClaims;		 	 z++;
		agentSectionAgentRes[z] = agentClinical;		 z++;
		agentSectionAgentRes[z] = agentDrugUse;		 	 z++;
		agentSectionAgentRes[z] = agentCareMgmt;		 z++;
		agentSectionAgentRes[z] = agentConsulting;		 z++;
		agentSectionAgentRes[z] = agentBenDesign;		 z++;
		<!-- agentSectionAgentRes[z] = agentSupport;		 	 z++;
		agentSectionAgentRes[z] = agentOutreach;		 z++;
		agentSectionAgentRes[z] = agentNetwork;		 	 z++;
		agentSectionAgentRes[z] = agentMaxCost;		 	 z++;
		agentSectionAgentRes[z] = agentAudits;		 	 z++;
		agentSectionAgentRes[z] = agentRebate;		 	 z++;
		agentSectionAgentRes[z] = agentGuarantee;		 z++;
		agentSectionAgentRes[z] = agentReporting;		 z++;
		agentSectionAgentRes[z] = agentReqRFP;		 	 z++;
		agentSectionAgentRes[z] = agentFAQ;		 		 z++;
	//************** End Use Agent Resources Section ***********************

	z = 0;
	
	//************** Educational Tools *****************************************
	 agentEducationalTools = new Array("Educational Tools","/prescriptions/agentTools/index.html",0,"EducationalTools");
				 agentCommunication = new Array("Good Communication with Your Doctor","/prescriptions/physicianTools/communication/index.html",1);
				 agentConsumer = new Array("ConsumerRx","/prescriptions/physicianTools/consumer/index.html",1);
		agentGenerics = new Array("Generics","/prescriptions/physicianTools/generics/index.html",1);
		  	agentComparison = new Array("Brand/Generic Comparison","/prescriptions/physicianTools/generics/comparison/index.html",2);
		    agentPosters = new Array("Office Posters","/prescriptions/physicianTools/generics/posters/index.html",2);
		agentFormsTraining = new Array("Forms & Training","/prescriptions/agentTools/forms/index.html",1);
			agentMarketing = new Array("Marketing Support","/prescriptions/agentTools/forms/marketingPieces.html",2);
			<!-- agentPresentation = new Array("Presentations","/prescriptions/agentTools/forms/presentations.html",2);
			agentForms = new Array("Forms","/prescriptions/forms/index.html",2);
			agentFormulary = new Array("Formulary Decisions","/prescriptions/physicianTools/formulary/index.html",1);
		
		
	 agentSectionEducationalTools = new Array();
	 	agentSectionEducationalTools[z] = agentEducationalTools;	z++;
		agentSectionEducationalTools[z] = agentConsumer;		 	z++;
		agentSectionEducationalTools[z] = agentCommunication;   z++;
		agentSectionEducationalTools[z] = agentGenerics;		 	z++;
		agentSectionEducationalTools[z] = agentComparison;			z++;
		agentSectionEducationalTools[z] = agentPosters;		 		z++;
		agentSectionEducationalTools[z] = agentFormsTraining;		z++;
		agentSectionEducationalTools[z] = agentMarketing;			z++;
		<!-- agentSectionEducationalTools[z] = agentPresentation;		z++;
		agentSectionEducationalTools[z] = agentForms;			 	z++;
		agentSectionEducationalTools[z] = agentFormulary;			 	z++;
	//************** End RxNews Section *************************************

	z = 0;
	
	//************** View Special Programs Section **************************
	 agentViewProgs = new Array("View Special Programs","/programs/agentPrograms/index.html",0,"ViewProgs");
		 agentGenericIncentive= new Array("Generic Incentive Program","/programs/genericIncentive/index.html",1);
		 agentGlucose = new Array("Blood Glucose Meter","/programs/bloodGlucose/index.html",1);
		 agentCurascript = new Array("Walgreens Specialty","/programs/walgreens/agent-index.html",1);
		 agentHalfTablet = new Array("Half-Tablet","/programs/halfTablet/index.html",1);
	 	agentPatientAssistance = new Array("Financial/Patient Assistance","/programs/assistance/index.html",1);

	 agentSectionViewProgs = new Array();
		agentSectionViewProgs[z] = agentViewProgs;			 z++;
		agentSectionViewProgs[z] = agentGenericIncentive;			 z++;
		agentSectionViewProgs[z] = agentGlucose;			 z++;
		agentSectionViewProgs[z] = agentCurascript;			 z++;
		agentSectionViewProgs[z] = agentHalfTablet;			 z++;
		agentSectionViewProgs[z] = agentPatientAssistance;	 z++;
	//************** End View Special Programs Section **********************

	 agentSections = new Array(agentSectionMeetRegRx,agentSectionResMeds,agentSectionAgentRes,agentSectionEducationalTools,agentSectionViewProgs);

	////{{{{{{{{{{{{{{{{{{{{{{{ End Agent Site }}}}}}}}}}}}}}}}}}}}}}}}}}}}}

	//-------------------------------------------------------------------------

	//{{{{{{{{{{{{{{{{{{{{{{{{{ Physician Site }}}}}}}}}}}}}}}}}}}}}}}}}}}}}}
	
	z = 0;
	
	//************** Meet RegenceRx Section ***************************
	 physicianMeetRegRx = new Array("Meet RegenceRx","/meet/index.html",0,"MeetRegRx");
		 physicianAboutRegence = new Array("About the Regence Group","/meet/aboutTRG/index.html",1);
		 physicianPhysicianNews = new Array("RxNews For Physicians","/meet/physicianNews/index.html",1);
		 		physicianNewsMcKesson = new Array("Mckesson Specialty","/meet/rxNews/060331McKessonSpecialtyPickedAsSpecialtyProvider.html",9);
				physicianNewsMcKessonSelected = new Array("McKesson Specialty Pharmacy","/meet/rxNews/0604RegenceGroupSelectsMcKessonSpecialty.html",9);
				physicianNewsGeneticTests = new Array("At Home Genetic Tests","/meet/physicianNews/060808AtHomeGeneticTests.html",9);
				physicianNewsGenericStatins = new Array("Generics First – Statin Program","/meet/rxNews/070202StatinProgram.html",9);
		 physicianNewsArchive = new Array("RxNews Archive","/meet/physicianNews/archive.html",2);
				physicianTysabri = new Array("Voluntary suspension of Tysabri Marketing","/meet/physicianNews/040228TysabriMarketingSuspension.html",9);
				physicianNewsBextra = new Array("Voluntary withdrawal of Bextra","/meet/rxNews/050407BextraWithdrawal.html",9);
				physicianNewsDextromethorphan = new Array("Dextromethorphan Talk Paper Issued","/meet/rxNews/050523MedwatchDextromethorphan.html",9);
				physicianNewsDuragesic = new Array("Duragesic fentanyl transdermal system","/meet/physicianNews/050712Duragesic.html",9);
				physicianNewsPalladoneSales = new Array("Palladone Sales Suspended","/meet/physicianNews/050714PalladoneSalesSuspended.html",9);
				physicianNewsDurgesicFentanyl = new Array("Duragesic and Fentanyl Skin Patches","/meet/rxNews/050719FentanylPatches.htm",9);
				physicianNewsAllergyRelief = new Array("Allergy Relief","/meet/rxNews/050815ReliefForAllergySufferers.html",9);
				physicianNewsStrattera = new Array("Strattera","/meet/rxNews/051003IncreasedRiskOfSuicidalThinking.html",9);
				physicianContact = new Array("Contact Us","/meet/contact/index.html",1);
        		

	 physicianSectionMeetRegRx = new Array();
		physicianSectionMeetRegRx[z] = physicianMeetRegRx;		 		z++;
		physicianSectionMeetRegRx[z] = physicianAboutRegence;	 		z++;
		physicianSectionMeetRegRx[z] = physicianPhysicianNews;	 		z++;
		physicianSectionMeetRegRx[z] = physicianNewsMcKesson;	 		z++;
		physicianSectionMeetRegRx[z] = physicianNewsMcKessonSelected;	z++;
		physicianSectionMeetRegRx[z] = physicianNewsGeneticTests;		z++;
		physicianSectionMeetRegRx[z] = physicianNewsGenericStatins; 	z++;
		physicianSectionMeetRegRx[z] = physicianNewsArchive;	 		z++;
		physicianSectionMeetRegRx[z] = physicianTysabri;		 		z++;
		physicianSectionMeetRegRx[z] = physicianNewsBextra;		 		z++;
		physicianSectionMeetRegRx[z] = physicianNewsDextromethorphan;	z++;
		physicianSectionMeetRegRx[z] = physicianNewsDuragesic;	 		z++;
		physicianSectionMeetRegRx[z] = physicianNewsPalladoneSales;	 	z++;
		physicianSectionMeetRegRx[z] = physicianNewsDurgesicFentanyl;	z++;
		physicianSectionMeetRegRx[z] = physicianNewsAllergyRelief;		z++;
		physicianSectionMeetRegRx[z] = physicianNewsStrattera;	 		z++;
		physicianSectionMeetRegRx[z] = physicianContact;		 		z++;
	//************** End Meet RegenceRx Section ********************************

	z = 0;
	
	//************** Research Medications Section ******************************
	 physicianResMeds = new Array("Research Medications","/learn/physicianResearch/index.html",0,"ResMeds");
		 physicianMedPolicy = new Array("Medication Policies","/learn/policy/index.html",1);
		 physicianCovered = new Array("Preferred Medication List (PML)","/learn/physicianResearch/covered/index.html",1);
			 physicianAlphaList = new Array("Alphabetical List","/learn/covered/alpha/index.html",2);
			 physicianTheraList = new Array("Therapeutic Class List","/learn/covered/therapeutic/index.html",2);
			 physicianHealthyOptions = new Array("Healthy Options OTC","/learn/covered/healthyOptionsOTC.html",9);
		 physicianPriceGuide = new Array("RxPrice Guide","/learn/physicianResearch/rxPriceGuide/index.html",1);
		 physicianPhysicianRx = new Array("Therapy Class Review Summaries","/learn/physicianRx/index.html",1);
		 physicianAuth = new Array("Prior Auth/Medication Quantities","/learn/physicianResearch/priorAuth/",1);
		 		physicianAuthRRx = new Array("RegenceRx","/learn/priorAuth/noMedicalPriorAuth.html",9);
				physicianAuthID = new Array("Regence BlueShield of Idaho","/learn/priorAuth/idahoPriorAuth.html",9);
				physicianAuthOR = new Array("Regence BlueCross BlueShield of Oregon","/learn/priorAuth/oregonPriorAuth.html",9);
				physicianAuthUT = new Array("Regence BlueCross BlueShield of Utah","/learn/priorAuth/utahPriorAuth.html",9);
				physicianAuthWA = new Array("Regence BlueShield (Washington)","/learn/priorAuth/washingtonPriorAuth.html",9);
				physicianAuthANH = new Array("Asuris Northwest Health","/learn/priorAuth/asurisPriorAuth.html",9)
		 physicianAltMeds = new Array("Alternatives to Non-Formulary","/learn/physicianResearch/alternatives/index.html",1);
		 physicianGenerics = new Array("About Generics","/learn/physicianResearch/generics/index.html",1);
	
	 physicianSectionResMeds = new Array();
		physicianSectionResMeds[z] = physicianResMeds;		 	 z++;
		physicianSectionResMeds[z] = physicianMedPolicy;		 z++;
		physicianSectionResMeds[z] = physicianCovered;			 z++;
		physicianSectionResMeds[z] = physicianAlphaList;		 z++;
		physicianSectionResMeds[z] = physicianTheraList;		 z++;
		physicianSectionResMeds[z] = physicianHealthyOptions;	 z++;
		physicianSectionResMeds[z] = physicianPriceGuide;		 z++;
		physicianSectionResMeds[z] = physicianPhysicianRx;		 z++;
		physicianSectionResMeds[z] = physicianAuth;		 		 z++;
		physicianSectionResMeds[z] = physicianAuthRRx;			 z++;
		physicianSectionResMeds[z] = physicianAuthID;			 z++;
		physicianSectionResMeds[z] = physicianAuthOR;			 z++;
		physicianSectionResMeds[z] = physicianAuthUT;			 z++;
		physicianSectionResMeds[z] = physicianAuthWA;			 z++;
		physicianSectionResMeds[z] = physicianAuthANH;			 z++;
		physicianSectionResMeds[z] = physicianAltMeds;		 	 z++;
		physicianSectionResMeds[z] = physicianGenerics;		 	 z++;
	//************** End Research Medications Section **************************

	z = 0;
		
	//************** Use Physician Resources Section ***************************
	 physicianPhysicianRes = new Array("Use Physician Resources","/resources/physicianResources/index.html",0,"PhysicianRes");
	 	 physicianCoverage = new Array("How Rx Benefits Work","/resources/physicianResources/basics/index.html",1);
		 	physicianThreeTier = new Array("Three-Tier Rx Benefits","/resources/tiered/threeTier.html",2);
		 	physicianOpen = new Array("Open Rx Benefits","/resources/tiered/open.html",2);
		 	physicianClosed = new Array("Closed Rx Benefits","/resources/tiered/closed.html",2);
		 physicianGlossary = new Array("Glossary of Coverage Terms","/resources/glossary/index.html",1);
		 physicianPrescriptions = new Array("Getting Prescriptions Filled","/resources/physicianResources/prescriptions/index.html",1);
		 physicianLocatePharm = new Array("Locate a Pharmacy","/resources/physicianResources/prescriptions/locate/index.html",2);
		 physicianPharmChains = new Array("Participating Pharmacy Chains","/resources/physicianResources/prescriptions/pharmChains/index.html",2);
		 physicianMailOrder = new Array("Mail Order Options","/resources/physicianResources/prescriptions/mailOrder/index.html",2);
		 physicianDownload = new Array("Download Forms","/resources/physicianResources/forms/index.html",1);
		 physicianEPocrates = new Array("ePocrates","/resources/physicianResources/ePocrates/index.html",1);

	 physicianSectionPhysicianRes = new Array();
		physicianSectionPhysicianRes[z] = physicianPhysicianRes;	 z++;
		physicianSectionPhysicianRes[z] = physicianCoverage;		 z++;
		physicianSectionPhysicianRes[z] = physicianThreeTier;		 z++;
		physicianSectionPhysicianRes[z] = physicianOpen;		 	 z++;
		physicianSectionPhysicianRes[z] = physicianClosed;		 	 z++;
		physicianSectionPhysicianRes[z] = physicianGlossary;		 z++;
		physicianSectionPhysicianRes[z] = physicianPrescriptions;	 z++;
		physicianSectionPhysicianRes[z] = physicianLocatePharm;		 z++;
		physicianSectionPhysicianRes[z] = physicianPharmChains;		 z++;
		physicianSectionPhysicianRes[z] = physicianMailOrder;		 z++;
		physicianSectionPhysicianRes[z] = physicianDownload;		 z++;
		physicianSectionPhysicianRes[z] = physicianEPocrates;		 z++;
	//************** End Use Physician Resources Section ***********************

	z = 0;
	
	//************** Educational Tools Section *****************************************
	 physicianEducationalTools = new Array("Educational Tools","/prescriptions/physicianTools/index.html",0,"EducationalTools");
		 physicianConsumer = new Array("ConsumerRx","/prescriptions/physicianTools/consumer/index.html",1);
		 physicianCommunication = new Array("Good Communication with Your Doctor","/prescriptions/physicianTools/communication/index.html",1);
		 physicianGenerics = new Array("Generics","/prescriptions/physicianTools/generics/index.html",1);
			physicianComparison = new Array("Brand/Generic Comparison","/prescriptions/physicianTools/generics/comparison/index.html",2);
		    physicianPosters = new Array("Office Posters","/prescriptions/physicianTools/generics/posters/index.html",2);
		 physicianFormulary = new Array("Formulary Decisions","/prescriptions/physicianTools/formulary/index.html",1);
		
	 physicianSectionEducationalTools = new Array();
		physicianSectionEducationalTools[z] = physicianEducationalTools;	z++;
		physicianSectionEducationalTools[z] = physicianConsumer;		 	z++;				
		physicianSectionEducationalTools[z] = physicianCommunication;		z++;
		physicianSectionEducationalTools[z] = physicianGenerics;			z++;
		physicianSectionEducationalTools[z] = physicianComparison;			z++;
		physicianSectionEducationalTools[z] = physicianPosters;			 	z++;
		physicianSectionEducationalTools[z] = physicianFormulary;		 	z++;
	//************** End Educational Tools Section *************************************

	z = 0;
	
	//************** View Special Programs Section **************************
	 physicianViewProgs = new Array("View Special Programs","/programs/physicianPrograms/index.html",0,"ViewProgs");
		 physicianGenericIncentive = new Array("Generic Incentive Program","/programs/genericIncentive/index.html",1);
		 physicianGlucose = new Array("Blood Glucose Meter","/programs/physicianPrograms/bloodGlucose/index.html",1);
		 physicianCurascript = new Array("Walgreens Specialty","/programs/physicianPrograms/walgreens/index.html",1);
		 physicianHalfTablet = new Array("Half-Tablet","/programs/physicianPrograms/halfTablet/index.html",1);
		 physicianAssistance = new Array("Patient Assistance","/programs/assistance/index.html",1);

	 physicianSectionViewProgs = new Array();
		physicianSectionViewProgs[z] = physicianViewProgs;		 z++;
		physicianSectionViewProgs[z] = physicianGenericIncentive;		 z++;
		physicianSectionViewProgs[z] = physicianGlucose;		 z++;
		physicianSectionViewProgs[z] = physicianCurascript;		 z++;
		physicianSectionViewProgs[z] = physicianHalfTablet;		 z++;
		physicianSectionViewProgs[z] = physicianAssistance;		 z++;
	//************** End View Special Programs Section **********************
	
//Don't forget to change me if you've changed any of the five main sections 

		 physicianSections = new Array(physicianSectionMeetRegRx,physicianSectionResMeds,physicianSectionPhysicianRes,physicianSectionEducationalTools,physicianSectionViewProgs);
		 
	////{{{{{{{{{{{{{{{{{{{{{{{ End Physician Site }}}}}}}}}}}}}}}}}}}}}}}}}}}}}
}