var roomDetails =
[ 
    {'nodeID':'room3415804', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>All rooms are en-suite with tea/coffee facilities, hairdryer and TV. All rooms have showers some with walk in showers and others with showers over the bath. A lovely Lincolnshire breakfast is included in the room rate. Single rooms are in fact double rooms sold for single occupancy. A family room comprises of 2 double beds there is still room for a travel cot or even a z-bed at a squeeze. Lincolnshire is built for family days out. There\'s something here for everybody - whatever age, whatever you want to do. Strenuous or relaxing, theme park or quiet park, get over to Lincolnshire. Step into a world of family fun! Maybe a scary Ghost Walk around historic Lincoln, or a good old fashioned day out building sandcastles on one of the blue flag beaches. There are animals to see at farm parks, seal sanctuaries at Skegness and Mablethorpe and some FANTASTIC theme parks! So how about some thrills on white knuckle rides for the kids, or a trip round a brewery for Dad! Mum might like that too, with good Lincolnshire food and quiet kids - the perfect short break or summer holiday! Great family days out begin here! Please be aware that any rooms booked for 24th, 25th, 31st December and 1st January will be room only, no breakfast available.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Hairdryer, Toilet.</p>', 'clickTest':false},
    {'nodeID':'room3415803', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>All rooms are en-suite with tea/coffee facilities, hairdryer and TV. All rooms have showers some with walk in showers and others with showers over the bath. A lovely Lincolnshire breakfast is included in the room rate. Single rooms are in fact double rooms sold for single occupancy. A family room comprises of 2 double beds there is still room for a travel cot or even a z-bed at a squeeze. Please be aware that any rooms booked for 24th, 25th, 31st December and 1st January will be room only, no breakfast available.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Hairdryer, Toilet.</p>', 'clickTest':false},
    {'nodeID':'room3415802', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>All rooms are en-suite with tea/coffee facilities, hairdryer and TV. All rooms have showers some with walk in showers and others with showers over the bath. A lovely Lincolnshire breakfast is included in the room rate. Single rooms are in fact double rooms sold for single occupancy. A family room comprises of 2 double beds there is still room for a travel cot or even a z-bed at a squeeze. Please be aware that any rooms booked for 24th, 25th, 31st December and 1st January will be room only, no breakfast available.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Hairdryer, Toilet.</p>', 'clickTest':false},
    {'nodeID':'room3415801', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>All rooms are en-suite with tea/coffee facilities, hairdryer and TV. All rooms have showers some with walk in showers and others with showers over the bath. A lovely Lincolnshire breakfast is included in the room rate. Single rooms are in fact double rooms sold for single occupancy. A family room comprises of 2 double beds there is still room for a travel cot or even a z-bed at a squeeze. Please be aware that any rooms booked for 24th, 25th, 31st December and 1st January will be room only, no breakfast available.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Hairdryer, Toilet.</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;
    }
} 


