var roomDetails =
[ 
    {'nodeID':'room110165', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, DVD Player, Fan, Toilet, Heating, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room79034', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room74711', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, DVD Player, Toilet, Heating, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room74102', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The building\'s original court room, dating back to the 1700s, is now a spectacular bedroom (much loved by honeymooners and those on a romantic break).</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Trouser Press, Bathrobe, Radio, Work Desk, Ironing Facilities, Seating Area, DVD Player, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room74099', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Superior rooms are slightly larger than double rooms and have bigger bathrooms. 2 of the rooms, which are located in the Coach House, have King-size beds which can also be configured as 2 single beds.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, DVD Player, Toilet, Heating, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room74021', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A range of pretty and comfortable double rooms, each with individual decor and Queen-size beds. One room is located in the main house, the other in our Coach House (just 15-metres across the driveway).</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Bathrobe, Radio, DVD Player, Fan, Toilet, Heating, Bath or Shower.</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;
    }
} 

