!function () { function GetProducts(top) { var productArray = [{"pid":106158994,"name":"Vileda Sun Lift 50","price":256.9900,"sprice":"256,99","url":"https://www.ceneo.pl/106158994;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/106158994/f-vileda-sun-lift-50.jpg","newpage":true,"format":"custom","rating":4.7,"drawchance":1,"urltype":0,"position":1},{"pid":106454580,"name":"Ameliahome Pościel Bawełniana 160X200 + 70X80 2szt. (Ahavehaw1620)","price":130.5500,"sprice":"130,55","url":"https://www.ceneo.pl/106454580#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/106454580/f-ameliahome-posciel-bawelniana-160x200-70x80-2szt-ahavehaw1620.jpg","newpage":true,"format":"custom","rating":3.33,"drawchance":1,"urltype":0,"position":2},{"pid":92934094,"name":"VILEDA Spin & Clean mop","price":201.7800,"sprice":"201,78","url":"https://www.ceneo.pl/92934094;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/92934094/f-vileda-spin-clean-mop.jpg","newpage":true,"format":"custom","rating":4.57,"drawchance":1,"urltype":0,"position":3},{"pid":157517989,"name":"Szafka Łazienkowa NEL V DDS Biel","price":200.3300,"sprice":"200,33","url":"https://www.ceneo.pl/157517989;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/157517989/f-szafka-lazienkowa-nel-v-dds-biel.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":4},{"pid":162137382,"name":"VOX Sofa 2 Osobowa Z Pojemnikiem Noel","price":2340.0000,"sprice":"2340,00","url":"https://www.ceneo.pl/162137382#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/162137382/f-vox-sofa-2-osobowa-z-pojemnikiem-noel.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":5},{"pid":98786769,"name":"Gerlach Ambiente Zestaw Garnków 10el","price":360.7600,"sprice":"360,76","url":"https://www.ceneo.pl/98786769;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/98786769/f-gerlach-ambiente-zestaw-garnkow-10el.jpg","newpage":true,"format":"custom","rating":4.73,"drawchance":1,"urltype":0,"position":6},{"pid":113616902,"name":"Vileda Infinity Flex (169959)","price":249.9900,"sprice":"249,99","url":"https://www.ceneo.pl/113616902;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/113616902/f-vileda-infinity-flex-169959.jpg","newpage":true,"format":"custom","rating":4.85,"drawchance":1,"urltype":0,"position":7},{"pid":136981821,"name":"TOPESHOP REGAŁ RADO 2D DĄB SONOMA/BIAŁY DĄB SONOMA / BIAŁY","price":379.0000,"sprice":"379,00","url":"https://www.ceneo.pl/136981821;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/136981821/f-topeshop-regal-rado-2d-dab-sonoma-bialy-dab-sonoma-bialy.jpg","newpage":true,"format":"custom","rating":4.5,"drawchance":1,"urltype":0,"position":8},{"pid":147353962,"name":"Helpmation Elegant 60L Ak8892 105798","price":633.0000,"sprice":"633,00","url":"https://www.ceneo.pl/147353962;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/147353962/f-helpmation-elegant-60l-ak8892-105798.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":9},{"pid":23597733,"name":"Pan Materac Original Multi 160x200 sprężynowy","price":2699.0000,"sprice":"2699,00","url":"https://www.ceneo.pl/23597733;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/23597733/f-pan-materac-original-multi-160x200-sprezynowy.jpg","newpage":true,"format":"custom","rating":4.84,"drawchance":1,"urltype":0,"position":10},{"pid":82245928,"name":"Janpol Sirona 180x200","price":8545.0000,"sprice":"8545,00","url":"https://www.ceneo.pl/82245928;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/82245928/f-janpol-sirona-180x200.jpg","newpage":true,"format":"custom","rating":5.0,"drawchance":1,"urltype":0,"position":11},{"pid":116648514,"name":"Forte Meble Winn 2 Sprzedaż Paletowa W2Qs323E71 C752 Szafa Ubraniowa 74191","price":1499.0000,"sprice":"1499,00","url":"https://www.ceneo.pl/116648514;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/116648514/f-forte-meble-winn-2-sprzedaz-paletowa-w2qs323e71-c752-szafa-ubraniowa-74191.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":12},{"pid":43972516,"name":"Hilding Salsa 160x200","price":2689.0000,"sprice":"2689,00","url":"https://www.ceneo.pl/43972516;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/43972516/f-hilding-salsa-160x200.jpg","newpage":true,"format":"custom","rating":4.68,"drawchance":1,"urltype":0,"position":13},{"pid":110996144,"name":"Szezlong Lord Wersal Tkanina Grupa Iii","price":2839.0000,"sprice":"2839,00","url":"https://www.ceneo.pl/110996144#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/110996144/f-szezlong-lord-wersal-tkanina-grupa-iii.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":14},{"pid":162778390,"name":"Villa Italia Bari Platin Obiad Na 6Os. 22El (Platino622)","price":1290.0000,"sprice":"1290,00","url":"https://www.ceneo.pl/162778390#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/162778390/f-villa-italia-bari-platin-obiad-na-6os-22el-platino622.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":15},{"pid":44315229,"name":"Chodzież Serwis Obiadowy dla 12os 44el Iwona Biała C000","price":599.0000,"sprice":"599,00","url":"https://www.ceneo.pl/44315229#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/44315229/f-chodziez-serwis-obiadowy-dla-12os-44el-iwona-biala-c000.jpg","newpage":true,"format":"custom","rating":4.93,"drawchance":1,"urltype":0,"position":16},{"pid":74463010,"name":"Vileda Mop obrotowy Ultramax Turbo ","price":134.9000,"sprice":"134,90","url":"https://www.ceneo.pl/74463010;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/74463010/f-vileda-mop-obrotowy-ultramax-turbo.jpg","newpage":true,"format":"custom","rating":4.72,"drawchance":1,"urltype":0,"position":17},{"pid":56434848,"name":"Chodzież Serwis Obiadowy Dla 12 Os. Bez Wazy 44 Cz. - B014 Maria Teresa","price":998.0000,"sprice":"998,00","url":"https://www.ceneo.pl/56434848#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/56434848/f-chodziez-serwis-obiadowy-dla-12-os-bez-wazy-44-cz-b014-maria-teresa.jpg","newpage":true,"format":"custom","rating":5.0,"drawchance":1,"urltype":0,"position":18},{"pid":45325817,"name":"Vileda Mop obrotowy Turbo (151153)","price":119.0000,"sprice":"119,00","url":"https://www.ceneo.pl/45325817;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/45325817/f-vileda-mop-obrotowy-turbo-151153.jpg","newpage":true,"format":"custom","rating":4.79,"drawchance":1,"urltype":0,"position":19},{"pid":62970198,"name":"Victorinox Swiss Classic Nóż Do Pomidorów Ząbkowany Czerwony (67831)","price":30.9900,"sprice":"30,99","url":"https://www.ceneo.pl/62970198;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/62970198/f-victorinox-swiss-classic-noz-do-pomidorow-zabkowany-czerwony-67831.jpg","newpage":true,"format":"custom","rating":4.96,"drawchance":1,"urltype":0,"position":20},{"pid":43986805,"name":"Hilding Step 160x200","price":1059.0000,"sprice":"1059,00","url":"https://www.ceneo.pl/43986805;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/43986805/f-hilding-step-160x200.jpg","newpage":true,"format":"custom","rating":4.78,"drawchance":1,"urltype":0,"position":21},{"pid":162137361,"name":"VOX Sofa 2,5 Osobowa Z Funkcją Spania Milton","price":3620.0000,"sprice":"3620,00","url":"https://www.ceneo.pl/162137361#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/162137361/f-vox-sofa-2-5-osobowa-z-funkcja-spania-milton.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":22},{"pid":111311945,"name":"Gerlach Zestaw Garnków First 7el.","price":259.9900,"sprice":"259,99","url":"https://www.ceneo.pl/111311945;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/111311945/f-gerlach-zestaw-garnkow-first-7el.jpg","newpage":true,"format":"custom","rating":4.8,"drawchance":1,"urltype":0,"position":23},{"pid":34940304,"name":"Vileda Deska Do Prasowania niebieska 143060","price":199.9900,"sprice":"199,99","url":"https://www.ceneo.pl/34940304;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/34940304/f-vileda-deska-do-prasowania-niebieska-143060.jpg","newpage":true,"format":"custom","rating":4.65,"drawchance":1,"urltype":0,"position":24},{"pid":43986785,"name":"Hilding Flamenco 160x200","price":2699.0000,"sprice":"2699,00","url":"https://www.ceneo.pl/43986785;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/43986785/f-hilding-flamenco-160x200.jpg","newpage":true,"format":"custom","rating":4.81,"drawchance":1,"urltype":0,"position":25},{"pid":48275120,"name":"Pan Materac Original Thermo 140x200 piankowy","price":2399.0000,"sprice":"2399,00","url":"https://www.ceneo.pl/48275120;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/48275120/f-pan-materac-original-thermo-140x200-piankowy.jpg","newpage":true,"format":"custom","rating":4.83,"drawchance":1,"urltype":0,"position":26},{"pid":75721327,"name":"Palram Aluminiowe zadaszenie tarasu Sierra 3x5,46m Szare","price":5509.0000,"sprice":"5509,00","url":"https://www.ceneo.pl/75721327;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/75721327/f-palram-aluminiowe-zadaszenie-tarasu-sierra-3x5-46m-szare.jpg","newpage":true,"format":"custom","rating":4.85,"drawchance":1,"urltype":0,"position":27},{"pid":133350627,"name":"Leobert Szafka Łazienkowa Słupek 80Cm8931290","price":58.4400,"sprice":"58,44","url":"https://www.ceneo.pl/133350627;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/133350627/f-leobert-szafka-lazienkowa-slupek-80cm8931290.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":28},{"pid":135192262,"name":"Libro Sofa City 3FBA","price":3649.0000,"sprice":"3649,00","url":"https://www.ceneo.pl/135192262#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/135192262/f-libro-sofa-city-3fba.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":29},{"pid":54040601,"name":"Forte Szafa Jupiter Jpts86 Dąb Sonoma Biały Mat","price":1575.2200,"sprice":"1575,22","url":"https://www.ceneo.pl/54040601;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/54040601/f-forte-szafa-jupiter-jpts86-dab-sonoma-bialy-mat.jpg","newpage":true,"format":"custom","rating":0.5,"drawchance":1,"urltype":0,"position":30},{"pid":133804761,"name":"Easylife Moskitiera Drzwiowa Alu 100x215 Antracyt (000-2122)","price":229.9900,"sprice":"229,99","url":"https://www.ceneo.pl/133804761;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/133804761/f-easylife-moskitiera-drzwiowa-alu-100x215-antracyt-000-2122.jpg","newpage":true,"format":"custom","rating":5.0,"drawchance":1,"urltype":0,"position":31},{"pid":120372137,"name":"Corelle Zestaw Obiadowy Indigo Blooms 16Szt.","price":749.0000,"sprice":"749,00","url":"https://www.ceneo.pl/120372137#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/120372137/f-corelle-zestaw-obiadowy-indigo-blooms-16szt.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":32},{"pid":165913784,"name":"Kubek Stanley Quencher H2.0 Flowstate™ Cream, 1.2 l","price":217.9900,"sprice":"217,99","url":"https://www.ceneo.pl/165913784#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/165913784/f-kubek-stanley-quencher-h2-0-flowstate-cream-1-2-l.jpg","newpage":true,"format":"custom","rating":5.0,"drawchance":1,"urltype":0,"position":33},{"pid":130877497,"name":"Szafka Na Buty Julia 4K K025 Kolor Biały 21247619","price":519.0000,"sprice":"519,00","url":"https://www.ceneo.pl/130877497;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/130877497/f-szafka-na-buty-julia-4k-k025-kolor-bialy-21247619.jpg","newpage":true,"format":"custom","rating":4.75,"drawchance":1,"urltype":0,"position":34},{"pid":52721652,"name":"B2B Partner Kanapa Softy Avokado","price":1488.3000,"sprice":"1488,30","url":"https://www.ceneo.pl/52721652#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/52721652/f-b2b-partner-kanapa-softy-avokado.jpg","newpage":true,"format":"custom","rating":4.33,"drawchance":1,"urltype":0,"position":35},{"pid":78654816,"name":"Hilding Pasodoble 160X200","price":2579.0000,"sprice":"2579,00","url":"https://www.ceneo.pl/78654816;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/78654816/f-hilding-pasodoble-160x200.jpg","newpage":true,"format":"custom","rating":4.74,"drawchance":1,"urltype":0,"position":36},{"pid":114683087,"name":"Zwieger Kompact Zestaw Garnków 6 El","price":399.0000,"sprice":"399,00","url":"https://www.ceneo.pl/114683087;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/114683087/f-zwieger-kompact-zestaw-garnkow-6-el.jpg","newpage":true,"format":"custom","rating":4.77,"drawchance":1,"urltype":0,"position":37},{"pid":98180714,"name":"Costway Wąska szafka łazienkowa boczna (HW53995)","price":239.0000,"sprice":"239,00","url":"https://www.ceneo.pl/98180714;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/98180714/f-costway-waska-szafka-lazienkowa-boczna-hw53995.jpg","newpage":true,"format":"custom","rating":4.5,"drawchance":1,"urltype":0,"position":38},{"pid":114752151,"name":"Signal Fotel Rozkładany Billy Velvet Granatowy","price":1273.0000,"sprice":"1273,00","url":"https://www.ceneo.pl/114752151#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/114752151/f-signal-fotel-rozkladany-billy-velvet-granatowy.jpg","newpage":true,"format":"custom","rating":0.0,"drawchance":1,"urltype":0,"position":39},{"pid":112127710,"name":"Vileda Mop obrotowy TURBO 3w1 Mikrofibra (167751)","price":138.0000,"sprice":"138,00","url":"https://www.ceneo.pl/112127710;basket#pid=28235&crid=690331&cid=47915","imgurl":"//image.ceneostatic.pl/data/products/112127710/f-vileda-mop-obrotowy-turbo-3w1-mikrofibra-167751.jpg","newpage":true,"format":"custom","rating":4.79,"drawchance":1,"urltype":0,"position":40}]; var sum = 40; var result = []; var i = 0, n = 0; for (var n = 0; n < top; n++) { var r = Math.floor(Math.random() * sum); var lsum = 0; for (i = 0; i < productArray.length; i++) { var prod = productArray[i]; lsum += prod.drawchance; if (r < lsum) { sum -= prod.drawchance; result.push(prod); productArray.splice(i, 1); break; } } } return result; } function htmlEncode(value){ var div = document.createElement('div'); var text = document.createTextNode(value); div.appendChild(text); return div.innerHTML; } var html = ''; var products = GetProducts(40); var rows = 10, columns = 4, r = 0, c = 0; html += '
'; for (r = 0; r < rows; r++) { html += '
'; for (c = 0; c < columns; c++) { var idx = (r * columns) + c; var product = products[idx]; if(product){ var rating = Math.round(product.rating * 20); html += '
'; html += '
' html += ''; html += '' + product.name + ''; html += ''; html += product.name + ''; if(product.urltype == 0){ html += ''; html += 'Od ' + product.sprice + ''; } html += '
'; html += '
'; html += '
'; html += '
'; if(product.urltype == 1){ html += ''; html += 'Sprawdź'; } } html += '
'; } html += '
'; } html += '
'; html += ''; html += 'Więcej na Ceneo »'; html += ''; html += ''; html += '
'; html += '
'; try { var _logo = document.getElementById('ceneoaff-logo'); if (_logo != null) { _logo.parentNode.removeChild(_logo); } } catch (err) { } if($CeneoAP.options.ad_onAfterRender != null) $CeneoAP.options.ad_onAfterRender(); document.getElementById('ceneoaffcontainer690331').innerHTML = html; if(false === true){ var hrefs = document.getElementById('ceneoaffcontainer690331').querySelectorAll(".ceneoaff-items a"); for (i = 0; i < hrefs.length; i++) { var href = hrefs[i]; (function(href) { href.addEventListener('click', function(event){ var pid = href.closest('div.ceneoaff-item').getAttribute('data-pid'); var request = '' + "?productId=" + pid + "&creationId=" + $CeneoAP.options.ad_creation + "&referrerUrl=" + encodeURIComponent(window.location); var img = new Image(); img.src = request; }, false); })(href); } var percentage = 0; var trackView = false; if(percentage === 100){ trackView = true; } else{ var rotatorRandomVal = Math.floor((Math.random() * 100) + 1); if(rotatorRandomVal < percentage){ trackView = true; } } if(trackView){ var stamp = parseInt(new Date().getTime()/86400, 10); var img = new Image(); var imgSrc = location.protocol + '' + '&_=' + (new Date).getTime(); img.src = imgSrc.replace(/&/g, '&'); } } }();