var nav_05SUB = new Object();

nav_05SUB.mouseoverBold="true";
nav_05SUB.selectedBgcolor="";
nav_05SUB.importedImageMouseOver="";
nav_05SUB.numLinks="3";
nav_05SUB.textColor="#000000";
nav_05SUB.mouseoverBgcolor="";
nav_05SUB.tabCategory="basic";
nav_05SUB.border="";
nav_05SUB.selectedItalic="false";
nav_05SUB.graphicMouseover="true";
nav_05SUB.type="Navigation";
nav_05SUB.basicTab="White";
nav_05SUB.horizontalSpacing="10";
nav_05SUB.horizontalWrap="5";
nav_05SUB.shinyButton="Shiny_Aqua";
nav_05SUB.mouseoverEffect="true";
nav_05SUB.modernButton="Basic_Black";
nav_05SUB.orientation="vertical";
nav_05SUB.funButton="Arts_and_Crafts";
nav_05SUB.darkButton="Basic_Black";
nav_05SUB.selectedTextcolor="#9E0704";
nav_05SUB.lineWidth="2";
nav_05SUB.mouseoverTextcolor="#8CF00A";
nav_05SUB.bold="false";
nav_05SUB.texturedButton="Brick";
nav_05SUB.accentStyle="Square";
nav_05SUB.style="text";
nav_05SUB.holidayButton="Christmas_Ornaments";
nav_05SUB.textSize="10";
nav_05SUB.lineColor="#000000";
nav_05SUB.brightButton="Chicky";
nav_05SUB.mouseoverUnderline="false";
nav_05SUB.accentColor="Black";
nav_05SUB.imageHeight="";
nav_05SUB.background="";
nav_05SUB.textFont="Times New Roman";
nav_05SUB.hasLinks="true";
nav_05SUB.sophisticatedButton="Antique";
nav_05SUB.underline="false";
nav_05SUB.simpleButton="Autumn_Leaves";
nav_05SUB.italic="false";
nav_05SUB.importedImageSelected="";
nav_05SUB.basicButton="Gray";
nav_05SUB.navID="nav_05SUB";
nav_05SUB.buttonCategory="basic";
nav_05SUB.dirty="false";
nav_05SUB.selectedBold="true";
nav_05SUB.selectedEffect="true";
nav_05SUB.graphicSelected="true";
nav_05SUB.version="5";
nav_05SUB.verticalSpacing="10";
nav_05SUB.squareTab="Camel";
nav_05SUB.mouseoverItalic="true";
nav_05SUB.justification="left";
nav_05SUB.imageWidth="";
nav_05SUB.selectedUnderline="true";
nav_05SUB.accentType="left";
nav_05SUB.importedImage="";
nav_05SUB.width="159";
nav_05SUB.height="75";

nav_05SUB.navName = "05SUB";
nav_05SUB.imagePath = "/~media/elements/LayoutClipart/../LayoutClipart/AccentGraphics/Accent_Square_Black.gif";
nav_05SUB.selectedImagePath = "/~media/elements/LayoutClipart/";
nav_05SUB.mouseOverImagePath = "/~media/elements/LayoutClipart/";
nav_05SUB.imageWidth = "16";
nav_05SUB.imageHeight = "16";
nav_05SUB.fontClass = "size10 TimesRoman10";
nav_05SUB.fontFace = "'Times New Roman', Times, serif";


var baseHref = '';
// this will only work if getElementsByTagName works
if (document.getElementsByTagName)
{
    // this will only work if we can find a base tag
    var base = document.getElementsByTagName('base');
    // Verify that the base object exists
    if (base && base.length > 0)
    {
        // if you don't specify a base href, href comes back as undefined
        if (base[0].href != undefined)
        {
            // get the base href
            baseHref = base[0].href;
            // add a trailing slash if base href doesn't already have one
            if (baseHref != '' && baseHref.charAt(baseHref.length - 1) != '/')
            {
                baseHref += '/';
            }
        }
    }
}


