/* Local Nav Links */
// JavaScript Document
// CONSTANTS: 
var sProtocol = location.protocol;
var sHost = location.hostname;
// If you are not testinng the redesign within a separate work directory
// set the subDir variable to ""
// Or add the name of your working directory here leaving out the initial forward slash
// include the endingn forward slash
var subDir = "";
var site = getSite();
//sProtocol + '//' + sHost + "/" + subDir;


function getSite() {
	var myRegExp = new RegExp("-(dev|staging|qa)");
	var sVal = sProtocol + '//' + sHost + "/";
	
	if (myRegExp.test(sHost)) {
		return sVal + subDir;
		} else {
		return sVal;
	}	
}

function getABBAText(i) {
var txt = "";
switch (i) 
{ 
   case "Academic Senate" : 
      txt = txt + "\n Management and operation of the faculty governance process."; 
      break; 
	  
   case "Academic Planning" : 
      txt = txt + "\n Central campus academic planning, curriculum planning,  and faculty employment matters.";
      break; 
	  
   case "Departmental Administration" : 
      txt = txt + "\n \nManagement of instruction and departmental research, such as administration, academic planning, human resources, student advising.  (includes only Program Codes 61, 62, 68, 72, & 76)";
      break; 
	  
   case "Deans Office" : 
      txt = txt + "\nSupport for instruction and research, such as administration, academic planning, human resources, student advising.  (includes only Program Codes 40, 61, 62, 68, 72, & 76)";
      break; 
	  
case "Academic Support" : 
	txt = txt + "\nSupport for instruction and research, such as media centers, journals, clinics, etc. (Program Code 43 Academic Support Services & Activities)";
	break;
	
case "Library" : 
	txt = txt + "\nCentral library and its affiliated libraries (Program Code 60).";
	break;
	
case "Divisional Libraries" : 
	txt = txt + "\nAcademic department libraries (Program Code 60).";
	break;
	
case "Research" : 
	txt = txt + "\nSponsored research (Program Code 44).";
	break;
	
case "Research Administration" : 
	txt = txt + "\nOrganized and sponsored research, such as administration, human resources, IT, fundraising (includes only Program Codes 61, 62, 68, 72, & 76).";
	break;
	
case "Research Museums" : 
	txt = txt + "\nResearch in research museums (primarily in Program Code 43, but also includes Program Codes 61, 62, 68, 72, & 76).";
	break;
	
case "Regular Sessions" : 
	txt = txt + "\nInstruction during the fall/spring academic year, including teaching, administration, academic advising, curriculum development (Program Code 40 only).";
	break;
	
case "Summer Sessions" : 
	txt = txt + "\nInstruction during the summer session, including teaching, administration, academic advising, curriculum development (Program Code 41 only).";
	break;
	
case "Student Life" : 
	txt = txt + "\nTransitional support and co-curricular activities that shape the \"entire student\" as an agent for positive social change, and link students to opportunities that help them feel like connected members of the UC Berkeley Community.";
	break;
	
case "UHS" : 
		txt = txt + "\nHealth services for students.";
	break;
	
case "ASUC" : 
	txt = txt + "\nStudent governance, student newspaper, store, social clubs.";
	break;
	
case "Housing" : 
	txt = txt + "\nHousing and related services for students.";
	break;
	
case "SHIP" : 
	txt = txt + "\nHealth insurance for students.";
	break;
	
case "Recreational Sports" : 
	txt = txt + "\nNon-extramural sports and exercise opportunities, primarily for students.";
	break;
	
case "Student Musical Activities" : 
	txt = txt + "\nMusical instruction, performance and performance management instruction for students.  Also provides performing artists for athletics and external relations events.";
	break;
	
case "Admissions" : 
	txt = txt + "\nAdmitting students.";
	break;
	
case "Financial Aid" : 
	txt = txt + "\nManagement of financial aid for students.";
	break;
	
case "Registrar" : 
	txt = txt + "\nRegistration process for students.";
	break;
	
case "Student Services Administration" : 
	txt = txt + "\nStudent services, such as administration, human resources, IT.  (includes only Program Codes 61, 62, 68, 72, & 76)";
	break;
	
case "Academic Achievement" : 
	txt = txt + "\nDevelopment and implementation of programs and strategies to improve academic preparation, expand educational opportunities, and ensure access to higher education and to the University of California for low-income and educationally-disadvantaged students.";
	break;
	
case "Student Academic Support" : 
	txt = txt + "\nServices and programs that enhance and promote student academic success, help students achieve personal and professional goals, and foster a sense of community and place on campus.";
	break;

case "Financial Aid" : 
	txt = txt + "\nExpenditures of direct financial aid.";
	break;
	
case "Athletics" : 
	txt = txt + "\nExtramural sports teams and their administration and support.";
	break;
	
case "LHS" : 
txt = txt + "\nProviding science education, information and exhibits to the public, and related research.";
	break;
	
case "BAM/PFA" : 
		txt = txt + "\nArt and film exhibits to the public and campus community.  Also, activities that engage with faculty for course content connected to museum collections/exhibits.";
	break;
	
case "UNEX" : 
	txt = txt + "\nOngoing learning opportunities for the public.";
	break;
	
case "Cal Performances" : 
	txt = txt + "\nPerformances and educational activities connected with performance for the public and the campus community.  Also provides/rents facilities for campus units.";
	break;
	
case "Operation & Maintenance of Plant and Building Services" : 
	txt = txt + "\nMaintenance and deferred maintenance of buildings, grounds, utility systems operations, and activities to purchase electricity and gas.  Also, that engage in activities related to the operation and maintenance of plant, such as administration, accounting, computing.";
	break;
	
case "Capital planning, management, & administration" : 
	txt = txt + "\nManagement and planning of campus building projects, or capital planning and management, such as administration, accounting, and computing.";
	break;
	
case "Human Resources" : 
	txt = txt + "\nServices for employment, job classification, benefits, etc. and the management of those services.";
	break;
	
case "Budget and resource planning" : 
	txt = txt + "\nBudget, data, financial cost, and space planning services to the campus.";
	break;
	
case "General administration" :
	txt = txt + "\nCampus controller and audit services.";
	break;
	
case "Payroll" : 
	txt = txt + "\nSalary payments to employees";
	break;
	
case "Disbursements" : 
	txt = txt + "\nPayments to vendors and external constituents";
	break;
	
case "Accounting" : 
	txt = txt + "\nCentral accounting services to campus units and interfaces with UCOP and outside auditors.";
	break;
	
case "Business Services" : 
	txt = txt + "\nServices such as printing, mail, real estate services.";
	break;
	
case "Parking" : 
	txt = txt + "\nParking operations, planning for additional parking.";
	break;
	
case "Transportation" : 
	txt = txt + "\nCampus shuttle buses, charter buses, and arrangements with transportation authorities.";
	break;
	
case "Security" : 
	txt = txt + "\nPolicing to the central campus and campus related facilities within a short distance of campus.";
	break;
	
case "EH&S" : 
	txt = txt + "\nCentralized environment, health, and safety services.";
	break;
	
case "Chancellors Office" : 
	txt = txt + "\nExecutive leadership of the campus.";
	break;
	
case "EVCP Office" : 
	txt = txt + "\nExecutive leadership of academic enterprise of the campus.";
	break;
	
case "VC Administration" : 
	txt = txt + "\nLeadership for administrative services of the campus and acts as advisor to executive leadership.";
	break;
	
case "Alumni Affairs" : 
	txt = txt + "\nInteractions with alumni to develop positive relationships.";
	break;
	
case "Development" : 
	txt = txt + "\nGifts for the campus through fund raising.";
	break;
	
case "Public Affairs" : 
	txt = txt + "\nInteractions with the media and other organizations to promote public relations.";
	break;
	
case "General External Relations" : 
	txt = txt + "\nAdministration and support to alumni, media and public relations and to fundraising activities.";
	break;
	
case "Campus IT Leadership" : 
	txt = txt + "\nStrategic oversight of campus wide information technology. ";
	break;
	
case "Academic and Research Computing" : 
	txt = txt + "\nDiscipline-specific applications development, programming, and support not related to instruction.";
	break;
	
case "Administrative/Student Enterprise Systems" : 
		txt = txt + "\nCampus or large-scale applications for student and administrative purposes, e.g., student registration, accounting.";
	break;
	
case "Client Support" : 
	txt = txt + "\nCampus customer support on behalf of the central IT service organization, e.g., primary customer contact, assistance, and service management.";
	break;
	
case "Infrastructure Services" : 
	txt = txt + "\nCampus or large-scale IT Services which provide support for computing and communications activities, e.g., network, voice, data center, data warehouse, collaboration tools, security.";
	break;
	
case "Instructional Tech/Multimedia Services/Student Computing" : 
	txt = txt + "\nCampus support for teaching and learning through classroom technology services, learning management systems, faculty technology consulting, AV event support, AV installation design, web casting, videoconferencing, and broadcast services.";
	break;
	
case "IT Administration" : 
txt = txt + "\nManagement and leadership of central IT service organization.";
	break;

case "Departmental IT" : 
	txt = txt + "\nComputing and communications activities performed in and for departments, schools, and colleges.";
	break;
	
   default : 
		txt = "No information available.";
    }
	
	return txt;
}










