<!-- Begin
function getDirectory() {
	urlPrefix = "http://";
	montage=window.location.href.split("/");
	simple=montage.length-2;
	final="";
	//for(var i=0;i<=simple;i++)
	for(var i=2;i<=simple;i++)
	{
		//final=final+montage[i]+"/";
		//final = final + "<a href='"+ urlPrefix + montage[i] + "' class='crumbTrail'>"+ montage[i] + "</a> > ";
		urlPrefix = urlPrefix + montage[i] + "/";
		if (urlPrefix=="http://")
			final = final + "<a href='"+ urlPrefix + montage[i] + "' class='crumbTrail'>"+ montage[i] + "</a> <img src='images/arrowright.gif' width='10' height='5'> ";
		else
			final = final + "<a href='"+ urlPrefix + "' class='crumbTrail'>"+ montage[i] + "</a> <img src='images/arrowright.gif' width='10' height='5'> ";
	}
	return final;
} 

function getFileName() {
	var fileName = location.pathname.substring(location.pathname.lastIndexOf('/')+1)
	fileName = changeCase(replaceChars(fileName.substring(0, fileName.length - 5),"-", " "));
	if (fileName == "") {
		return "<img src='images/arrowright.gif' width='10' height='5'> <a href='http://www.kiwipumps.com' class='crumbTrail'>Home</a>";
	}
	else	{
		return "<img src='images/arrowright.gif' width='10' height='5'> "+fileName;
	}
}

function changeCaseFF(frmObj) {
	var index;
	var tmpStr;
	var tmpChar;
	var preString;
	var postString;
	var strlen;
	tmpStr = frmObj.value.toLowerCase();
	strLen = tmpStr.length;
	if (strLen > 0)  {
	for (index = 0; index < strLen; index++)  {
		if (index == 0)  {
			tmpChar = tmpStr.substring(0,1).toUpperCase();
			postString = tmpStr.substring(1,strLen);
			tmpStr = tmpChar + postString;
		}
		else {
			tmpChar = tmpStr.substring(index, index+1);
			if (tmpChar == " " && index < (strLen-1))  {
				tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
				preString = tmpStr.substring(0, index+1);
				postString = tmpStr.substring(index+2,strLen);
				tmpStr = preString + tmpChar + postString;
		         }
		}
	}
	}
	frmObj.value = tmpStr;
}

function changeCase(frmObj) {
	var index;
	var tmpStr;
	var tmpChar;
	var preString;
	var postString;
	var strlen;
	tmpStr = frmObj.toLowerCase();
	strLen = tmpStr.length;
	if (strLen > 0)  {
	for (index = 0; index < strLen; index++)  {
		if (index == 0)  {
			tmpChar = tmpStr.substring(0,1).toUpperCase();
			postString = tmpStr.substring(1,strLen);
			tmpStr = tmpChar + postString;
		}
		else {
			tmpChar = tmpStr.substring(index, index+1);
			if (tmpChar == " " && index < (strLen-1))  {
				tmpChar = tmpStr.substring(index+1, index+2).toUpperCase();
				preString = tmpStr.substring(0, index+1);
				postString = tmpStr.substring(index+2,strLen);
				tmpStr = preString + tmpChar + postString;
		         }
		}
	}
	}
	return tmpStr;
}

function replaceChars(entry, sOld, sNew) {
	out = sOld; // replace this
	add = sNew; // with this
	temp = "" + entry; // temporary holder

	while (temp.indexOf(out)>-1) {
		pos= temp.indexOf(out);
		temp = "" + (temp.substring(0, pos) + add +
		temp.substring((pos + out.length), temp.length));
	}
	//document.subform.text.value = temp;
	return temp;
}

// Multiple onload function created by: Simon Willison
// http://simon.incutio.com/archive/2004/05/26/addLoadEvent
function addLoadEvent(func) {
  var oldonload = window.onload;
  if (typeof window.onload != 'function') {
    window.onload = func;
  } else {
    window.onload = function() {
      if (oldonload) {
        oldonload();
      }
      func();
    }
  }
}

addLoadEvent(function() {
  clientSideInclude('includeMenuSEO', 'menu-search-friendly.html');
});


//  End -->