nav_05SUB.links=new Array(3);
var nav_05SUB_Link1 = new Object();
nav_05SUB_Link1.type = "existing";
nav_05SUB_Link1.displayName = "An Overall Perspective";
nav_05SUB_Link1.linkWindow = "_self";
nav_05SUB_Link1.linkValue = "Financial-Statements.html";
nav_05SUB_Link1.linkIndex = "1";
nav_05SUB.links[0] = nav_05SUB_Link1;
var nav_05SUB_Link2 = new Object();
nav_05SUB_Link2.type = "existing";
nav_05SUB_Link2.displayName = "Format & Structure";
nav_05SUB_Link2.linkWindow = "_self";
nav_05SUB_Link2.linkValue = "Financial-Statements.html";
nav_05SUB_Link2.linkIndex = "2";
nav_05SUB.links[1] = nav_05SUB_Link2;
var nav_05SUB_Link3 = new Object();
nav_05SUB_Link3.type = "existing";
nav_05SUB_Link3.displayName = "3 Major Statements";
nav_05SUB_Link3.linkWindow = "_self";
nav_05SUB_Link3.linkValue = "Financial-Statements.html";
nav_05SUB_Link3.linkIndex = "3";
nav_05SUB.links[2] = nav_05SUB_Link3;
function backgroundMouseOn(tdElement, newColor)
{
	if(tdElement != null) {
		tdElement.oldBGColor = tdElement.style.backgroundColor;
		tdElement.style.backgroundColor = newColor;
	}
}
function backgroundMouseOff(tdElement)
{
	if(tdElement != null) {
		tdElement.style.backgroundColor = tdElement.oldBGColor;
	}
} 

function doMouseChange(Navigation,tdElement,linkIndex,bisMouseOver) {
	if (Navigation.mouseoverEffect != 'true') {
		return;
	}	
	var link = Navigation.links[linkIndex-1];
	var bIsCurrentPage = isCurrentPage(link);
	var bShowMouseoverBg = !(bIsCurrentPage
			&& 'true' == Navigation.selectedEffect && Navigation.selectedBgcolor);
	var fontElement = getLinkFontElement(tdElement);
	if(fontElement != null) {
		doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver);
	}
	
	if (Navigation.mouseoverBgcolor && bShowMouseoverBg) {
		if(bisMouseOver) {
			backgroundMouseOn(tdElement,Navigation.mouseoverBgcolor);
		} else {
			backgroundMouseOff(tdElement);
		}
	}
}
function addStyle(Navigation, Link, tdElement,vNavTrElement) {
	if (tdElement == null) {
		return;
	}
	var strFontColor = Navigation.textColor;
	if ('true' == Navigation.selectedEffect) {
		if (Navigation.selectedTextcolor) {
			strFontColor = Navigation.selectedTextcolor;
		}
		if (Navigation.selectedBgcolor) {
			if (Navigation.orientation == 'horizontal') {
				tdElement.style.backgroundColor = Navigation.selectedBgcolor;
			} else {
				if (vNavTrElement != null) {
					vNavTrElement.style.backgroundColor = Navigation.selectedBgcolor;
				}
			}
		}
	}
	var fontElement = getLinkFontElement(tdElement);
	if (fontElement != null) {
		fontElement.style.color = strFontColor;
	}
	tdElement.style.color = strFontColor;
	if ('true' == Navigation.selectedEffect) {
		if ('true' == Navigation.selectedBold) {
			tdElement.style.fontWeight = "bold";
		}
		if ('true' == Navigation.selectedItalic) {
			tdElement.style.fontStyle = "italic";
		}
		if ('true' == Navigation.selectedUnderline) {
			tdElement.style.textDecoration = "underline";
		}
	}
}

// Combined escape html and javascript
function escapeHtmlInlineScript(s, escapeSingleQuotes, escapeDoubleQuotes){
	return htmlEncode(escapeScript(s, escapeSingleQuotes, escapeDoubleQuotes));
}

