if (window.taValidate == undefined) {
   window.taOnLoad   = window.onload;
   window.taValList  = Array();
   window.taValIndex = 0;
   window.taValidate = function () {
      if (window.taOnLoad != null) {
         try {
         window.taOnLoad();
         } catch (err) { }
      }
      for (ii = 0; ii < window.taValIndex; ii=ii+1) {
         fname = window.taValList[ii]
         fname();
      }
   }
   window.taAddValidator = function (fname) {
      window.taValList[window.taValIndex] = fname;
      window.taValIndex                   = window.taValIndex + 1;
      }
   window.onload = window.taValidate
}
window.taAddValidator (injectcdspropertysummary2946)

                  if(document.createStyleSheet) {
        document.createStyleSheet("https://c1.tacdn.com/css2/widget/cdswidget-property-v23295474906a.css");
      } else {
        var stylesImport = "@import url(' https://c1.tacdn.com/css2/widget/cdswidget-property-v23295474906a.css ');";
        var newSS=document.createElement('link');
        newSS.rel='stylesheet';
        newSS.href='data:text/css,'+escape(stylesImport);
        if (document.getElementsByTagName("head")[0]) {
            document.getElementsByTagName("head")[0].appendChild(newSS);
        } else {             document.write('<link rel="stylesheet" href="data:text/css,' + escape(stylesImport) + '"/>');
        }
      }
        
      var newJs = document.createElement('script');
    newJs.setAttribute('type', 'text/javascript');
    newJs.setAttribute('src', 'https://c1.tacdn.com/js3/widget/cdswidgets_ta-c-v24182435585a.js');
    document.getElementsByTagName("head")[0].appendChild(newJs);
  
function injectcdspropertysummary2946() {
    var container = document.getElementById('TA_cdspropertysummary');
  if (container == null) {
        var scriptTags = document.getElementsByTagName("script");
    for (var i=0; i<scriptTags.length; i++)
    {
      if (scriptTags[i] != null && scriptTags[i].src != null &&
          scriptTags[i].src.indexOf("cdspropertysummary?uniq=") >= 0)
      {
        var msgElem = document.createElement('div');
        if (msgElem != null && msgElem != 'undefined')
        {
          msgElem.style.margin='8px';
          msgElem.style.color='red';
          msgElem.innerHTML="Please check the TripAdvisor code and install again.";
          var parentElem = scriptTags[i].parentNode;
          if (parentElem != null && parentElem != 'undefined')
          {
            parentElem.appendChild(msgElem);
          }
          break;
        }
      }
    }
    return;
  }

  
  var widgetHtml = '<div id="CDSSKY" class="cdsBx"> '+
'<div class="cdsData" style=" background-color:#f7f7f7;  margin:0;"> '+
'<div class="cdsComponent"> '+
'<div class="cdsTrvlRtng"> '+
'<dl> '+
'<dt class="cdsH11">TripAdvisor Traveler Rating:</dt> <dd> '+
'<div class="overall"> '+
'<img src="https://www.tripadvisor.com/img/cdsi/img2/ratings/traveler/4.0-23521-2.png" alt="4.0 of 5 stars"/> '+
'<div>Based on <b>1,380</b> traveler reviews</div> '+
'</div><!--/ overall--> '+
'</dd> '+
'</dl> '+
'</div> '+
'</div><!--/ cdsComponent--> '+
'<div class="cdsComponent"> '+
'<div class="cdsAll"> '+
'<p><a rel="nofollow" href="javascript:ta.cds.handleTALink(23521);doPopupWithSize(\'https://www.tripadvisor.com/WidgetEmbed-cdspropertydetail?locationId=89644&amp;lang=en_US&amp;partnerId=0EF4C725136041ECA773851FF5D2B773&amp;isTA=&amp;format=html&amp;display=true\', \'propdetail\', 600, 600);"><b>Read reviews&#xa0;&#xbb;</b></a></p> </div><!--/ cdsAll--> '+
'</div><!--/ cdsComponent--> '+
'</div><!--/ cdsData--> '+
'</div><!--/ CDSPOP.cdsBx--> '+
'';

    if (widgetHtml.indexOf("WIDGET_ERR_LINKS") != -1) {
    var linksDiv = document.createElement('div');

    var links = container.getElementsByTagName("a");
    if (links) {
      for (var i=0; i<links.length; ++i) {
                if (links[i].getElementsByTagName("img").length > 0) {
          if (widgetHtml.indexOf("WIDGET_ERR_IMAGE_LINK")) {
            widgetHtml = widgetHtml.replace('<a id="WIDGET_ERR_IMAGE_LINK" href="http://www.tripadvisor.com/" target="_blank">' ,'<a href="' + links[i] + '" target="_blank">');
            widgetHtml = widgetHtml.replace('Reviews of Hotels, Flights and Vacation Rentals', links[i].getElementsByTagName("img")[0].alt);
          }
        }
        else {
          linkDiv = document.createElement('div');
          links[i].setAttribute('target', '_blank');
          linkDiv.appendChild(links[i].cloneNode(true));
          if (linksDiv.getElementsByTagName("div").length == 0) {
            linkDiv.style.margin="8px 0 0 0";
          }
          linksDiv.appendChild(linkDiv);
        }
      }
            var cdsWidgetKey = 'cdspropertysummary';
      if (linksDiv.hasChildNodes() && (cdsWidgetKey != "cdshac")) {
        linksDiv.insertBefore(document.createTextNode("Read more on TripAdvisor:"), linksDiv.firstChild);       } 
    }

    widgetHtml = widgetHtml.replace('<div id="WIDGET_ERR_LINKS"></div>', linksDiv.innerHTML);
  }

  
  container.innerHTML = widgetHtml; 
}
