// ********** Contact Information *********************** contact = new Object() contact["employment"]=[ "Employment", "Web: "+"www.housing.und.edu/employment".link("http://www.housing.und.edu/employment") ] contact["reshalls"]=[ "Residence Services, University of North Dakota", "525 Stanford Road Stop 9029, Grand Forks, ND 58202-9029", "Tel: (701) 777-4251", "Fax: (701) 777-4298", "Web: "+"www.housing.und.edu".link("http://www.housing.und.edu") ] contact["dining"]=[ "Dining Services, University of North Dakota", "Central Foods Building", "3625 Campus Road Stop 9033, Grand Forks, ND 58202-9033", "Tel: 701-777-3823", "Fax: 701-777-3837", "Web: "+"www.dining.und.edu".link("http://www.dining.und.edu") ] contact["ucard"]=[ "U Card Office", "Mailing Address: 3625 Campus Road Stop 9043 ", "Grand Forks, ND 58202-9043", "Tel: 701-777-2071", "Fax: 701-777-3837", "Web: "+"www.housing.und.edu/ucard".link("http://www.housing.und.edu/ucard") ] contact["apartments"]=[ "Residence Services, University of North Dakota", "525 Stanford Road Stop 9029, Grand Forks, ND 58202-9029", "Tel: (701) 777-4251", "Fax: (701) 777-4298", "Web: "+"www.housing.und.edu/apartments".link("http://www.housing.und.edu/apartments") ] contact["ucc"]=[ "University Children's Center, University of North Dakota", "555 Stanford Road Stop 9026", "University Apartment Community Center on Stanford Rd., Grand Forks, ND 58202-9026", "Tel: (701) 777-3947", "Fax: (701) 777-4298", "Web: "+"www.housing.und.edu/ucc".link("http://www.housing.und.edu/ucc") ] contact["conference"]=[ "Camps & Conferences, University of North Dakota", "Web: "+"www.housing.und.edu/conference".link("http://www.housing.und.edu/ucc") ] // ********** Setting up categories *********************** function linkpair(categorylabel, folder, linklist, subgroups) { this.Label = categorylabel this.Folder = folder this.links = linklist this.subgees = subgroups } newlook_Cats = [ [ ["Apartments","/apartments/"], ["University Place","/universityplace/master.shtml"], ["Dining Services","/dining/"], ["Residence Halls","/reshalls/"], ["U Card","http://www.housing.und.edu/ucard/"], ["University Children's Center","/ucc/"], ["Camps and Conferences","/conference/"], ["Employment","/employment/"] ], [ "apartments", "universityplace", "dining", "reshalls", "ucard", "ucc", "conference", "employment" ] ] newlook = new linkpair("Residence Services","/",newlook_Cats[0],newlook_Cats[1]) newlook_subCats = [ [ // Apartments ["Student Apartments","studentapt.shtml"], ["Faculty Apartments","facapt.shtml"], ["Events & Resources","events.shtml"], ["Rental Rates","rentalrates.shtml"], ["Policy Book 2006 (pdf)","Policy Book 2006.pdf"], ["Related Links","relatedlinks.shtml"], ["International Students","international.shtml"], ["Community Center","community_center.shtml"], ["Children's Center","../ucc/"], ["Meet Our Staff","staff.shtml"] ], [ // University Place ["Floor Plans","floorplans.htm"], ["Interior","interiorUP.htm"], ["Exterior","exteriorUP.htm"], ["Rates","ratesUP.htm"], ["Handbook","handbook.pdf"] ], [ // Dining Centers ["Residential Dining","rescenter.shtml"], ["Dining Around Campus","dinearound.shtml"], ["Campus Catering","catering/"], ["Frequently Asked Questions","faq.shtml"], ["Today's Menu","menu.shtml"], ["Vending Services","vending/"], ["Meal Plans","mealplan.shtml"], ["Faculty/Staff ","facstaff.shtml"], ["Contact Us","contact.shtml"] ], [ // Residence Halls ["Meet Our Staff","staff.shtml"], ["Families / Parents","parents.shtml"], ["Advantages of Living On-Campus","whyliveoncampus.shtml"], ["Prospective Students","prospective.shtml"], ["Applications / Contracts","apply.shtml"], ["2007-08 Residence Hall Handbook (pdf file)","handbook07.pdf"], ["Leadership Opportunities","leadership.shtml"], ["Frequently Asked Questions","faq.shtml"] ], [ // U Card ["About the Card","about.shtml"], ["ManageMyID On-Line","manage.shtml"], ["Where to Use the Card","wheretouse.shtml"], ["Badge Request Form","create.html"], ["Obtaining/Replacing a Card","replace.shtml"], ["Debit Account Feature","debitacct.shtml"], ["Distance Students/Staff","distance.shtml"], ["Affiliate Cards","affiliate.shtml"], ["Staff Cards","staffcard.shtml"], ["Frequently Asked Questions","faq.shtml"], ["Meet Our Staff","staff.shtml"] ], [ // University Children's Center ["Mission Statement","mission.shtml"], ["Enrollment","enrollmentinfo.shtml"], ["Summer Programs","summerprograms.html"], ["Request Information","inforequest.shtml"], ["Rates","rates.shtml"], ["Policies","policies.shtml"], ["Teacher Education","education.shtml"], ["Contact Us","contact.shtml"] ], [ // Camps and Conferences ["Parking","parking.shtml"], ["Athletic & Dept. Camps","faq.shtml"], ["Event Reservations ","event.shtml"] ], [ // Employment ["Student Positions","student.shtml"], ["Full-Time Positions","fulltime.shtml"] ] ] for (i in newlook_subCats) { for (j in newlook_subCats[i]) { newlook_subCats[i][j][1] = "/"+newlook.subgees[i]+"/"+newlook_subCats[i][j][1] } } for (i in newlook_subCats) { eval(newlook.subgees[i]+" = new linkpair(newlook.links[i][0],newlook.links[i][1],newlook_subCats[i])") eval(newlook.subgees[i]+".idNumber = "+i) } // **************** Debugging Tools **************** // This function checks to see whether an array is // 'layers' deep without causing an error. function detectExistence(stringRepresentingArray, layers) { arrayCut = eval(stringRepresentingArray) while (typeof arrayCut == "object") { if (layers[0] in arrayCut) { stringRepresentingArray += "["+layers.shift()+"]" arrayCut = eval(stringRepresentingArray) } else break } return layers.length == 0 } // **************** Dining Center Info **************** dining_locations=["wilke","squires_dining","terrace","togo","wings"] terrace = new Array() terrace.Label="Terrace Dining Center" wilke= new Array() wilke.Label="Wilkerson Dining Center" squires_dining= new Array() squires_dining.Label="Squires Dining Center" togo= new Array() togo.Label="To Go Cafe" wings= new Array() wings.Label="Wing's Cafe" // **************** Apartments Info **************** apartment_list=["berkeley","gallery","harvard","northwestern","seventy2plex","sixplex","townhouses","tulane","virginiarose","westgreen","williamsburg"] apartment_names=["Berkeley Drive","Gallery","510 Harvard Drive","Northwestern Drive","72-Plex","6-Plex","Townhouses","Carleton Court & Tulane Drive","Virginia Rose","West Green 11 & 12","Mount Vernon & Williamsburg"] apartments.list = new Object() function Apartment(i) { this.Label = apartment_names[i] this.address = "" this.features = [] } for(var i in apartment_list) { eval("apartments.list."+apartment_list[i]+" = new Apartment(i)") } // ********** Title generation from directory names *********************** vending = new Object() vending.Label = "Vending Services" catering = new Object() catering.Label = "Campus Catering" tours = new Object() tours.Label = "Virtual Tours"