var roomDetails =
[ 
    {'nodeID':'room12341210', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>One-bedroom suite with king-size bed or twin beds. Double sofa bed in the lounge. Or 2 interconnecting rooms both with king-size beds which can be set as twin beds. Room type allocation is not guaranteed.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Seating Area, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV, Cable TV.</p>', 'clickTest':false},
    {'nodeID':'room12341208', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Includes dinner for 2 on the first night.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room12341207', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room12341206', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This offer is based on 2 people staying in a standard room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room12341205', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This offer is based on 2 people staying in a standard room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room12341202', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room12341201', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Spacious room including Wi-Fi, pay-per-view TV, bathrobes and slippers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Bathrobe, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Slippers, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room102314', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Safety Deposit Box, TV, Telephone, Air Conditioning, Hairdryer, Wake Up Service/Alarm Clock, Iron, Work Desk, Bathroom Amenities, Toilet, Bathroom, Heating, Satellite TV.</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;
    }
} 

