   tlocal=String(document.URL);   gate = "castnav.com/";   if(tlocal.indexOf("www") >-1){reference_point = "http://www.";}else{reference_point = "http://";}   reference_point += gate;	   ref_len = reference_point.length;indexSep=true;indexCurr=true;indexFPath=false;   toff="'>";buildPath=""; sPath="/";_imgIndexPath="";   indexPathOrigin=reference_point;   assIndex = indexPathOrigin;   from_EndOfRef = tlocal.substring(ref_len,tlocal.length);   from_EndOfRef_dump = from_EndOfRef.split("/");   function point(){   if(indexSep){indexSepImg= "<img src='../images/green_bullet.gif'>";}else{indexSepImg="";}   buildPath += "  <a class='smlink' target='_top'href='"+ reference_point +toff+ "Home </a> "+indexSepImg + " ";;   for(j=0; j<from_EndOfRef_dump.length; j++){       if(from_EndOfRef_dump[j].indexOf(".")>-1){// this must be the end of the url           if(indexFPath){ref_index = from_EndOfRef_dump[j];}else{ref_index=from_EndOfRef_dump[j].substr(0,from_EndOfRef_dump[j].length-5);}           assIndex += ref_index;		              if(indexCurr){buildPath += RMVS(ref_index);}//ref_index		  // alert(ref_index);       }else{	   		if(from_EndOfRef_dump[j] =="products"){					nRef ="Products";			}else{				nRef = from_EndOfRef_dump[j];			}	              if(j==0){ref_index = from_EndOfRef_dump[j];}else{ref_index = sPath +nRef;_imgIndexPath += "../"}           ref_index_ID = nRef;           assIndex += ref_index;           if( (j == from_EndOfRef_dump.length -2) && (!indexCurr) ){_imgIndexPath = "";indexSepImg = "";}           buildPath += "<a class='smlink' target='_top' href='"+ assIndex+toff+ref_index_ID+"</a> "+indexSepImg + " ";       }   }   document.write(buildPath);}c_str = ""function RMVS(str_data){// this function replaces the under score with a space	splt_space = str_data.split("_");	for(var i=0;i<splt_space.length;i++){		if(splt_space[i] == "cast"){			c_str += "CAST ";		}else if(splt_space[i] == "navsim"){			c_str += "NAVSIM ";		}else{			c_str += splt_space[i]+" ";		}	}	return c_str;}