<!-- Begin
// 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] = 'http://www.middletownnj.org/images/banner/0.jpg'
theImages[1] = 'http://www.middletownnj.org/images/banner/1.jpg'
theImages[2] = 'http://www.middletownnj.org/images/banner/2.jpg'
theImages[3] = 'http://www.middletownnj.org/images/banner/3.jpg'
theImages[4] = 'http://www.middletownnj.org/images/banner/4.jpg'

var thelink = "https://my.c3alert.us/middletownnj/photos/gallery/view/de9c66d8-7d33-407f-9e69-952fc0450cfc";


// 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]
}
var whichImage = Math.round(Math.random()*(p-1));
if(whichImage <= 0) {
	whichImage = 0;
}
	
function showImage(){
document.write('<a href="'+ thelink +'" target=_blank><img src="'+theImages[whichImage]+'" border=0></a>');
}

//  End -->// JavaScript Document