function htmlEncode(s){
	if (typeof(s) != "string") return "";
	
	var result = "";
	for (var i = 0; i < s.length; i++) {
		var ch = s.charAt(i);
		switch (ch) {
		case '<':
			result += "&lt;";
			break;
		case '>':
			result += "&gt;";
			break;
		case '&':
			result += "&amp;";
			break;
		case '"':
			result += "&quot;";
			break;
		case "'":
			result += "&#39;";
			break;
		default:
			result += ch;
		}
	}
	return result;
}

/* escapes slashes and quotes. the default is to escape quotes,
 * but this can be turned off.
 * this function is used for javascript and also for escaping urls
 * within background-image css.	 
 */
function escapeScript(s, escapeSingleQuotes, escapeDoubleQuotes){
	if (typeof(s) != "string") return "";
	
	var result = "";
	for (var i = 0; i < s.length; i++) {
		var ch = s.charAt(i);
		switch (ch) {
		case '\'':
			if (escapeSingleQuotes == null || escapeSingleQuotes)
				result += "\\\'";
			break;
		case '\"':
			if (escapeDoubleQuotes == null || escapeDoubleQuotes)
				result += "\\\"";
			break;
		case '\\':
			result += "\\\\";
			break;
		default:
			result += ch;
		}
	}
	return result;
}

//
// This .js file includes utility functions used by both graphical and text navs
// in their rendering.  User pages including a nav element will import this file, along
// with TextNavigation.js and GraphicNavigation.js.  The functions within will
// be called by the [navname].js file generated at publish time.

function fixLinkValue(Link)
{
	if(Link.type!='existing')
	{
		return Link.linkValue;
	}
	else
	{
		return baseHref + strRelativePathToRoot + Link.linkValue;
	}
}

function isCurrentPage(Link)
{
	if(Link.type!='existing')
	{
		return false;
	}
	var strLinkValue = Link.linkValue.toLowerCase();
	return (strRelativePagePath == strLinkValue);
}

function toggleOnMouseChange(fontElement,newColor, bold, underline, italic)
{
	if(fontElement == null) {
		return;
	}
	if(newColor)
	{
		fontElement.style.color=newColor;
	}
	fontElement.style.fontWeight = (bold=='true' ? 'bold' : 'normal');
	fontElement.style.textDecoration = (underline=='true' ? 'underline' : 'none');
	fontElement.style.fontStyle = (italic=='true' ? 'italic' : 'normal');

}

function doFontChange(Navigation,fontElement,bIsCurrentPage,bisMouseOver) {
	if(fontElement == null) {
		return;
	}
	var textColor;
	var baseTextColor = Navigation.textColor;
	var bold;
	var baseBold = Navigation.bold;
	var underline;
	var baseUnderline = Navigation.underline;
	var italic;
	var baseItalic = Navigation.italic;
	if (bIsCurrentPage && 'true' == Navigation.selectedEffect) {
		textColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor
				: (Navigation.mouseoverTextColor ? Navigation.mouseoverTextcolor
						: Navigation.textColor);
		baseTextColor = Navigation.selectedTextcolor ? Navigation.selectedTextcolor
				: Navigation.textColor;
		baseBold = bold = Navigation.selectedBold;
		baseUnderline = underline = Navigation.selectedUnderline;
		baseItalic = italic = Navigation.selectedItalic;
	} else {
		textColor = Navigation.mouseoverTextcolor ? Navigation.mouseoverTextcolor
				: Navigation.textColor;
		bold = Navigation.mouseoverBold;
		underline = Navigation.mouseoverUnderline;
		italic = Navigation.mouseoverItalic;
	}
	
	if(bisMouseOver) {
		toggleOnMouseChange(fontElement,textColor,bold,underline,italic);
	} else {
		toggleOnMouseChange(fontElement,baseTextColor,baseBold,baseUnderline,baseItalic);
	}
	

}

