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 (injectcertificateOfExcellence6670) if(document.createStyleSheet) { document.createStyleSheet("http://c1.tacdn.com/css2/widget/cdswidCOE-v1089073699a.css"); } else { var stylesImport = "@import url(' http://c1.tacdn.com/css2/widget/cdswidCOE-v1089073699a.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(''); } } if(document.createStyleSheet) { document.createStyleSheet("http://c1.tacdn.com/css2/widget/cdswidFRR-v968959094a.css"); } else { var stylesImport = "@import url(' http://c1.tacdn.com/css2/widget/cdswidFRR-v968959094a.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 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|com\.eg|se|in|co\.kr|com\.gr|com\.sg|com\.au|ru|es|com\.tw|nl)/.*') , new RegExp('https?://([^/]+\.|)daodao\.(com)/.*') ]; function injectcertificateOfExcellence6670() { var container = document.getElementById('TA_certificateOfExcellence775'); 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 = ' '+ ' '+ ' '+ 'Certificate of Excellence '+ ' '+ ' '+ '2011 '+ ' '+ ' '+ 'Museum Hill Bed and Breakfast '+ ' '+ ' '+ ' '+ ' '+ ' '+ ' '+ ''; } }