var roomDetails =
[ 
    {'nodeID':'room21712726', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, CD Player, Toilet, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room21712725', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, CD Player, Toilet, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room158849', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Our Junior Suites are the \'top of the range\' Bedrooms. All have a double bed, en-suite bathroom, tea and coffee making facilities, hairdryer, built-in wardrobe, trouser press, iron and ironing board. They differ from all our other bedrooms not just because of their size, but because of the opulence of their décor. These bedrooms are by far our most spacious, having enough space in them for a clearly defined \'lounge area\'; comprising three-seater settee or sofa bed, \'partners desk\' with hardwired broadband access, television and coffee table. These rooms also have a digital safe in the wardrobes. The bathrooms again are very spacious, all have a separate walk-in shower as well as a bath. Some have a Jacuzzi bath. All our bathrooms are fitted with ambient \'night lights\', a blue light that remains on and emits enough light at night that you don\'t have to wake your partner.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, CD Player, Toilet, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room158847', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>All have a double bed, en-suite bathroom, tea and coffee making facilities, a desk or dressing table, hairdryer, wardrobe, trouser press, iron and ironing board. They are more spacious than our standard bedrooms, having enough space in them for at least a settee. Some rooms even have feature beds in them, such as a four poster and a \'mud bed\'. Every room in the hotel receives FREE wireless broadband internet access and FREE satellite TV including all 3 Sky Sports channels, Sky News, CNN, The Hits, and CBBC to name a few Please indicate upon booking whether you require a double or a twin room, thank you..</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, CD Player, Toilet, Heating, Satellite TV.</p>', 'clickTest':false},
    {'nodeID':'room158715', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Our Standard bedrooms all have a double bed, en-suite bathroom, tea and coffee making facilities, a desk or dressing table, hairdryer, wardrobe, trouser press, iron and ironing board, and comfortable chair. Every room in the hotel receives FREE wireless broadband internet access and FREE satellite TV including all 3 Sky Sports channels, Sky News, CNN, The Hits, and CBBC to name a few.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, CD Player, Toilet, 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;
    }
} 

