var roomDetails =
[ 
    {'nodeID':'room10573308', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Elegantly refurbished for the 2012 season, this room is located at the rear of the building with pretty views of the houses on the Orme.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room10573307', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Elegantly refurbished and located at the rear of the building with pretty views of the houses on the Orme.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room10573306', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Completely refurbished for the 2012 season, this room has a king-size bed, flat-screen TV with internet, beautiful wood furniture, and a luxury bathroom.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower, LCD /Plasma /Flat-screen TV, Alarm Clock, Electric Kettle, iPod Docking Station.</p>', 'clickTest':false},
    {'nodeID':'room10573305', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Superior double room 10: Is elegantly refurbished for the 2012 season, and located at the rear of the building with pretty views of the houses on the Orme. Superior double room 11: Is recently decorated to a high standard with modern comfortable seating in the bay window, with a beautiful side view of the sea.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower, LCD /Plasma /Flat-screen TV, Alarm Clock, Electric Kettle, iPod Docking Station.</p>', 'clickTest':false},
    {'nodeID':'room10573304', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Guests can choose between: - rooms with a bay window and full sea views, located at the front - elegant rooms refurbished for the 2012 season. Each with an internet flat-screen TV, mango wood furniture and luxury en suite. Room choice is subject to availability.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room10573303', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>A TV, seating area and whirlpool bath are featured in this room.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room10573302', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The four-poster room is ideal for a special occasion or romantic break. It is beautifully decorated to a high standard and has a four-poster bed.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room8020', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room6987', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room6986', 'description':'', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Bathroom Amenities, Toilet, Bathroom, Heating, Cable TV, 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;
    }
} 


