


function loadCssIntoDom(filename) {
	var outsideCssId = "tellja-outside-css-link";
	var fileref = document.createElement("link");
	fileref.setAttribute("rel", "stylesheet");
	fileref.setAttribute("type", "text/css");
	fileref.setAttribute("href", filename);
	fileref.setAttribute("id", outsideCssId);
	if (typeof fileref != "undefined"){
		var outsideCssElement = document.getElementById(outsideCssId);
		if (outsideCssElement != null){
			outsideCssElement.parentNode.removeChild(outsideCssElement);
		}
		document.getElementsByTagName("head")[0].appendChild(fileref);
	}
}







	window.Tellja = window.Tellja || {};
    
        window.Tellja.createWindow = function(){
            var id = "telljaWidgetDiv";
            if(document.getElementById(id) == null){
                var win = document.createElement("div");
                win.setAttribute('id', id);
                document.body.insertBefore(win,document.body.firstChild);
            }
        };
        window.Tellja.closeWidget = function(){
        	var telljaDiv = document.getElementById("telljaWidgetDiv");
            if(telljaDiv != null){
                telljaDiv.innerHTML = "";
                telljaDiv.style.display = "none";
                telljaDiv.style.top = "0"; 
                telljaDiv.style.left = "0";
                telljaDiv.style.zIndex=0;
            }
        };
        window.Tellja.loadWidget_1773326089396_1345391617 = function(){
        	loadCssIntoDom('https://t.tellja.eu/widget/layouts/widgets/rundv/outside/css/style-outside.css');       
            window.Tellja.closeWidget();
            window.Tellja.createWindow();
            var telljaDiv = document.getElementById("telljaWidgetDiv");
            telljaDiv.style.display = "block";        
            telljaDiv.style.zIndex = 10000;
            var innerCode = '';
            innerCode += '<dialog id="telljaDialog"><div id="tellja-lightbox-id" style="position: fixed; top: 0; left: 0; width: 100%; height: 100%; display: block; z-index: 10000; font-family: Arial; background: rgba(0, 0, 0, 0.5); -webkit-animation-duration: 1s; -webkit-animation-name: fade; -webkit-animation-iteration-count: 1; -webkit-animation-direction: normal;">';
            innerCode += '    <div style="max-width: 1000px; width: 85%; height: 100%; margin-left: auto; margin-right: auto; display: table;">';
            innerCode += '        <div style="width: 100%; height: auto; display: table-cell; vertical-align: middle; border-spacing: 0;">';  
            innerCode += '            <div role="paragraph" style="max-width: 1000px; min-height: 40px; ">';  
            innerCode += '                <button style="float: right; padding: 0; background: transparent; border: 0; cursor: pointer; padding-top: 1px;" onclick="window.Tellja.closeWidget(); return false;" aria-label="Tellja Empfehlungs-Widget schließen"><img border="0" alt="Tellja Empfehlungs-Widget schließen" src="https://t.tellja.eu/widget/layouts/widgets/rundv/outside/images/close.png" border="0" /></button>';                                                            
            innerCode += '            </div>';
            innerCode += '            <div style="overflow: hidden; max-width: 1000px; width: 100%; display: block;">';
            innerCode += '                <iframe style="width: 100%; background: #fff; border: 0; margin: 0; display: block;" id="telljaIFrame_1773326089396_1345391617"  src="https://t.tellja.eu/widget/layouts/widgets/rundv/default/index.html?t_json=true&lOut=66&adv=33Pf-g&rdmnm=1773326089396_1345391617&pcd=nplStA&t_mc=berater61580&skin=106&demomode=false&layoutName=default&locale=de&tmz=1773326089396&wRef=null&wBtn=transparent&t_art_number=ruvberater&t_externalId=324133" ></iframe>';
            innerCode += '            </div>';
            innerCode += '        </div>';
            innerCode += '    </div>';           
            innerCode += '</div></dialog>';
            telljaDiv.innerHTML = innerCode;
            const telljaDialog = document.getElementById('telljaDialog');    
            telljaDialog.showModal();
            return false;
        };
        window.Tellja.telljaCode_1773326089396_1345391617 = function(){
            var telljaCodeSyntax = '<div id="telljaButtonDiv_nplStA" null >';
            telljaCodeSyntax += '<a href="javascript: void(0)" role="button" aria-haspopup="dialog" class="tWidgetButtonStyle" aria-label="Tellja Empfehlungs-Widget öffnen" onclick="window.Tellja.loadWidget_1773326089396_1345391617(); return false;"><img alt="Tellja Empfehlungs-Widget öffnen" border="0" src="https://img.tellja.de/img/widgetbuttons/de/transparent.png"></a>';
            telljaCodeSyntax += '</div>';
            return telljaCodeSyntax;
         };

    
	

	window.Tellja.createContainer = function(){
		var telljaButtonPlacementId = "null";
		if(document.getElementById(telljaButtonPlacementId) == null){
			var telljaButtonElement=document.createElement("div")
			telljaButtonElement.setAttribute("id", telljaButtonPlacementId);
			document.body.insertBefore(telljaButtonElement,document.body.firstChild);
		}	
	};
    	


	var telljaContainerDiv = document.getElementById("telljacontainer2");
	if(telljaContainerDiv){
    	telljaContainerDiv.innerHTML = window.Tellja.telljaCode_1773326089396_1345391617();
	}else{
    	document.writeln(window.Tellja.telljaCode_1773326089396_1345391617());
	}