
var onArray = new Array()
var message = new Array()
var messagedes = new Array()

//pre-cache all on images
var onArray = new Array()
onArray[0] = new Image(200,150)
onArray[1] = new Image(200,150)
onArray[2] = new Image(200,150)
onArray[3] = new Image(200,150)
onArray[4] = new Image(200,150)
onArray[5] = new Image(200,150)
onArray[6] = new Image(200,150)
onArray[7] = new Image(200,150)
onArray[8] = new Image(200,150)
onArray[9] = new Image(200,150)
onArray[10] = new Image(200,150)
onArray[11] = new Image(200,150)
onArray[12] = new Image(200,150)
onArray[13] = new Image(200,150)
onArray[14] = new Image(200,150)
onArray[15] = new Image(200,150)

//set image path for each on image

onArray[0].src = "images/villa/pool.jpg"
onArray[1].src = "images/villa/bbq.jpg"
onArray[2].src = "images/villa/patio.jpg"
onArray[3].src = "images/villa/patio.jpg"
onArray[4].src = "images/villa/master.jpg"
onArray[5].src = "images/villa/dining.jpg"
onArray[6].src = "images/villa/gallery.jpg"
onArray[7].src = "images/villa/2bed.jpg"
onArray[8].src = "images/villa/twin.jpg"
onArray[9].src = "images/villa/sitting.jpg"
onArray[10].src = "images/villa/lounge.jpg"
onArray[11].src = "images/villa/lounge2.jpg"
onArray[12].src = "images/villa/front.jpg"
onArray[13].src = "images/villa/4bed.jpg"
onArray[14].src = "images/villa/bath2.jpg"
onArray[15].src = "images/villa/masterbath.jpg"




message[0] = "<font size=2><b>Pool and Deck</b></font>"
message[1] = "<font size=2><b>Deck & BBQ</b></font>"
message[2] = "<font size=2><b>Patio</b></font>"
message[3] = "<font size=2><b>Patio</b></font>"
message[4] = "<font size=2><b>Master Suite</b></font>"
message[5] = "<font size=2><b>Dining Room</b></font>"
message[6] = "<font size=2><b>Kitchen & Breakfast Area</b></font>"
message[7] = "<font size=2><b>Bedroom Two</b></font>"
message[8] = "<font size=2><b>Bedroom Three</b></font>"
message[9] = "<font size=2><b>Sitting Room</b></font>"
message[10] = "<font size=2><b>Family Room</b></font>"
message[11] = "<font size=2><b>Family Room</b></font>"
message[12] = "<font size=2><b>Sunshine Palms</b></font>"
message[13] = "<font size=2><b>Bedroom Four</b></font>"
message[14] = "<font size=2><b>Bathroom Two</b></font>"
message[15] = "<font size=2><b>Master Bathroom & Suite</b></font>"

messagedes[0] = "Our swimming pool is larger than the average private villa pool, with steps leading in to the shallow end, which is approximately 3ft, the deep end being approximately 6ft. There are Patio doors from the master bedroom and main lounge to the pool, and a door from the second bathroom."
messagedes[1] = "The Gas B-B-Q. A must for a Florida Holiday!!! "
messagedes[2] = "New Pool furniture has been added to our Villa in 2003, including sun lounges, sun chairs and table. We also provide a gas Bar-B-Q in the pool area. "
messagedes[3] = "New Pool furniture has been added to our Villa in 2003, including sun lounges, sun chairs and table. We also provide a gas Bar-B-Q in the pool area. "
messagedes[4] = "The Master suite, a large bedroom with queen sized bed, ensuite bathroom and 'walk in' closet."
messagedes[5] = "A separate dining area."
messagedes[6] = "The Kitchen, with Breakfast area, fully fitted with a dishwasher, microwave, fridge-freezer and full range cooker, plus many other supporting utilities."
messagedes[7] = "The Second Bedroom with twin beds"
messagedes[8] = "Bedroom Three with a queen bed"
messagedes[9] = "The quiet room or sitting room.  Space to relax and get away with from all! NEW! Computer & High Speed Wireless Internet."
messagedes[10] = "The family room, where a television, DVD and VCR are provided, with 32 Channels available"
messagedes[11] = "The family room, where a television, DVD and VCR are provided, with 32 Channels available"
messagedes[12] = ""
messagedes[13] = "Bedroom Four - twin beds"
messagedes[14] = "The second bathroom is fully fitted including a  bath."
messagedes[15] = "A view of the master bathroom, which leads into a walk in closet."

//define SwapOut function

function onImage(i) {
    document.images[3].src = onArray[i].src 
}

// function to change text

function changehead(i) 
{ 
document.getElementById('head').innerHTML = message[i]; 
changedes(i); return
} 
function changedes(i) 
{ 
document.getElementById('des').innerHTML = messagedes[i]; 
} 

