var myLinks;var myDivs;var myAccordion;function addLoadEvent(func) {	var oldonload = window.onload;	if (typeof window.onload != 'function') {		window.onload = func;	} else {		window.onload = function() {			if (oldonload) {				oldonload();			}			func();		}	}}function setupMenus() {	if (fx) {		// Pick your classes		myLinks = $S(".menuitem");		myDivs = $S(".dropdown");				for (i=0;i<myLinks.length;i++) {			myLinks[i].onclick = function() {				return false;			}		}				//get section to show		var toShow = null;		loc = window.location.toString();		if (loc.indexOf("/about/") > -1) {			toShow = 0;		} else if (loc.indexOf("/depts/") > -1) {			toShow = 1;		} else if (loc.indexOf("/catering/") > -1) {			toShow = 2;		} else if (loc.indexOf("/events/") > -1) {			toShow = 3;		}		//toShowBool = (toShow != null) ? true : false;				// Create the accordian		myAccordion = new fx.Accordion(myLinks, myDivs, {start: null, alwaysHide: true, onActive : function() {			for (a=0;a<myLinks.length;a++) {				myLinks[a].removeClass("selected");			}			myLinks[arguments[1]].addClass("selected");		}});				// Select your default opened section		if (toShow != null) myAccordion.showThisHideOpen(toShow);	}}addLoadEvent(setupMenus);var imgTotal = 4;var imgCount = 2;var frontVisible = true;function imgLoader() {	var newImg = new Image();	newImg.onload = function() {		if (frontVisible == true) {			imgDiv.style.backgroundImage = "url(" + newImg.src + ")";			imgFade.custom(1,0);			frontVisible = false;		} else {			imgEl.src = newImg.src;			imgFade.custom(0,1);					frontVisible = true;		}	}	newImg.src = "images/ss_" + imgCount + ".jpg";}function setupDepts() {	if (Fx && $("photos")) {		imgDiv = $("photos");		imgEl = $S("#photos img")[0];		imgFade = new Fx.Style(imgEl, "opacity", {duration:2000, onComplete: function() {			if (imgCount<imgTotal) {				imgCount++;			} else {				imgCount = 1;			}			setTimeout(imgLoader, 4000);		}});		setTimeout(imgLoader, 4000);	}}addLoadEvent(setupDepts);