



function getStyle(inputVal){
	if(inputVal == "Italic" || inputVal == "Bold Italic"){
		return "Italic";
	}else{
		return "Normal";
	}
}
function getWeight(inputVal){
	if(inputVal == "Bold" || inputVal == "Bold Italic"){
		return "Bold";
	}else{
		return "Normal";
	}
}

function reloadNav(){
	}
function SelectItem(newItem){
	if (parent.setSelectedSecondaryID) {
		parent.setSelectedSecondaryID(newItem);
	}else{
		self.location = "goto.asp?LinkType=nav&LPObjID=" + newItem;
	}
}

function getSecUnselectedSpan(index)
{
	var retval = "";
	retval +=  ("<A");
		retval +=  (" HREF=\"javascript:SelectItem(" + NavArray[index].itemID + ")\"");
		retval +=  (" CLASS=\"NoUnderline\"");
		retval +=  (">");
	retval +=  ("<SPAN");
		retval +=  (" CLASS=\"SecUnselectedSpan\"");
		retval +=  (" TITLE=\"" + NavArray[index].desc + "\"");
		retval +=  (" ONMOUSEOVER=\"top.status='" + NavArray[index].desc + "';this.color='" + SecFontSelColor + "';return true;\" ");
		retval +=  (" ONMOUSEOUT=\"top.status='';this.color='" + SecFontColor + "';return true;\" ");
		retval +=  (">");
	retval +=  (NavArray[index].name);
	retval +=  ("</SPAN>");
	retval +=  ("</A>");
	return retval;
}

function getSecUnselectedImage(index)
{
	var retval = "";
	retval += ("<A");
		retval += (" HREF=\"javascript:SelectItem(" + NavArray[index].itemID + ")\"");
		retval += (">");
	retval += ("<IMG");
		retval += (" ONMOUSEOVER=\"top.status='" + NavArray[index].desc + "';return true;\" ");
		retval += (" ONMOUSEOUT=\"top.status='';return true;\"");
		retval += (" SRC=\"navImages/" + NavArray[index].uDisplay + "\"");
		retval += (" WIDTH=\"95\"");
		retval += (" HEIGHT=\"18\"");
		retval += (" VSPACE=\"1\"");
		retval += (" BORDER=\"0\"");
		retval += (" ALT=\"" + NavArray[index].desc + "\"");
		retval += (">");
	retval += ("</A>");
	return retval;
}

function getSecSelectedImage(index)
	{
	var retval = "";
	retval += ("<A");
		retval += (" HREF=\"javascript:SelectItem(" + NavArray[index].itemID + ")\"");
		retval += (">");
			
	retval += ("<IMG");
		retval += (" ONMOUSEOVER=\"top.status='" + NavArray[index].desc + "';return true;\"");
		retval += (" ONMOUSEOUT=\"top.status='';return true;\"");
		retval += (" SRC=\"navImages/" + NavArray[index].sDisplay + "\"");
		retval += (" WIDTH=\"95\"");
		retval += (" HEIGHT=\"18\"");
		retval += (" VSPACE=\"1\"");
		retval += (" BORDER=\"0\"");
		retval += (" ALT=\"" + NavArray[index].desc + "\"");
		retval += (">");
	retval += ("</A>");
	return retval;
	}

function getSecSelectedSpan(index)
	{
	var retval = "";
	retval += ("<A");
		retval += (" HREF=\"javascript:SelectItem(" + NavArray[index].itemID + ")\"");
		retval += (" CLASS=\"NoUnderline\"");
		retval += (">");
			
	retval += ("<SPAN")
		retval += (" CLASS=\"SecSelectedSpan\"");
		retval += (" TITLE=\"" + NavArray[index].desc + "\"");
		retval += (" ONMOUSEOVER=\"top.status='" + NavArray[index].desc + "';return true;\"");
		retval += (" ONMOUSEOUT=\"top.status='';return true;\"");
		retval += (">");
	retval += (NavArray[index].name);
	retval += ("</SPAN>");
	retval += ("</A>");
	return retval;
	}


/* Make sure styles are right */
var SecUnselStyle = getStyle(SecFontStyle);
var SecSelStyle = getStyle(SecFontSelStyle);
var SecUnselWeight = getWeight(SecFontStyle);
var SecSelWeight = getWeight(SecFontSelStyle);
var output = "";

	if (parent){
		if (parent.selectedSecondaryID) {//there is a parent frame get the id from there
			selectedSecondaryID = parent.getSelectedSecondaryID();
		}else{//no parent frame get the id from the page number
			selectedSecondaryID = self.location.pathname.substring(self.location.pathname.lastIndexOf("/")+1,self.location.pathname.lastIndexOf("."));
		}
		if (parent.selectedPrimaryID) {//there is a parent frame get the id from there
			selectedPrimaryID = parent.getSelectedPrimaryID();
		}else{//no parent frame get the Id from the navArray
			for(var i =0; i< navArray.length; i++){
				if (navArray[i].itemID == selectedSecondaryID){
					selectedPrimaryID = navArray[i].myParent;
				}
			}
		}
		
	}

