/*******************************************
 * 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("academics","Academics","aa_bus_admin","Business Administration AA","aa_crim_just","Criminal Justice AA","ac_cp","Air Conditioning Certificate","blet","Basic Law Enforcement Training","bus_admin","Business Administration","as_arts","College Transfer","as_science","College Transfer","comp_tech","Computer Information Technology","cosmo","Cosmetology","crim_just_tech","Criminal Justice Technology","culinary","Culinary Technology","early_child","Early Childhood Education","elec_cont_cp","Elctrical Contractor Preparation","elec_techas","Electrical/Electronics Tech/AS","elec_techdp","Electrical/Electronics Tech","ems","Emergency Medical Science","gen_oc_tech","General Occupational Technology","hvac","HVAC","ist_as","Industrial Systems Technology/AS","ist_cp","Machine Shop-CNC Operator","ist_dp","Industrial System Technology","let_cp","Lateral Entry Teacher","nurseassist_cp","Nusing Assistant ","nursing","Nursing/AS","office_systech","Office Administration","radiography","Radiography","res_ther","Respiratory Therapy","surg_tech","Surgical Technology","umc","UMC","und_atc","UND Air Traffic Control","und_aviation","UND Aviation Articulation","basicskills","Basic Skills","abe","Adult Basic Education","ahs","Adult High School","ce","Compensatory Education","esl","English as Second Language","ged","General Education Development","directions","Directions","distance_ed","Distance Education","employment","Employment","facultystaff","Faculty and Staff","financial_aid","Financial Aid","foundation","Foundation","future","Future Students","academics","Academics","bus_admin","Business Administration","comp_tech","Computer Information Technology","cosmo","Cosmetology","crim_just_tech","Criminal Justice Technology","cultech","Culinary Technology","early_child","Early Childhood Education","ems","Emergency Medical Science","hvac","HVAC","nursing","Nursing/AS","radiography","Radiography","res_ther","Respiratory Therapy","surg_tech","Surgical Technology","basicskills","Basic Skills","directions","Directions","foundation","Foundation","news","News and Events","workforce","Workforce Education","news","News and Events","2008","2008","4","April","5","May","6","June","foundation","Foundation","students","Current Students","sga","SGA","workforce","Workforce Education","cs","Community Services","es","Emergency Services","hrd","HRD","is","Industrial Services","oe","Occupational Extension","sbc","Small Business Center","about_rcc","About RCC","distance_edu","Distance Education")
	for (var x=0;x<nList.length;x=x+2) 	if (a==nList[x]) {retVal=nList[x+1];break;}	
	return retVal;
}
