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