			var idsToBeUpdated = '';
			var bisBannersArr = new Array();
			var topBannersArr = new Array();
			var bisBannerOrders = new Array();
			var topBannerOrder = '';
			var numBisBanners = 0;
			var numTopBanners = 0;
			var tellerBis = 0;
			var tellerTop = 0;
			
			function initTopBanners()
			{
				topBannerOrder = ':'+topBannersArr.join(':');
				numTopBanners = topBannersArr.length;
			}

			function initBisBanners()
			{
				numBisBanners = bisBannersArr.length;
				var tmpArr = bisBannersArr;
				if (numBisBanners > 0) { bisBannerOrders[0] = ':'+bisBannersArr.join(':'); }
				if (numBisBanners > 1) { tmpId = tmpArr.shift(); nothing = tmpArr.push(tmpId) ;bisBannerOrders[1] = ':'+tmpArr.join(':'); }
				if (numBisBanners > 2) { tmpId = tmpArr.shift(); nothing = tmpArr.push(tmpId) ;bisBannerOrders[2] = ':'+tmpArr.join(); }
				if (numBisBanners > 3) { tmpId = tmpArr.shift(); nothing = tmpArr.push(tmpId) ;bisBannerOrders[3] = ':'+tmpArr.join(); }
			}

			function updateViews()
			{
				idsToBeUpdated = '';
				
				if ((tellerBis > 0) && (numBisBanners > 1))
				{
					if (numBisBanners < 5) { idsToBeUpdated += bisBannersArr.join(':'); }
					else
					{
						idsToBeUpdated = bisBannerOrders[0].charAt(1+2*(tellerBis-1)) + ':' + bisBannerOrders[1].charAt(1+2*(tellerBis-1)) + ':' + bisBannerOrders[2].charAt(1+2*(tellerBis-1))  + ':' + bisBannerOrders[3].charAt(1+2*(tellerBis-1));
					}
				}
				if ((tellerTop > 0) && (numTopBanners > 1))
				{
					if (idsToBeUpdated) { idsToBeUpdated += ':'; }
					idsToBeUpdated += topBannerOrder.charAt(1+2*(tellerTop-1));
				}
			
				tellerBis++;
				tellerTop++;
				if (tellerBis > numBisBanners) { tellerBis = 1; }
				if (tellerTop > numTopBanners) { tellerTop = 1; }
				
				if (idsToBeUpdated)
				{
					jQuery.post('http://www.apzi.be/banners/viewcount.phtml', { ids:idsToBeUpdated });
				}
			}

