function getElementsByClassName(node,classname){if(node.getElementsByClassName){return node.getElementsByClassName(classname);}else{return(function getElementsByClass(searchClass,node){if(node==null)node=document; var classElements = [], els = node.getElementsByTagName("*"), elsLen = els.length, pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j; for (i = 0, j = 0; i < elsLen; i++) { if ( pattern.test(els[i].className) ) { classElements[j] = els[i]; j++; } } return classElements; })(classname, node);}} function processAnchors(prefix, hashTmp) { var anchors = getElementsByClassName(document, prefix + '-' + hashTmp); if (anchors && anchors.length > 0) { var a0 = 0; for (var ii = 0; ii < anchors.length; ii++) { var a = anchors[ii]; if (a.href && a.href.indexOf('an=') < 0) { a.href = a.href + '&an=' + a0; a0 = a0 + 1; } } } } function addClassCreationPool(id, cssClassNew) { var divPool = document.getElementById(id); if (divPool) { if (divPool.className.indexOf(cssClassNew) < 0) { divPool.className += ' ' + cssClassNew; } } } function addStyle(styleText, idStyle) { var createStyle = true; if (idStyle) { var styleExist = document.getElementById(idStyle); if (styleExist) { createStyle = false; } } if (createStyle && styleText) { var cssstyle = document.createElement("style"); if (cssstyle) { if (idStyle) { cssstyle.setAttribute('id', idStyle); } cssstyle.setAttribute('type', 'text/css'); var styles = document.createTextNode(styleText); if (cssstyle.styleSheet) { cssstyle.styleSheet.cssText = styles.nodeValue; } else { cssstyle.appendChild(styles); } var head = document.getElementsByTagName('head')[0]; if (head) { head.appendChild(cssstyle); } } } } function ofeOnLoad() { } function addScript(scriptHref, idScript) { var createScript = true; if (idScript) { var scriptExist = document.getElementById(idScript); if (scriptExist) { createScript = false; } } if (createScript && scriptHref) { var script = document.createElement("script"); if (script) { if (idScript) { script.setAttribute('id', idScript); } script.setAttribute('type', 'text/javascript'); script.setAttribute('src', scriptHref); script.onload=ofeOnLoad; var head = document.getElementsByTagName('head')[0]; if (head) { head.appendChild(script); } } } } function includejQueryUI() { var script = document.createElement('script'); script.setAttribute('id', 'ofe-jquery-ui'); script.src = 'https://www.oferteo.pl/scripts/jquery/jquery-ui-1.10.3.custom.min.js'; document.getElementsByTagName('head')[0].appendChild(script); } function includejQuery(callback) { if(window.jQuery) { if (callback) { setTimeout(function() { callback(jQuery); }, 1000); } } else { var script = document.createElement('script'); script.onload = function() { jQuery.noConflict(); if (callback) { callback(jQuery); } }; script.setAttribute('id', 'ofe-jquery'); script.src = 'https://www.oferteo.pl/scripts/jquery/jquery-1.9.1.min.js'; document.getElementsByTagName('head')[0].appendChild(script); } } function creationframe(id, node, styleText, idStyle, idDiv, classDiv) { var content = '
'; iframe = document.createElement('iframe'); iframe.setAttribute("frameborder","0"); iframe.setAttribute("scrolling","no"); iframe.setAttribute("allowTransparency","true"); iframe.setAttribute("width","300px"); iframe.setAttribute("height","250px"); src = 'data:text/html;charset=utf-8'; iframe.setAttribute("src", src ); //node.parentNode.insertBefore(iframe, node.nextSibling); node.appendChild(iframe); iframe.onload = function() { var y = (iframe.contentWindow || iframe.contentDocument); if (y.document)y = y.document; var createStyle = true; if (idStyle) { var styleExist = y.getElementById(idStyle); if (styleExist) { createStyle = false; } } if (createStyle) { if (styleText) { var cssstyle = document.createElement("style"); if (cssstyle) { if (idStyle) { cssstyle.setAttribute('id', idStyle); } cssstyle.setAttribute('type', 'text/css'); var styles = document.createTextNode(styleText); if (cssstyle.styleSheet) { cssstyle.styleSheet.cssText = styles.nodeValue; } else { cssstyle.appendChild(styles); } var iHead = y.getElementsByTagName('head')[0]; if (iHead) { iHead.appendChild(cssstyle); } } } } y.body.innerHTML = y.body.innerHTML = '
' + content + '
'; } } var hash51514 = ''; var _id51514 = ''; hash51514 = ''; _id51514 = 'ofe-1662997-51514'; var elements51514 = getElementsByClassName(document, hash51514); if (elements51514 == null || elements51514.length == 0) { hash51514 = '1662997-51514'; elements51514 = getElementsByClassName(document, hash51514); } if (elements51514 == null || elements51514.length == 0) { hash51514 = 'ofe-1662997-51514'; elements51514 = getElementsByClassName(document, hash51514); } if (elements51514 == null || elements51514.length == 0) { hash51514 = '51514'; elements51514 = getElementsByClassName(document, hash51514); } if (elements51514 == null || elements51514.length == 0) { hash51514 = '51514'; elements51514 = getElementsByClassName(document, hash51514); } if (elements51514 && elements51514.length > 0) { for (var i = 0; i < elements51514.length; i++) { var e51514 = elements51514[i]; var id51514 = 'ofe_' + i + '_' + hash51514; e51514.id = id51514; addStyle('#ofe-1662997-51514 * { margin: 0; padding: 0; box-sizing: border-box;}#ofe-1662997-51514 .ofe-container { background-color: #ffffff; box-sizing: border-box; clear: both; font-family: Arial,sans-serif; height: 250px; padding: 5px 10px 10px; position: relative; text-align: center; width: 300px;}#ofe-1662997-51514 .ofe-container div.ofe-background { background: #fff none no-repeat scroll 0 0; bottom: 15%; left: 0; position: absolute; right: 0; top: 0; z-index: 1;}#ofe-1662997-51514 .ofe-container div.ofe-box { position: relative; z-index: 2;}#ofe-1662997-51514 .ofe-container div.ofe-title span.ofe-title-h1 { color: #303030; float: left; font-size: 22px; font-weight: bold; line-height: 24px; margin: 9px 0 5px; width: 100%;}#ofe-1662997-51514 .ofe-container div.ofe-title span.ofe-title-h1 span.ofe-usp { color: #d60000; display: block; font-size: 13px;}#ofe-1662997-51514 .ofe-container div.ofe-radio-box { display: inline-block; margin: 7px 0 8px; text-align: left;}#ofe-1662997-51514 .ofe-container div.ofe-radio { margin-bottom: 0; margin-top: 0; padding: 0;}#ofe-1662997-51514 .ofe-container div.ofe-radio input { margin-right: 5px; vertical-align: text-top;}#ofe-1662997-51514 .ofe-container div.ofe-radio a { color: #333; display: block; padding: 0 2px; text-decoration: none; margin: 0;}#ofe-1662997-51514 .ofe-container div.ofe-radio:hover a, #ofe-1662997-51514 .ofe-container div.ofe-radio:active a, #ofe-1662997-51514 .ofe-container div.ofe-radio:focus a { background-color: #b9130f; border-radius: 3px; color: #fff;}#ofe-1662997-51514 .ofe-container label { cursor: pointer; display: block; font-size: 13px; font-weight: normal; line-height: 21px; margin-bottom: 0; max-width: 100%;}#ofe-1662997-51514 .ofe-container a.ofe-btn { -moz-user-select: none; background-image: none; border-radius: 3px; cursor: pointer; display: inline-block; font-size: 16px; font-weight: bold; line-height: 19px; margin: 4px 0 0; padding: 5px 29px; text-align: center; text-decoration: none; vertical-align: middle; white-space: nowrap;}#ofe-1662997-51514 .ofe-container a.ofe-btn-color { background-color: #d60000; color: #fff;}#ofe-1662997-51514 .ofe-container a.ofe-btn-color:hover, #ofe-1662997-51514 .ofe-container a.ofe-btn-color:focus, #ofe-1662997-51514 .ofe-container a.ofe-btn-color:active { background-color: #b9130f; color: #fff; text-decoration: none;}#ofe-1662997-51514 .ofe-container a.ofe-btn-color:focus, #ofe-1662997-51514 .ofe-container a.ofe-btn-color:active { text-decoration: none;}#ofe-1662997-51514 .ofe-container div.ofe-logo { color: #808080 ; font-size: 11px; margin: 6px 4px 0; text-align: center;}#ofe-1662997-51514 .ofe-container div.ofe-logo span { font-weight: bold;}#ofe-1662997-51514 .ofe-clear { clear: both; font-size: 0; height: 0; line-height: 0;}', 's_' + hash51514); var creationDiv = document.getElementById(id51514); creationDiv.innerHTML = '
'; } } processAnchors('a0', hash51514); processAnchors('a1', hash51514); processAnchors('a2', hash51514); processAnchors('a3', hash51514);