var roomDetails =
[ 
    {'nodeID':'room43982', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The hotel has one master bedroom which has a four poster bed. This en-suite room includes a bath and shower, a 10 channel colour television, direct dial telephone and complementary hot beverage tray.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Work Desk, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room43981', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The hotels\' spacious family room is available to sleep a family of five. Baby/toddler cots are available on request. The en-suite room includes a bath and shower, a 10 channel colour television, direct dial telephone and complementary hot beverages tray. A maximum of 2 adults are allowed, with extra charges made to the room for extra adults.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Work Desk, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room7772', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Hotel has six twin bedded rooms, each with a 10 channel colour television, direct dial telephone and complimentary hot beverage tray. Two of the twin rooms have ground floor access and have been adapted for wheelchair users. These rooms are situated at the rear of the hotel, near the car park. Please contact the hotel, should a ground floor room be required. ( Please note- one of the rooms is smaller than the average room, but has twin beds to allow for a carer to stay in with a disabled guest.)</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Work Desk, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room6502', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Hotel has four double rooms. Each room has been recently redecorated, each with 10 channel colour tv, direct dial telephone and complimentary hot beverage tray.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Work Desk, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room6501', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The hotel has three single rooms, each recently redecorated, with en-suite facilieties, a 10 channel colour television, direct dial telephone and complimentary hot beverage tray.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Work Desk, 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;
    }
} 