function addMouseAndStyleSupport05SUB(Navigation,navTbId) {
	var startNode;

	if(typeof(nav_element_id) != 'undefined' && document.getElementById(nav_element_id) != null) {
		startNode = document.getElementById(nav_element_id);
			
	} else if(navTbId != null) {
		startNode = document.getElementById(navTbId);
			
	}
	
	if(startNode != null) {
	  searchForCurrentPageTd(Navigation,startNode);
	}
	

}

function searchForCurrentPageTd(Navigation,startNode) {
	
	if(startNode.childNodes != null) {
		for(var i=0;i<startNode.childNodes.length;i++){
			if(addStyleForCurrentPageTd(Navigation,startNode.childNodes[i])){
			   return;	
			} else {
			   searchForCurrentPageTd(Navigation,startNode.childNodes[i]);
			}
		}
	}

}

function addStyleForCurrentPageTd(Navigation,currentNode) {
	if(Navigation.orientation == 'horizontal') {
		if(currentNode.tagName == 'TD' && currentNode.id != '' && currentNode.id.indexOf(Navigation.navName+navTDLinkPart) != -1){
			var currentTDIdPrefix = Navigation.navName+navTDLinkPart;
			var linkId = currentNode.id.substring(currentTDIdPrefix.length,currentNode.id.length);
			if(isCurrentPage(Navigation.links[linkId-1]) == true) {
				addStyle(Navigation, Navigation.links[linkId-1],currentNode);
				return true;
			}
		}
	} else {
		if(currentNode.tagName == 'TR' && currentNode.id != '' && currentNode.id.indexOf(navTRLinkPrefix) != -1){	
			var currentTRIdPrefix = navTRLinkPrefix+Navigation.navName;
			var linkId = currentNode.id.substring(currentTRIdPrefix.length,currentNode.id.length);
			if(isCurrentPage(Navigation.links[linkId-1]) == true && currentNode.childNodes != null) {
				var currentPageTd;
				for(var i=0;currentNode.childNodes.length;i++) {
					if(typeof(currentNode.childNodes[i].tagName) != 'undefined' && currentNode.childNodes[i].tagName == 'TD' && currentNode.childNodes[i].id.indexOf(Navigation.navName+navTDLinkPart) != -1) {
						currentPageTd = currentNode.childNodes[i];
						addStyle(Navigation, Navigation.links[linkId - 1],currentPageTd,currentNode);
						return true;
					}
				}
			}
		}
	}
	return false;
}

function getChildElementFromTree(startNode,nodesToTraverse) {
	var currentChildNode = startNode;
	
	for(var n= 0;n<nodesToTraverse.length;n++) {
		currentChildNode = getMatchingChildByTag(currentChildNode.childNodes,nodesToTraverse[n]);
	}
	
	return currentChildNode;
}


