
            var numCells = 3;
            var counter = numCells*-1;
            var img1 = "img/pict1.jpg";
            var imagesArray = [{
                path: "img/all_marketing_logos/pmsz.jpg",
                link: "http://www.pmsz.org/"
            }, {
                path: "img/all_marketing_logos/fovosz.jpg",
                link: "http://www.fovosz.hu/"
            }, {
                path: "img/all_marketing_logos/isaca.jpg",
                link: "https://www.isacahu.com/mainsite/index.php"
            }, {
                path: "img/all_marketing_logos/visz.jpg",
                link: "http://www.mvisz.hu/"
            }, {
                path: "img/all_marketing_logos/bcch_web.jpg",
                link: "http://www.bcch.com/"
            }, {
                path: "img/all_marketing_logos/italian.jpg",
                link: "http://www.cameradicommerciobudapest.com/cciucom/"
            }, {
                path: "img/all_marketing_logos/icc_hungary.jpg",
                link: "http://www.icc.co.hu/"
            }, {
                path: "img/all_marketing_logos/swede.jpg",
                link: "http://www.swedishchamber.hu/"
            }, {
                path: "img/all_marketing_logos/IHBC.jpg",
                link: "http://ihbc.hu/"
            }];
            var inter1 = setInterval(changeImages, 2000);
            function changeImages(){
                counter += 3;
                
                
                if (counter > imagesArray.length - 1) {
                    counter = counter - imagesArray.length;
                };
				
				
                img1Count = counter;
                img2Count = counter + 1;
                img3Count = counter + 2;
				
                if (img1Count > imagesArray.length-1) {
                    img1Count = img1Count - imagesArray.length;
                };
                if (img2Count > imagesArray.length-1) {
                    img2Count = img2Count - imagesArray.length;
                };
                if (img3Count > imagesArray.length-1) {
                    img3Count = img3Count - imagesArray.length ;
                };
               // document.getElementById("nums").innerHTML = img1Count + '<br />' + img2Count + '<br />' + img3Count+ '<br />' + counter;
                document.getElementById("image1").src = imagesArray[img1Count].path;
                document.getElementById("image2").src = imagesArray[img2Count].path;
                document.getElementById("image3").src = imagesArray[img3Count].path;
				
				document.getElementById("link1").href = imagesArray[img1Count].link;
				document.getElementById("link2").href = imagesArray[img2Count].link;
				document.getElementById("link3").href = imagesArray[img3Count].link;
                
                
                
            };
            //document.write("<img src=" + imagesArray[8].path + " alt='' />");
      
