// Set up the image files to be used.
var theImages = new Array(); 

theImages[1] = 'images/Introduction.jpg';
theImages[2] = 'images/Emergency.jpg';
theImages[3] = 'images/Neurology.jpg';
theImages[4] = 'images/Cardiology.jpg';
theImages[5] = 'images/Respiritory.jpg';
theImages[6] = 'images/Musculoskeletal.jpg';
theImages[7] = 'images/Abdomen.jpg';
theImages[8] = 'images/HEENT.jpg';
theImages[9] = 'images/Integrative.jpg';

var j = 0
var p = theImages.length;

var preBuffer = new Array();
for (i = 0; i < p; i++){
   preBuffer[i] = new Image();
   preBuffer[i].src = theImages[i];
}

function showImage(whichImage){
  document.the_image.src=theImages[whichImage];
}

var menuImages = new Array();

menuImages[1]  = 'images/home_on.jpg';
menuImages[2]  = 'images/chapters_on.jpg';
menuImages[3]  = 'images/video_on.jpg';
menuImages[4]  = 'images/order_on.jpg';
menuImages[5]  = 'images/about_on.jpg';

j = 0;
p = menuImages.length;

preBuffer = new Array();
for (i = 0; i < p; i++){
   preBuffer[i] = new Image();
   preBuffer[i].src = menuImages[i];
}



