var roomDetails =
[ 
    {'nodeID':'room10212501', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This beautifully furnished room has a double bed with quality duvets and soft furnishings. It is fully en suite and overlooks the front of the house and the wooded area beyond. This room can also be used as a twin room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Wake Up Service/Alarm Clock, Radio, Ironing Facilities, Bathroom Amenities, Toilet, Heating, Carpeted Floor, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room56033', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This beautifully furnished family room has a double bed and a full size single bed with a pull-out 2 foot 6 inch wide bed, with quality duvets and soft furnishings. The room overlooks the front of the hotel and the wooded area beyond. This room is suitable for 2 adults and up to 2 children. When booking this room, please specify the number of adults and whether there are one or 2 children. Sorry, no children under 8 years of age. </p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Wake Up Service/Alarm Clock, Radio, Ironing Facilities, Toilet, Heating, Carpeted Floor, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room56032', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This delightful family room is situated at the top of the hotel which has vaulted ceilings and is furnished with quality pine. The room overlooks the front of the hotel and wooded area beyond. Please note this room is for 2 adults and 1 child over the age of 8 years. </p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Wake Up Service/Alarm Clock, Radio, Ironing Facilities, Toilet, Heating, Carpeted Floor, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room56031', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Collingdale has 2 double rooms, both of which have stunning sea and harbour views and are beautifully furnished. One of these rooms is situated at the top of the guest house, commanding the best views of the harbour. </p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Wake Up Service/Alarm Clock, Radio, Ironing Facilities, Toilet, Heating, Carpeted Floor, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room56030', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Beautifully decorated room with floor-to-ceiling sash windows and stunning harbour views. There is a shower and basin in the room and a private toilet next to the room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, Ironing Facilities, Toilet, Heating, Carpeted Floor, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room55958', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>All 3 of the lovely king-size bed premier rooms are furnished to a high standard with quality pine and soft furnishings. The rooms have many original features such as marble fireplace, original plaster coving and sash windows. Bedrooms at the top of the hotel have vaulted ceilings and beams. All king-size bedrooms have stunning views of Ilfracombe harbour and Hillsborough Nature Reserve and across the sea to the Welsh coast beyond. The room can be converted to twin beds for longer stays of 3 nights or more (please state at the time of booking).</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Wake Up Service/Alarm Clock, Radio, Ironing Facilities, Toilet, Heating, Carpeted Floor, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</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;
    }
} 


