function writeBreadcrumbs(){
 sURL = new String;
 bits = new Object;
 sText = new String;
 sOutText = new String;
 output = new String;

 var x = 0;
 var stop = 0;
 var bServices = 0;
 var bPremium = 0;

 output = "<table cellpadding=\"2\" cellspacing=\"0\" border=\"0\" bgcolor=\"#FFFFFF\" align=\"center\" width=\"740\" summary=\"this table is the main site navigation\">";
 output += "<tr bgcolor=\"#FFFFFF\">";
 output += "<td align=\"left\" style=\"font-family: Arial, sans-serif; font-size: 10px;\">";
 output += "<A class=\"breadcrumbs\" HREF=\"/\">Inicio</A>";
 output += "&nbsp;&nbsp;>&nbsp;&nbsp;";

 sURL = location.href;
 sURL = sURL.slice(8,sURL.length);
 chunkStart = sURL.indexOf("/");
 sURL = sURL.slice(chunkStart+1,sURL.length)
//alert("sURL="+sURL);
 if ((sURL.indexOf("records") > -1) || (sURL.indexOf("dataprotection") > -1) || (sURL.indexOf("ipm") > -1) || (sURL.indexOf("digital") > -1) || (sURL.indexOf("filmsound") > -1) || (sURL.indexOf("comac") > -1)) {
	 bServices = 1;
 }
 if (sURL.indexOf("premium") > -1) {
	 bPremium = 1;
 }

	while(!stop){
		chunkStart = sURL.indexOf("/");
		if (chunkStart != -1){
			bits[x] = sURL.slice(0,chunkStart)
			sURL = sURL.slice(chunkStart+1,sURL.length);
//alert("sURL="+sURL+"   bits[x]="+bits[x]);
		}else{
			stop = 1;
		}
		x++;
	}

	if(bServices){
		output += "<A class=\"breadcrumbs\" HREF=\"/services/\">Servicios</A>&nbsp;&nbsp;>&nbsp;&nbsp;";
	}
	if(bPremium){
		output += "<A class=\"breadcrumbs\" \" HREF=\"/knowledge/\">Centro de Recursos</A>&nbsp;&nbsp;>&nbsp;&nbsp;";
	}else{
		for(var i in bits){
			//convert url section to user friendly text
			sText = bits[i];
			//format user friendly text
			formatText();
			output += "<A class=\"breadcrumbs\" \" HREF=\"";
			for(y=1; y<x-i; y++){
				output += "../";
			}
			output += bits[i] + "/\">" + sOutText + "</A>&nbsp;&nbsp;>&nbsp;&nbsp;";
		}
	}
//alert("output="+output);
	output += document.title.substr(document.title.lastIndexOf(" - ")+3);
	output += "</td></tr></table>";
	document.write(output);
}

