var roomDetails =
[ 
    {'nodeID':'room66019', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Room with a private shower, wash-basin and toilet. Free parking for up to 16 days.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room66016', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>With private shower, wash basin and toilet. Free parking up to 16 days.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Washing Machine, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room64159', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room62963', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>With private toilet, wash-basin and shower.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Ironing Facilities, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room56272', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Equipped with one double bed and 2 single beds for a family of 4, or one double bed and 3 single beds for family of 5. Garden view. Free parking up to 16 days.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room7112', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>May sleep up to 8 persons. 2 rooms, each with a double bed and a single bed, lounge with a sofa bed. Also includes parking for up to 2 cars up to 16 days. Extra charges may apply if more than 2 cars.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Hairdryer, Refrigerator, Ironing Facilities, Seating Area, Toilet, Microwave, Bathroom, Heating, Kitchen, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room3536', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Good size room with a private toilet, shower and wash-basin. Garden and field views.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room3535', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>With a private toilet, shower and wash-basin. Garden and field views. Free parking for up to 16 days.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room3238', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Free parking for up to 16 days.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, TV, Hairdryer, Ironing Facilities, Toilet, Bathroom, 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;
    }
} 


