function breadcrumbs(){
	var x = 0;
	var s = 1;
	var stop = 0; //used as stop flag
	var output = "<a href=\"/\" class=home>Home</a> | ";
	var r = "";
	var t = "";
	var displayname = "";
	var af = 0;
	//create translation arrays
	var sdirs = new Array()
	var strans = new Array()
	var dontclick = new Array()

	sdirs[100] = "countries" ; strans[100] = "Countries" ; dontclick[100] = "0"
		sdirs[101] = "botswana" ; strans[101] = "Botswana" ; dontclick[101] = "1"
		sdirs[102] = "kenya" ; strans[102] = "Kenya" ; dontclick[102] = "1"
		sdirs[103] = "mauritius" ; strans[103] = "Mauritius" ; dontclick[103] = "1"
		sdirs[104] = "mozambique" ; strans[104] = "Mosambique" ; dontclick[104] = "1"
		sdirs[105] = "namibia" ; strans[105] = "Namibia" ; dontclick[105] = "1"
		sdirs[106] = "southafrica" ; strans[106] = "South Africa" ; dontclick[106] = "1"


	
	//carry on building the translations
	//if a directory name is NOT found in array sdirs, the directory name will be used

	var translen = sdirs.length - 1 //store the array processing length

	sURL = new String;
	bits = new Object;
	sURL = location.href; //take the url and store it
	sURL = sURL.slice(8,sURL.length); //removes http://
	chunkStart = sURL.indexOf("/"); //determine where domain ends
	sURL = sURL.slice(chunkStart+1,sURL.length); //remove domain
	while(!stop){ //loop thru the domain
		chunkStart = sURL.indexOf("/"); //find next /
		if (chunkStart != -1){ //if not the end of the url
			t = "";	//reset t
			r = sURL.slice(0, chunkStart) //store from start to first /
			for(s=0;s<r.length+1;s++){ //remove any urlencoded stuff
				if (r.substr(s, 1) == '%'){
					t = t + ' ';
					s = (s+3); 
				}
				if (r.substr(s, 1) != '%'){
					t = t + r.substr(s, 1); 
				}
	 		}
			bits[x] = t; //store to array
			sURL = sURL.slice(chunkStart+1,sURL.length); //remove processed portion from url
		}
		else{ //is the end of the url
			stop = 1; //set stop flag
		}
		x++; //increment counter
  }
	
	//now loop thru generated array and build output
  for(var i in bits){
		displayname=bits[i]; //initialise the display to the directory name
		makeclick = "1"	//default to clickable

		for(af=0; af<=translen; af++){ //try find the dir name
			if(sdirs[af] == bits[i]){ //if we have a match
				displayname = strans[af] //store the translation
				makeclick = dontclick[af]	//store whether clickable or not
			}
		}

		if(makeclick == "1"){
			//build the url target
			output += "<font class=home><a class=home href=\""; //start the anchor tag
			for(y=1;y<x-i;y++){ //build the backward facing path
				output += "../";
			}
			output += bits[i] + "/\">"
			//end of url target build
			//if a translation is defined, it is in displayname
			output += displayname + "</a> | </font>"; //close the anchor tag
		}
		// now handle if not clickable
		if(makeclick == "0"){
			output += "<font class=home><span class=home>"; //start the display
			output += displayname + " | </span></font>"; //end the display
		}

//		//build the url target
//		output += "<font class=home><a class=home href=\""; //start the anchor tag
//		for(y=1;y<x-i;y++){ //build the backward facing path
//			output += "../";
//		}
//		output += bits[i] + "/\">"
		//end of url target build
		//start of directory name translation
//		for(af=0; af<=translen; af++){ //try find the dir name
//			if(sdirs[af] == bits[i]){ //if we have a match
//				displayname = strans[af] //store the translation
//			}
//		}
		//end of directory name translation
		//if a translation is defined, it is in displayname
//		output += displayname + "</a> | </font>"; //close the anchor tag
	}
	document.write(output + document.title); //write the results to the document
}
