// Gets the active subnav element and sets its class to "active"

if (document.getElementById("SubNavigation")) {
	var sublinks = document.getElementById ( "SubNavigation" ).getElementsByTagName ("A");

	for ( var x = 0; x < sublinks.length; x ++ ) {
		
		if ( sublinks[x].href.indexOf('/'+jNavPageNameRef)>0 ) {
			
			sublinks[x].className = "active";		
			
		} else {
			
			sublinks[x].className = "subnav";
			
		}
		
	}
}