// function to change feature photo and associated text in the self navigated slide shows (live, learn, play)function changePhoto (whichphoto) {	if(!document.getElementById || !document.createElement || !document.appendChild) return false;		var photocontainer = document.getElementById("FeaturePhoto");	var textcontainer = document.getElementById("phototext");		var replaceme = whichphoto.getAttribute("href");	var text = whichphoto.getAttribute("rel");		var defaultText = document.getElementById("default");	var photo = document.getElementById("learningphoto");		var newphoto = document.createElement("img");	newphoto.setAttribute("src",replaceme);	newphoto.setAttribute("id","learningphoto");	newphoto.style.display = "none";		var newtext = document.createElement("img");	newtext.setAttribute("src",text);	newtext.setAttribute("id","default");	newtext.style.display = "none";		photocontainer.removeChild(photo);	textcontainer.removeChild(defaultText);		photocontainer.appendChild(newphoto);	textcontainer.appendChild(newtext);		new Effect.Appear(newphoto, {duration: 2.0});	new Effect.Appear(newtext, {duration: 2.0});}function learningPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="images/photos/learning/LRN_1.Solar.jpg"     images[1]="images/photos/learning/LRN_2.Theatre.jpg"     images[2]="images/photos/learning/LRN_3.Biomechanics.jpg"     images[3]="images/photos/learning/LRN_4.Oceanography.jpg"     images[4]="images/photos/learning/LRN_5.ChildDev.jpg"     images[5]="images/photos/learning/LRN_7.Limnology.jpg"     images[6]="images/photos/learning/LRN_8.AppliedTech.jpg"     images[7]="images/photos/learning/LRN_8.Painting.jpg"     images[8]="images/photos/learning/LRN_10.GIS.jpg"     images[9]="images/photos/learning/LRN_11.Poet.jpg"     images[10]="images/photos/learning/LRN_11.Trainer.jpg"     images[11]="images/photos/learning/LRN_13.RiverRestore.jpg"     images[12]="images/photos/learning/LRN_14.ActivistMural.jpg"     images[13]="images/photos/learning/LRN_15.Computer.jpg"     // start preloading     for(i=0; i<=13; i++)      {          imageObj.src=images[i];     }}function livingPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="images/photos/living/LIV_1.AngieJarad.jpg"     images[1]="images/photos/living/LIV_2.Volunteer.jpg"     images[2]="images/photos/living/LIV_3.BikeQuad.jpg"     images[3]="images/photos/living/LIV_4.Performance.jpg"     images[4]="images/photos/living/LIV_5.Creekview.jpg"     images[5]="images/photos/living/LIV_6.ArcataShopping.jpg"     images[6]="images/photos/living/LIV_7.MinorTheater.jpg"     images[7]="images/photos/living/LIV_8.Laundry.jpg"     images[8]="images/photos/living/LIV_9.Coffee.jpg"     images[9]="images/photos/living/LIV_10.Target.jpg"     images[10]="images/photos/living/LIV_11.FarmersMarket.jpg"     images[11]="images/photos/living/LIV_12.EurekaOldTown.jpg"     images[12]="images/photos/living/LIV_14.WorkWildberries.jpg"     images[13]="images/photos/living/LIV_15.BubblesQuad.jpg"     // start preloading     for(i=0; i<=13; i++)      {          imageObj.src=images[i];     }}function playPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="images/photos/play/PLY_1.Football.jpg"     images[1]="images/photos/play/PLY_2.DuneHike.jpg"     images[2]="images/photos/play/PLY_3.KayakSurf.jpg"     images[3]="images/photos/play/PLY_4.CrabsBaseball.jpg"     images[4]="images/photos/play/PLY_5.SingerMetro.jpg"     images[5]="images/photos/play/PLY_6.Backpacks.jpg"     images[6]="images/photos/play/PLY_7.MountainBiking.jpg"     images[7]="images/photos/play/PLY_8.SwingDance.jpg"     images[8]="images/photos/play/PLY_9.BordersShopping.jpg"     images[9]="images/photos/play/PLY_10.FrisbeeGolf.jpg"     images[10]="images/photos/play/PLY_11.RoadTrip.jpg"     images[11]="images/photos/play/PLY_13.RockClimbing.jpg"     images[12]="images/photos/play/PLY_14.HuckleberryFlint.jpg"     images[13]="images/photos/play/PLY_15.Skateboarding.jpg"     // start preloading     for(i=0; i<=13; i++)      {          imageObj.src=images[i];     }}