function breadcrumbs_original(){
  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Cayman Islands Port Authority</a>  &nbsp;&#187;&nbsp;  ";    // WAS - ORIGINAL
  //var output = "&#187;&nbsp;  ";
  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 href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</a>  &nbsp;&#187;&nbsp;  ";
	
  }
  document.write(output + document.title);
}
  //modifications.....
  
  // the following will remove the space... nivs 12.march.2010
  //document.write(document.title);
function breadcrumbs(sExt, sHref){
	
	//sExt = 'Operating Hours';
	sCompleteHref = 'http://www.caymanport.com' ;

	var output_x;

  
  if(sExt==''){
	  output_x = "<a href=\"" + sCompleteHref + "\">" + "</a>  ";
	  } 
  else {
	  sCompleteHref = sCompleteHref + sHref ;
	  output_x = "<a href=\"" + sCompleteHref + "\">" + sExt + "</a>  &nbsp;&#187;&nbsp;  ";
  }
  
  // Now to get the correct crumb for www.caymanport.com
  
    sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Home</a>  &nbsp;&#187;&nbsp;  ";    // WAS - ORIGINAL
  //var output = "&#187;&nbsp;  ";
  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 href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</a>  &nbsp;&#187;&nbsp;  ";
	
  }
  
  document.write(output + output_x + document.title );
    // the following will remove the space... nivs 12.march.2010
  //document.write(document.title);
}

function breadcrumbs_multiple(sExt, sHref, sExt1, sHref1, sExt2, sHref2, sExt3, sHref3){
	
	//sExt = 'Operating Hours';
	sCompleteHref = 'http://www.caymanport.com' ;

	var output_x;
//breadcrumbs('About The Port', '/abouttheport_sprite.php', 'Port Statistics', '/portstatistics_sprite.php');
  
  if(sExt==''){
	  output_x = "<a href=\"" + sCompleteHref + "\">" + "</a>  ";
	  } 
  else {
	    if(sExt1==''){
	  		output_x = "<a href=\"" + sCompleteHref + sHref + "\">" + sExt + "</a>  &nbsp;&#187;&nbsp;  ";
		}
		else{
			output_x = "<a href=\"" + sCompleteHref + sHref + "\">" + sExt + "</a>  &nbsp;&#187;&nbsp;  ";
			output_x = output_x  +  "<a href=\"" + sCompleteHref + sHref1 + "\">" + sExt1 + "</a>  &nbsp;&#187;&nbsp;  ";
		}
  }
  
  // Now to get the correct crumb for www.caymanport.com
  
  sURL = new String;
  bits = new Object;
  var x = 0;
  var stop = 0;
  var output = "<a href=\"/\">Cayman Islands Port Authority</a>  &nbsp;&#187;&nbsp;  ";    // WAS - ORIGINAL
  //var output = "&#187;&nbsp;  ";
  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 href=\"";
    for(y=1;y<x-i;y++){
      output += "../";
    }
    output += bits[i] + "/\">" + bits[i] + "</a>  &nbsp;&#187;&nbsp;  ";
	
  }
  
  document.write(output + output_x + document.title );
    // the following will remove the space... nivs 12.march.2010
  //document.write(document.title);
}
