function MM_findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=MM_findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function MM_swapImage() { //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function MM_showHideLayers() { //v6.0
  var i,p,v,obj,args=MM_showHideLayers.arguments;
  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];
    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }
    obj.visibility=v; }
}
function enlarge(url) {
newwindow = window.open(url, "imageWindow", "width=400, height=300, location=no, menubar=no, status=no, toolbar=no, scrollbars=no, resizable=no");
if (window.focus) {newwindow.focus(); }
return false;
}
function openWindow(windowname) {
    var newWindow = window.open(windowname,"pop","scrollbars=yes,status=no,menubar=no,toolbar=no,resizeable=no,HEIGHT=540,WIDTH=555");
}

function MM_openBrWindow(theURL,winName,features) { //v2.0
  window.open(theURL,winName,features);
}

<!-- 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] = '/assets/images/array/1.jpg'
theImages[1] = '/assets/images/array/2.jpg'
theImages[2] = '/assets/images/array/3.jpg'
theImages[3] = '/assets/images/array/4.jpg'
theImages[4] = '/assets/images/array/5.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]
//}

var whichImage = Math.round(Math.random()*(p-1));
function showImage(){
document.write('<img src="'+theImages[whichImage]+'">');
}

//  End -->

function showPic (whichpic) { 
	if (document.getElementById) { 
		document.getElementById('placeholder').src = whichpic.href; 
		// if (whichpic.title) { 
			document.getElementById('desc').childNodes[0].nodeValue = whichpic.title; 
		// } else { 
		// document.getElementById('desc').childNodes[0].nodeValue = whichpic.childNodes[0].nodeValue; 
		// } 
		return false; 
	} else { 
		return true; 
	} 
}

function openBooking(windowname) {
    var newWindow = window.open(windowname,"pop","scrollbars=yes,status=no,menubar=no,toolbar=no,resizeable=no,HEIGHT=600,WIDTH=642");
}
