//--------load all functions when window opens--------/*function addEvent(obj, evType, fn){  if (obj.addEventListener){    obj.addEventListener(evType, fn, false);    return true;  } else if (obj.attachEvent){    var r = obj.attachEvent("on"+evType, fn);    return r;  } else {    return false;  } }addEvent(window, 'load', initLinks);addEvent(window, 'load', makeSlideShow);*/function warnUser(){	return window.confirm("This will work ONLY if you have configured an email client \(such as Outlook Express\) on your computer. If you are using Internet email \(gmail, yahoo, etc.\), use the following address: wlwhl@berks.lib.pa.us. Do you want to proceed?");	}//end warnuserfunction warnUser_webmaster(){	return window.confirm("This will work ONLY if you have configured an email client \(such as Outlook Express\) on your computer. If you are using Internet email \(gmail, yahoo, etc.\), use the following address: jane@berks.lib.pa.us. Do you want to proceed?");	}//end warnuser//--------main.php: left slideshow using previous andnext buttons-------- /*var myPix = new Array("images/ENDER.gif","images/compass.gif","images/tuck.gif");var thisPic = 0;function initLinks(){	document.getElementById("prevLink").onclick = processPrevious;	document.getElementById("nextLink").onclick = processNext;}function processPrevious(){	if(thisPic == 0){		thisPic = myPix.length;	}	thisPic--;	document.getElementById("myPicture").src = myPix[thisPic];	return false;}function processNext(){	thisPic++;	if(thisPic == myPix.length){		thisPic = 0;	}	document.getElementById("myPicture").src = myPix[thisPic];	return false;}//-----------end main.php slideshow--------------------------//------------main.php: 2nd slideshow - click on pix---------var numSlides = 0;var currentSlide = 0;var slides = new Array(4);function makeSlideShow(){	imgs=document.getElementsByTagName("img");	for(i=0; i<imgs.length; i++){		if(imgs[i].className !="slide") continue;		slides[numSlides] = imgs[i];		//hide all but first image		if(numSlides==0){			imgs[i].style.display="block";	}else{		imgs[i].style.display="none";	}//end if/else	imgs[i].onclick=nextSlide;	numSlides++;	}//for each img,	}//makeSlideShowfunction nextSlide(){	slides[currentSlide].style.display="none";	currentSlide++;	if(currentSlide >= numSlides) currentSlide = 0;	slides[currentSlide].style.display="block";}//nextSlide*/
