// JavaScript Document

<!-- Original:  D. Keith Higgs (dkh2@po.cwru.edu) -->

<!-- This script and many more are available free online at -->
<!-- The JavaScript Source!! http://javascript.internet.com -->

<!-- Begin
var timeDelay = 5; // change delay time in seconds
var Pix = new Array
("rotatingimage/NR1.jpg" 
,"rotatingimage/NR2.jpg"
,"rotatingimage/NR3.jpg"
,"rotatingimage/NR4.jpg"
);
var howMany = Pix.length;
timeDelay *= 1000;
var PicCurrentNum = 0;
var PicCurrent = new Image();
PicCurrent.src = Pix[PicCurrentNum];
function startPix() {
setInterval("slideshow()", timeDelay);
}
function slideshow() {
PicCurrentNum++;
if (PicCurrentNum == howMany) {
PicCurrentNum = 0;
}
PicCurrent.src = Pix[PicCurrentNum];
document["ChangingPix"].src = PicCurrent.src;
}
//  End -->
<!-- Begin Second Set
var nctimeDelay = 2; // change delay time in seconds
var NCon = new Array
("rotatingimage/RK1.jpg" 
,"rotatingimage/RK1a.jpg"
,"rotatingimage/RB1.jpg" 
,"rotatingimage/RB1a.jpg" 
);
var howMany = NCon.length;
nctimeDelay *= 850;
var ncPicCurrentNum = 0;
var ncPicCurrent = new Image();
ncPicCurrent.src = NCon[ncPicCurrentNum];
function startNCon() {
setInterval("ncslideshow()", nctimeDelay);
}
function ncslideshow() {
ncPicCurrentNum++;
if (ncPicCurrentNum == howMany) {
ncPicCurrentNum = 0;
}
ncPicCurrent.src = NCon[ncPicCurrentNum];
document["ChangingNCon"].src = ncPicCurrent.src;
}
//  End -->

<!-- Begin third Set
var btimeDelay = 4; // change delay time in seconds
var Bath = new Array
("rotatingimage/NComm1.jpg" 
,"rotatingimage/NComm2.jpg"
,"rotatingimage/NComm3.jpg" 
,"rotatingimage/NComm4.jpg"
);
var howMany = Bath.length;
btimeDelay *= 1000;
var bPicCurrentNum = 0;
var bPicCurrent = new Image();
bPicCurrent.src = Bath[bPicCurrentNum];
function startBath() {
setInterval("bslideshow()", btimeDelay);
}
function bslideshow() {
bPicCurrentNum++;
if (bPicCurrentNum == howMany) {
bPicCurrentNum = 0;
}
bPicCurrent.src = Bath[bPicCurrentNum];
document["ChangingBath"].src = bPicCurrent.src;
}
//  End -->



function MM_reloadPage(init) {  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if ((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight; onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH) location.reload();
}
MM_reloadPage(true);
//-->
