<!--
	
	function addLoadEvent(func) {
		var oldonload = window.onload;
		if (typeof window.onload != 'function') {
			window.onload = func;
		} else {
			window.onload = function() {
				oldonload();
				func();
			}
		}
	}
	
	
	// Removes leading whitespaces
	function LTrim(value) {
		var re = /\s*((\S+\s*)*)/;
		return value.replace(re, "$1");
	}
	
	// Removes ending whitespaces
	function RTrim(value) {
		var re = /((\s*\S+)*)\s*/;
		return value.replace(re, "$1");
	}
	
	// Removes leading and ending whitespaces
	function trim(value) {
		return LTrim(RTrim(value));
	}
	
	function highlightLeftNav() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("leftnavcell")) return false;
		
		var leftNav = document.getElementById("leftnavcell");
		var navLinks = leftNav.getElementsByTagName("a");
		
		for (var i=0; i<navLinks.length; i++) {
			var linkUrl = navLinks[i].getAttribute("href");
			var trimLinkUrl = trim(linkUrl);
			var currentUrl = window.location.href;
			if (currentUrl.indexOf(trimLinkUrl) != -1) {
				navLinks[i].className = "current";
			}
		}
	}
	
	function adjustLeftNav() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("leftnavcell")) return false;
		
		var leftNav = document.getElementById("leftnavcell");
		var navItem = leftNav.getElementsByTagName("li");
		
		navItem[0].className = "first";
	}
	
	function adjustBlockquote() {
		if (!document.getElementsByTagName) return false;
		if (!document.getElementById) return false;
		if (!document.getElementById("maincontentsubcell")) return false;
		
		var subContent = document.getElementById("maincontentsubcell");
		var breadCrumb = subContent.getElementsByTagName("blockquote");

		if (breadCrumb.length>=1) {
			var crumbLinks = breadCrumb[0].getElementsByTagName("a");
		
			for (var i=0; i<crumbLinks.length; i++) {
				var linkUrl = crumbLinks[i].getAttribute("href");
				var trimLinkUrl = trim(linkUrl);
				var currentUrl = window.location.href;
				if (currentUrl.indexOf(trimLinkUrl) != -1) {
					crumbLinks[i].className = "current";
				}
			}
		}
	}
	
	addLoadEvent(highlightLeftNav);
	addLoadEvent(adjustLeftNav);
	addLoadEvent(adjustBlockquote);
	
-->