var roomDetails =
[ 
    {'nodeID':'room10059912', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This inclusive break includes dinner, bed and breakfast for 3 nights, a fantastic Hogmanay 4-course dinner and traditional Scottish music and dancing with a local ceilidh band. Friday 30th December: After check-in, guests can relax by the roaring log fire with a complimentary afternoon tea and homemade shortbread. Dinner is served from 18:00 until 21:00. New Year\'s Eve: Enjoy a full Scottish Breakfast then relax in front of the roaring log fires. Evening celebrations begin with a glass of sparkling wine and canapés in the drawing room followed by a sumptuous 4-course dinner in the candle lit restaurant. After dinner, there is traditional Scottish music and a ceilidh dance in the conservatory. New Years Day: Guests can enjoy a late brunch served from 10:00 to 12:00. Guests can then enjou steaming plate of haggis stovies after a walk around the grounds or a game of golf. A candle-lit dinner is served in the restaurant from 19:30. Monday 2nd January : A hearty Scottish breakfast is served before guests leave the Isle of Skye.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Bathrobe, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Toilet, Bathroom, Heating, Bath or Shower, Carpeted Floor, View (sea, garden, landmark, etc.), Wake Up Service, Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room10059911', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>3 night break including dinner, bed and breakfast each day and a sumptuous Christmas Day lunch. Christmas Eve: Complimentary afternoon tea by the fire with excellent homemade shortbread then dinner served in the oak-panelled Restaurant. Guests can attend the Local Watch Night Service with transport arranged. Warm mince pies and mulled wine served upon return. Christmas Day: Full Scottish Breakfast is served between 08:30- 10:00. A celebratory glass of Buck\'s fizz with canapés is served in the Drawing Room at 12:30 followed by a delicious 4-course Christmas lunch in the restaurant at 13:00. Tea or coffee, warm mince pies and homemade shortbread are served by the fire all afternoon. A light Christmas buffet will be served in the Palms Restaurant at 19:00. Boxing Day: A hearty Scottish breakfast is served, with a light lunch later in the Palms Restaurant. Guests can relax in the drawing room in front of the fire with a newspaper and a cup of tea. This evening, dinner and music will take place at 19:30 in the restaurant. December 27th: A full Scottish breakfast served on the final day before leaving the Isle of Skye.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Bathrobe, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Toilet, Bathroom, Heating, Bath or Shower, Carpeted Floor, View (sea, garden, landmark, etc.), Wake Up Service, Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room10059909', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This luxurious four-poster room has sumptuous furnishings and fabrics, and comes with a wide-screen TV and DVD player. </p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Bathrobe, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, DVD Player, Toilet, Bathroom, Heating, Bath or Shower, Carpeted Floor, View (sea, garden, landmark, etc.), Wake Up Service, Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room10059907', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Rooms feature satellite TV and a direct-dial telephone.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Bathrobe, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Toilet, Bathroom, Heating, Bath or Shower, Carpeted Floor, View (sea, garden, landmark, etc.), Wake Up Service, Alarm Clock, Electric Kettle, Towels/Linens at surcharge.</p>', 'clickTest':false}
];

// Example of roomDetails contents:
//
// var roomDetails =
// [ 
//     {'nodeID':'room0', 'description':'room0 description', 'amenities':'room 0 amenities', 'clickTest':false},
//     {'nodeID':'room1', 'description':'room1 description', 'amenities':'room 1 amenities', 'clickTest':false},
// ];

function secondClicktest(roomID) {
    var theroom = roomDetails[roomID];

    if (theroom["clickTest"] == false)
    {
        document.getElementById(theroom["nodeID"]).innerHTML=theroom["description"]+" "+theroom["amenities"];
        return theroom["clickTest"] = true;
    } else
    {
        document.getElementById(theroom["nodeID"]).innerHTML="";
        return theroom["clickTest"] = false;
    }
} 


