
	
	//----------------------------------------------------------
	// Name		: breadcrumb
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumb()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/" target="_top">Home</a> ';
			var sPath = '/';
		
			for(var i = 0; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbPromotions
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbPromotions()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/" target="_top">Home</a> ';
			var sPath = '/';
		
			for(var i = 0; i < aURL.length - 3; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbTeachers
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbTeachers()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Group_Information/Memory_Bank/Our_Teaching_Resources/" target="_top">Home</a> ';
			var sPath = '/Group_Information/Memory_Bank/Our_Teaching_Resources/';
		
			for(var i = 3; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbGraduates
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbGraduates()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Group_Information/Working_for_the_Group/Graduates/graduate.htm" target="_top">Home</a> ';
			var sPath = '/Group_Information/Working_for_the_Group/Graduates/';
		
			for(var i = 3; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

//----------------------------------------------------------
	// Name		: breadcrumbRBSWales
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbRBSWales()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/promotions/48/en/default.htm" target="_top">RBS Wales Home</a> ';
			var sPath = '/Corporate_Banking/promotions/48/en/';
		
			for(var i = 4; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}


	//----------------------------------------------------------
	// Name		: breadcrumbPrebudget
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbPrebudget()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/Pre-Budget_Report_Commentary/default.htm" target="_top">Home</a> ';
			var sPath = '/Corporate_Banking/Pre-Budget_Report_Commentary/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbBudget
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbBudget()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/Budget_Report_Commentary/default.htm" target="_top">Home</a> ';
			var sPath = '/Corporate_Banking/Budget_Report_Commentary/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbSolicitors
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbSolicitors()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Mortgage_Documents_for_Conveyancers/" target="_top">Home</a> ';
			var sPath = '/Mortgage_Documents_for_Conveyancers/';
		
			for(var i = 1; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbPensioners
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbPensioners()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/pensioners/default.htm" target="_top">Home</a> ';
			var sPath = '/pensioners/';
		
			for(var i = 1; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbDigitalProto
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbDigitalProto()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -3) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/work/neil/e-banking/Digital_Banking/" target="_top">Home</a> ';
			var sPath = '/Digital_Banking/';
		
			for(var i = 4; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbInternationalCapabilities
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbInternationalCapabilities()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/International_Solutions/" target="_top">Home</a> ';
			var sPath = '/Corporate_Banking/International_Solutions/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbHealthcare
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbHealthcare()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Small_Business/Healthcare/" target="_top">Home</a> ';
			var sPath = '/Small_Business/Healthcare/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbManagers
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbManagers()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Small_Business/Business_Development_Managers/" target="_top">Home</a> ';
			var sPath = '/Small_Business/Business_Development_Managers/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbRBSkredit
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbRBSkredit()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/rbskredit/" target="_top">Home</a> ';
			var sPath = '/rbskredit/';
		
			for(var i = 1; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbratencreditpromo
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//

	function breadcrumbratencreditpromo()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/rbskredit/Microsites/Ratenkredit/" target="_top">Home</a> ';
			var sPath = '/rbskredit/Microsites/Ratenkredit/';
		
			for(var i = 3; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

//----------------------------------------------------------
	// Name		: breadcrumbratencreditadacpromo
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//

	function breadcrumbratencreditadacpromo()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/rbskredit/Microsites/rbs/" target="_top">Home</a> ';
			var sPath = '/rbskredit/Microsites/rbs/';
		
			for(var i = 3; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbWorldwideLanguage
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbWorldwideLanguage(Lang)
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/Worldwide/" target="_top">Home</a> ';
			var sPath = '/Corporate_Banking/Worldwide/';
		
			for(var i = 2; i < aURL.length - 1; i++) 
			{
			if (i != 4) {

				if (i > 4) {
					sPath += Lang + "/" + aURL[i] + '/';
				} else {
					sPath += aURL[i] + '/';		
				}
			
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';

				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: breadcrumbWorldwide
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbWorldwide()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/Worldwide/" target="_top">Home</a> ';
			var sPath = '/Corporate_Banking/Worldwide/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}


//----------------------------------------------------------
	// Name		: breadcrumbmanagemoney
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbmanagemoney()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Managing_your_Money/" target="_top">Home</a> ';
			var sPath = '/Managing_your_Money/';
		
			for(var i = 1; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}


//----------------------------------------------------------
	// Name		: breadcrumbonecard
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbonecard()
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="/Corporate_Banking/onecard/" target="_top">Home</a> ';
			var sPath = '/Corporate_Banking/onecard/';
		
			for(var i = 2; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}


	//----------------------------------------------------------
	// Name		: breadcrumbGeneric
	// Purpose	: Create Breadcrumb Trail
	//----------------------------------------------------------
	//
	function breadcrumbGeneric(path, startlevel)
	{
		var sDelimiter = '>';
	
		var sURL = escape(location.pathname.indexOf('?') != -1) ? location.pathname.substring(0, location.pathname.indexOf('?')) : location.pathname;
		sURL = (location.pathname.charAt(0) == '/') ? location.pathname.substring(1) : location.pathname;
		var aURL = sURL.split('/');
	
		if(aURL)
		{
			var sOutput = '<a href="'+path+'" target="_top">Home</a> ';
			var sPath = path;
		
			for(var i = startlevel; i < aURL.length - 1; i++)
			{
				sPath += aURL[i] + '/';						
				sOutput += ' ' + sDelimiter + ' ';
				sOutput += '<a href="' + sPath + '"';
				var vPath = '';
				var vURL = '';
				vURL = aURL[i].split('_');
				if(vURL)
				{
					for(var n= 0; n < vURL.length; n++)
					{
						vPath += vURL[n] + ' ';
					}
				}

				if (i == aURL.length - 2)
				{
					sOutput += ' target="_top"><span class=breadcrumb-highlight>' + vPath + '</span></a>';
				} else {
					sOutput += ' target="_top">' + vPath + '</a>';
				}
			}								
			document.write(unescape(sOutput));
		}
	}

	//----------------------------------------------------------
	// Name		: popwin
	// Purpose	: Create Popup Window
	//----------------------------------------------------------
	//
	function popwin(url, name, width, height, location, menubar, status, toolbar)
	{
		if (name == null)
		{
			name = "stdWin";
		}
		if (width == null)
		{
			width = 550;
		}
		if (height == null)
		{
			height = 500;
		}
		if (location == null)
		{
			location = "no"
		}
		if (menubar == null)
		{
			menubar = "yes"
		}
		if (status == null)
		{
			status = "yes"
		}
		if (toolbar == null)
		{
			toolbar = "yes"
		}

		popup = window.open(url, name, 'width=' + width + ',height=' + height + ',location=' + location + ',menubar=' + menubar + ',status=' + status + ',toolbar=' + toolbar +',scrollbars=yes,resizable=yes,screenx=0,screeny=0,left=0,top=0');
		if (window.focus) setTimeout("popup.focus()",100);
	}
	
	//----------------------------------------------------------
	// Name		: popwinWide
	// Purpose	: Create Popup Window
	//----------------------------------------------------------
	//
	function popwinWide(url, name, width, height, location, menubar, status, toolbar)
	{
		if (name == null)
		{
			name = "stdWin";
		}
		if (width == null)
		{
			width = 650;
		}
		if (height == null)
		{
			height = 530;
		}
		if (location == null)
		{
			location = "no"
		}
		if (menubar == null)
		{
			menubar = "yes"
		}
		if (status == null)
		{
			status = "yes"
		}
		if (toolbar == null)
		{
			toolbar = "yes"
		}

		popup = window.open(url, name, 'width=' + width + ',height=' + height + ',location=' + location + ',menubar=' + menubar + ',status=' + status + ',toolbar=' + toolbar +',scrollbars=yes,resizable=yes,screenx=0,screeny=0,left=0,top=0');
		if (window.focus) setTimeout("popup.focus()",100);
	}


	//----------------------------------------------------------
	// Name: 		popCommBank
	// Purpose	: 	Create Popup Window within Commercial Banking microsite within CBFM
	//----------------------------------------------------------
	//
	function popCommBank(url, name, width, height, left, top, location, menubar, status, toolbar)
	{
		if (name == null)
		{
			name = "stdWin";
		}
		if (width == null)
		{
			width = 650;
		}
		if (height == null)
		{
			height = 400;
		}
		if (location == null)
		{
			location = "yes"
		}
		if (menubar == null)
		{
			menubar = "yes"
		}
		if (status == null)
		{
			status = "yes"
		}
		if (toolbar == null)
		{
			toolbar = "yes"
		}
		if (left == null)
		{
			left = 150
		}
		if (top == null)
		{
			top = 75
		}

		popup = window.open(url, name, 'width=' + width + ',height=' + height + ',location=' + location + ',menubar=' + menubar + ',status=' + status + ',toolbar=' + toolbar + ',left=' + left + ',top=' + top + ',scrollbars=yes,resizable=yes,screenx=0,screeny=0');
		if (window.focus) setTimeout("popup.focus()",100);
	}

	//----------------------------------------------------------
	// Name		: createLink
	// Purpose	: Create Popup Window
	//----------------------------------------------------------
	//
	function createLink(url)
	{
		if (url == null)	
		{
			location.href="#";
		} else {
			location.href=url;
		}
	}

	//----------------------------------------------------------
	// Name		: setCookie
	// Purpose	: Set Client Cookie
	//----------------------------------------------------------
	//
	function setCookie(name, value, expires, path, domain, secure)
	{
		var curCookie = name + "=" + escape(value) +
		((expires) ? "; expires=" + expires.toGMTString() : "") +
		((path) ? "; path=" + path : "") +
		((domain) ? "; domain=" + domain : "") +
		((secure) ? "; secure" : "");
		document.cookie = curCookie;
	}

	//----------------------------------------------------------
	// Name		: getCookie
	// Purpose	: Get Client Cookie
	//----------------------------------------------------------
	//
	function getCookie(name)
	{
		var dc = document.cookie;
		var prefix = name + "=";
		var begin = dc.indexOf("; " + prefix);
		if (begin == -1) {
			begin = dc.indexOf(prefix);
			if (begin != 0) return null;
			} else {
				begin += 2;
				var end = document.cookie.indexOf(";", begin);
				if (end == -1)
				end = dc.length;
			}
		return unescape(dc.substring(begin + prefix.length, end));
	}

	//----------------------------------------------------------
	// Name		: promotion
	// Purpose	: Create Promotion Popup Window + Write Cookie
	//----------------------------------------------------------
	//
	function promotion(url, cookiename, name, width, height)
	{
		if (!getCookie(cookiename))
		{
			setCookie(cookiename, "True", "", "/")
			popwin(url, name, width, height)
		}
	}

	//----------------------------------------------------------
	// Name		: questionnaire
	// Purpose	: Quesionnaire Cookie
	//----------------------------------------------------------
	//
	function questionnaire(url, cookiename, name, width, height)
	{
		if (!getCookie(cookiename))
		{
			popwin(url, name, width, height)
		}
	}

	//----------------------------------------------------------
	// Name		: printerfriendly
	// Purpose	: Create Page Printer Friendly Version
	//----------------------------------------------------------
	//
	function printerfriendly(url, type)
	{
		if (type == null)
		{
			type = ''
		}

		if ((url == null) || (url == 0))
		{
			var url = (location.pathname)
			var title = (document.title)
			url = url.substring(0, url.length-4);
			url = "/utilities/printerfriendly.asp?type="+type+"&url=" + url + "_content.htm&title=" + escape(title);
		}
		popwin(url, 'printerfriendly', 550, 400)

	      	//popup = window.open(url,'printerfriendly','status=yes,width=550,height=400,scrollbars=yes,resizable=yes,menubar=yes,screenx=0,screeny=0,left=0,top=0');
		if (window.focus) setTimeout("popup.focus()",100);
	}

	//----------------------------------------------------------
	// Name		: disablelinks
	// Purpose	: Disable Links for Page Printer Friendly Version
	//----------------------------------------------------------
	//

	function disablelinks()
	{
		for (var i = 4; i < document.links.length; i++) 
		{
		document.links[i].href= "#"
		}
	}

	//----------------------------------------------------------
	// Name		: stylesheet select
	// Purpose	: Select appropriate stylesheet if not PC IE
	//----------------------------------------------------------
	//
	var ptype=navigator.userAgent.toLowerCase()+" ";

	win=ptype.indexOf("win")!=-1
	mac=ptype.indexOf("mac")!=-1

	opera=ptype.indexOf("opera")!=-1

	var netscape=navigator.appName.toLowerCase()+" ";
	netscape=netscape.indexOf("netscape")!=-1

	if ((netscape) && (mac))
	{
		if (parseInt(navigator.appVersion) < 5)
		{
			document.write("<link rel='stylesheet' href='/includes/css/styleNetscapeMAC4.css' type='text/css'>");
		} else {
			document.write("<link rel='stylesheet' href='/includes/css/styleNetscapeMAC6.css' type='text/css'>");
		}
	}

	if ((netscape) && (win))
	{
		if (parseInt(navigator.appVersion) < 5)
		{	
			document.write("<link rel='stylesheet' href='/includes/css/styleNetscapeWIN4.css' type='text/css'>");
		} else { 
			document.write("<link rel='stylesheet' href='/includes/css/styleNetscapeWIN6.css' type='text/css'>");
		}
	}

	if (opera)
	{
		document.write("<link rel='stylesheet' href='/includes/css/styleOpera.css' type='text/css'>");
	}

	//----------------------------------------------------------
	// Name		: checkNetscape4
	// Purpose	: Check for Netscape version 4.x or below
	//----------------------------------------------------------
	//

	function checkNetscape4()
	{
		if ((netscape) && (parseInt(navigator.appVersion) < 5))
		{
			return true;
		}
		return false;
	}

	//----------------------------------------------------------
	// Purpose	: Toptext Plugin Fix
	//----------------------------------------------------------
	//

	//seconds = 5 * 1000

	//data = unescape(document.cookie)
	//trigger = data.split("="); trigger = trigger[1]
	//if (data.length < 1 && navigator.appName == "Microsoft Internet Explorer") {
	//	date = new Date()
	//	currentdate = date.getTime() + 3000 + seconds
	//	date.setTime(currentdate)
	//	document.cookie = "visit=yes; expires=" + date.toGMTString()
	//	data = unescape(document.cookie)
	//	trigger = data.split("="); trigger = trigger[1]
	//} else if (trigger == "yes" && navigator.appName == "Microsoft Internet Explorer") {
	//	trigger = "page is reloaded"
	//}

	//if (trigger == "yes" && navigator.appName == "Microsoft Internet Explorer") {
	//	setTimeout("ReloadPage()",seconds)
	//}
	
	//function ReloadPage() {
	//	location.reload()
	//}

	//----------------------------------------------------------
	// Purpose	: Drop down web list popup
	//----------------------------------------------------------
	//

	function popDropDown() {
	if (window.document.form1.txtSelect.value != "") {

		popwin(window.document.form1.txtSelect.value, 'selectWin', 750, 550, 'yes')

		//popwin(window.document.form1.txtSelect.value, 'selectWin', 800, 600, 'yes')					'yes', 'yes', 'yes');
		}
	}


	
