if (typeof EstmPistenbericht != 'object') var EstmPistenbericht = {}; if (!EstmPistenbericht.cssScheme) EstmPistenbericht.cssScheme = 'default'; EstmPistenbericht.getBlock = function() { var b = ''; b += " "; b += ""; b += ""; b += " "; return b; }; EstmPistenbericht.addStyles = function() { var styleElement = document.createElement("link"); styleElement.setAttribute("type", "text/css"); styleElement.setAttribute("media", "screen"); styleElement.setAttribute("rel", "stylesheet"); styleElement.setAttribute("href", "http://engadin.stmoritz.ch/winter/files/css/export-pistenbericht-de.css"); document.getElementsByTagName("head")[0].appendChild(styleElement); }; EstmPistenbericht.process = function() { var el = document.getElementById('estm_pistenbericht'); if (!el) { document.write('
' + this.getBlock() + '
'); } else { el.innerHTML = this.getBlock(); } this.addStyles(); }; EstmPistenbericht.process();