var roomDetails =
[ 
    {'nodeID':'room1000309', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This room includes a work desk, cable TV and tea/coffee making facilities.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, Telephone, Hairdryer, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Cable TV, Wake Up Service, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room1000308', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Spacious, warmly decorated room with private bathroom facilities. Guests are kindly requested to indicate their preference for a double bed or 2 single beds in the comments box during the booking process. Please note that this is subject to availability.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Cable TV, Wake Up Service, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room1000307', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Spacious, warmly decorated room with private bathroom facilities. Guests are kindly requested to indicate their preference for a double bed or 2 single beds in the comments box during the booking process. Please note that this is subject to availability.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, Telephone, Hairdryer, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Cable TV, Wake Up Service, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room1000305', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Guests are kindly requested to indicate their preference for a double bed or 2 single beds in the comments box during the booking process. Please note that this is subject to availability. Please note that cots are not available for this roomtype.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Safety Deposit Box, Telephone, Hairdryer, Iron, Work Desk, Shared Bathroom, Bathroom Amenities, Shared Toilet, Cable TV, Wake Up Service, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room1000302', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Room has private shower.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, Telephone, Hairdryer, Iron, Work Desk, Bathroom Amenities, Shared Toilet, Cable TV, Wake Up Service, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room1000301', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Please note that cots are not available for this roomtype.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Safety Deposit Box, Telephone, Hairdryer, Iron, Work Desk, Shared Bathroom, Bathroom Amenities, Toilet, Shared Toilet, Cable TV, Wake Up Service, 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;
    }
} 


