if (typeof document.getElementsByClassName != "function") { document.getElementsByClassName = function (searchClass,node,tag) { node = node || document; tag = tag || '*'; var classElements = [], els = node.getElementsByTagName(tag), elsLen = els.length, pattern = new RegExp("(^|\\s)"+searchClass+"(\\s|$)"), i, j = 0; for (i = 0; i < elsLen; i++) { if (pattern.test(els[i].className)) { classElements[j] = els[i]; j++; } } return classElements; } } if (typeof writeToClass != "function") { var writeToClass = function (className, data) { var elements = [], i; elements = document.getElementsByClassName(className); for(i = 0; i < elements.length; i++) { elements[i].innerHTML = ''; elements[i].innerHTML = data; } }; } if (typeof changeFVd0FPBEd400002 != "function") { var changeFVd0FPBEd400002 = function (num) { if (num == 0) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Sony akumulátor NP-F970'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Sony akumulátor NP-F970'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 5 890 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(1);", 3000); // pause for x seconds } if (num == 1) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus krytka PRLC-03'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus krytka PRLC-03'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 490 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(2);", 3000); // pause for x seconds } if (num == 2) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus ZUIKO 35-100mm f/2,0 EZ-P3510'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus ZUIKO 35-100mm f/2,0 EZ-P3510'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 67 590 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(3);", 3000); // pause for x seconds } if (num == 3) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Velbon P-MAX'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Velbon P-MAX'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 1 990 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(4);", 3000); // pause for x seconds } if (num == 4) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Canon EF-S 60mm f/2,8 Macro USM'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Canon EF-S 60mm f/2,8 Macro USM'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 11 990 Kč '+ 'Skladem 4ks'); setTimeout( "changeFVd0FPBEd400002(5);", 3000); // pause for x seconds } if (num == 5) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus popruh Neckstrap Silver'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus popruh Neckstrap Silver'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 790 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(6);", 3000); // pause for x seconds } if (num == 6) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus krytka PRLC-02'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus krytka PRLC-02'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 390 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(7);", 3000); // pause for x seconds } if (num == 7) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Canon EF 100mm f/2,0 USM'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Canon EF 100mm f/2,0 USM'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 12 690 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(8);", 3000); // pause for x seconds } if (num == 8) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Nikon bateriový grip MB-D200'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Nikon bateriový grip MB-D200'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 7 590 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(9);", 3000); // pause for x seconds } if (num == 9) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Canon EF 85mm f/1,8 USM'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Canon EF 85mm f/1,8 USM'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 10 790 Kč '+ 'Skladem >5ks'); setTimeout( "changeFVd0FPBEd400002(10);", 3000); // pause for x seconds } if (num == 10) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Canon telepředsádka TC-DC58A'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Canon telepředsádka TC-DC58A'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 9 990 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(11);", 3000); // pause for x seconds } if (num == 11) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus E-system matnice AS-FS1'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus E-system matnice AS-FS1'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 1 790 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(12);", 3000); // pause for x seconds } if (num == 12) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus stínítko displeje PFUD-05'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus stínítko displeje PFUD-05'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 390 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(13);", 3000); // pause for x seconds } if (num == 13) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus E-system clona LH-120B'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus E-system clona LH-120B'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 16 290 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(14);", 3000); // pause for x seconds } if (num == 14) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Nikon 135mm f/2,0 AF DC-NIKKOR D A'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Nikon 135mm f/2,0 AF DC-NIKKOR D A'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 38 490 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(15);", 3000); // pause for x seconds } if (num == 15) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Sigma 800mm f/5,6 APO EX DG HSM pro Canon'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Sigma 800mm f/5,6 APO EX DG HSM pro Canon'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 156 090 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(16);", 3000); // pause for x seconds } if (num == 16) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus E-system krytka LC-77'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus E-system krytka LC-77'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 390 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(17);", 3000); // pause for x seconds } if (num == 17) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Sony pouzdro LCS-SA/L'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Sony pouzdro LCS-SA/L'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 590 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(18);", 3000); // pause for x seconds } if (num == 18) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Nikon 17-35mm f/2,8 AF-S NIKKOR IF-ED s HB-23 / CL-76'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Nikon 17-35mm f/2,8 AF-S NIKKOR IF-ED s HB-23 / CL-76'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 51 990 Kč '+ 'Na dotaz'); setTimeout( "changeFVd0FPBEd400002(19);", 3000); // pause for x seconds } if (num == 19) { writeToClass('megapixel-headingFVd0FPBEd4000020', 'Olympus akumulátor Li-42B'); writeToClass('megapixel-headingFVd0FPBEd4000020-w', 'Olympus akumulátor Li-42B'); writeToClass('megapixel-pFVd0FPBEd4000020', 'za skvělou cenu 1 490 Kč '+ 'Skladem 2ks'); setTimeout( "changeFVd0FPBEd400002(0);", 3000); // pause for x seconds } } } randomnumber=Math.floor(Math.random()*(20)) changeFVd0FPBEd400002(randomnumber);