var roomDetails =
[ 
    {'nodeID':'room1024712', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Larger room with a work desk, fridge and coffee and tea facilities.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Hairdryer, Wake Up Service/Alarm Clock, Balcony, Refrigerator, Work Desk, Bathroom Amenities, Toilet, Heating, Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room1024711', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Wake Up Service/Alarm Clock, Refrigerator, Bathroom Amenities, Toilet.</p>', 'clickTest':false},
    {'nodeID':'room1024710', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Wake Up Service/Alarm Clock, Refrigerator, Bathroom Amenities, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room1024709', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Minibar, Shower, TV, Hairdryer, Wake Up Service/Alarm Clock, Refrigerator, Bathroom Amenities, Toilet, Heating, Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room1024708', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Wake Up Service/Alarm Clock, Refrigerator, Bathroom Amenities, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room1024705', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Wake Up Service/Alarm Clock, Refrigerator, Bathroom Amenities, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room1024702', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>TV, Hairdryer, Wake Up Service/Alarm Clock, Refrigerator, Shared Bathroom, Bathroom Amenities, Heating, Shared Toilet.</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;
    }
} 


