(function FlipKeyRender() { "use strict"; var taLogoSrc = 'https://s4.fkimg.com/res/1380077834/assets/hl-public/images/navbar/TripAdvisor_en_US.svg'; var widgetStyleSrc = 'https://s4.fkimg.com/res/1380077834/assets/fk/css/pages/widgets.css'; var widgetType = 'best_of_property'; var widgetDiv = document.getElementById('flipkey'); var jsApiWidgets = [ 'flipkey_property_reviews_normal', 'flipkey_property_reviews_skyscraper', 'flipkey_property_badge', 'flipkey_frontdesk_badge', 'flipkey_availability', 'flipkey_excellence_badge', 'flipkey_best_of_property', 'flipkey_best_of_frontdesk', 'flipkey_search_ad', 'flipkey_white_label' ]; if(widgetDiv == null) { for (var jsApiWidget in jsApiWidgets) { widgetDiv = document.getElementById(jsApiWidget); if (widgetDiv) { break; } } } if (widgetDiv) { widgetDiv.innerHTML = ''; widgetDiv.className += ' fkWidget ' + widgetType; var linkTag = document.createElement('a'); linkTag.setAttribute('href', 'https://www.tripadvisor.com/Rentals'); linkTag.setAttribute('target', '_blank'); var imgTag = document.createElement('img'); imgTag.setAttribute('src', taLogoSrc); linkTag.appendChild(imgTag); widgetDiv.appendChild(linkTag); var widgetCssDiv = document.createElement('link'); widgetCssDiv.setAttribute('text', 'text/css'); widgetCssDiv.setAttribute('rel', 'stylesheet'); widgetCssDiv.setAttribute('href', widgetStyleSrc); document.getElementsByTagName('head')[0].appendChild(widgetCssDiv); } })();