var roomDetails =
[ 
    {'nodeID':'room22977207', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This spacious luxury suite has a four-poster bed, lounge area and Sky TV. A 3rd person can be accommodated if required (contact us for details). Offer is for a country house Christmas full board basis, from dinner on 24th December to breakfast on 25th December. Enjoy wonderful scenery, log fires and excellent traditional Christmas food.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Refrigerator, Work Desk, Seating Area, Toilet, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room22977205', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Four-poster room with Edwardian bathroom and separate \'thunderbox\'. Three nights booking for the 24, 25 and 26 December (no shorter booking) Country house Christmas full board basis from dinner on 24th December to breakfast on 25th December. Wonderful scenery, log fires and excellent traditional Christmas food.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, Refrigerator, Seating Area, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room22977204', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This room is composed of one double room, one twin/double room and one single room. This room type makes the perfect package for friends or family group booking.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, Refrigerator, Bathroom Amenities, Toilet, Bathroom, Heating, Slippers.</p>', 'clickTest':false},
    {'nodeID':'room90986', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Four-poster room with lovely oriel window, a large period bathroom and a separate working \'thunderbox\'. Splendid views across our own land toward lake and Snowdonia. Single occupancy rate does not apply during public holiday.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, Refrigerator, Bathroom Amenities, Toilet, Bathroom, Heating, Slippers.</p>', 'clickTest':false},
    {'nodeID':'room90985', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Pretty twin bedded room with separate private Edwardian bathroom. Equivalent double room available if preferred, please specify. Views across our land toward Snowdonia and the Alwen reservoir.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, Refrigerator, Toilet, Bathroom, Heating, Slippers.</p>', 'clickTest':false},
    {'nodeID':'room90965', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Large luxury suite with a four-poster bed, antique furnishings and Sky TV. Views across our land toward Snowdonia. Single occupancy rate does not apply during public holiday.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Refrigerator, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Slippers, Satellite TV.</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;
    }
} 


