// JavaScript Document
/***********************************************
* Breadcrumb linking script ©2006-2007 Media Dog Productions.
* This notice must stay intact for legal use.
* Developed by Cory Johnson ©2006-2007 Media Dog Productions. Visit http://www.mediadog.net/
* Method BC Link writes plain text or a hyperlink depending on 'text'. If text contains an SHTML file, a link is written to the page, if not the element writing is static text.
* Example use:
	<script>
			bclink('/this/is/the/link/to/a/file.shtml', 'This is the link text');
	</script>
***********************************************/


function bcLink(hyperlink, text){
		if(text == "nav_01_programs") { text = "Programs &amp; Courses"; };
		if(text == "nav_02_coming") { text = "Coming to Sait"; };
		if(text == "nav_03_student") { text = "Student Services"; };
		if(text == "nav_04_corporate") { text = "Corporate Solutions"; };
		if(text == "nav_05_campus") { text = "Campus Resources"; };
		if(text == "nav_06_alumni") { text = "Alumni and Friends"; };
		if(text == "nav_07_other") { text = "About Sait"; };
		if(text == "nav_08_careers") { text = "Careers at Sait"; };
		if(text == "nav_09_ri") { text = "Research and Innovation"; };
		
		thisitem = new String(hyperlink);
		pattern = /.shtml/gi;
		results = thisitem.search(pattern);
		if (results > 0) { 
			myResult = '&nbsp/&nbsp;'+text;
		} else {
			myResult = '&nbsp/&nbsp;'+text;
		};

document.write(myResult);
}
