var roomDetails =
[ 
    {'nodeID':'room21767101', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This is a large front bedroom with bay windows, king-size bed, 32-inch (81 cm) flat-screen TV and a large luxury bathroom.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Hairdryer, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room23059', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Family rooms can accommodate 2 additional children at no extra cost. Although children are not shown when booking, they are included in the room rate and your confirmation. The family rooms contain one double, one single and one pull-out bed. All rooms are tastefully decorated and furnished to a high standard.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Wake Up Service/Alarm Clock, Seating Area, DVD Player, Toilet, Heating, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room13872', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, Bath, TV, Radio, DVD Player, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room13752', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Toilet, 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;
    }
} 


