function buildDepth(iterations)
{
 var iterations=iterations;
 var depthStr="";
 for (i=0;i<iterations;i++)
 {
 depthStr=depthStr + "../";
 }
 return depthStr;
}
//function buildBreadCrumbTrail()
//{
 var constituentFolders = new Array();
 currHost = window.location.hostname;
 var currentURL = location.pathname.toString();
if ((currHost == "ozone.unep.org") || (currHost == "ozonevr1")) {
	currentURL = currentURL.replace(/^\//, "Home/");
} else {
	currentURL = currentURL.replace(/^\/ozone\//i, "Home/");
}
	currentURL = currentURL.replace(/links/i, "Links");
	
	currentURL = currentURL.replace(/teap/i, "TEAP");
	currentURL = currentURL.replace(/mop/i, "MOP");
	currentURL = currentURL.replace(/cop/i, "COP");
	currentURL = currentURL.replace(/impcom/i, "ImpCom");
	currentURL = currentURL.replace(/Bureaux/i, "Bureaux");
	
	currentURL = currentURL.replace(/_/g, " ");
    constituentFolders=currentURL.split("/");
	var cnt_limit = (constituentFolders.length-1);
 var outputStr="";
 for (count=0;count < cnt_limit;count++)
 {
 if (count > 0) { outputStr += " \> "; }
 outputStr += " <A HREF='" + buildDepth(cnt_limit - count - 1) +
   "'>" + constituentFolders[count] + "</A>";
 }
  if (cnt_limit > 0) {	document.write(outputStr); }
//}
//	buildBreadCrumbTrail();


