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 = ' Elewacje - komu zlecić?
Przedstawiamy poniżej miasta z ofertą firm wykonujących Elewacje:
';
iframe = document.createElement('iframe');
iframe.setAttribute("frameborder","0");
iframe.setAttribute("scrolling","no");
iframe.setAttribute("allowTransparency","true");
iframe.setAttribute("width","665px");
iframe.setAttribute("height","255px");
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 hash17242 = '';
var _id17242 = '';
hash17242 = '';
_id17242 = 'ofe-2807136-17242';
var elements17242 = getElementsByClassName(document, hash17242);
if (elements17242 == null || elements17242.length == 0) {
hash17242 = '2807136-17242';
elements17242 = getElementsByClassName(document, hash17242);
}
if (elements17242 == null || elements17242.length == 0) {
hash17242 = 'ofe-2807136-17242';
elements17242 = getElementsByClassName(document, hash17242);
}
if (elements17242 == null || elements17242.length == 0) {
hash17242 = '17242';
elements17242 = getElementsByClassName(document, hash17242);
}
if (elements17242 == null || elements17242.length == 0) {
hash17242 = '17242';
elements17242 = getElementsByClassName(document, hash17242);
}
if (elements17242 && elements17242.length > 0) {
for (var i = 0; i < elements17242.length; i++) {
var e17242 = elements17242[i];
var id17242 = 'ofe_' + i + '_' + hash17242;
e17242.id = id17242;
addStyle('body{margin:0;}#ofe-2807136-17242 * { margin: 0; padding: 0; box-sizing: border-box; font-family: "Open Sans",Arial,sans-serif;}#ofe-2807136-17242 .ofe-container { background-color: #F1F1F1; padding: 15px 15px; box-sizing: border-box; clear: both; font-family: Arial; height: 190px; position: relative; width: 578px;max-width:100%;}#ofe-2807136-17242 div.ofe-background { bottom: 23%; left: 0; position: absolute; right: 0; top: 0; z-index: 1;}#ofe-2807136-17242 div.ofe-box { position: relative; z-index: 2;}#ofe-2807136-17242 div.ofe-usp li { list-style:none; float: left; width: 50%;}#ofe-2807136-17242 div.ofe-title { color: #333; display: table-cell; margin: 0; text-align: center; vertical-align: middle; width: 100%; font-size: 20px; line-height: 24px; padding-bottom: 10px; font-weight: 600;}#ofe-2807136-17242 div.ofe-title { font-size: 13px; line-height: 24px; padding-bottom: 10px;}#ofe-2807136-17242 div.ofe-title.ofe-title-size-6 { font-size: 40px; line-height: 45px;}#ofe-2807136-17242 div.ofe-title.ofe-title-size-13 { font-size: 13px; line-height: 18px; text-align: left; width: 578px; float: left; font-weight: 400;max-width:100%;}#ofe-2807136-17242 div.ofe-title h1.ofe-title-size-17 { font-size: 30px; line-height: 35px;}#ofe-2807136-17242 div.ofe-title.ofe-title-size-inf { font-size: 22px; line-height: 27px; text-align: left;}#ofe-2807136-17242 div.ofe-photo { float: left; text-align: left;cursor:pointer;}#ofe-2807136-17242 div.ofe-photo img { height: 160px; width: 160px; margin: 0; padding:0;}#ofe-2807136-17242 div.ofe-usp-btn { float: left; width: 385px;max-width:100%;}#ofe-2807136-17242 div.ofe-usp ul > li .ofe-city, #ofe-2807136-17242 div.ofe-usp ul > li .ofe-btn-raquo{ color:rgb(203, 15, 48); text-decoration:none;}#ofe-2807136-17242 div.ofe-usp-btn ul > li > a{ text-decoration: none;}#ofe-2807136-17242 div.ofe-usp-btn ul > li:hover .ofe-city { text-decoration:underline;}#ofe-2807136-17242 div.ofe-usp-btn ul > li span:hover{ cursor: pointer;}#ofe-2807136-17242 div.ofe-usp-btn ul > li > a .ofe-count{ color:#333; line-height: 21px;}#ofe-2807136-17242 div.ofe-usp { color: #333; font-size: 13px; line-height: 21px; margin: 0 0 12px; text-align: left; width: 385px; padding-left: 15px; float: left; list-style: none;max-width:100%; margin-top: -4px;}#ofe-2807136-17242 div.ofe-btn-box { text-align: left; padding-left: 15px;}#ofe-2807136-17242 a.ofe-btn { -moz-user-select: none; background-image: none; cursor: pointer; display: inline-block; font-size: 16px; font-weight: normal; line-height: 21px; margin: 0; padding: 8px 10px; text-decoration: none; vertical-align: middle; white-space: nowrap;}#ofe-2807136-17242 a.ofe-btn-color { background-color: rgb(203, 15, 48); color: #fff; overflow: hidden; text-align: center;border-radius: 30px;width:100%;position: relative;}#ofe-2807136-17242 a.ofe-btn-color:hover, #ofe-2807136-17242 a.ofe-btn-color:focus, #ofe-2807136-17242 a.ofe-btn-color:active { background-color: rgb(193, 5, 38); color: #fff; text-decoration: none;}#ofe-2807136-17242 span.ofe-btn-text { vertical-align: -4px; font-weight: 600;}#ofe-2807136-17242 span.ofe-btn-raquo { display: inline-block; font-size: 18px; line-height: 21px; margin-left: 4px;}#ofe-2807136-17242 .ofe-btn-text span.ofe-btn-raquo { position: absolute; right: 25px;}#ofe-2807136-17242 div.ofe-logo { color: #808080; font-size: 13px; margin: 12px 0; text-align: center;}#ofe-2807136-17242 div.ofe-logo span {font-weight: bold;}#ofe-2807136-17242 div.clear { clear: both;}#ofe-2807136-17242 .ofe-clear { clear: both; font-size: 0; height: 0; line-height: 0;}@media screen and (max-width:650px){.ofe-photo{display:none;}#ofe-2807136-17242 div.ofe-usp,#ofe-2807136-17242 div.ofe-btn-box{ padding-left: 0px;}}@media screen and (min-width:650px){#ofe-2807136-17242 { margin-left: 86px;}}', 's_' + hash17242);
var creationDiv = document.getElementById(id17242);
creationDiv.innerHTML = 'Elewacje - komu zlecić?
Przedstawiamy poniżej miasta z ofertą firm wykonujących Elewacje:
';
var jscriptUrl = 'https://www.oferteo.pl/scripts/widget.js';
addScript(jscriptUrl, 'js-' + hash17242);
includejQuery(function($){
//includejQueryUI();
function getHostName(url) {
var match = "";
match = url.match(/:\/\/(www[0-9]?\.)?(.[^/:]+)/i);
if (match != null && match.length > 2 && match[2].length > 0) {
return match[2];
}
else {
return null;
}
}
function changeHref(element){
var zz = element.querySelector(".ofe-city").innerText;
element.href = "https://www.oferteo.pl/elewacje-ocieplanie-izolacje/zapytanie?pid=17242&token=muikn89zrixunewmycib&&ec=0&utm_campaign=ExtLinksZpr&utm_medium=widget001rfpForm17242&utm_term=elewacje&utm_content=city";
element.href += "&zipSearchByData=true&zipSearchData=" + zz;
}
var url = (window.location != window.parent.location)
? document.referrer
: document.location.href;
var utmUrl = getHostName(url).toString();
var x = document.querySelectorAll(".ofe-usp li a");
var i;
for (i = 0; i < x.length; i++) {
changeHref(x[i]);
}
var u = document.querySelectorAll(".ofe-container a");
var k;
for (k = 0; k < u.length; k++) {
u[k].href += "&utm_source=" + utmUrl;
}
});
}
}
processAnchors('a0', hash17242);
processAnchors('a1', hash17242);
processAnchors('a2', hash17242);
processAnchors('a3', hash17242);