// File: dir-path.js
//
// Developed for Nuggets Hoops, by DecaTech Solutions, Inc.
//
// last modified: 11/26/2001

// Shows: NuggetsHoops / <Dir-Path> /
// Handles multi-level directory structure, and paths ending in a file!

var path = "";
var href = document.location.href;
var s = href.split("/");

for (var i=2;i<(s.length);i++) 
{
  if (i==2)
    path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"/\">"+"NuggetsHoops</A> /";
  else if (s[i] != "")
    path+="<A HREF=\""+href.substring(0,href.indexOf(s[i])+s[i].length)+"/\">"+s[i]+"</A> /";
}

// If you want to prepend text to the path, add it here
document.writeln("" + path);

