function trivagoWidget_51521_6487()
{
var container = document.getElementById('trivago_widget_51521_6487');

var chtml;
var reglink = /(\'|\")http:\/\/www.trivago.de\/([0-9A-Za-z\%\-\.]*)\-25247\/hotel\/([0-9A-Za-z\%\-\.]*)\-51521(\'|\"|#)/;
if (container && (chtml = container.innerHTML) && reglink.test(chtml))
{
while(node = container.firstChild) { container.removeChild(node); } 
container.className = 'trivago_widget_portrait';
if (typeof(container.style.cssFloat) != 'undefined')
{
var float_attr = 'cssFloat';
}
else if (typeof(container.style.styleFloat) != 'undefined')
{
var float_attr = 'styleFloat';
}
else
{
var float_attr = 'none';
}
container.style['display'] = 'block';
container.style['margin'] = '6px';
container.style['width'] = '148px';
container.style['border'] = '2px solid #99c16b';
container.style['backgroundColor'] = '#ffffff';
container.style['padding'] = '2px';
var node_cbox  = document.createElement('div');
var node_rbox = document.createElement('div');
node_cbox.className = 'trivago_certificate_box';
container.appendChild(node_cbox);
var node_clear = document.createElement('div');
node_clear.style['clear'] = 'both';
var reglink = /(\'|\")http:\/\/www.trivago.de\/([0-9A-Za-z\%\-\.]*)\-25247\/hotel(\'|\")/;
if (reglink.test(chtml))
{
var node_cert  = document.createElement('div');
var node_claim = document.createElement('div');
node_cert.className  = 'trivago_certificate';
node_claim.className = 'trivago_claim';
node_cbox.appendChild(node_cert);
node_cbox.appendChild(node_claim);
var node_cert_rank  = document.createElement('div');
var node_cert_claim  = document.createElement('a');
node_cert_rank.className  = 'trivago_certificate_rank';
node_cert_claim.className  = 'trivago_certificate_claim';
node_cert.appendChild(node_cert_rank);
node_cert.appendChild(node_cert_claim);
node_cert.appendChild(node_clear.cloneNode(true));
node_cert_claim.innerHTML = 'Wir sind trivago Top-Hotel!';
var node_cert_rank_link  = document.createElement('a');
node_cert_rank.appendChild(node_cert_rank_link);
node_cert_rank_link.target  = '_blank';
node_cert_rank_link.href  = 'http://www.trivago.de/luebeck-25247/hotel/lindenhof-51521';
var node_cert_rank_link_span  = document.createElement('span');
node_cert_rank_link.appendChild(node_cert_rank_link_span);
node_cert_rank_link_span.innerHTML  = '1';
node_claim.innerHTML = 'Wir freuen uns &#252;ber Rang 1 in der Kategorie <a href=\'http://www.trivago.de/luebeck-25247/hotel\'>Top 3 Sterne Hotels L&#252;beck</a>!';
node_cert.style['display'] = node_claim.style['display'] = node_cert_rank.style['display'] = node_cert_claim.style['display'] = node_cert_rank_link.style['display'] = node_cert_rank_link_span.style['display'] = 'block';
node_claim.style['textDecoration'] = node_cert_rank.style['textDecoration'] = node_cert_claim.style['textDecoration'] = node_cert_rank_link.style['textDecoration'] = node_cert_rank_link_span.style['textDecoration'] = 'none';
node_claim.style['textIndent'] = node_cert_claim.style['textIndent'] = node_cert_rank_link_span.style['textIndent'] = node_cert_claim.style['letterSpacing'] = node_cert_rank_link_span.style['letterSpacing'] = '0px';
node_claim.style['fontFamily'] = node_cert_claim.style['fontFamily'] = node_cert_rank_link_span.style['fontFamily'] = 'arial,sans-serif';
node_claim.style['lineHeight'] = node_cert_claim.style['lineHeight'] = node_cert_rank_link_span.style['lineHeight'] = '1.1em';
node_claim.style['height'] = '50px';
node_cert_claim.style['fontWeight'] = node_cert_rank_link_span.style['fontWeight'] = 'bold';
node_cert.style['backgroundColor'] = '#f1f1f1';
node_cert.style['height'] = '40px';
node_claim.style['margin'] = '0px';
node_claim.style['textAlign'] = 'justify';
node_claim.style['fontWeight'] = 'normal';
node_claim.style['fontSize'] = '12px';
node_claim.style['color'] = '#666666';
node_cert_rank.style[float_attr] = 'left';
node_cert_rank.style['width'] = '40px';
node_cert_rank.style['backgroundRepeat'] = 'no-repeat';
node_cert_rank.style['backgroundImage'] = 'url(http://imgpe.trivago.com/contentimages/press/images/tophotel_bg_darkred_45x40.png)';
node_cert_rank.style['margin'] = '0px 4px 2px 0px';
node_cert_rank.style['padding'] = '0px';
node_cert_rank_link.style['width'] = '30px';
node_cert_rank_link.style['height'] = '33px';
node_cert_claim.style['padding'] = '0px';
node_cert_claim.style['textAlign'] = 'left';
node_cert_claim.style['fontSize'] = '12px';
node_cert_claim.style['color'] = '#333333';
node_cert_rank_link_span.style['margin'] = '0px';
node_cert_rank_link_span.style['textAlign'] = 'center';
node_cert_rank_link_span.style['fontSize'] = '10px';
node_cert_rank_link_span.style['color'] = '#ffffff';
var childs = node_claim.getElementsByTagName('a');
for(var i=0,n = childs.length;i != n; i++){
childs[i].style['display'] = 'inline';
childs[i].style['textIndent'] = childs[i].style['letterSpacing'] = '0px';
childs[i].style['textDecoration'] = 'none';
childs[i].style['fontFamily'] = 'arial,sans-serif';
childs[i].style['fontWeight'] = 'normal';
childs[i].style['fontSize'] = '12px';
childs[i].style['color'] = '#666666';
childs[i].target = '_blank';
}
}
else
{
container.innerHTML = chtml;
alert('Das Hotel Widget konnte nicht generiert werden. Bitte wenden Sie sich an Ihren trivago Hotel-Relations-Manager.');
return false;
}
var node_link = document.createElement('a');
node_link.className = 'trivago_link';
container.appendChild(node_link);
node_link.target = '_blank';
node_link.href = 'http://www.trivago.de/luebeck-25247/hotel/lindenhof-51521#bewerten';
node_link.innerHTML = 'Empfehlen Sie uns auf trivago!';
node_link.style['display'] = 'block';
node_link.style['margin'] = '0px';
node_link.style['textDecoration'] = 'underline';
node_link.style['textIndent'] = node_link.style['letterSpacing'] = '0px';
node_link.style['fontFamily'] = 'arial,sans-serif';
node_link.style['lineHeight'] = '1.2em';
node_link.style['fontSize'] = '12px';
node_link.style['fontWeight'] = 'bold';
node_link.style['textAlign'] = 'center';
node_link.style['color'] = '#679037';
}
else
{
alert('Das Hotel Widget konnte nicht generiert werden. Bitte wenden Sie sich an Ihren trivago Hotel-Relations-Manager.');
return false;
}
}
if (typeof currentOnload == 'undefined')
{
var currentOnload = Array();
if (window.onload)
{
currentOnload.push(window.onload);
}
}
currentOnload.push(trivagoWidget_51521_6487);
window.onload = function() { while(doOnload = currentOnload.pop()) { doOnload(); } };


