<!-- Hide script from old browsers

//****************************** Data for Well Cottage photos. *************************  
WellPhotos = new Array(	
	"images/w1.jpg",            //<!-- 0 --> 	
	"images/w2.jpg",           	//<!-- 1 --> 
	"images/wkitchen1.jpg",    	//<!-- 2 --> 
	"images/wkitchen2.jpg",    	//<!-- 3 --> 
	"images/wlounge2.jpg",  	//<!-- 4 --> 
    "images/wmaster1.jpg",     	//<!-- 5--> 
	"images/wmaster2.jpg",     	//<!-- 6 --> 	
	"images/wsingle1.jpg",     	//<!-- 7 --> 
	"images/wdouble1.jpg",      //<!-- 8 --> 
	"images/wtwin1.jpg",        //<!-- 9 --> 
	"images/wgarden2.jpg",		//<!-- 10 --> 
    "images/wfromgarden1.jpg")	//<!-- 11--> 
WellPhotosText = new Array(
		"Well Cottage, West Buckland nr Bantham.",   	//<!-- 0 --> 	
		"Well Cottage from courtyard showing steps to garden & patio.",    	//<!-- 1 --> 	
		"Well Cottage  kitchen.",       //<!-- 2 --> 
		"Well Cottage  kitchen.",       //<!-- 3 --> 	
		"Well Cottage lounge.",         //<!-- 4 --> 
		"Master bedroom.",           	//<!-- 5 --> 
		"Master bedroom.",              //<!-- 6 --> 	
		"Single bedroom.",      		//<!-- 7 --> 	
		"Double bedroom.",              //<!-- 8 --> 
		"Twin bedroom.",                //<!-- 9 --> 	
		"Garden.",                      //<!-- 10 --> 
		"View from garden.")       		//<!-- 11 --> 

var WellIndexPics = new Array(16);
var WellPhotoCount;

function InitialiseWell()
{
    var Page=("Well");
    WellPhotoCount=eval(Page + "Photos").length - 1;			//Preload the album photos 
    for(var iCount = 0; iCount <= WellPhotoCount; iCount++)
    {
        WellIndexPics[iCount] = null;
        WellIndexPics[iCount] = new Image;
        WellIndexPics[iCount].src = eval(Page + "Photos")[iCount];
    }

    document.PhotosThumb0.src=WellPhotos[0];
    document.PhotosThumb1.src=WellPhotos[1];
    document.PhotosThumb2.src=WellPhotos[2];
    document.PhotosThumb3.src=WellPhotos[3];;
    document.PhotosThumb4.src=WellPhotos[4];
    document.PhotosThumb5.src=WellPhotos[5];
//row two
    document.PhotosThumb6.src=WellPhotos[6];
    document.PhotosThumb7.src=WellPhotos[7];
    document.PhotosThumb8.src=WellPhotos[8];
    document.PhotosThumb9.src=WellPhotos[9];;
    document.PhotosThumb10.src=WellPhotos[10];
    document.PhotosThumb11.src=WellPhotos[11];

	document.IOMPhoto.src=WellPhotos[0];
	document.getElementById("PhotoText").firstChild.nodeValue=eval("WellPhotosText")[0];
}

//*********************************************************

function WellPhoto(PicNumber)
{  
	if (PicNumber > WellPhotoCount)
	{
	    PicNumber = 0;
	}
	else if (PicNumber < 0) 
	{
	   PicNumber = WellPhotoCount;
	}
	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))         //fire fox cannot do fancy changeover
    {
	   document.IOMPhoto.filters["revealTrans"].apply();
       document.IOMPhoto.filters["revealTrans"].play();
    }

	document.IOMPhoto.src= WellPhotos[PicNumber];
	document.getElementById("PhotoText").firstChild.nodeValue=eval("WellPhotosText")[PicNumber];
}

// End hiding script from old browsers -->

