<!--
 
function replace(string,text,by) {
 // Replaces text with by in string


     var strLength = string.length, txtLength = text.length;
     if ((strLength == 0) || (txtLength == 0)) return string;

     var i = string.indexOf(text);
     if ((!i) && (text != string.substring(0,txtLength))) return string;
     if (i == -1) return string;

     var newstr = string.substring(0,i) + by;

     if (i+txtLength < strLength)
         newstr += replace(string.substring(i+txtLength,strLength),text,by);

     return newstr;
 		}

 var urlString = window.location.href; 

//this allows the user to turn off the bcn
// by setting the turnoff variable within your page but before the script
// to 1

var turnoff = (turnoff - 0);
if (turnoff == 1){
 urlString = '';
}

//formatting the string and removing unwanted charectors

urlString = urlString.toLowerCase()
urlString = replace(urlString,'http://', '');
urlString = replace(urlString,'https://', '');
urlString = replace(urlString,'  ', '+');
urlString = replace(urlString, '/', '+');

urlString = replace(urlString, 'web.urs.org', 'urs');
urlString = replace(urlString, 'www.external.urs.org', 'urs');

urlString = replace(urlString, 'www.urs.org', 'urs');
urlString = replace(urlString, '.', '+');
urlString = replace(urlString,'  ', '+');
urlString = replace(urlString,'#', '+#+');
urlString = replace(urlString,'++', '+');
urlString = replace(urlString,'++', '+');


//splitting the string using the + as the delimitor
 var separator = '+';
 var urlArray = urlString.split(separator);



// detecting if the last array value is an html
// if so then I am going to delete the last  two values in the array
// to allow my bread crumb navigation to work

if (urlArray[((urlArray.length) - 2)] == 'index') {
	urlArray[((urlArray.length) - 1)] = '';
	urlArray[((urlArray.length) - 2)] = '';
	urlArray[((urlArray.length) - 3)] = '';
	}
else if (urlArray[((urlArray.length) - 2)] == '#') {
	urlArray[((urlArray.length) - 1)] = '';
	urlArray[((urlArray.length) - 2)] = '';
	urlArray[((urlArray.length) - 3)] = '';
	urlArray[((urlArray.length) - 4)] = '';
}

else {
	urlArray[((urlArray.length) - 1)] = '';
	urlArray[((urlArray.length) - 2)] = '';
	}



// this builds an array that is filled with joy...
// and text that means something rather than folder names

var textArray = new Array()
for (i = 0 ; i < urlArray.length ; i ++){
     if (urlArray[i] == 'dcplans') {
		textArray[i] = '401(k)/457 Defined Contribution';
		}
	 else if (urlArray[i] == 'general'){
		textArray[i] = 'General Information';
		}
	 else if (urlArray[i] == 'dbplans'){
		textArray[i] = 'Defined Benefit (Retirement) Plans';
		}
	 else if (urlArray[i] == 'acrobat'){
		textArray[i] = 'Acrobat Help';
		}
	 else if (urlArray[i] == 'faq'){
		textArray[i] = 'Frequently Asked Questions';
		}
	 else if (urlArray[i] == 'admin'){
		textArray[i] = 'Administration';
		}
	 else if (urlArray[i] == 'investoption'){
		textArray[i] = 'Investment Options';
		}

	 else if (urlArray[i] == 'news'){
		textArray[i] = 'News Updates';
		}
	 else if (urlArray[i] == 'feedback'){
		textArray[i] = 'Feedback';
		}
	 else if (urlArray[i] == 'employer'){
		textArray[i] = 'Participating Employers';
		}

	 else if (urlArray[i] == 'calculator'){
		textArray[i] = 'Calculators';
		}
	 else if (urlArray[i] == 'future'){
		textArray[i] = '401(k) and 457 Future Values Calculator';
		}
	 else if (urlArray[i] == '401spd'){
		textArray[i] = '401(k) Summary Plan Description';
		}
	 else if (urlArray[i] == 'highlight'){
		textArray[i] = 'Highlight Brochures';
		}
 	 else if (urlArray[i] == 'dev'){
		textArray[i] = 'Development Folder';
		}
	 else if (urlArray[i] == 'retcalc'){
		textArray[i] = 'Retirement Calculator';
		}
	 else if (urlArray[i] == 'edumarket'){
		textArray[i] = 'Education & Marketing';
		}
	 else if (urlArray[i] == 'urs'){
		textArray[i] = 'Home';
		}

	 else{
		textArray[i] = '';
		}
	}

// creating bread crumb navigation

	if (urlArray[0] != ''){ 
	document.write('<font size=\"1\"  color=\"ff0000\">You are here \: <\/font><font size=\"1\"><a href=/>Home</a>');
		}
	var i = 0
	for (i = 0; i < urlArray.length ; i ++){
		if (urlArray[i] == ''){ 
			}
		else if (textArray[i] == ''){
			}
		else if (i == 0){
			}
		else if (i < urlArray.length){
			document.write('\&nbsp\;\&gt\; <a href=/');			
				for (var j = 1 ; j <= i ; j ++){		
				document.write('' + urlArray[j] + '/');
			}
				document.write('>' + textArray[i] + '</a>');
			}
		
		else {
			}
		}
	if (urlArray[0] != ''){ 
		document.write('\&nbsp\;\&gt\; ' + title + '</font><br><br>');
		}


 //-->
