var roomDetails =
[ 
    {'nodeID':'room113261', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Bank Family Suite comprises two rooms in the west wing with a single lockable door separating it from the rest of the hotel. One room has en suite bath and toilet and the other has shower and toilet. Each room in the suite is equipped with colour tv, cd player/ radio alarm, fridge/mini- bar and beverage making facilities. If booked for two adults only, the cost of one child will be added. The suite is on the side of the hotel and looks on to a bank of shrubs and flowers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Internet Facilities, Minibar, Shower, Bath, TV, Fax, Hairdryer, Wake Up Service/Alarm Clock, Radio, Refrigerator, Ironing Facilities, DVD Player, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room113256', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This suite comprises two rooms with an interconnecting door, both bedrooms have en suite bath facilities and are decorated in cream tones. The rooms are equipped with colour tv, cd player/radio alarm, fridge/mini-bar (lockable) and beverage making facilities. The double room has a sea view and the children\'s room has a view of a bank with shrubs and flowers. If booked for two adults only, the cost of one child will be added. The double room has a sea view and the children\'s room has a view of a bank with shrubs and flowers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Internet Facilities, Minibar, Bath, TV, Fax, Hairdryer, Wake Up Service/Alarm Clock, Radio, Refrigerator, Ironing Facilities, DVD Player, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room113252', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This is a small quiet room with en suite bath and toilet. It is equipped with colour tv, cd player/radio alarm, fridge/mini-bar and beverage making facilities. The Finch room can be used as a double or single room, so please let us know which you prefer. It is decorated in cream tones with prints of Finches painted by a local artist and it looks on to a bank of shrubs and flowers. This room looks on to a bank of shrubs and flowers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Internet Facilities, Minibar, Bath, TV, Fax, Hairdryer, Wake Up Service/Alarm Clock, Radio, Refrigerator, Ironing Facilities, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room102796', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This ground floor double room is decorated in cream and pink tones with en suite bath and toilet. It is equipped with colour tv, cd player/radio alarm, fridge/mini-bar and beverage making facilities. The room is at the front of the hotel with a view of the garden and a glimpse of the sea.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Internet Facilities, Minibar, Shower, TV, Fax, Hairdryer, Wake Up Service/Alarm Clock, Radio, Refrigerator, Ironing Facilities, DVD Player, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room92843', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Butterfly Room is decorated in cream tones with one little window on to courtyard and one larger window. This is a smaller double room, which can be used as a double or a single with en suite shower and toilet. It is equipped with colour tv, cd player/radio alarm, a fridge/mini-bar and beverage making facilities. Looks out on to a bank of shrubs and flowers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Internet Facilities, Minibar, Shower, TV, Fax, Hairdryer, Wake Up Service/Alarm Clock, Radio, Ironing Facilities, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room89750', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Kingfisher Room a medium sized double bedroom with en suite bath and toilet. It is decorated in cream and brown tones and is equipped with a colour tv, cd player/radio alarm, fridge/mini-bar and beverage making facilities. The room is on the side of the hotel and looks on to a bank of shrubs and flowers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Shower, TV, Telephone, Hairdryer, Radio, Ironing Facilities, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room83276', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This suite comprises two rooms with an interconnecting door, both bedrooms have en suite bath and toilet. The rooms are decorated in cream tones and equipped with colour tv, cd player/radio alarm, fridge/mini- bar (lockable) and beverage making facilities. The double room has a sea view and the twin room has a view of a bank with shrubs and flowers (not available after May 2006, see Lawn suite). If booked for two adults only, the cost of one child will be added. The double room of the two rooms has a sea view and the twin room has a view of a bank with shrubs and flowers. The Nursery Suite can only be booked as a family room with at least one paying child. The suite comprises of two bedrooms (both with bath en suite facilities) with an interconnecting door. Double room has a sea view, the twin room looks on to shrubs.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Minibar, Bath, TV, Hairdryer, Radio, Refrigerator, Ironing Facilities, CD Player, Toilet, Video, Heating.</p>', 'clickTest':false},
    {'nodeID':'room83219', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This is a small quiet room with en suite bath and toilet. It is equipped with colour tv, cd player/radio alarm, fridge/mini-bar and beverage making facilities. The County Gate room can be used as a double, twin or single room, so please let us know which you prefer. It is decorated in cream tones with a print of County Gate on Exmoor painted by a local artist and it looks on to a bank of shrubs and flowers. This room looks on to a bank of shrubs and flowers.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Minibar, Bath, TV, Hairdryer, Radio, Refrigerator, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room83213', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>This room is a good sized double room with en suite bath and toilet. It is equipped with colour tv, cd player/radio alarm, fridge/mini-bar and beverage making facilities. The room is decorated in cream tones with Owl prints painted by a local artist and has a sea view beyond the lawn. This room has a view of the garden, sea and, on a good day, the coast of Wales.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Minibar, Bath, TV, Hairdryer, Radio, Refrigerator, CD Player, Toilet, Heating.</p>', 'clickTest':false},
    {'nodeID':'room82269', 'description':'<p style="padding-bottom: 8px;"><b>Description: </b>The Master Bedroom is a large room decorated in cream and pink tones, with a leather settee, fireplace and en suite shower and toilet. It is equipped with a colour tv, dvd player, cd player/radio alarm, fridge/mini- bar and beverage making facilities. The Master Bedroom can be used as a double or a twin room, so please let us know which you would prefer. A travel cot and an additional bed for a child can be added to this room. There is a lovely sea view from the bay windows. View of the garden, sea and, on a clear day, the coast of Wales.</p>', 'amenities':'<p style="padding-bottom: 8px;"><b>Room amenities: </b>Tea/Coffee Maker, Minibar, Shower, TV, Hairdryer, Radio, Refrigerator, Seating Area, DVD Player, CD 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;
    }
} 


