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 (injectrated4993)
if(document.createStyleSheet) {
document.createStyleSheet("http://c1.tacdn.com/css2/widget/cdswidFRR-v1668734062b.css");
} else {
var stylesImport = "@import url(' http://c1.tacdn.com/css2/widget/cdswidFRR-v1668734062b.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('');
}
}
var newJs = document.createElement('script');
newJs.setAttribute('type', 'text/javascript');
newJs.setAttribute('src', 'http://c1.tacdn.com/js3/src/widget/CdsWidgets-v1520135329b.js');
document.getElementsByTagName("head")[0].appendChild(newJs);
var validityRegEx = [
new RegExp('https?://([^/]+\.|)tripadvisor\.(com\.ar|ca|com|jp|co\.uk|de|dk|ie|fr|com\.mx|co\.id|com\.my|it|com\.br|com\.tr|se|in|co\.kr|com\.gr|com\.sg|com\.au|ru|es|nl|com\.tw)/.*')
, new RegExp('https?://([^/]+\.|)daodao\.(com)/.*')
];
function injectrated4993() {
var container = document.getElementById('TA_rated686');
if (container == null) {
var scriptTags = document.getElementsByTagName("script");
for (var i=0; i= 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 valid = true;
var linksNum = 0;
var links = container.getElementsByTagName("a");
for (var i=0; i';
container.innerHTML = tmpStr;
} else {
container.innerHTML = ' '+
'';
}
}