var roomDetails =
[ 
    {'nodeID':'room12216424', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Features a TV and facilities for making tea and coffee.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Work Desk, Seating Area, Toilet, Bathroom, Heating, Bath or Shower, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room12216409', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These comfortable, tastefully decorated single rooms offer private bathrooms, a colour TV, tea and coffee-making facilities and direct dial telephones.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Fax, Hairdryer, Wake Up Service/Alarm Clock, Trouser Press, Radio, Work Desk, Ironing Facilities, Seating Area, Bathroom Amenities, Fan, Toilet, Bathroom, Heating, Bath or Shower, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room63016', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These are the smallest rooms in the hotel. The bedrooms either overlook the hotel courtyard, with its flowers and seating areas, or across the cobbled market place.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Fax, Hairdryer, Wake Up Service/Alarm Clock, Seating Area, Toilet, Bathroom, Heating, Bath or Shower, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room38620', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms either overlook the hotel courtyard, with its flowers and seating areas, or across the cobbled market place.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Seating Area, Toilet, Bathroom, Heating, Bath or Shower, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room38618', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>These rooms feature pine four-poster beds in the largest rooms, some with lounges. The bedrooms either overlook the hotel courtyard, with its flowers and seating areas, or across the cobbled market place.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Seating Area, Toilet, Bathroom, Heating, Bath or Shower, Electric Kettle.</p>', 'clickTest':false},
    {'nodeID':'room38609', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Double bedded rooms are well equipped and comfortable. The bedrooms either overlook the hotel cortyard with its flowers and seating areas or across the cobbled market place. </p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Work Desk, Seating Area, Toilet, Bathroom, Heating, Bath or Shower, 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;
    }
} 


