/*******************************************
 * 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();s=l.split("/");d1=" <span class='kwspan'>"+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="<a href='"+KW_jTrail(l,i)+f+"' class='kwhref'>"+o+"</a>";
	t="<span class='kwtitle'>"+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='kwhref'>"+KW_fName(s[i-1])+"</a> <span class='kwspan'>"+m+"</span> ")
	l=window.location.toString();} else for (i=s.length;i>v;i--) {d.write(" <span class='kwspan'>"+m)
	d.write("</span> <a href='"+KW_jTrail(l,i-1)+f+"' class='kwhref'>"+KW_fName(s[i-2])+"</a>");
	l=window.location.toString();}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_baptist","About Baptist","2003_press_releases","2003 Press Releases","2004_press_releases","2004 Press Releases","2005_press_releases","2005 Press Releases","2006_press_releases","2006 Press Releases","2007_press_releases","2007 Press Releases","2008_press_releases","2008 Press Releases","business_services","Business Services","community","In Our Community","foundation","Health Foundation","tower","Tower","boardnet","BoardNet","branding","Branding","logo_files","Logo Files","logo_adult_day","Adult Day Logo","logo_baptist_for_wmn","Baptist For Women Logo","logo_behav_health","Behavioral Health Logo","logo_birthplace","Birthplace Logo","logo_bli","Baptist Leadership Institute Logo","logo_breast_health","Breast Health Center Logo","logo_cancer_serv","Cancer Services Logo","logo_cardio_serv","Cardiovascular Services Logo","logo_corp_health","Corporate Health Logo","logo_health_found","Health Foundation Logo","logo_health_systems","Health Systems Logo","logo_healthplex","Healthplex Logo","logo_home_med_serv","Home Medical Services Logo","logo_lab_outreach","Lab Outreach Logo","logo_med_center","Medical Center Logo","logo_med_clinics","Medical Clinics Logo","logo_nutrition_ctr","Nutrition Center Logo","logo_pt_sportscare","Physical Therapy & Sportscare Logo","logo_rehab_serv","Rehab Services Logo","logo_restor_care","Restorative Care Logo","cancer","Cancer Services","chestpain","Chest Pain","cvsymposium","Cardiovascular Symposium","cyclistscuringcancer","Cyclists Curing Cancer","deervalley","Deer Valley","employment","Employment","forms","Forms","foundation","Health Foundation","health_topics","Health Topics","ct_exams","CT Exams","diagnostic_exams","Diagnostic Exams","floroscopic_exams","Floroscopic Exams","nuclear_medicine_exams","Nuclear Medicine Exams","rad_procedures","Radiological Procedures","HealthELife","Health-E Life","healthgate","HealthGate","healthsource","HealthSource","images","Images","insideout","Inside Out","jam","J.A.M.","lab","Lab","madison","Madison","med_serv","Medical Services","all_services","All Services","bernard","Bernard","surgical","Surgical Services","cancer","Cancer Services","cancer_center_tour","Cancer Center Tour","clinics","Medical Clinics","docs","Medical Clinic Physicians","heart","Cardiovascular Services","brain_attack_videos","Brain Attack Videos","wellness","Wellness","nutrition","Nutrition","women","Baptist For Women","birthplace","The Birthplace","birthplace_products","Birthplace Products","strong_women","Strong Women","Nomination","Strong Women Nomination","nicugrad","NICU Graduation","orthosymposium","Orthopaedic Symposium","patients_visitors","Patients and Visitors","physician_tools","Physician Tools","podcasts","Podcasts","sonic","Sonic Symposium","tower","Tower","washington","Washington Symposium")
	for (var x=0;x<nList.length;x=x+2) 	if (a==nList[x]) {retVal=nList[x+1];break;}	
	return retVal;
}
