var roomDetails =
[ 
    {'nodeID':'room10210102', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A comfortable, light room on the first floor offering pleasant views to rear garden. The room has a double bed and a shower, wash basin and toilet.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, Toilet, Heating, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room10210101', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A bright room on the first floor offering lovely sea views towards the harbour and Hillsborough Nature Reserve. The room has a king-size bed and a shower, wash basin and toilet.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, Toilet, Heating, LCD /Plasma /Flat-screen TV, Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room15365', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Located on the second floor, the room offers lovely sea views of the harbour and Hillsborough nature reserve. In the tower of the guest house, there is a large fully fitted en suite bathroom.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, Toilet, Heating, Bath or Shower, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room585', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Large, bright, spacious en suite room with harbour views.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, DVD Player, Toilet, Heating, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room128', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Dual-aspect room on the first floor, with lovely sea views. There is a wash basin in the room, and a private shower room with wash basin and toilet located immediately next to the room. These facilities are not shared. It is private use for the single room only.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, Toilet, Heating, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room127', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A comfortable room on the first floor offering pleasant view of the rear garden. There is a wash basin in the room, and a shower and toilet.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, Toilet, Heating, LCD /Plasma /Flat-screen TV, Alarm Clock.</p>', 'clickTest':false},
    {'nodeID':'room124', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A charming room on the first floor offering lovely side sea views towards the harbour. There is a wash basin in the room, as well as a shower and toilet.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Hairdryer, Radio, Toilet, Heating, LCD /Plasma /Flat-screen TV, View (sea, garden, landmark, etc.), Alarm Clock.</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;
    }
} 


