function breadcrumbs(){
  sURL = new String;
  bits = new Object;
 ff=document.title
 
  var x = 0;
  var stop = 0;
  var output = " ";
  sURL = location.href;
  
  sURL = sURL.slice(8,sURL.length);
  
  chunkStart = sURL.indexOf("/");
  sURL = sURL.slice(chunkStart+1,sURL.length)
  
  while(!stop){
    chunkStart = sURL.indexOf("/");
    if (chunkStart != -1){
      bits[x] = sURL.slice(0,chunkStart)
      sURL = sURL.slice(chunkStart+1,sURL.length);
	 
    }else{
      stop = 1;
    }
    x++;
  }
  
  for(var i in bits){
    output += "<a style='color:white;font-weight:bold' href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
	if( bits[0])
	{
			bb="Home";
	}
	else
	{
			bb=bits[i];
	}
	
	if(sURL=='http://www.phone-detectives.com/index.html' || sURL=='')
	{
	 output += bits[i] + "/\">" + bb+ "</a>  >  ";	
	}
	else if(sURL=='http://www.phone-detectives.com/termsofuse.html')
	{
		tt=ff.replace("Phone-Detectives.com – " ,"")
		tt=tt.replace(" - End User Licensing Agreement" ,"")
	 output += bits[i] + "/\">" + bb+ "</a>  >  "+tt;	
	}
	else if(sURL=='http://www.phone-detectives.com/range.html')
	{
		tt=ff.replace("Phone-Detectives.com – " ,"")
		tt=tt.replace(" Search Results - Look Up Any Number" ,"")
		
		
	 output += bits[i] + "/\">" + bb+ "</a>  >  "+tt;	
	}
	else if(sURL=='http://www.phone-detectives.com/number.html')
	{
		tt=ff.replace("Phone-Detectives.com – " ,"")
		tt=tt.replace(" 00 to %%kwd%%99 Trace Results" ,"")
		tt=tt.replace("Numbers" ,"Exchange")
	 output += bits[i] + "/\">" + bb+ "</a>  >  "+tt;	
	}
	
	else if(sURL.substring(0,4)=='http://www.phone-detectives.com/area')
	{
		tt=ff.replace("Phone-Detectives.com – " ,"")
		tt=tt.replace(" Search Results - Look Up Any Number" ,"")
		
	 output += bits[i] + "/\">" + bb+ "</a>  >  "+tt;	
	}
	else if(sURL=='http://www.phone-detectives.com/error404.html')
	{
		tt=ff.replace("Phone-Detectives.com – Oops! " ,"")
		tt=tt.replace(" Search Results - Look Up Any Number" ,"")
		
	 output += bits[i] + "/\">" + bb+ "</a>  >  "+tt;	
	}
	

	else if(sURL=='http://www.phone-detectives.com/results.html')
	{
		tt=ff.replace("for %%kwd%% Successful - Owner of %%kw%% and more" ,"")
		tt1=ff.replace(" Successful - Owner of %%kw%% and more" ,"")
		tt1=tt1.replace("Search Results for ","")
	 output += bits[i] + "/\">" + bb+ "</a>  >  "+tt+">"+tt1;	
	}
	else{	
	tt=ff.replace("Phone-Detectives.com – " ,"")

    output += bits[i] + "/\">" + bb+ "</a>  >  "+tt;
	}

  }


  document.write(output);
}