if (!document.layers){
	output += '<' + 'style type="text/css">\n';
	output += '.NoUnderline {text-decoration: none}\n';
	output += '.SecSelectedSpan {color: ' + SecFontSelColor + ';\n';
	output += '		font-family: ' + SecFontFace + ';\n';
	output += '		font-size: ' + SecFontSize + 'px;\n';
	output += '		font-weight: ' + SecSelWeight + ';\n';
	output += '		font-style: ' + SecSelStyle + '}\n';

	output += '.SecUnselectedSpan {color: ' + SecFontColor + ';\n';
	output += '		font-family: ' + SecFontFace + ';\n';
	output += '		font-size: ' + SecFontSize + 'px;\n';
	output += '		font-weight: ' + SecUnselWeight + ';\n';
	output += '		font-style: ' + SecUnselStyle + '}\n';
	output += '</style>\n';
}
document.write (output);

document.write ("<TABLE CELLPADDING='0' CELLSPACING='0'>");
	
document.write ("<TR>");


NavArray = getPartialNav(2, selectedPrimaryID);
for (var i=0;i<NavArray.length;i++)
	{
	document.write ("<TD ALIGN='" + SecAlign + "' >");
	if (NavArray[i].itemID == selectedSecondaryID)
		{
		if (SecNavStyle == "Image")
			{
			// Selected Image
			document.write ("<A ");
				document.write ("HREF='javascript:SelectItem(" + NavArray[i].itemID + ")' ");
				document.write (">");

			document.write ("<IMG ");
				document.write ("ONMOUSEOVER=\"top.status='" + NavArray[i].desc + "';");
					document.write ("return true;\" ");
				document.write ("ONMOUSEOUT=\"top.status=''");
					document.write (";return true;\" ");
				document.write ("SRC='navImages/" + NavArray[i].sDisplay + "' ");
				document.write ("WIDTH=95 ");
				document.write ("HEIGHT=18 ");
				document.write ("VSPACE='1' ");
				document.write ("BORDER=0 ");
				document.write ("ALT='" + NavArray[i].desc + "'>");

			document.write ("</A>");
			}
		else
			{
			// Selected Span
			document.write ("&nbsp;&nbsp;");
			
			document.write ("<A ");
				document.write ("HREF='javascript:SelectItem(" + NavArray[i].itemID + ")' ");
				document.write ("STYLE='TEXT-DECORATION=none;' ");
				document.write (">");
			
			document.write ("<SPAN ")
				document.write ("STYLE='")
				document.write ("color: " + SecFontSelColor + ";")
				document.write ("font-family: " + SecFontFace + ";")
				document.write ("font-size: " + SecFontSize + ";")
				document.write ("font-weight: " + SecSelWeight + ";")
				document.write ("font-style: " + SecSelStyle + "' ")
				document.write ("TITLE='" + NavArray[i].desc + "' ")
				document.write ("ONMOUSEOVER=\"top.status='" + NavArray[i].desc + "';");
					document.write ("return true;\" ");
				document.write ("ONMOUSEOUT=\"top.status='';");
					document.write ("return true;\"")
				document.write (">");

			document.write (NavArray[i].name);
	
			document.write ("</SPAN>");
			
			document.write ("</A>");

			document.write ("&nbsp;&nbsp;");
			}
		}
	else
		{
		if (SecNavStyle == "Image")
			{
			// Unselected Image
			document.write ("<A ");
				document.write ("HREF='javascript:SelectItem(" + NavArray[i].itemID + ")' ");
				document.write (">");
			
			document.write ("<IMG ");
				document.write ("ONMOUSEOVER=\"top.status='" + NavArray[i].desc + "';");
					document.write ("return true;\" ");
				document.write ("ONMOUSEOUT=\"top.status='';");
					document.write ("return true;\" ");
				document.write ("SRC='navImages/" + NavArray[i].uDisplay + "' ");
				document.write ("WIDTH=95 ");
				document.write ("HEIGHT=18 ");
				document.write ("VSPACE='1' ");
				document.write ("BORDER=0 ");
				document.write ("ALT='" + NavArray[i].desc + "' ");
				document.write (">");
			
			document.write ("</A>");
			}
		else
			{
			// Unselected Span
			document.write ("&nbsp;&nbsp;");
			
			document.write ("<A ");
				document.write ("HREF='javascript:SelectItem(" + NavArray[i].itemID + ")' ");
				document.write ("STYLE='TEXT-DECORATION=none;' ");
				document.write (">");
			
			document.write ("<SPAN ");
				document.write ("STYLE=\"");
					document.write ("color: " + SecFontColor + "; ");
					document.write ("font-family: " + SecFontFace + "; ");
					document.write ("font-size: " + SecFontSize + "; ");
					document.write ("font-weight: " + SecUnselWeight + "; ");
					document.write ("font-style: " + SecUnselStyle + "\" ");
				document.write ("TITLE='" + NavArray[i].desc + "' ");
				document.write ("ONMOUSEOVER=\"top.status='" + NavArray[i].desc + "';");
					document.write ("this.color='" + SecFontSelColor + "';");
					document.write ("return true;\" ");
				document.write ("ONMOUSEOUT=\"top.status='';");
					document.write ("this.color='" + SecFontColor + "';return true;\" ");
				document.write (">");

			document.write (NavArray[i].name);
			
			document.write ("</SPAN>");
			
			document.write ("</A>");
			
			document.write ("&nbsp;&nbsp;");
			}
		}
			
	document.write ("</TD>");
	}

document.write ("</TR>");
document.write ("</TABLE>");