var roomDetails =
[ 
    {'nodeID':'room23106504', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This large, double room has space to relax and unwind. Each room has a fantastic view and the comforts of home, including a clothes care centre.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Radio, DVD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room23106503', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This twin bedded budget room is located in annexe of the main hotel. This room is a \'no frills\' style room, ideally suited to walkers, cyclists or those travelling on a budget. Each room is located on the ground floor in the courtyard area of the hotel.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Radio, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room23106502', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This budget room is located in the annexe of the main hotel. This room is a \'no frills\'-style room, ideally suited to walkers, cyclists or those travelling on a budget. Each room is located on the ground floor in the courtyard area of the hotel. The room may have a shower or bath, or both, depending on availability.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Radio, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room23106501', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These traditionally furnished, characteristic rooms are found in converted former stables and stately home. The hotel enjoys spectacular views of the Lake District mountains. The rate includes a full English breakfast.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Radio, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room113986', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Traditionally furnished character rooms in converted former stables and stately home. The room boasts spectacular views of the Lake District Mountains.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Radio, 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;
    }
} 


