/*******************************************
 * Kaosweaver Expert Breadcrumbs           *
 * by Paul Davis http://www.kaosweaver.com * 
 * Copyright 2003 all rights reserved      *
 *******************************************/
var KW_uTitle=document.title
function KW_breadcrumbs(o,m,n,r,f,q,v) { // v1.3.0
	d=document;l=window.location.toString();l=l.replace(/\</g,"");l=l.replace(/\>/g,"");l=l.replace(/%\w{2}/g,"");l=l.replace(/[?].*/g,"");s=l.split("/");d1=" <span class='redArrow'>"+m+"</span> "
	if (f!=-1) if (l.indexOf(f)!=-1){sNew = new Array(); for (i=0;i<s.length-1;i++) {sNew[i] = s[i]};
	s = sNew;};i=q;	h="You are here: <a href='"+KW_jTrail(l,i)+f+"' class='bcrumbs'>"+o+"</a>";
	t="<span>"+KW_uTitle+"</span>";if (s.length==q) {h=t;d1=""}	w=(r==1)?h+d1:t;
	d.write(w);if (n&&!r) d.write("<br>");if (r==1) for (i=v;i<s.length;i++) {d.write("<a href='");
	d.write(KW_jTrail(l,i)+f+"' class='bcrumbs'>"+KW_fName(s[i-1])+"</a> <span class='redArrow'>"+m+"</span> ")
	l=window.location.toString();l=l.replace(/\</g,"");l=l.replace(/\>/g,"");l=l.replace(/%\w{2}/g,"");l=l.replace(/[?].*/g,"");} else for (i=s.length;i>v;i--) {d.write(" <span class='redArrow'>"+m)
	d.write("</span>You are here: <a href='"+KW_jTrail(l,i-1)+f+"' class='bcrumbs'>"+KW_fName(s[i-2])+"</a>");
	l=window.location.toString();l=l.replace(/\</g,"");l=l.replace(/\>/g,"");l=l.replace(/%\w{2}/g,"");l=l.replace(/[?].*/g,"");}if (n && r) d.write("<br>");w=(r==1)?t:d1+h;if (s.length!=q) d.write(w)
}
function KW_jTrail(l,i){ // v1.3.0
	p=0;for (z=0;z<i;z++)p=l.indexOf("/",p)+1;return l.substring(0,p)
}
function KW_fName(a) { // v1.3.0
	a=unescape(a); g=a.split(' '); for (l=0;l<g.length;l++)	
	g[l]=g[l].toUpperCase().slice(0,1)+g[l].slice(1);retVal=g.join(" "); 
	nList= new Array("about-us","About us","cheshire-history","History of Cheshire Building Society","community-support","Community support","documents","Documents","sponsorship-information","Sponsorship information","documents","Documents","group-information","Cheshire Building Society Group information","documents","Documents","safe-internet-access","Safe internet access","application-forms","Application forms","apply-insurance","Applying for insurance","apply-investment","Applying for a savings or investment account","apply-mortgage","Applying for your mortgage","careers-and-recruitment","Recruitment and careers","applications","How to apply","benefits","Career benefits","current-vacancies","Current vacancies","faqs","FAQs","training","Training","commercial-lending","Commercial mortgages","additional-information","Additional information","application-forms","Application forms","business-finance","Commercial loans","enquire-now","Enquire now","identification-verification","Identification verification","lending-criteria","Lending criteria","meet-the-team","Meet the team","sharing-in-success","Sharing in success","social-criteria","Social commercial lending criteria","stationery-box","Stationery box","what-we-need","What we need","documents","Documents","what-we-need-social","Social - what we need","contact-us","Contact us","by-branch","By branch","estate-agency","Estate agency","feedback","Feedback","general-website-enquiry","General website enquiry","media-contact","Media contact details","recruitment","Recruitment","credit-card-online","Credit cards","estate-agent","Cheshire estate agency","about-northwest","About the North West","house-for-sale","Buy a house","house-to-rent","Property to rent","letting-agent","Use us as your letting agent","sell-your-house","Sell a house","financial-planning","Financial planning","financial-investment-planning","Financial investment planning","pensions","Pensions","personal-stakeholder-retirement-pension-planning","Pensions","help","Help","frequently-asked-questions","FAQs","documents","Documents","documents","Documents","sitemap","Sitemap","insurance-quote-online","Insurance","accident-sickness-unemployment","Accident sickness and unemployment","health-medical-dental","Medical and dental","house-for-landlords","Insurance for property to let","house-home-property","Home and contents insurance","instant-quote","Quick quote","life-critical-illness","Life insurance","policy-information","Claims and information","investment-saving-account","Savings and investment accounts","cheshire-investor","Cheshire investor","child-trust-fund","Child Trust Fund accounts","childrens-savings","Children's savings accounts","club-and-charity","Club and charity accounts","financial-investment-planning","Financial investment planning","fixed-rate-bonds","Fixed rate savings bonds","general-information","General information","guides","Guides","id-requirements","Identification requirements","individual-saving-account","ISA savings accounts","instant-access","Instant access savings accounts","interest-rates","Our rates","jargon","Mortgage jargon buster","downloads","Downloads","stock-market-linked","Stock market linked accounts","jargon","Mortgage jargon buster","legal","Legal","disability-discrimination","Disability discrimination","documents","Documents","emaps-important-info","Important information","documents","Documents","privacy-policy","Privacy policy","security-information","Security information","the-banking-code","The Banking Code","members","Members","news-and-media","News and media","documents","Documents","member-benefits","Member benefits","member-forums","Member forums","documents","Documents","mutuality","Mutuality","press-release-images","Press release images","press-releases","Press releases","documents","Documents","online-mortgage-home-loan","Mortgages","adverse-bad-credit","Credit repair mortgages","base-rate-tracker","Tracker mortgages","buy-to-let","Buy to let mortgages","cashback","Cashback mortgages","discount-rate","Discount mortgages","existing-mortgages","Member mortgages","first-time-buyer","First time buyer mortgages","fixed-rate","Fixed rate mortgages","home-loans","Buying your next home","documents","Documents","id-requirements","Identification requirements","mortgage-calculators","Online mortgage calculators","mortgage-selector","Mortgage product selector","mortgage-selector-results","Mortgage product selector","property-survey","Property survey","remortgage","Simply moving your mortgage","self-certified","Self certified mortgages","solicitor-quote","Conveyancing","secured-unsecured-personal-loans","Loans","third-party-suppliers","Third party suppliers")
	for (var x=0;x<nList.length;x=x+2) 	if (a==nList[x]) {retVal=nList[x+1];break;}	
	return retVal;
}