function getMatchingChildByTag(childNodes,tagName) {
	var child;
	for(var i=0;childNodes.length;i++) {
		if(childNodes[i].tagName == tagName) {
			child = childNodes[i];
			break;
		}
	}
	return child;
}
function getLinkFontElement(tdElement){
	var fontElement;
	var aElement = getChildElementFromTree(tdElement,['A']);
	for(var i=0;i < aElement.childNodes.length;i++) {
		if(aElement.childNodes[i].tagName == 'DIV') {
		 	fontElement = getChildElementFromTree(aElement.childNodes[i],['FONT']);
		 	break;
		} else if(aElement.childNodes[i].tagName == 'FONT'){
		 	fontElement = 	aElement.childNodes[i];
		 	break;
		}
	
	}
	return fontElement;
}



	if(typeof(navTRLinkPrefix) == 'undefined') {
		navTRLinkPrefix = 'vNavTR_Link_';
	}
	if(typeof(navTDLinkPart) == 'undefined') {
		navTDLinkPart = '_Link';
	}
	if(document.getElementById('nav_version') == null) {
	if (typeof(navTBSuffix) == 'undefined') {
	navTBSuffix = 0;
	} else {navTBSuffix++;}
		document.write('<TABLE ID="ntb'+navTBSuffix+'"  CELLSPACING=\"0\" CELLPADDING=\"0\" BORDER=\"0\" ><TR id=\"vNavTR_Link_05SUB1\"><TD ALIGN=\"CENTER\"><IMG NAME=\"ID05SUB1\" SRC=\"\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/AccentGraphics\/Accent_Square_Black.gif\" HEIGHT=\"16\" WIDTH=\"16\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"10\" HEIGHT=\"16\" BORDER=\"0\"><\/TD><TD ALIGN=\"left\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"05SUB_Link1\" style=\"cursor: pointer;cursor: hand;color:#000000;\" onmouseover=\"doMouseChange(nav_05SUB,this,\'1\',true);\" onmouseout=\"doMouseChange(nav_05SUB,this,\'1\',false);\"><A HREF=\"\/Financial-Statements.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"An Overall Perspective\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><FONT ID=\"05SUB_f1\" FACE=\"\'Times New Roman\', Times, serif\" CLASS=\"size10 TimesRoman10\" STYLE=\"color:#000000\">An&nbsp;Overall&nbsp;Perspective<\/FONT><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><TR id=\"vNavTR_Link_05SUB2\"><TD ALIGN=\"CENTER\"><IMG NAME=\"ID05SUB2\" SRC=\"\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/AccentGraphics\/Accent_Square_Black.gif\" HEIGHT=\"16\" WIDTH=\"16\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"10\" HEIGHT=\"16\" BORDER=\"0\"><\/TD><TD ALIGN=\"left\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"05SUB_Link2\" style=\"cursor: pointer;cursor: hand;color:#000000;\" onmouseover=\"doMouseChange(nav_05SUB,this,\'2\',true);\" onmouseout=\"doMouseChange(nav_05SUB,this,\'2\',false);\"><A HREF=\"\/Financial-Statements.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"Format & Structure\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><FONT ID=\"05SUB_f2\" FACE=\"\'Times New Roman\', Times, serif\" CLASS=\"size10 TimesRoman10\" STYLE=\"color:#000000\">Format&nbsp;&amp;&nbsp;Structure<\/FONT><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><TR id=\"vNavTR_Link_05SUB3\"><TD ALIGN=\"CENTER\"><IMG NAME=\"ID05SUB3\" SRC=\"\/~media\/elements\/LayoutClipart\/..\/LayoutClipart\/AccentGraphics\/Accent_Square_Black.gif\" HEIGHT=\"16\" WIDTH=\"16\" BORDER=\"0\"><IMG SRC=\"\/tp.gif\" WIDTH=\"10\" HEIGHT=\"16\" BORDER=\"0\"><\/TD><TD ALIGN=\"left\" VALIGN=\"MIDDLE\" NOWRAP=\"NOWRAP\" id=\"05SUB_Link3\" style=\"cursor: pointer;cursor: hand;color:#000000;\" onmouseover=\"doMouseChange(nav_05SUB,this,\'3\',true);\" onmouseout=\"doMouseChange(nav_05SUB,this,\'3\',false);\"><A HREF=\"\/Financial-Statements.html\" TARGET=\"_self\" STYLE=\"text-decoration:none;\" NAME=\"3 Major Statements\"><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><FONT ID=\"05SUB_f3\" FACE=\"\'Times New Roman\', Times, serif\" CLASS=\"size10 TimesRoman10\" STYLE=\"color:#000000\">3&nbsp;Major&nbsp;Statements<\/FONT><IMG style=\"display: block;\" SRC=\"\/tp.gif\" WIDTH=\"1\" HEIGHT=\"5.0\" BORDER=\"0\"><\/A><\/TD><\/TR><\/TABLE><script type="text/javascript">addMouseAndStyleSupport05SUB(nav_05SUB,"ntb'+navTBSuffix+'");'+'</scri'+'pt>');
	}


