(function(){ toggleRate14069a313596e2e6daeb61a47e1d030d = function (aRateId) { var rateWrap = document.getElementById("reviews-row-" + aRateId), classList = rateWrap.classList; if (!classList.contains("reviews-row-toggled")) { classList.add("reviews-row-toggled"); } else { classList.remove("reviews-row-toggled"); } return false; } var thRates = [], ratesWrapper = document.getElementById("TH_rates_14069a313596e2e6daeb61a47e1d030d"), html = '', cssUrls = ["\/css\/partners\/rating-2\/th-rating-review-block.css"], link; for(var i = 0; i < cssUrls.length; i++) { link = document.createElement("link"); link.setAttribute("rel", "stylesheet"); link.setAttribute("type", "text/css"); link.setAttribute("href", 'https://partner.tophotels.ru' + cssUrls[i]); document.getElementsByTagName("head")[0].appendChild(link); } html += '
'; (new (function(){var o,i,s,u,l=this,r=[];this.serializePostFields=function(e,n){var t,o,i,s=[];for(t in e)e.hasOwnProperty(t)&&(o=n?n+"["+t+"]":t,i=e[t],s.push(null!==i&&"object"==typeof i?l.serializePostFields(i,o):encodeURIComponent(o)+"="+encodeURIComponent(i)));return s.join("&")},this.sendCounter=(o=function(e){var n=new XMLHttpRequest;n.open("POST","https://netlog.ru/new/counter",!0),n.onload=function(){200!==n.status&&"undefined"!=typeof console&&console.error("Ошибка сбора статистики netlog")},n.setRequestHeader("Content-Type","application/x-www-form-urlencoded; charset=UTF-8"),n.send(l.serializePostFields({ireqs:r})),r=null,r=[]},i=1e3,function(){var e=this,n=arguments,t=s&&!u;clearTimeout(u),u=setTimeout(function(){u=null,s||o.apply(e,n)},i),t&&o.apply(e,n)}),this.counter=function(e,n,t,o){null==o&&(o={}),"object"!=typeof o&&(o={info:o}),o.ua=navigator.userAgent,o.lng=navigator.language,o.path=location.href,o.session=null,o.uniq=null,r.push({id:e,thu:n,ex:o,type:t,t:Math.round((new Date).getTime()/1e3)}),l.sendCounter()}})()).counter(32152, 0, 'event', { partnerId: 1060, allocationId: 13525, widgetId: '104' }); ratesWrapper.innerHTML = html; })();