function formatText(){
	switch (sText) {

		case "support":
			sOutText = "Soporte";
			break;
		case "partners":
			sOutText = "Socios";
			break;
		case "company":
			sOutText = "Empresa";
			break;
		case "events":
			sOutText = "Calendario de eventos";
			break;
		case "services":
			sOutText = "Servicios";
			break;

		case "brochures":
			sOutText = "Folletos";
			break;
		case "datasheets":
			sOutText = "Folletos";
			break;
		case "whitepapers":
			sOutText = "Folheto";
			break;

		case "comac":
			sOutText = "Comac Fulfillment Services";
			break;
		case "strategy":
			sOutText = "Strategy Development";
			break;
		case "custom":
			sOutText = "Custom Collateral Design";
			break;
		case "collateral":
			sOutText = "Collateral Management";
			break;
		case "kit":
			sOutText = "Custom Kit Creation";
			break;

		case "contact":
			sOutText = "Cont&aacute;ctenos";
			break;

		case "dataprotection":
			sOutText = "Protecci&oacute;n y Recuperaci&oacute;n de Datos";
			break;
		case "vault":
			sOutText = "Guarda externa de m&iacute;dias";
			break;
		case "pc":
			sOutText = "PC Data Protection";
			break;
		case "server":
			sOutText = "Protecci&oacute;n de Datos de Servidores Distribuidos";
			break;
		case "defense":
			sOutText = "DataDefense";
			break;
		case "email":
			sOutText = "Email Continuity";
			break;
		case "disaster":
			sOutText = "Recuperaci&oacute;n ante Desastres";
			break;
		case "dataprivacy":
			sOutText = "Data Protection &amp; Recovery";
			break;

		case "digital":
			sOutText = "Software y servicios digitales";
			break;

		case "feedback":
			sOutText = "Comentarios";
			break;

		case "filmsound":
			sOutText = "Film &amp; Sound";
			break;
		case "film":
			sOutText = "Film &amp; Sound";
			break;

		case "knowledge", "resource":
			sOutText = "Centro de Recursos";
			break;
		case "compliance":
			sOutText = "Compliance &amp; Legal Discovery";
			break;
		case "laws":
			sOutText = "Laws and Regulations ";
			break;
		case "practices":
			sOutText = "Best Practices";
			break;
		case "premium":
			sOutText = "Premium Content";
			break;
		case "protection":
			sOutText = "Soluciones de PC Data Protection";
			break;

		case "ipm":
			sOutText = "Administraci&oacute;n de propiedad intelectual";
			break
		case "escrow":
			sOutText = "Custodia de Tecnolog&iacute;a";
			break;
		case "dns":
			sOutText = "Administraci&oacute;n de Nombres de Dominio";
			break;

		case "legal":
			sOutText = "Legal";
			break;
		case "retail":
			sOutText = "Comercio Minorista";
			break;

		case "news":
			sOutText = "Noticias y Eventos";
			break;

		case "optout":
			sOutText = "Opt Out";
			break;

		case "records":
			sOutText = "Administraci&oacute;n de Informaci&oacute;n";
			break;
		case "doc":
			sOutText = "Servicios de Administraci&oacute;n de Informaci&oacute;n";
			break;
		case "rms":
			sOutText = "Administraci&oacute;n y Protecci&oacute;n de Informaci&oacute;n";
			break;
		case "erecords":
			sOutText = "Servi&ccedil;os de gerenciamento de documentos eletr&ocirc;nicos";
			break;
		case "elegal":
			sOutText = "eDiscovery &amp; Litigation";
			break;
		case "rmsconsult":
			sOutText = "Servicios de Administraci&oacute;n de Consultor&iacute;a de Registros";
			break;
		case "his":
			sOutText = "Soluciones para Area Salud";
			break;
		case "release":
			sOutText = "Hospital Closings Information";
			break;
		case "shred":
			sOutText = "Destrucci&oacute;n Segura";
			break;

		case "democenter":
			sOutText = "Video Tours";
			break;
		case "tours":
			sOutText = "Video Tours";
			break;

		case "sitemap":
			sOutText = "Mapa del Sitio";
			break;

		case "solutions":
			sOutText = "Soluciones";
			break;
		case "business":
			sOutText = "Soluciones Comerciales";
			break;
		case "privacy":
			sOutText = "Privacidad de la Informaci&oacute;n";
			break;
		case "retention":
			sOutText = "Administraci&oacute;n del Proceso de Destrucci&oacute;n Segura";
			break;
		case "industry":
			sOutText = "Soluciones en L&iacute;nea con la Industria";
			break;
		case "energy":
			sOutText = "Energ&iacute;a";
			break;
		case "entertainment":
			sOutText = "Entretenimiento";
			break;
		case "healthcare":
			sOutText = "Salud";
			break;
		case "gov":
			sOutText = "Public Sector Solutions";
			break;
		case "soho":
			sOutText = "Small &amp; Home Office Solutions";
			break;

		case "pcservice":
			sOutText = "Connected DataProtector PC Service &amp; PC Electronic Vaulting";
			break;
		case "pcsoftware":
			sOutText = "Connected DataProtector PC Software";
			break;

		default:
			sOutText = sText.charAt(0).toUpperCase() + sText.substr(1).toLowerCase();
	}

}