<!-- Hide script from old browsers
//****************************** Data for Trellis photos. *************************  
TrellisPhotos = new Array(	
	"images/t1.jpg",            //<!-- 0 --> 	
	"images/tntland1.jpg",    	//<!-- 1 --> 
	"images/tdining1.jpg",     	//<!-- 2 --> 
	"images/tkitchen1.jpg",   	//<!-- 3 --> 
	"images/tlounge2.jpg",		//<!-- 4 --> 
    "images/tdouble1.jpg",  	//<!-- 5--> 
	"images/tdouble2.jpg",     	//<!-- 6 --> 	
	"images/tdoubleview2.jpg", 	//<!-- 7 --> 
	"images/ttwin1.jpg",     	//<!-- 8 --> 
	"images/tsquare1.jpg",    	//<!-- 9 --> 
	"images/tbeach1.jpg",     	//<!-- 10 --> 
	"images/tsunset1.jpg")    	//<!-- 11 --> 
TrellisPhotosText = new Array(
		"Trellis Cottage Inner Hope Cove, front view.", //<!-- 0 --> 	
		"Countryside around Hope Cove.",                //<!-- 1 --> 	
		"Trellis Cottage dining room.",                 //<!-- 2 --> 
		"Trellis Cottage kitchen.",                     //<!-- 3 --> 	
		"Trellis Cottage lounge.",                      //<!-- 4 --> 
		"Trellis Cottage double bedroom.",            	//<!-- 5 --> 
		"Trellis Cottage double bedroom.",              //<!-- 6 --> 	
		"View of Inner Hope Cove from double bedroom.",     				//<!-- 7 --> 	
		"Trellis Cottage twin bedroom",                 //<!-- 8 --> 
		"Square at Inner Hope Cove.",     				//<!-- 9 --> 	
		"Beach at Inner Hope Cove.",                    //<!-- 10 --> 
		"Sunset across Hope Cove.")                     //<!-- 11 --> 
	
var TrellisIndexPics = new Array(16);
var TrellisPhotoCount;

function InitialiseTrellis()
{
    var Page=("Trellis");
    TrellisPhotoCount=eval(Page + "Photos").length - 1;			//Preload the album photos 
    for(var iCount = 0; iCount <= TrellisPhotoCount; iCount++)
    {
        TrellisIndexPics[iCount] = null;
        TrellisIndexPics[iCount] = new Image;
        TrellisIndexPics[iCount].src = eval(Page + "Photos")[iCount];
    }

    document.PhotosThumb0.src=TrellisPhotos[0];
    document.PhotosThumb1.src=TrellisPhotos[1];
    document.PhotosThumb2.src=TrellisPhotos[2];
    document.PhotosThumb3.src=TrellisPhotos[3];
    document.PhotosThumb4.src=TrellisPhotos[4];
    document.PhotosThumb5.src=TrellisPhotos[5];
//row two
    document.PhotosThumb6.src=TrellisPhotos[6];
    document.PhotosThumb7.src=TrellisPhotos[7];
    document.PhotosThumb8.src=TrellisPhotos[8];
    document.PhotosThumb9.src=TrellisPhotos[9];
    document.PhotosThumb10.src=TrellisPhotos[10];
    document.PhotosThumb11.src=TrellisPhotos[11];

	document.IOMPhoto.src=TrellisPhotos[0];
	document.getElementById("PhotoText").firstChild.nodeValue=eval("TrellisPhotosText")[0];
}

//*********************************************************

function TrellisPhoto(PicNumber)
{  
	if (PicNumber > TrellisPhotoCount)
	{
	    PicNumber = 0;
	}
	else if (PicNumber < 0) 
	{
	   PicNumber = TrellisPhotoCount;
	}
	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))
    {
	   document.IOMPhoto.filters["revealTrans"].apply();
       document.IOMPhoto.filters["revealTrans"].play();
    }
	document.IOMPhoto.src= TrellisIndexPics[PicNumber].src;
	document.getElementById("PhotoText").firstChild.nodeValue=eval("TrellisPhotosText")[PicNumber];
}
// End hiding script from old browsers -->


