var roomDetails =
[ 
    {'nodeID':'room140959', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Some rooms overlook the hills. </p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, Toilet, Bathroom, Heating.</p>', 'clickTest':false},
    {'nodeID':'room140957', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Some with balconies and views. Most have baths and showers, request bath if desired (not guaranteed).</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Balcony, Radio, Work Desk, Toilet, Heating, Bath or Shower.</p>', 'clickTest':false},
    {'nodeID':'room140570', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>Room overlooks the hills and has a corner bath with shower over bath.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Shower, Bath, TV, Telephone, Hairdryer, Wake Up Service/Alarm Clock, Radio, Work Desk, DVD Player, Toilet, Heating.</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;
    }
} 


