var roomDetails =
[ 
    {'nodeID':'room11179607', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This 19th-century farmhouse is surrounded by the golf course. An Aga cooker features in the kitchen, which has a pantry and a utility room with a washing machine and a dryer. A housekeeping service is available by prior arrangement. A log fire and a TV with Sky channels feature in the lounge area. A raised patio with a BBQ overlooks the walled garden and pond. Please note that beds are zip and link. Please request either 5 twin rooms, or 3 double rooms and 2 twin rooms in the Special Request box when booking. A family bathroom and a bedroom with a private wet room feature on the top floor. Please note that the rate of the Five-Bedroom House is based on 10 people sharing. If there are less guests than the maximum occupancy, the rate will remain the same</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Hairdryer, Wake Up Service/Alarm Clock, Iron, Balcony, Trouser Press, Radio, Refrigerator, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Fan, Toilet, Microwave, Dishwasher, Washing Machine, Patio, Bathroom, Heating, Satellite TV, Kitchen, Carpeted Floor, Fireplace, Guest Toilet, LCD /Plasma /Flat-screen TV, Private Entrance, Sofa, Tiled / Marble floor, View (sea, garden, landmark, etc.), Alarm Clock, Dining Area, Electric Kettle, Kitchenware.</p>', 'clickTest':false},
    {'nodeID':'room11179606', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A private bathroom, flat-screen satellite TV and tea/coffee making facilities are featured in this superior twin room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Trouser Press, Radio, Work Desk, Ironing Facilities, Seating Area, Toilet, Bathroom, Heating, Satellite TV, Interconnecting Room(s) available, Laptop Safe Box, LCD /Plasma /Flat-screen TV, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room11179605', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A private bathroom, flat-screen satellite TV and tea/coffee making facilities are featured in this superior double room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Trouser Press, Radio, Work Desk, Ironing Facilities, Seating Area, Toilet, Bathroom, Heating, Satellite TV, Interconnecting Room(s) available, Laptop Safe Box, LCD /Plasma /Flat-screen TV, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room11179604', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Spacious room with a luxury bathroom and seating area.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, Bath, Safety Deposit Box, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Iron, Trouser Press, Radio, Work Desk, Ironing Facilities, Seating Area, Toilet, Bathroom, Heating, Satellite TV, Interconnecting Room(s) available, Laptop Safe Box, LCD /Plasma /Flat-screen TV, Electric Kettle.</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;
    }
} 


