function loadViewer(callback, el) { var script = document.createElement("script"); // create a script DOM node script.type = 'text/javascript'; script.src = 'https://www.conceptispuzzles.com/de/html5/app/loader.js'; // set its src to the provided URL script.onreadystatechange = function(){callback(el)}; script.onload = function(){callback(el)}; document.body.appendChild(script); // add it to the end of the head section of the page (could change 'head' to 'body' to add it to the end of the body section instead) } function popup(url, resizable) { window.open(url,'','width=500,height=500,left=0,top=0,toolbar=No,scrollbars=Yes,location=No,status=No,resizable=Yes,fullscreen=No'); } function showPuzzle(el){ if (!el){ el = 'sud-starter-1-widget-container'; document.write(`
`); } loadViewer(renderPuzzle, el); } function renderPuzzle(el) { var flashvars = 'cafurl=https://www.conceptispuzzles.com/de/index.aspx?uri=puzzle/euid/020000007880dc89b5b989273ef385f6eb4f9f3fb197c253208c7bfd18d233c3a1351df6d08cca8ed1c664fd0d6099546c9166f2d288467aed4b85f9fec84fd7c023dc23/caf&configurl=https://www.conceptispuzzles.com/de/index.aspx?uri=global/puzzle/config&mode=viewer&display=save&btn=play&btnurl=https://www.conceptispuzzles.com/de/index.aspx?uri=puzzle/euid/020000007880dc89b5b989273ef385f6eb4f9f3fb197c253208c7bfd18d233c3a1351df6d08cca8ed1c664fd0d6099546c9166f2d288467aed4b85f9fec84fd7c023dc23/play&free=0&loadurl=cookie&saveurl=cookie&bgcol=F2EAE0'; var borderColor = '9B6D5F'; var backgroundColor = 'F2EAE0'; var channel = 'sud-starter-1'; var base = 'https://www.conceptispuzzles.com/de/'; var blockStyle = 'background-color:#' + backgroundColor + ';width: 181px; margin-bottom: 10px; border: 1px solid #' + borderColor; var h1Style = 'margin: 0; padding: 1px 0px 3px 3px; font: bold 10px Verdana; letter-spacing: 3px; color: white; text-align: center; background-color: #' + borderColor; var dlStyle = 'margin: 10px 0 0px 0px; padding: 0 0 5px 0; width: 163px; min-width: 163px; text-align: left;'; var dtStyle = 'height: 147px;'; var objectStyle = 'float: none; margin: 0px'; var fontStyle = 'font-family: Verdana, Tahoma;font-size: 10px;' var ddStyle = fontStyle + 'padding-top: 2px; _padding-top: 0; margin: 0 0 0 17px; line-height: 10px; color: #000000;'; var brandStyle = ddStyle + 'font-weight: bold; padding: 0; color:#' + borderColor + '; margin-top: 3px; _margin-top: 3px;'; var aTitleStyle = fontStyle + 'text-decoration: none;color: white;'; var linksStyle = ddStyle + 'font-weight: bold; margin-top: 5px;'; var spanStyle = 'margin-right: 10px;'; var ruleslinkid = channel + 'ruleslink'; var morepuzzleslinkid = channel + 'morepuzzleslink'; var playonmobilelinkid = channel + 'playonmobilelink'; var rootId = 'content-sud-starter-1'; var familyAb = 'sud'; var template = `