/*
  Class (and functions) for a college.
  Members:
     alephcode = the college aleph code
     name = college name
     campuslist = array of campuses for a college - array in form of campuslist[0] = alephcode:campusname
        -- will need to split on ':' to use it
     libcode = the flccxx00 libcode value for the college
     reserves = true/false has reserves display on
  Functions:
     CollegeCampus(collcode, collname, libcode, camplist) - constructor
     getCollegeName = returns the college name
     getCode = returns the college aleph code
     getLibCode = returns the lib code (like flcc0100)
     getCampuslist = returns the Array of campuscode:campusname or null if there is only one campus
     getCodeExt(extension) = returns the college alephcode with the extension added (like BEC50 or BEC30)
     getReserves = returns true or false whether the college has course reserves display on
     
  To add a new campus:
     A. If there are no existing campuses (other than the main campus):
        1. insert line above the collegelist line for that college:
           collegelist = new Array(1) (1 = size)
        2. Add a line below that: camplist[0] = 'campuscode:campusname'
        3. change the parameter to collegelist from null to camplist
     B. If there are existing campuses:
        1. Add one to the constructor of the camplist Array for that college
        2. Add a line with the next array index (remember that javascript is 0-based) and 
           insert the new campuscode:campusname pair

   If for some reason you need to remove a campus:
      1. Reduce the size of the array declaration for that college
      2. Remove the camplist[x] = ... line
      3. If there are no more campuses, delete the array declaration for that college and change the
         collegelist parameter from camplist to null
      
   Note: the keys in the collegelist are upper case, so when referring to the collegelist,
      be sure to convert to upper (and use the first 3 characters only)
      
*/
function CollegeCampus(collcode, collname, libcode, campuslist, reserves) {
   this.alephcode = collcode;
   this.name = collname;
   this.campuslist = campuslist;
   this.libcode = libcode;
   this.reserves = reserves;
   
   this.getCollegename = getCollegename;
   this.getCode = getCode;
   this.getCampuslist = getCampuslist;
   this.getCodeExt = getCodeExt;
   this.getLibCode = getLibCode;
   this.getReserves = getReserves
}

function getCollegename() {
   return this.name;
}

function getCode() {
   return this.alephcode;
}

function getLibCode() {
   return this.libcode;
}

function getCampuslist() {
   return this.campuslist;
}

function getCodeExt(extension) {
   return (this.alephcode + extension);
}

function getReserves() {
   return this.reserves;
}

