// 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("portfolioimage");		var first = document.getElementById("changefirst");	if (first) {		first.setAttribute("src","../images/portfolio/detailnav.gif");		}		var second = document.getElementById("changesecond");	if (second) {		second.setAttribute("src","../images/portfolio/detailnav.gif");		}		var third = document.getElementById("changethird");	if (third) {		third.setAttribute("src","../images/portfolio/detailnav.gif");		}		var fourth = document.getElementById("changefourth");	if (fourth) {		fourth.setAttribute("src","../images/portfolio/detailnav.gif");		}		var fifth = document.getElementById("changefifth");	if (fifth) {		fifth.setAttribute("src","../images/portfolio/detailnav.gif");		}		var sixth = document.getElementById("changesixth");	if (sixth) {		sixth.setAttribute("src","../images/portfolio/detailnav.gif");		}		var replaceme = whichphoto.getAttribute("href");		var photo = document.getElementById("image");		var newphoto = document.createElement("img");	newphoto.setAttribute("src",replaceme);	newphoto.setAttribute("id","image");	newphoto.style.display = "none";		var thisnav = whichphoto.getAttribute("rel");		var changenav = document.getElementById(thisnav);	changenav.setAttribute("src","../images/portfolio/selected.gif");		//photocontainer.removeChild(photo);		photocontainer.appendChild(newphoto);		new Effect.Fade(photo, {duration: 2.0});		new Effect.Appear(newphoto, {duration: 2.0});}function brubeckPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/brubeck/detail/2_BFest10.jpg";     images[1]="../images/work/brubeck/detail/3_BFest09.jpg";     images[2]="../images/work/brubeck/detail/4_BFest09.jpg";     images[3]="../images/work/brubeck/detail/5_BFest08.jpg";     images[4]="../images/work/brubeck/detail/6_BFest08.jpg";     images[5]="../images/work/brubeck/detail/7_BFest08a.jpg";     // start preloading     for(i=0; i<=5; i++)      {          imageObj.src=images[i];     }}function Preloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/uop/detail/2_COP.jpg";     images[1]="../images/work/uop/detail/3_EngCS.jpg";     images[2]="../images/work/uop/detail/4_EngCS.jpg";     images[3]="../images/work/uop/detail/5_Pharmacy.jpg";     images[4]="../images/work/uop/detail/6_Pharmacy.jpg";     // start preloading     for(i=0; i<=4; i++)      {          imageObj.src=images[i];     }}function uopPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/uop/detail/2_COP.jpg";     images[1]="../images/work/uop/detail/3_EngCS.jpg";     images[2]="../images/work/uop/detail/4_EngCS.jpg";     images[3]="../images/work/uop/detail/5_Pharmacy.jpg";     images[4]="../images/work/uop/detail/6_Pharmacy.jpg";     // start preloading     for(i=0; i<=4; i++)      {          imageObj.src=images[i];     }}function hsu8thingsPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/hsu8things/detail/2_HSU8.jpg";     images[1]="../images/work/hsu8things/detail/3_HSU8.jpg";     images[2]="../images/work/hsu8things/detail/4_HSU8.jpg";     images[3]="../images/work/hsu8things/detail/5_HSU8.jpg";     // start preloading     for(i=0; i<=3; i++)      {          imageObj.src=images[i];     }}function syinPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/syin/detail/2_SY.jpg";     images[1]="../images/work/syin/detail/3_SY.jpg";     images[2]="../images/work/syin/detail/4_SY.jpg";     images[3]="../images/work/syin/detail/5_SY.jpg";     // start preloading     for(i=0; i<=3; i++)      {          imageObj.src=images[i];     }}function hsuhousingPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/hsuhousing/detail/HSUHous_1.jpg";     images[1]="../images/work/hsuhousing/detail/HSUHous_2.jpg";     images[2]="../images/work/hsuhousing/detail/HSUHous_3.jpg";     images[3]="../images/work/hsuhousing/detail/HSUHous_4.jpg";     images[4]="../images/work/hsuhousing/detail/HSUHous_5.jpg";     images[5]="../images/work/hsuhousing/detail/6_HSUHous_Web.jpg";     // start preloading     for(i=0; i<=5; i++)      {          imageObj.src=images[i];     }}function brubecksummerPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/brubecksummer/detail/BSJC_1.jpg";     images[1]="../images/work/brubecksummer/detail/BSJC_2.jpg";     // start preloading     for(i=0; i<=1; i++)      {          imageObj.src=images[i];     }}function uopedPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/uoped/detail/UOPEdu_1.jpg";     images[1]="../images/work/uoped/detail/UOPEdu_2.jpg";     images[2]="../images/work/uoped/detail/UOPEdu_3.jpg";     images[3]="../images/work/uoped/detail/UOPEdu_4.jpg";     // start preloading     for(i=0; i<=3; i++)      {          imageObj.src=images[i];     }}function facetPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/facet/2_FacetReactiv.jpg";     // start preloading     for(i=0; i<=0; i++)      {          imageObj.src=images[i];     }}function cattledogPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/cattledog/detail/2_NB.jpg";     images[1]="../images/work/cattledog/detail/3_NB.jpg";     images[2]="../images/work/cattledog/detail/4_NB-Web.jpg";     images[3]="../images/work/cattledog/detail/5_LS.jpg";     images[4]="../images/work/cattledog/detail/6_LS.jpg";     images[5]="../images/work/cattledog/detail/7_LS-Web.jpg";     images[6]="../images/work/cattledog/detail/8_LS-Web.jpg";     // start preloading     for(i=0; i<=6; i++)      {          imageObj.src=images[i];     }}function hsuadmipackPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/hsuadmipack/detail/2_HSUAdm_2.jpg";     images[1]="../images/work/hsuadmipack/detail/3_HSUAdm_3.jpg";     images[2]="../images/work/hsuadmipack/detail/4_HSUAdm_4.jpg";     images[3]="../images/work/hsuadmipack/detail/5_HSUVisit_MAIN.jpg";     images[4]="../images/work/hsuadmipack/detail/6_HSUHous_Web.jpg";     images[5]="../images/work/hsuadmipack/detail/6_HSUVisit_2.jpg";     images[6]="../images/work/hsuadmipack/detail/7_HSUVisit_1.jpg";     images[7]="../images/work/hsuadmipack/detail/8_HSURecruit_Web.jpg";     // start preloading     for(i=0; i<=7; i++)      {          imageObj.src=images[i];     }}function forestservicePreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/forestservice/detail/2_FS.jpg";     images[1]="../images/work/forestservice/detail/3_FS.jpg";     images[2]="../images/work/forestservice/detail/4_FS.jpg";     images[3]="../images/work/forestservice/detail/5_FS.jpg";     images[4]="../images/work/forestservice/detail/6_FS.jpg";     // start preloading     for(i=0; i<=4; i++)      {          imageObj.src=images[i];     }}function identityPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/identity/detail/2_Wordmark_WWETAC.jpg";     images[1]="../images/work/identity/detail/3_Wordmark_BIJQ.jpg";     images[2]="../images/work/identity/detail/4_Wordmark_PacConn.jpg";     images[3]="../images/work/identity/detail/5_Wordmark_LD50.jpg";     images[4]="../images/work/identity/detail/6_Wordmark_CSUStan.jpg";     images[5]="../images/work/identity/detail/7_Wordmark_CCRC.jpg";     // start preloading     for(i=0; i<=5; i++)      {          imageObj.src=images[i];     }}function hsusearchPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/work/hsusearch/detail/HSUSearch_1.jpg";     images[1]="../images/work/hsusearch/detail/HSUSearch_2.jpg";     images[2]="../images/work/hsusearch/detail/HSUSearch_3.jpg";     // start preloading     for(i=0; i<=2; i++)      {          imageObj.src=images[i];     }}function caryPreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/portfolio/cary/Small005.jpg";     images[1]="../images/portfolio/cary/Small006.jpg";     images[2]="../images/portfolio/cary/Small008.jpg";     images[3]="../images/portfolio/cary/Small009.jpg";     images[4]="../images/portfolio/cary/Small010.jpg";     images[5]="../images/portfolio/cary/Small016.jpg";     images[6]="../images/portfolio/cary/Small017.jpg";     images[7]="../images/portfolio/cary/Small020.jpg";     images[8]="../images/portfolio/cary/Small021.jpg";     images[9]="../images/portfolio/cary/Small022.jpg";          images[10]="../images/portfolio/cary/Small025.jpg";     images[11]="../images/portfolio/cary/Small026.jpg";     images[12]="../images/portfolio/cary/Small028.jpg";     images[13]="../images/portfolio/cary/Small029.jpg";     images[14]="../images/portfolio/cary/Small032.jpg";     images[15]="../images/portfolio/cary/Small034.jpg";     images[16]="../images/portfolio/cary/Small036.jpg";     images[17]="../images/portfolio/cary/Small039.jpg";     images[18]="../images/portfolio/cary/Small040.jpg";     images[19]="../images/portfolio/cary/Small041.jpg";          images[20]="../images/portfolio/cary/Small043.jpg";     images[21]="../images/portfolio/cary/Small047.jpg";     images[22]="../images/portfolio/cary/Small049.jpg";     images[23]="../images/portfolio/cary/Small051.jpg";     images[24]="../images/portfolio/cary/Small053.jpg";     images[25]="../images/portfolio/cary/Small058.jpg";     images[26]="../images/portfolio/cary/Small060.jpg";     images[27]="../images/portfolio/cary/Small062.jpg";     images[28]="../images/portfolio/cary/Small062.jpg";     images[29]="../images/portfolio/cary/Small066.jpg";          images[30]="../images/portfolio/cary/Small067.jpg";     images[31]="../images/portfolio/cary/Small068.jpg";     images[32]="../images/portfolio/cary/Small069.jpg";     images[33]="../images/portfolio/cary/Small078.jpg";     images[34]="../images/portfolio/cary/Small079.jpg";     images[35]="../images/portfolio/cary/Small083.jpg";     images[36]="../images/portfolio/cary/Small089.jpg";     images[37]="../images/portfolio/cary/Small098.jpg";     images[38]="../images/portfolio/cary/Small100.jpg";     images[39]="../images/portfolio/cary/Small101.jpg";          images[40]="../images/portfolio/cary/Small102.jpg";     images[41]="../images/portfolio/cary/Small103.jpg";     images[42]="../images/portfolio/cary/Small104.jpg";     images[43]="../images/portfolio/cary/Small105.jpg";     images[44]="../images/portfolio/cary/Small106.jpg";     images[45]="../images/portfolio/cary/Small107.jpg";     images[46]="../images/portfolio/cary/Small108.jpg";     images[47]="../images/portfolio/cary/Small109.jpg";     images[48]="../images/portfolio/cary/Small110.jpg";     images[49]="../images/portfolio/cary/Small111.jpg";     // start preloading     for(i=0; i<=49; i++)      {          imageObj.src=images[i];     }}function homePreloader() {	// counter     var i = 0;     // create object     imageObj = new Image();     // set image list     images = new Array();     images[0]="../images/features/audience.jpg";     images[1]="../images/features/clearly.jpg";     images[2]="../images/features/image.jpg";     images[3]="../images/features/quality.jpg";     images[4]="../images/features/remarkable.jpg";     // start preloading     for(i=0; i<=4; i++)      {          imageObj.src=images[i];     }}
