function buildDepth(iterations)
{
    var iterations=iterations-3;	
		if(iterations == 0) { return "." };
    var depthStr="";
    for (i=0;i<iterations;i++)
    {
        depthStr=depthStr + "../";
    }
    return depthStr;
}
function buildBreadCrumbTrail()
{
    var constituentFolders = new Array();
    var currentURL = document.location.toString();
    constituentFolders=currentURL.split("/");
    var outputStr="";
    for (count=3;count<(constituentFolders.length - 1);count++)
    {
		 		str = constituentFolders[count];				
        outputStr=outputStr + ' <a href="'+ buildDepth((constituentFolders.length-count)+1) + '">'  + str + "</a> > ";
    }
		// to find the last level that one is currently viewing.  i.e. air.shtml, mktresearch.shtml, etc 
		var end = /(.*?)\.shtml/i.exec(constituentFolders[count]);
		var url = self.location;						
		if(/shtml/i.test(url))
		{								
				document.write(outputStr);
				document.write(end[1]);
		} else
		{
//		 		document.write(outputStr);
		 		document.write(outputStr.substring(0, outputStr.length-3));
		}
} 