<!-- Hide script from old browsers

//****************************** Data for Mayvilla photos. *************************  
MayPhotos = new Array(	
	"images/m1.jpg",        	//<!-- 0 --> 	
	"images/mbeach1.jpg",    	//<!-- 1 --> 
	"images/mbeach2.jpg",     	//<!-- 2 --> 
	"images/mdining1.jpg",     	//<!-- 3 --> 
    "images/mkingdown1.jpg",	//<!-- 4--> 
	"images/mkingup1.jpg",     	//<!-- 5 --> 	
	"images/mkitchen1.jpg",    	//<!-- 6 --> 
	"images/mlounge1.jpg",     	//<!-- 7 --> 
	"images/moutwindow1.jpg",  	//<!-- 8 --> 
	"images/mslip1.jpg",        //<!-- 9 --> 
	"images/mtwin1.jpg",       	//<!-- 10 --> 		
    "images/mviewlounge1.jpg")	//<!-- 11-->  
MayPhotosText = new Array(
		"May Villa on the left looking towards the beach.",             				//<!-- 0 --> 	
		"View of May Villa from Hope Cove Harbour Beach.",     				//<!-- 1 --> 	
		"The beach by May Villa.",                    //<!-- 2 --> 
		"May Villa Dining room.",                //<!-- 3 --> 	
		"King bedroom on ground floor.",        //<!-- 4 --> 
		"King bedroom on first floor.",         //<!-- 5 --> 
		"Kitchen.",             				//<!-- 6 --> 	
		"Lounge.",              				//<!-- 7 --> 	
		"View from the front windows.",                 //<!-- 8 --> 
		"Slipway at the beach.",                //<!-- 9 --> 	
		"The Twin bedroom.",                   //<!-- 10 --> 
		"View from the lounge.")               //<!-- 11--> 

var MayIndexPics = new Array(16);
var MayPhotoCount;

function InitialiseMay()
{
    var Page=("May");
    MayPhotoCount=eval(Page + "Photos").length - 1;			//Preload the album photos 
    for(var iCount = 0; iCount <= MayPhotoCount; iCount++)
    {
        MayIndexPics[iCount] = null;
        MayIndexPics[iCount] = new Image;
        MayIndexPics[iCount].src = eval(Page + "Photos")[iCount];
    }
    document.PhotosThumb0.src=MayIndexPics[0].src;
    document.PhotosThumb1.src=MayIndexPics[1].src;
    document.PhotosThumb2.src=MayIndexPics[2].src;
    document.PhotosThumb3.src=MayIndexPics[3].src;
    document.PhotosThumb4.src=MayIndexPics[4].src;
    document.PhotosThumb5.src=MayIndexPics[5].src;
//row two
    document.PhotosThumb6.src=MayIndexPics[6].src;
    document.PhotosThumb7.src=MayIndexPics[7].src;
    document.PhotosThumb8.src=MayIndexPics[8].src;
    document.PhotosThumb9.src=MayIndexPics[9].src;
    document.PhotosThumb10.src=MayIndexPics[10].src;
    document.PhotosThumb11.src=MayIndexPics[11].src;

	document.IOMPhoto.src=MayIndexPics[0].src;
	document.getElementById("PhotoText").firstChild.nodeValue=eval("MayPhotosText")[0];
}

//*********************************************************

function MayPhoto(PicNumber)
{  
	if (PicNumber > MayPhotoCount)
	{
	    PicNumber = 0;
	}
	else if (PicNumber < 0) 
	{
	   PicNumber = MayPhotoCount;
	}
	if (PicNumber == 1)
	{
//	   document.IOMPhoto.style.width = 420;
	}
	else if (PicNumber == 3)
	{
//	   document.IOMPhoto.style.width = 420;
	}

	else
	{   
//	   document.IOMPhoto.style.width = 420;
	}
    if ((!firefox) && (!netscape))    //firefox cannot do fancy picture change
    {
	   document.IOMPhoto.filters["revealTrans"].apply();
       document.IOMPhoto.filters["revealTrans"].play();
    }
	document.IOMPhoto.src= MayIndexPics[PicNumber].src;
	document.getElementById("PhotoText").firstChild.nodeValue=eval("MayPhotosText")[PicNumber];
}

// End hiding script from old browsers -->

