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);

// Set up the image files to be used.
var theImages = new Array() // do not change this
// To add more image files, continue with the
// pattern below, adding to the array.

theImages[0] = '1.jpg';
theImages[1] = '2.jpg';
theImages[2] = '3.jpg';
theImages[3] = '4.jpg';
theImages[4] = '5.jpg';
theImages[5] = '6.jpg';
theImages[6] = '7.jpg';
theImages[7] = '8.jpg';
theImages[8] = '9.jpg';
theImages[9] = '10.jpg';
theImages[10] = '11.jpg';
theImages[11] = '12.jpg';
theImages[12] = '13.jpg';
theImages[13] = '14.jpg';

// do not edit anything below this line

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];
}*/
//Math.floor(Math.random()*5)
var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
//preBuffer[whichImage] = new Image();
//preBuffer[whichImage].src = theImages[whichImage];
document.write('<a href="/galleries.html"><img src="/images/random/'+theImages[whichImage]+'" border="0" ></a>');
}
