// Set the slideshow speed (in milliseconds)
var SlideShowSpeed = 3000;

// Set the duration of crossfade (in seconds)
var CrossFadeDuration = 2;

var Picture = new Array(); // don't change this
var Caption = new Array(); // don't change this
var showHot = false;       // don't change this

Picture[1]  = '/images/or-02.jpg';
Picture[2]  = '/images/or-03.jpg';
Picture[3]  = '/images/or-04.jpg';
Picture[4]  = '/images/or-05.jpg';
Picture[5]  = '/images/or-06.jpg';
Picture[6]  = '/images/or-07.jpg';
Picture[7]  = '/images/or-08.jpg';
Picture[8]  = '/images/or-09.jpg';
Picture[9]  = '/images/or-10.jpg';
Picture[10]  = '/images/or-01.jpg';

Caption[1]  = "Operating Room";
Caption[2]  = "Operating Room";
Caption[3]  = "Operating Room";
Caption[4]  = "Recovery Room";
Caption[5]  = "Recovery Room";
Caption[6]  = "Scrub and Sterilization Area";
Caption[7]  = "Operating Room Reception Area";
Caption[8]  = "Main Office Reception Area";
Caption[9]  = "Main Office Reception Area";
Caption[10]  = "Operating Room";

// =====================================
// Do not edit anything below this line!
// =====================================

var tss;
var iss;
var jss = 0;
var pss = Picture.length-1;

var preLoad = new Array();
for (iss = 1; iss < pss+1; iss++){
preLoad[iss] = new Image();
preLoad[iss].src = Picture[iss];}

function control(how){
if (showHot){
if (how=="H") jss = 10;
if (how=="F") jss = jss + 1;
if (how=="B") jss = jss - 1;
if (jss > (pss)) jss=1;
if (jss < 1) jss = pss;
if (document.all){
document.images.PictureBox.style.filter="blendTrans(duration=2)";
document.images.PictureBox.style.filter="blendTrans(duration=CrossFadeDuration)";
document.images.PictureBox.filters.blendTrans.Apply();}
document.images.PictureBox.src = preLoad[jss].src;
if (document.getElementById) document.getElementById("CaptionBox").innerHTML= Caption[jss];
if (document.all) document.images.PictureBox.filters.blendTrans.Play();
}}