ipromNS.loadSiteFilters(null,{"rid":"172204307672590020","restricted_zones":[27,28,29],"restricted_programmatic":false,"prebid":{"configuration_id":"1021","configuration_name":"Tujina_Radiosarajevo Desktop v 0.003","configuration_order":"95","timeout":2500,"sites":{"negative":0,"value":[{"regex":0,"url":"radiosarajevo.ba"}]},"campaign_priority":"5","adUnits":[{"code":32,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_32_300x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var maxHeight = 100;\n \n var htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n var advertiserHeight = 60;\n \n if(settings.height) advertiserHeight = Math.min(60, settings.height * .2);\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n \n var width = settings.width ? settings.width + 'px' : '100%; max-width: ' + (settings.products * 200) + 'px';\n \n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n htmlcode += '
';\n for(var p = 0; p < settings.products; p++) {\n htmlcode += getProduct((s*settings.products)+p);\n }\n htmlcode += '
';\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n var h = (settings.height - holder.querySelector('.advertiserLogo').offsetHeight - maxH - 49);\n el.querySelector('img').style.maxHeight = h + 'px';\n if(h < 80) el.querySelector('.desc').style.paddingBottom = 'none';\n }\n el.querySelector('.desc').style.height = maxH + 'px';\n });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) setInterval(function () {\n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 32, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_32@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_32_300x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":0}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"RadioSarajevo_300x250_32"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_32_300x250","adUnitElementId":"32_0"}},{"bidder":"between","params":{"s":4601533}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":35,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_35_300x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var maxHeight = 100;\n \n var htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n var advertiserHeight = 60;\n \n if(settings.height) advertiserHeight = Math.min(60, settings.height * .2);\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n \n var width = settings.width ? settings.width + 'px' : '100%; max-width: ' + (settings.products * 200) + 'px';\n \n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n htmlcode += '
';\n for(var p = 0; p < settings.products; p++) {\n htmlcode += getProduct((s*settings.products)+p);\n }\n htmlcode += '
';\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n var h = (settings.height - holder.querySelector('.advertiserLogo').offsetHeight - maxH - 49);\n el.querySelector('img').style.maxHeight = h + 'px';\n if(h < 80) el.querySelector('.desc').style.paddingBottom = 'none';\n }\n el.querySelector('.desc').style.height = maxH + 'px';\n });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) setInterval(function () {\n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 35, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_35@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_35_300x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363836}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":0}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_35_300x250"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_35_300x250","adUnitElementId":"35_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4601533}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":30,"min_cpm":0.1,"dimensions":["160x600","300x600"],"mediaTypes":{"banner":{"sizes":[[160,600],[300,600]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_30_300x600_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.width == '100%') settings.width = Number(window.getComputedStyle(holder, null).getPropertyValue(\"width\").replace('px',''));\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 30, width: 160, height: 600, orientation: 'vertical', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79717"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_160x600_30@160x600"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_30_300x600_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-9"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"projectagora","params":{"placementId":21588899}},{"bidder":"adf","params":{"mid":448351}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"160x600,300x600","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_30_300x600"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_30_300x600","adUnitElementId":"30_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4601533}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"QSlawreyPu","supplyType":"site"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":31,"min_cpm":0.1,"dimensions":["160x600","300x600"],"mediaTypes":{"banner":{"sizes":[[160,600],[300,600]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_31_300x600_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.width == '100%') settings.width = Number(window.getComputedStyle(holder, null).getPropertyValue(\"width\").replace('px',''));\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 31, width: 160, height: 600, orientation: 'vertical', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79717"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_160x600_31@160x600"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_31_300x600_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-9"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"projectagora","params":{"placementId":21588899}},{"bidder":"adf","params":{"mid":448352}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"160x600,300x600","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_31_300x600"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_31_300x600","adUnitElementId":"31_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4607478}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"QSlawreyPu","supplyType":"site"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":34,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032314"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_34_300x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var maxHeight = 100;\n \n var htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n var advertiserHeight = 60;\n \n if(settings.height) advertiserHeight = Math.min(60, settings.height * .2);\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n \n var width = settings.width ? settings.width + 'px' : '100%; max-width: ' + (settings.products * 200) + 'px';\n \n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n htmlcode += '
';\n for(var p = 0; p < settings.products; p++) {\n htmlcode += getProduct((s*settings.products)+p);\n }\n htmlcode += '
';\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n var h = (settings.height - holder.querySelector('.advertiserLogo').offsetHeight - maxH - 49);\n el.querySelector('img').style.maxHeight = h + 'px';\n if(h < 80) el.querySelector('.desc').style.paddingBottom = 'none';\n }\n el.querySelector('.desc').style.height = maxH + 'px';\n });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) setInterval(function () {\n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 34, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_34@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_34_300x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":"363834"}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_34_300x250"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_34_300x250","adUnitElementId":"34_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4601533}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":91,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_91_300x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var maxHeight = 100;\n \n var htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n var advertiserHeight = 60;\n \n if(settings.height) advertiserHeight = Math.min(60, settings.height * .2);\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n \n var width = settings.width ? settings.width + 'px' : '100%; max-width: ' + (settings.products * 200) + 'px';\n \n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n htmlcode += '
';\n for(var p = 0; p < settings.products; p++) {\n htmlcode += getProduct((s*settings.products)+p);\n }\n htmlcode += '
';\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n var h = (settings.height - holder.querySelector('.advertiserLogo').offsetHeight - maxH - 49);\n el.querySelector('img').style.maxHeight = h + 'px';\n if(h < 80) el.querySelector('.desc').style.paddingBottom = 'none';\n }\n el.querySelector('.desc').style.height = maxH + 'px';\n });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) setInterval(function () {\n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 91, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_91@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_91_300x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"projectagora","params":{"placementId":21588899}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363837}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_91_300x250"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_91_300x250","adUnitElementId":"91_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4601533}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":264,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_264_300x250_TextAd","nativeCallback":"var zoneId = 264;\nvar div = document.querySelector('[data-iadserver-zone=\"'+zoneId+'\"]');\n\nif (!div) {\n ipromNS.debug('[Error :123213 ] Native zone not found [data-iadserver-zone=\"'+zoneId+'\"] ');\n return;\n}\n\ntry {\n\n var prikazaniProdukti = Math.min(json.products.length, 1);\n\n var htmlcode = '
';\n\n for(var i = 0; i < prikazaniProdukti; i++) if(json.products.hasOwnProperty(i)) {\n\n htmlcode += '
' +\n '
' +\n '
' + json.products[i].title+'
' +\n '
' + json.products[i].description + '
' +\n '
' + json.products[i].price+'
';\n\n }\n htmlcode += '
Ads by '+json.advertiser.domain +'
';\n for(var j in json.impression_pixels) if(json.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n div.innerHTML = htmlcode;\n div.style.display = 'block';\n\n}catch (e) {\n ipromNS.debug('[Error :1231113 ] Native render for zone [data-iadserver-zone=\"'+zoneId+'\"] not working');\n ipromNS.debug(e);\n return;\n}"}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_264_300x250"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_264_300x250","adUnitElementId":"264_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4601533}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"48990","zoneId":"2103764"}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"richaudience","params":{"pid":"qEQxhay6RD","supplyType":"site"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/mRadiosarajevo_264_640x480"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_264_640x480"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}}]},{"code":36,"min_cpm":0.1,"dimensions":["300x250","300x600","640x480"],"mediaTypes":{"banner":{"sizes":[[300,250],[300,600],[640,480]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_36_300x600_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.width == '100%') settings.width = Number(window.getComputedStyle(holder, null).getPropertyValue(\"width\").replace('px',''));\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 36, width: 300, height: 600, orientation: 'vertical', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_36_300x600_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588899}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x600","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_36_640x480"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_36_300x600","adUnitElementId":"36_0"}},{"bidder":"between","params":{"s":4607478}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":33,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_33_Float_NativeFloatLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, discount = false, productInterval = null, slideInterval = null;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var htmlcode = '' +\n '
' +\n '
' +\n '' +\n '' +\n '' +\n '' +\n '' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]);\n }\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n \n htmlcode += '
';\n \n for(var p = 0; p < settings.products; p++) htmlcode += getProduct((s*2)+p);\n \n htmlcode += '
';\n \n }\n \n htmlcode += '
';\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n holder.innerHTML = htmlcode;\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseover', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseout', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n holder.querySelectorAll('.criteoNativeInlineSlides .desc').forEach(function (el) { el.style.height = maxH + 'px'; });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) slideInterval = setInterval(function () {\n \n if(!holder.querySelector('.criteoNativeInlineSlides > div')) {\n clearInterval(slideInterval);\n clearInterval(productInterval);\n return;\n }\n \n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides > div').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n setInterval(function () {\n if(holder.querySelector('div')) holder.querySelector('div').style.bottom = ( document.querySelector('#tbl-next-up.in-viewport') ? document.querySelector('#tbl-next-up.in-viewport').offsetHeight + 30 : 20 ) + 'px';\n }, 1000);\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = '#fff';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n init();\n \n \n})(json, { zone: 33, height: 'auto', width: 400, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}}]},{"code":26,"min_cpm":0.1,"dimensions":["728x90","970x250"],"mediaTypes":{"banner":{"sizes":[[728,90],[970,250]]}},"bids":[{"bidder":"adpone","params":{"placementId":"1215115224775"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-2"}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"728x90","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_26_728x90","adUnitElementId":"26_0"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_26_970x250"}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"Fq6ShG7iqw","supplyType":"site"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_26_970x250"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":27,"min_cpm":0.1,"dimensions":["300x250","728x90","970x250"],"mediaTypes":{"banner":{"sizes":[[300,250],[728,90],[970,250]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032310"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_27_300x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var maxHeight = 100;\n \n var htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n var advertiserHeight = 60;\n \n if(settings.height) advertiserHeight = Math.min(60, settings.height * .2);\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n \n var width = settings.width ? settings.width + 'px' : '100%; max-width: ' + (settings.products * 200) + 'px';\n \n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n htmlcode += '
';\n for(var p = 0; p < settings.products; p++) {\n htmlcode += getProduct((s*settings.products)+p);\n }\n htmlcode += '
';\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n var h = (settings.height - holder.querySelector('.advertiserLogo').offsetHeight - maxH - 49);\n el.querySelector('img').style.maxHeight = h + 'px';\n if(h < 80) el.querySelector('.desc').style.paddingBottom = 'none';\n }\n el.querySelector('.desc').style.height = maxH + 'px';\n });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) setInterval(function () {\n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 27, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_32@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_27_300x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_27_300x250","adUnitElementId":"27_0"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"richaudience","params":{"pid":"Fq6ShG7iqw","supplyType":"site"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_27_970x250"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":28,"min_cpm":0.1,"dimensions":["300x250"],"mediaTypes":{"banner":{"sizes":[[300,250]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032310"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_28_300x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, currentSlide = 0, slides = 0, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n function init () {\n \n var addProducts = criteoData.products.length % settings.products;\n \n for(var ip = 0; ip < addProducts; ip++) criteoData.products.push(criteoData.products[ip]);\n \n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var maxHeight = 100;\n \n var htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n return htmlcode;\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n var advertiserHeight = 60;\n \n if(settings.height) advertiserHeight = Math.min(60, settings.height * .2);\n \n return '
'\n }\n \n function makeAd () {\n \n slides = Math.ceil(criteoData.products.length / settings.products);\n \n \n var width = settings.width ? settings.width + 'px' : '100%; max-width: ' + (settings.products * 200) + 'px';\n \n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var s = 0; s < slides; s++) {\n htmlcode += '
';\n for(var p = 0; p < settings.products; p++) {\n htmlcode += getProduct((s*settings.products)+p);\n }\n htmlcode += '
';\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxH = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxH = Math.max(maxH, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(currentSlide, i%settings.products); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n var h = (settings.height - holder.querySelector('.advertiserLogo').offsetHeight - maxH - 49);\n el.querySelector('img').style.maxHeight = h + 'px';\n if(h < 80) el.querySelector('.desc').style.paddingBottom = 'none';\n }\n el.querySelector('.desc').style.height = maxH + 'px';\n });\n \n // start slide effect\n \n if(settings.rotationTimeout && slides > 1) setInterval(function () {\n activeProduct = 0;\n currentSlide++;\n if(currentSlide == slides) currentSlide = 0;\n \n holder.querySelector('.criteoNativeInlineSlides').style.marginLeft = (-100 * currentSlide) + '%';\n \n startHighlight();\n \n }, settings.rotationTimeout);\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(currentSlide, activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= settings.products) nextActiveProduct = 0;\n \n highlightProduct(currentSlide, nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (s, p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.slide' + s + ' .product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 28, products: 2, rotationTimeout: 6000, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_32@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_28_300x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"300x250","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_28_300x250","adUnitElementId":"28_0"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"richaudience","params":{"pid":"DGUpxErYNc","supplyType":"site"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_38_300x250"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":324,"min_cpm":0.01,"dimensions":["640x480"],"mediaTypes":{"banner":{"sizes":[[640,480]]}},"bids":[{"bidder":"criteo","params":{"zoneId":"1617828","publisherSubId":"/3564/RadioSarajevo_324_Video","video":{"skip":0,"playbackmethod":1,"placement":1}}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"mRadiosarajevo_0x0_Video_324m@640x480"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"59288","zoneId":"2262096"}},{"bidder":"adtelligent","params":{"aid":786414}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"richaudience","params":{"pid":"qEQxhay6RD","supplyType":"site"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_324_640x480"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}}]},{"code":25,"min_cpm":0.1,"dimensions":["300x250","728x90","970x250"],"mediaTypes":{"banner":{"sizes":[[300,250],[728,90],[970,250]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032310"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_25_970x250_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 250, width: 970, height: 250, orientation: 'horizontal', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_300x250_32@300x250"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_25_970x250_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"970x250","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_25_300x250","adUnitElementId":"25_0"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"richaudience","params":{"pid":"Fq6ShG7iqw","supplyType":"site"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_25_970x250"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":39,"min_cpm":0.1,"dimensions":["300x250","728x90","640x480"],"mediaTypes":{"banner":{"sizes":[[300,250],[728,90],[640,480]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032310"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_39_728x90_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 39, width: 728, height: 90, orientation: 'horizontal', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_728x90_39@728x90"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_39_728x90_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"728x90","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_39_300x250","adUnitElementId":"39_0"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"criteo","params":{"zoneId":"1617828","publisherSubId":"/3564/RadioSarajevo_39_Video","video":{"skip":0,"playbackmethod":1,"placement":1}}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"Radiosarajevo_0x0_Video_39@640x480"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764"}},{"bidder":"richaudience","params":{"pid":"Fq6ShG7iqw","supplyType":"site"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_39_640x480"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":88,"min_cpm":0.1,"dimensions":["300x250","728x90","640x480"],"mediaTypes":{"banner":{"sizes":[[300,250],[728,90],[640,480]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032310"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_88_728x90_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 88, width: 728, height: 90, orientation: 'horizontal', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_728x90_88@728x90"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_88_728x90_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"728x90","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_88_300x250","adUnitElementId":"88_0"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"criteo","params":{"zoneId":"1617828","publisherSubId":"/3564/RadioSarajevo_88_Video","video":{"skip":0,"playbackmethod":1,"placement":1}}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"Radiosarajevo_0x0_Video_88@640x480"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_88_640x480"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]},{"code":2160,"min_cpm":0.1,"dimensions":["300x250","728x90","640x480"],"mediaTypes":{"banner":{"sizes":[[300,250],[728,90],[640,480]]}},"bids":[{"bidder":"connectad","params":{"networkId":"10047","siteId":"1032310"}},{"bidder":"criteo","params":{"zoneId":"1380295","publisherSubId":"/3564/RadioSarajevo_2160_728x90_NativeLux","nativeCallback":"(function (criteoData, settings) {\n \n \n var holder = null, activeProduct = 0, highlightedProduct = null, productInterval = false;\n \n var titleWidth = 200,\n titleHeight = 60;\n \n function init () {\n holder = document.querySelector('[data-iadserver-zone=\"'+settings.zone+'\"]');\n \n if(settings.orientation && settings.orientation == 'vertical') {\n titleWidth = settings.width;\n } else {\n titleHeight = settings.height;\n }\n \n makeAd();\n }\n \n function getProduct (p) {\n \n if(typeof criteoData.products[p] == 'undefined') return '';\n \n var productWidth = (settings.width - titleWidth - 2) / criteoData.products.length,\n productHeight = settings.height - 2;\n \n if(settings.orientation == 'vertical') {\n productHeight = (settings.height - titleHeight - 2) / criteoData.products.length;\n productWidth = settings.width;\n }\n \n var productMargin = 5;\n \n return htmlcode = '' +\n '
' +\n '
' +\n '
' +\n '
'+criteoData.products[p].title+'
' +\n '
'+criteoData.products[p].price+'
' +\n '
' +\n '
' +\n '
';\n \n }\n \n function makeTitle () {\n var advertiserImg = criteoData.advertiser.logo.url;\n \n if(advertiserImg.match(/&u=(.*?)\\&/)) {\n advertiserImg = decodeURIComponent(advertiserImg.match(/&u=(.*?)\\&/)[1]).replace('http://','//');\n }\n \n return '
' +\n '
' +\n '
';\n }\n \n function makeAd () {\n \n var width = settings.width ? settings.width + 'px' : '100%;';\n if(settings.height) width += '; height: ' + (settings.height - 2) + 'px';\n \n var htmlcode = '
';\n \n htmlcode += makeTitle();\n \n //make slides\n \n htmlcode += '
';\n \n for(var p = 0; p < criteoData.products.length; p++) {\n htmlcode += getProduct(p);\n }\n \n htmlcode += '
';\n \n // make impression pixels\n \n for(var j in criteoData.impression_pixels) if(criteoData.impression_pixels.hasOwnProperty(j)) htmlcode += '';\n \n // insert HTML code\n \n holder.innerHTML = htmlcode;\n \n // evenly height products\n \n var maxDescHeight = 0;\n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el, i) {\n maxDescHeight = Math.max(maxDescHeight, el.querySelector('.desc').offsetHeight);\n el.addEventListener('mouseenter', function () { clearInterval(productInterval); highlightProduct(i); });\n el.addEventListener('mouseleave', function () { setTimeout(startHighlight, settings.productRotationTimeout); });\n \n });\n \n holder.querySelectorAll('.criteoNativeInlineSlides .product').forEach(function (el) {\n \n if(settings.height) {\n el.querySelector('img').style.height = (el.offsetHeight - maxDescHeight - 25 - 20 - 8) + 'px';\n }\n \n el.querySelector('.desc').style.height = maxDescHeight + 'px';\n });\n \n // highlight\n \n startHighlight();\n \n }\n \n function startHighlight () {\n \n if(productInterval) clearInterval(productInterval);\n highlightProduct(activeProduct);\n \n if(settings.products > 1) productInterval = setInterval(function () {\n \n var nextActiveProduct = activeProduct + 1;\n if(nextActiveProduct >= criteoData.products.length) nextActiveProduct = 0;\n \n highlightProduct(nextActiveProduct);\n \n activeProduct = nextActiveProduct;\n \n }, settings.productRotationTimeout);\n }\n \n function defaultProduct () {\n if(!highlightedProduct) return;\n highlightedProduct.querySelector('div').style.borderColor = '#eee';\n highlightedProduct.querySelector('div').style.boxShadow = \"none\";\n highlightedProduct.querySelector('.price').style.background = 'transparent';\n highlightedProduct.querySelector('.price').style.color = '#000';\n }\n \n function highlightProduct (p) {\n defaultProduct();\n highlightedProduct = holder.querySelectorAll('.product')[p];\n \n highlightedProduct.querySelector('div').style.borderColor = settings.productHighliteColor;\n highlightedProduct.querySelector('div').style.boxShadow = \"0 0 8px -3px rgba(0,0,0,.5)\";\n highlightedProduct.querySelector('.price').style.background = settings.productHighliteColor;\n highlightedProduct.querySelector('.price').style.color = \"#FFF\";\n }\n \n \n init();\n \n \n})(json, { zone: 2160, width: 728, height: 90, orientation: 'horizontal', products: 10, productRotationTimeout: 3000, productHighliteColor: 'rgb(4, 80, 162)' });"}},{"bidder":"smartadserver","params":{"domain":"https://prg.smartadserver.com","siteId":"301435","pageId":"1102232","formatId":"79719"}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"RadiosarajevoHB_728x90_2160@728x90"}},{"bidder":"criteo","params":{"networkId":"8737","publisherSubId":"/3564/RadioSarajevo_2160_728x90_NetworkID"}},{"bidder":"luponmedia","params":{"siteId":605,"keyId":"uid_radiosarajevo"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764-15"}},{"bidder":"oftmedia","params":{"placementId":"20150531"}},{"bidder":"adyoulike","params":{"placement":"6c50c9f7a9ab7ea8219f9ae642f42849"}},{"bidder":"projectagora","params":{"placementId":21588896}},{"bidder":"adpone","params":{"placementId":"1215115222535"}},{"bidder":"adf","params":{"mid":363835}},{"bidder":"iprom","params":{"id":"9a100ba9e9fd143d","dimension":"728x90","priority":5}},{"bidder":"rtbhouse","params":{"publisherId":"ANfGDKW3jcDg8sCwyrPa","region":"prebid-eu"}},{"bidder":"adagio","params":{"organizationId":"1253","site":"radiosarajevo-ba","placement":"RadioSarajevo_2160_300x250","adUnitElementId":"2160_0"}},{"bidder":"between","params":{"s":4607484}},{"bidder":"adtelligent","params":{"aid":576049}},{"bidder":"connectad","params":{"networkId":"10047","siteId":"1013449"}},{"bidder":"criteo","params":{"zoneId":"1617828","publisherSubId":"/3564/RadioSarajevo_2160_Video","video":{"skip":0,"playbackmethod":1,"placement":1}}},{"bidder":"pubmatic","params":{"publisherId":"156308","adSlot":"Radiosarajevo_0x0_Video_2106@640x480"}},{"bidder":"rubicon","params":{"accountId":"13536","siteId":"379792","zoneId":"2103764"}},{"bidder":"richaudience","params":{"pid":"Fq6ShG7iqw","supplyType":"site"}},{"bidder":"amx","params":{"tagId":"MTUybWVkaWEuY29tLWlwcm9t","adUnitId":"radiosarajevo_2160_640x480"}},{"bidder":"smilewanted","params":{"zoneId":"iprom.si_hb_display","bidfloor":null}},{"bidder":"nextMillennium","params":{"placement_id":"","group_id":"1329"}}]}]},"cs":["https://core.iprom.net/cookiesync?f=6A9Y6RBE&t=53AXLL98","https://core.iprom.net/cookiesync?f=6A9Y6RBE&t=HCD85L4C"]});