function getChildElementsByTagName(obj,tagname){tagname=tagname.toUpperCase();var matching=[];
var child=obj.firstChild;while(child){if(child.nodeType==1&&(child.nodeName.toUpperCase()==tagname)){matching.push(child);
}child=child.nextSibling;}return matching;}function getAllChildElementsByTagName(obj,tagname){tagname=tagname.toUpperCase();
var matching=new Array();checkChildren(obj,tagname,matching);return matching;}function checkChildren(obj,tagname,matching){var children=obj.childNodes;
if(children&&children.length>0){for(var i=0;i<children.length;i++){var child=children[i];
if(children[i].nodeType==1&&children[i].nodeName.toUpperCase()==tagname){matching.push(children[i]);
}if(children[i].nodeType==1&&children[i].childNodes.length>0){checkChildren(children[i],tagname,matching);
}}}return matching;}if(typeof CDC=="undefined"){var CDC=new Object();}if(typeof CDC.LeftNav=="undefined"){CDC.LeftNav=new Object();
}CDC.LeftNav=function(ulTagId,parentUrl,showSiblings,showChildren){var currentLocationWoHash=location.hostname+location.pathname;
if(location.search){currentLocationWoHash=location.hostname+location.pathname+location.search;
}var currentLocationWHash;if(location.hash){if(location.search){currentLocationWHash=location.hostname+location.pathname+location.search+location.hash;
}else{currentLocationWHash=location.hostname+location.pathname+location.hash;}}var directoryDefault=false;
var documentArray=new Array("index.htm","index.html","default.html","default.htm","index.asp","index.aspx","default.asp","default.aspx");
var directoryDefault=false;if(currentLocationWoHash.substr(currentLocationWoHash.length-1,1)=="/"){directoryDefault=true;
}this.attributes=new Array();if(typeof ulTagId=="undefined"){this.setAttribute("CDC_LEFT_NAV_ID","nav-primary");
}else{this.setAttribute("CDC_LEFT_NAV_ID",ulTagId);}if(typeof parentUrl=="undefined"||parentUrl==""){this.setAttribute("parentUrl",this.normalizedUrl(currentLocationWoHash));
this.setAttribute("parentSpecified",false);}else{this.setAttribute("parentUrl",this.normalizedUrl(parentUrl));
this.setAttribute("parentSpecified",true);}if(typeof showSiblings=="undefined"){this.setAttribute("showSiblings",true);
}else{this.setAttribute("showSiblings",showSiblings);}if(typeof showChildren=="undefined"){this.setAttribute("showChildren",true);
}else{this.setAttribute("showChildren",showChildren);}this.setAttribute("documentArray",documentArray);
this.setAttribute("currentLocationWoHash",this.normalizedUrl(currentLocationWoHash));
if(typeof currentLocationWHash!="undefined"){this.setAttribute("currentLocationWHash",this.normalizedUrl(currentLocationWHash));
}this.setAttribute("directoryDefault",directoryDefault);this.setAttribute("CDC_LEFT_NAV_HIDE_CLASS","ulHide");
this.setAttribute("CDC_LEFT_NAV_DISPLAY_CLASS","ulDisplay");this.setAttribute("preProcessTrees",true);
};CDC.LeftNav.prototype={setAttribute:function(name,value){this.attributes[name]=value;
},getAttribute:function(name){return this.attributes[name];},render:function(){var displayClass=this.getAttribute("CDC_LEFT_NAV_DISPLAY_CLASS");
var hideClass=this.getAttribute("CDC_LEFT_NAV_HIDE_CLASS");var showSiblings=this.getAttribute("showSiblings");
var showChildren=this.getAttribute("showChildren");var showFourthLevel=this.getAttribute("showFourthLevel");
var id=this.getAttribute("CDC_LEFT_NAV_ID");var parentUrl=this.getAttribute("parentUrl");
var parentSpecified=this.getAttribute("parentSpecified");this.setAttribute("currentWoLocation",parentUrl);
var leftNav=GetElementById(id);if(leftNav){var elems=getAllChildElementsByTagName(leftNav,"ul");
for(var i=0;i<elems.length;i++){this.transformDisplay(elems[i],hideClass);}elems=getChildElementsByTagName(leftNav,"li");
for(var i=0;i<elems.length;i++){var childElems=getAllChildElementsByTagName(elems[i],"li");
for(var j=0;j<childElems.length;j++){this.transformDisplay(childElems[j],hideClass);
}}var selectedAnchor;var documentArray=this.getAttribute("documentArray");var directoryDefault=this.getAttribute("directoryDefault");
var currentLocationWoHash;if(this.getAttribute("currentLocationWoHash")){currentLocationWoHash=this.getAttribute("currentLocationWoHash").toLowerCase();
}var currentLocationWHash=this.getAttribute("currentLocationWHash");var found=false;
var navLinks=getAllChildElementsByTagName(leftNav,"a");if(parentSpecified){for(var i=0;
i<navLinks.length;i++){var navLink=navLinks[i];if(navLink.href){var curLink=CDC.LeftNav.prototype.normalizedUrl(navLink.href).toLowerCase();
if(curLink==parentUrl){selectedAnchor=navLink;found=true;break;}}}if(found&&selectedAnchor&&selectedAnchor.parentNode){var foundChild=false;
var childrenUls=getChildElementsByTagName(selectedAnchor.parentNode,"ul");if(childrenUls&&childrenUls.length>0){for(var n=childrenUls[0].firstChild;
n;n=n.nextSibling){if(n.nodeName.toLowerCase()=="li"){var navLink=n.firstChild;if(currentLocationWoHash){if(navLink.href){var curLink=CDC.LeftNav.prototype.normalizedUrl(navLink.href).toLowerCase();
if(curLink==currentLocationWoHash){foundChild=true;break;}else{if(directoryDefault){for(var j=0;
j<navLinks.length;j++){var doc=documentArray[j];if(curLink==currentLocationWoHash+doc){foundChild=true;
break;}}}}}}}}}if(showChildren&&!foundChild&&CDC.LeftNav.prototype.normalizedUrl(selectedAnchor.href)!=currentLocationWHash&&CDC.LeftNav.prototype.normalizedUrl(selectedAnchor.href)!=currentLocationWoHash){var newUlNode=document.createElement("ul");
var newLiNode=document.createElement("li");var newANode=document.createElement("a");
newANode.href=document.location;newANode.className="selected";var newTextNode=document.createTextNode(document.title);
newUlNode.appendChild(newLiNode);newLiNode.appendChild(newANode);newANode.appendChild(newTextNode);
selectedAnchor.parentNode.appendChild(newUlNode);selectedAnchor=newANode;}else{if(showChildren&&(foundChild||CDC.LeftNav.prototype.normalizedUrl(selectedAnchor.href)==currentLocationWHash||CDC.LeftNav.prototype.normalizedUrl(selectedAnchor.href)==currentLocationWoHash)){this.transformDisplay(selectedAnchor,"selected");
}}}}else{for(var i=0;i<navLinks.length;i++){var navLink=navLinks[i];if(currentLocationWoHash){if(navLink.href){var curLink=CDC.LeftNav.prototype.normalizedUrl(navLink.href).toLowerCase();
if(curLink==currentLocationWoHash){this.transformDisplay(navLink,"selected");selectedAnchor=navLink;
found=true;break;}else{if(directoryDefault){for(var j=0;j<navLinks.length;j++){var doc=documentArray[j];
if(curLink==currentLocationWoHash+doc){if(!(parentSpecified&&showChildren)){this.transformDisplay(navLink,"selected");
}selectedAnchor=navLink;found=true;break;}}}}}}}if(!found&&currentLocationWHash&&currentLocationWHash.length>0){for(var i=0;
i<navLinks.length;i++){var navLink=navLinks[i];if(navLink.href){var curLink=CDC.LeftNav.prototype.normalizedUrl(navLink.href).toLowerCase();
if(curLink==currentLocationWHash){this.transformDisplay(navLink,"selected");selectedAnchor=navLink;
found=true;break;}}}}}if(selectedAnchor){var selectedLi=selectedAnchor.parentNode;
this.transformDisplay(selectedLi,displayClass);var parent=selectedLi.parentNode;while(parent&&parent.nodeName.toLowerCase()!="div"){if(parent.nodeName.toLowerCase()=="ul"){this.transformDisplay(parent,displayClass);
}if(parent.nodeName.toLowerCase()=="li"){this.transformDisplay(parent,displayClass);
for(var n=parent.parentNode.firstChild;n;n=n.nextSibling){if(n.nodeName.toLowerCase()=="li"&&n!=parent){var currentClass=n.className;
if(currentClass&&currentClass.length>0){currentClass=currentClass.replace(hideClass,"");
if(currentClass.indexOf(displayClass)<0){currentClass=currentClass+" "+displayClass;
}}else{currentClass=displayClass;}n.className=currentClass;}}}parent=parent.parentNode;
}if(showSiblings){for(var n=selectedLi.parentNode.firstChild;n;n=n.nextSibling){if(n.nodeName.toLowerCase()=="li"&&n!=selectedLi){var currentSibClass=n.className;
if(currentSibClass&&currentSibClass.length>0){currentSibClass=currentSibClass.replace(hideClass,"");
if(currentSibClass.indexOf(displayClass)<0){currentSibClass=currentSibClass+" "+displayClass;
}}else{currentSibClass=displayClass;}n.className=currentSibClass;}}}if(showChildren){var childUl=getChildElementsByTagName(selectedLi,"ul");
if(childUl&&childUl.length>0){this.transformDisplay(childUl[0],displayClass);for(var n=childUl[0].firstChild;
n;n=n.nextSibling){if(n.nodeName.toLowerCase()=="li"&&n!=selectedLi){this.transformDisplay(n,displayClass);
}}}}var p=selectedLi.parentNode;var crumbs=new Array();while(p){if(p.tagName.toLowerCase()!="div"){this.transformDisplay(p,displayClass);
if(p.tagName.toLowerCase()=="li"){var parentAnchors=p.getElementsByTagName("a");if(parentAnchors&&parentAnchors.length>0){crumbs.push(parentAnchors[0]);
}}}else{break;}p=p.parentNode;}var bcElem=GetElementById("breadcrumbs");if(bcElem){var tlink=this.getTopicLink();
if(tlink!=null){crumbs.push(tlink);}if(crumbs.length>0){var bbElem=GetElementById("breadBox");
if(bbElem){bbElem.style.height="auto";}}var hasInitialLis=false;var breadcrumbLis=getChildElementsByTagName(bcElem,"li");
if(breadcrumbLis&&breadcrumbLis.length>0){if(breadcrumbLis.length>0){var firstBreadcrumbLi=breadcrumbLis[0];
if(firstBreadcrumbLi.style.display.toLowerCase()!="none"){hasInitialLis=true;}else{hasInitialLis=false;
}}}for(var j=crumbs.length-1;j>=0;j--){var newLiNode=document.createElement("li");
if((j==crumbs.length-1)&&!hasInitialLis){newLiNode.className="firstChild";}var newANode=document.createElement("a");
newANode.href=crumbs[j].href;newANode.innerHTML=crumbs[j].innerHTML;bcElem.appendChild(newLiNode);
newLiNode.appendChild(newANode);}}}}},transformDisplay:function(currentElement,newClass){var hideClass=this.getAttribute("CDC_LEFT_NAV_HIDE_CLASS");
if(currentElement&&currentElement.nodeName!="#text"){if(newClass==hideClass){currentElement.className=newClass;
}else{currentElement.className=newClass;}}},getTopicLink:function(){var topicLink=null;
var navDiv=GetElementById("nav");if(navDiv){var navHeaders=navDiv.getElementsByTagName("h3");
if(navHeaders&&navHeaders.length>0){var navHeader=navHeaders[0];var anchors=navHeader.getElementsByTagName("a");
if(anchors&&anchors.length>0){topicLink=anchors[0];}}}return topicLink;},normalizedUrl:function(url){var result=url.toLowerCase();
result=result.replace("http://","");result=result.replace("https://","");result=result.replace(location.hostname,"");
return result.toLowerCase();}};
