function HighlightMenu() {
	if (document.getElementById("chromemenu")!=null)
	setActive(document.getElementById("chromemenu").getElementsByTagName("a"));
	/*if (document.getElementById("menu2")!=null)
	setActive(document.getElementById("menu2").getElementsByTagName("a"));
	if (document.getElementById("menu3")!=null)
	setActive(document.getElementById("menu3").getElementsByTagName("a"));*/
}

var hrefTemp, hrefString;

function setActive(arr)
{
	for(var i=0; i < arr.length; i++) {
		hrefTemp = arr[i].href.toLowerCase().replace(/index.html/, "");
		if(hrefString.toLowerCase().search( hrefTemp ) != -1)
			addClass(arr[i], "current");
	}
}


function breadcrumb() {
	var path, posStart, posEnd, img, searchString;

	path = hrefString;
	img = " <img height=\"15\" alt=\"\" src=\"../../../imgs/global/breadcrum.gif\" width=\"15\" align=\"top\" border=\"0\" /> ";

//	if(path.search("docs/") != -1) { posStart = path.indexOf("docs/")+5;} 
//	else if(path.search("SiteSearch/") != -1) {	posStart = path.indexOf("SiteSearch/")+11;}

	if(path.search("docs/") != -1) { searchString = "docs/"} 
	else if(path.search("SiteSearch/") != -1) {	searchString = "SiteSearch/"}

	posStart = path.indexOf(searchString)+searchString.length;
	posEnd = path.lastIndexOf("/");
	path = path.substring(posStart,posEnd);

	path = path.replace(/\//g, img);
	path = path.replace(/%20/g, " ");
	return(path);
	//document.write(path);
}

if(document.location.href) 
	hrefString = document.location.href;
else
	hrefString = document.location;

//hrefString = hrefString.toLowerCase();

///////////////////////// Variables to be used /////////////////////////////

//prodName
//prodCat
