var roomDetails =
[ 
    {'nodeID':'room50265', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Double room with en suite and all facilities. Located in the main building or stables annexe. Rates includes complimentary full English breakfast and VAT.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room8033', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>En suite room with colour television and direct dial telephone. Rates includes complimentary full English breakfast and VAT.</p>', 'amenities':'', 'clickTest':false},
    {'nodeID':'room8032', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms are located within the main building of the hotel and in the stables. These rooms are all en suite and have tea and coffee facilities, direct dial telephone and television. Rates include complimentary full English breakfast and VAT.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Radio, Heating.</p>', 'clickTest':false},
    {'nodeID':'room8031', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms are located within the main building of the hotel and in the stables. These rooms have en suite facilities as well as tea and coffee making facilities, television and direct dial telephone. Rates include complimentary full English breakfast and VAT.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Radio, Heating.</p>', 'clickTest':false},
    {'nodeID':'room2367', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms are again located within the main building. All normal rooms offer en-suite bathrooms and all of the facilities stated below. Rooms have colour television, tea and coffee making facilities, direct dial telephone, ample heating and hot water. Rates include complimentary full English breakfast and VAT.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Radio, Heating.</p>', 'clickTest':false},
    {'nodeID':'room2366', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms are located within the hotel. Each room has its own en suite bathroom and all of the facilities stated below. Room comes with colour television, tea and coffee making facilities, direct dial telephone, ample heating and hot water. Rates include full English breakfast and VAT.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Radio, 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;
    }
} 


