<!-- for old browsers
//
//  BreadCrumps displayer, lets the browser show you the path !!
//  Author: Hubert GREGOIRE, GEMPLUS 2000
//  Free for use, this peace of code is distributed as is and
//  without any support nether any garanty.
//

var bc_symbol =" > ";
//
// return a string with a link on the topic with an upperCase Cap.
//
function buildLink(Title,link)
{
	var aBC =Title.substring(0,1).toUpperCase() + Title.substring(1)  ;
	aBC = aBC.replace("_"," ");
	//aBC= aBC.link(link);
	//upd jeremie
	aBC="<A CLASS='breadcrumb' HREF='"+link+"'>"+aBC+"</A>";
	aBC= aBC+ bc_symbol
	return aBC;
}

//
// return a string associated to the link passed
//

function getTopic(theLink)
{
	var thePaths = "/|/ebiz|/esol|/ebiz/wa|/ebiz/wa/us/hg|/ebiz/ip|/ebiz/ip/portal/pif";
	var theTopics = "home|E-solutions|E-solutions|Web Agency|Hubert GREGOIRE|Intranet Program|Portal Implementation Framework";
	
	var topicTable = theTopics.split("|");  // transform a string in table
	var pathTable = thePaths.split("|");

	for (var i=0;i<pathTable.length;i++) 	{  // search in the link table
		if ( pathTable[i] == theLink)  
			return  topicTable[i];   // get the topic
	}
	return   theLink.substring(theLink.lastIndexOf("/")+1,theLink.length) ; // the topic is the lk
	
}

//
// return a BreadCrump string  from a link
//

function buildBC (theLink)
{
	if (theLink=="")
		theLink="/";
	theTopic = getTopic(theLink);
	return buildLink(theTopic , theLink)
}

//
// return a BreadCrump string from the current page 
//

function BreadCrump()
{
	var theURI = ""+window.location.pathname;
	var theBreadCrump = "<font face='arial' size='1'>";
		
	var start=0;
	var nextSlash = 0;
	
	while(true) {
		nextSlash = theURI.indexOf("/",start);
		if (nextSlash == -1)
			return theBreadCrump + "</font>";
		toBC = theURI.substring(0,nextSlash);
		
		theBreadCrump = theBreadCrump  + buildBC(toBC);
		start = nextSlash +1 ;
	}
}

//
// display the BreadCrump string @ the current location 
//

function breadCrumb()
{
	document.write(BreadCrump());
}