var roomDetails =
[ 
    {'nodeID':'room10361301', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Trouser Press, Radio, Work Desk, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room5564', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Located on the 1st and 2nd floors.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Trouser Press, Radio, Work Desk, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room5562', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Room with four-poster bed and views over the garden and Lincoln Arboretum.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Toilet, Bathroom, Heating, View (sea, garden, landmark, etc.).</p>', 'clickTest':false},
    {'nodeID':'room5560', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Can accommodate an additional extra bed or a double sofa bed. Subject to availability.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room5157', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Toilet, Bathroom, Heating.</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;
    }
} 