var collegelist = new Array(28);
var camplist = new Array(4);
camplist[0] = 'BECCO:Cocoa';
camplist[1] = 'BECME:Melbourne';
camplist[2] = 'BECPB:Palm Bay';
camplist[3] = 'BECTV:Titusville';
collegelist['BEC'] = new CollegeCampus('BEC','Brevard Community College', 'flcc0200', camplist, true);
collegelist['BOC'] = new CollegeCampus('BOC', 'Broward College', 'flcc0300', null, true);
camplist = new Array(4);
camplist[0] = 'CCCAP:Appleton';
camplist[1] = 'CCCCI:Citrus';
camplist[2] = 'CCCLE:Levy';
camplist[3] = 'CCCOC:Ocala';
collegelist['CCC'] = new CollegeCampus('CCC', 'College of Central Florida', 'flcc0400', camplist, true);
collegelist['CJC'] = new CollegeCampus('CJC', 'Chipola College', 'flcc0500', null, false);
camplist = new Array(2);
camplist[0] = 'DBCDA:Daytona';
camplist[1] = 'DBCWE:West';
collegelist['DBC'] = new CollegeCampus('DBC', 'Daytona State College', 'flcc0600', camplist, false);
camplist = new Array(4);
camplist[0] = 'ECCCH:Charlotte';
camplist[1] = 'ECCCO:Collier';
camplist[2] = 'ECCHE:Hendry-Glades';
camplist[3] = 'ECCLE:Lee';
collegelist['ECC'] = new CollegeCampus('ECC', 'Edison State College', 'flcc0700', camplist, false);
collegelist['LCC'] = new CollegeCampus('LCC', 'Florida Gateway College', 'flcc1300', null, true);
collegelist['FKC'] = new CollegeCampus('FKC', 'Florida Keys Community College', 'flcc0900', null, true);
camplist = new Array(7);
camplist[0] = 'FJCCE:Cecil Center';
camplist[1] = 'FJCDE:Deerwood Center';
camplist[2] = 'FJCDO:Downtown Campus';
camplist[3] = 'FJCKE:Kent Campus';
camplist[4] = 'FJCNA:Nassau Center';
camplist[5] = 'FJCNO:North Campus';
camplist[6] = 'FJCSO:South Campus';
collegelist['FJC'] = new CollegeCampus('FJC', 'Florida State College at Jacksonville', 'flcc0800', camplist, true);
collegelist['GCC'] = new CollegeCampus('GCC', 'Gulf Coast State College', 'flcc1000', null, true);
camplist = new Array(6);
camplist[0] = 'HCCBR:Brandon';
camplist[1] = 'HCCDA:Dale Mabry';
camplist[2] = 'HCCPL:Plant City';
camplist[3] = 'HCCYB:Ybor City';
camplist[4] = 'HCCDP:District Prof. Coll.';
camplist[5] = 'HCCSS:Hillsborough SouthShore';
collegelist['HCC'] = new CollegeCampus('HCC', 'Hillsborough Community College', 'flcc1100', camplist, false);
camplist = new Array(5);
camplist[0] = 'IRCFO:Ft. Pierce';
camplist[1] = 'IRCOK:Okeechobee';
camplist[2] = 'IRCSA:St.Lucie:West';
camplist[3] = 'IRCST:Stuart';
camplist[4] = 'IRCVE:Vero Beach';
collegelist['IRC'] = new CollegeCampus('IRC', 'Indian River State College', 'flcc1200', camplist, false);
camplist = new Array(3);
camplist[0] = 'LSCLE:Leesburg';
camplist[1] = 'LSCSO:South Lake';
camplist[2] = 'LSCSU:Sumter';
collegelist['LSC'] = new CollegeCampus('LSC', 'Lake-Sumter Community College', 'flcc1400', camplist, false);
camplist = new Array(9);
camplist[0] = 'MDCEE:Entrepreneurial';
camplist[1] = 'MDCHI:Hialeah';
camplist[2] = 'MDCHO:Homestead';
camplist[3] = 'MDCIN:InterAmerican';
camplist[4] = 'MDCKE:Kendall';
camplist[5] = 'MDCME:Medical Center';
camplist[6] = 'MDCNO:North';
camplist[7] = 'MDCWE:West';
camplist[8] = 'MDCWO:Wolfson';
collegelist['MDC'] = new CollegeCampus('MDC', 'Miami Dade College', 'flcc1600', camplist, true);
collegelist['NJC'] = new CollegeCampus('NJC', 'North Florida Community College', 'flcc1700', null, false);
collegelist['OWC'] = new CollegeCampus('OWC', 'Northwest Florida State College', 'flcc1800', null, true);
camplist = new Array(3);
camplist[0] = 'PCCCE:Lake Worth';
camplist[1] = 'PCCEI:Palm Beach Gardens';
camplist[2] = 'PCCBE:Belle Glade';
collegelist['PCC'] = new CollegeCampus('PCC', 'Palm Beach State College', 'flcc1900', camplist, true);
camplist = new Array(4);
camplist[0] = 'PHCEA:East';
camplist[1] = 'PHCNO:North';
camplist[2] = 'PHCSH:Spring Hill';
camplist[3] = 'PHCWE:West';
collegelist['PHC'] = new CollegeCampus('PHC', 'Pasco-Hernando Community College', 'flcc2000', camplist, true);
camplist = new Array(5);
camplist[0] = 'PJCPE:Pensacola';
camplist[1] = 'PJCWA:Warrington';
camplist[2] = 'PJCMI:Milton';
camplist[3] = 'PJCSA:South Santa Rosa';
camplist[4] = 'PJCCE:Century';
collegelist['PJC'] = new CollegeCampus('PJC', 'Pensacola State College', 'flcc2100', camplist, true);
camplist = new Array(2);
camplist[0] = 'PKCLA:Lakeland';
camplist[1] = 'PKCWI:Winter Haven';
collegelist['PKC'] = new CollegeCampus('PKC', 'Polk State College', 'flcc2200', camplist, true);
camplist = new Array(3);
camplist[0] = 'SSCOR:Orange Park';
camplist[1] = 'SSCPA:Palatka';
camplist[2] = 'SSCSA:St. Augustine';
collegelist['SSC'] = new CollegeCampus('SSC', 'St. Johns River State College ', 'flcc2300', camplist, false);
camplist = new Array(6);
camplist[0] = 'SPCAL:Allstate';
camplist[1] = 'SPCCL:Clearwater';
camplist[2] = 'SPCSA:St. Petersburg Gibbs';
camplist[3] = 'SPCHE:Health Education Center';
camplist[4] = 'SPCSE:Seminole';
camplist[5] = 'SPCTA:Tarpon Springs';
collegelist['SPC'] = new CollegeCampus('SPC', 'St. Petersburg College', 'flcc2400', camplist, true);
collegelist['SNC'] = new CollegeCampus('SNC', 'Santa Fe College', 'flcc2500', null, true);
camplist = new Array(9);
camplist[0] = 'SCCSA:Sanford';
camplist[1] = 'SCCAL:Altamonte';
camplist[2] = 'SCCHE:Heathrow';
camplist[3] = 'SCCOV:Oviedo';
//camplist[3] = 'SCCHU:Hunt Club';
camplist[4] = 'SCCCA:Sanford Career Center';
camplist[5] = 'SCCAC:Altamonte Career Center';
camplist[6] = 'SCCHC:Heathrow Career Center';
camplist[7] = 'SCCOC:Oviedo Career Center';
camplist[8] = 'SCCFA:Faculty Center Collection';
collegelist['SCC'] = new CollegeCampus('SCC', 'Seminole State College of Florida', 'flcc2600', camplist, true);
camplist = new Array(4);
camplist[0] = 'SOCAV:Highlands';
camplist[1] = 'SOCDE:Desoto';
camplist[2] = 'SOCHA:Hardee';
camplist[3] = 'SOCLA:Lake Placid';
collegelist['SOC'] = new CollegeCampus('SOC', 'South Florida Community College', 'flcc2700', camplist, false);
camplist = new Array(2);
camplist[0] = 'MJCBR:Bradenton';
camplist[1] = 'MJCVE:Venice';
collegelist['MJC'] = new CollegeCampus('MJC', 'State College of Florida, Manatee-Sarasota', 'flcc1500', camplist, true);
camplist = new Array(2);
camplist[0] = 'TCCTA:Tallahassee Main Campus';
camplist[1] = 'TCCGH:Ghazvini Center';
collegelist['TCC'] = new CollegeCampus('TCC', 'Tallahassee Community College', 'flcc2800', camplist, true);
camplist = new Array(4);
camplist[0] = 'VCCEA:East';
camplist[1] = 'VCCOS:Osceola';
camplist[2] = 'VCCWE:West';
camplist[3] = 'VCCWI:Winter Park';
collegelist['VCC'] = new CollegeCampus('VCC', 'Valencia College', 'flcc2900', camplist, true);


