/* v1.0-hotelmap-api-builder */ var Mc2d45a72fbb54c413cc2b53bec55964b = { message : '
Nearby Hotels
View special offers at hotels near Food for Thought on our LIVE HotelMap.
VIEW SPECIAL OFFERS
', interval : null, target: 'hm_container', active: 'YES', debug: '', log:function(msg){if (Mc2d45a72fbb54c413cc2b53bec55964b.debug=='true') console.log(msg);}, init_placement : function() { var count_iteration = 0; Mc2d45a72fbb54c413cc2b53bec55964b.interval=setInterval( function() { try { Mc2d45a72fbb54c413cc2b53bec55964b.log("Check request for element node " + Mc2d45a72fbb54c413cc2b53bec55964b.target); count_iteration++; var target_node = document.getElementById( Mc2d45a72fbb54c413cc2b53bec55964b.target ); if ( target_node && Mc2d45a72fbb54c413cc2b53bec55964b.active == 'YES') { Mc2d45a72fbb54c413cc2b53bec55964b.log("Target node valud and incoming details correct"); clearInterval( Mc2d45a72fbb54c413cc2b53bec55964b.interval ); Mc2d45a72fbb54c413cc2b53bec55964b.interval = null; target_node.innerHTML = Mc2d45a72fbb54c413cc2b53bec55964b.message; } else if ( (target_node && Mc2d45a72fbb54c413cc2b53bec55964b.active == 'NO') || count_iteration > 10 ) { if ( target_node && Mc2d45a72fbb54c413cc2b53bec55964b.active == 'NO') { Mc2d45a72fbb54c413cc2b53bec55964b.log("Incorrect information presented to system"); } else { Mc2d45a72fbb54c413cc2b53bec55964b.log("Unable to locate target node for detail placement "); } clearInterval( Mc2d45a72fbb54c413cc2b53bec55964b.interval ); Mc2d45a72fbb54c413cc2b53bec55964b.interval = null; target_node.parentNode.removeChild(target_node); } } catch ( api_exception ) { Mc2d45a72fbb54c413cc2b53bec55964b.log("Exception in process: " + api_exception.message); } }, 500 ); } }; try { Mc2d45a72fbb54c413cc2b53bec55964b.init_placement(); } catch ( exception_d ){};