<!--
function breadCrumbs(base, delStr, defp, cStyle, tStyle, dStyle, nl)
	{
	//	Need to make this function site independent with an offset to the
	//	varinc/docs directory
	// original var docOffset = "varinc/docs";
	var docOffset = "";
	var delStr = "<img src='/image/vimage/shared/arrow_g.gif'>";
	var defp= "index";
	var cStyle = "breadcrumb";
	var tStyle = "breadcrumb-gray";
	var smallText = "smalltext";
	var dStyle = "None";
	var nl = "0";
	var i;

	//	Gets full url	-	
	//		http://pluto.varianinc.com/cgi-bin/nav?varinc/docs/support/index&cid=975JINJPKOJLMGJLLJMLO
	var loc = window.location.toString();

	// Remove the "cgi-bin/"
	var tmp = loc.replace(/cgi-bin\//i, "");
	loc = tmp;

	//	Split at the ?
	var site = loc.split("?", 2);

	//	Grab the first part of the url - http://xxx.varianinc.com/cgi-bin/nav?
	//	var sitebase = site[0] + "?";
	var sitebase = site[0];

	//	Build the new site independent url base string
	//		-	http://xxx.varianinc.com/cgi-bin/nav?varinc/docs
	var base = sitebase + docOffset;


	//	Get all that is after the "&" from the main string i.e. "&cid=975JINJPKOJLMGJLLJMLO"
	var session = loc.split("&", 2);
	var cid = "";
	//	if (session[1] == undefined)
	if (session[1] == null)
		{	cid = "";	}
	else
		{ 
		cid = "&" + session[1];
		}

	//	Returns:	products,chrom,lcms,index&cid=975JINKJNLKNOGJLLJNPP array
	//	old... var subs = loc.substr(loc.indexOf(base) + base.length).split("/");
	var subs = loc.substr(loc.indexOf(base) + base.length + 1).split("/");

	//	Output the first part of the breadcrumb  { testing ... + "["+s1+"]" }
	document.write(  "<a href=\"" + sitebase + docOffset + "/" + defp + cid + "\" class=\"" + cStyle + "\">Home</a>" + "<span class=\"" + dStyle + "\">" + delStr + "</span> ");

	//	
	var a = (loc.indexOf(defp) == -1) ? 1 : 2;

	//	Find the number of breadcrumbs in addition to "Home"
	var count = (subs.length - a);

	var plain = "";
	if (count == 0)
		{
		//	Just show a plain version of this sections home page
		plain = makeCaps(subs[0]);
		document.write("<span class=\"" + smallText + "\">" + plain + "</span> ");
		}

	//	Build the breadcrumb displays & links
	var link = "";
	var linkbase = "";

	for (i = 0; i < count; i++) {
		plain = makeCaps(unescape(subs[i]));
		linkbase = linkbase + subs[i] + "/";

		link = sitebase + docOffset + "/" + linkbase + defp + cid;
//+ "[" + sitebase + "]"

		document.write("<a href=\"" + link + "\" class=\"" + cStyle + "\">" + plain + "</a>  " + "<span class=\"" + dStyle + "\">" + delStr + "</span> ");
		}

	if (nl == 1) {
		document.write("<br>");
		}

	document.write("<br>");
	}

function makeCaps(a) {
                   switch (a) {
                    
case "products": 
    aBack="Products";
    break; 
	
case "contact": 
    aBack="Contact Us";
    break; 
	
case "biosolutions": 
    aBack="BioSolutions";
    break; 
	
case "chrom": 
    aBack="Chromatography";
    break; 
	
case "consum": 
    aBack="Consumables";
    break; 
	
case "samprep": 
    aBack="Sample Preparation";
    break; 

case "spe": 
    aBack="SPE";
    break; 
		
case "purification": 
    aBack="Flash Purification";
    break; 
	
case "lle": 
    aBack="Liquid/Liquid Extraction";
    break; 
	
case "manifolds": 
    aBack="Manifolds & Processing";
    break; 
	
	
case "dissolution": 
    aBack="Dissolution Testing";
    break; 
	
case "mass_spec": 
    aBack="Mass Spectrometry";
    break; 
	
case "nmr": 
    aBack="NMR";
    break; 
	
case "spectr": 
    aBack="Spectroscopy";
    break; 
    
case "ftir": 
    aBack="FT-IR";
    break; 

case "brochure": 
    aBack="Brochures";
    break; 
	
case "excalibur_series": 
    aBack="Excalibur series";
    break; 

case "ftir_imaging": 
    aBack="FT-IR Imaging";
    break; 
	
case "ftir_microscopy": 
    aBack="FT-IR Microscopy";
    break; 

case "fts7000": 
    aBack="FTS 7000 series";
    break; 

case "scimitar_series": 
    aBack="Scimitar series";
    break; 

case "synergy_ft_raman": 
    aBack="Synergy FT-Raman";
    break;     
	
case "vac_comp": 
    aBack="Vacuum Components";
    break; 
	
case "vac_detect": 
    aBack="Leak Detectors";
    break; 
	
case "vac_meas": 
    aBack="Vacuum Measurement";
    break; 
	
case "vac_pump": 
    aBack="Vacuum Pumps";
    break; 
	
case "vac_systems": 
    aBack="Turbo Pumping Systems";
    break; 
	
case "vac_valves": 
    aBack="Vacuum Valves";
    break; 
	
case "sv_engin": 
    aBack="Engineering Services";
    break; 
	
case "sv_manufact": 
    aBack="Manufacturing Services";
    break; 
	
case "sv_materials": 
    aBack="Materials Management";
    break; 
	
case "support": 
    aBack="Support & Training";
    break; 
	  
case "corp": 
    aBack="About Us";
    break; 
	
case "shop": 
    aBack="Shop Online";
    break; 

case "mri":
    aBack="MRI";
    break; 

case "spe": 
    aBack="SPE";
    break; 
    
case "lccolumns":
    aBack="LC Columns";
    break;
    
case "gccolumns":
    aBack="GC Columns";
    break;

                      default:
                      g=a.split(' ');
                      for (l=0;l<g.length;l++)
                        g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);
                      aBack=g.join(" ");
                      break;
                   }
                   return aBack;
                  }
 
function getLoc(c) {
    var d = "";
    if (c > 0) {
        for (k = 0; k < c; k++) {
            d = d + "../";
        }
    }
    return d;
}
//-->
