var roomDetails =
[ 
    {'nodeID':'room1049105', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Located on the top floor, this room has a private bathroom.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, Safety Deposit Box, TV, Seating Area, Toilet, Heating, Wake Up Service.</p>', 'clickTest':false},
    {'nodeID':'room1049104', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These spacious rooms have high ceilings and a balcony looking out over the street or the hotel\'s courtyard. Note that sizes of the balcony can differ. If preferred, guests can request a bigger balcony during booking.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, Safety Deposit Box, TV, Balcony, Seating Area, Toilet, Heating, Wake Up Service.</p>', 'clickTest':false},
    {'nodeID':'room1049102', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Small, basic room with shower and toilet facilities in the hallway, shared with one other room. All basic double rooms have 1 double bed.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Safety Deposit Box, TV, Shared Bathroom, Heating, Shared Toilet, Wake Up Service.</p>', 'clickTest':false},
    {'nodeID':'room1049101', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms are located at the street side of the hotel. They have shower and toilet facilities in the hallway, shared with one other room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Safety Deposit Box, TV, Shared Bathroom, Heating, Shared Toilet, Wake Up Service.</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;
    }
} 


