﻿// ==========================================
//  AANPASSEN VAN DOORZICHTIGHEID VAN OBJECT 
// ==========================================
 function changeOpac(opacity, id) {
  var object = document.getElementById(id).style;
  object.opacity = (opacity / 100);
  object.MozOpacity = (opacity / 100);
  object.KhtmlOpacity = (opacity / 100);
  object.filter = "alpha(opacity=" + opacity + ")";
 } 

// ================================ 
//  CIRCULEREN DOOR PHOTOBAR FOTOS 
// ================================
	function photobarCircle() {
		// FOTOS WEERGEVEN
		for(i=0;i < photobarArray.length;i++) {
			setTimeout("photobarDisplay("+i+")", (i * 5000));
		}
		
		// RECURSIEVE AANROEP
		setTimeout("photobarCircle()", (i * 5000));
	}
 
// ========================
//  WEERGEVEN VAN PHOTOBAR 
// ========================
 function photobarDisplay(photoIndex) {
  // ITEM WEERGEVEN OP ACHTERGROND
   changeOpac(100, 'photobarForeground');
   document.getElementById("photobarBackground").style.backgroundImage="url('lstssdata/?f="+photobarArray[photoIndex]+"&width=120&special=photobar')";
   
  // ITEM FADEN
   for(i=0;i <= 20;i++) {
    setTimeout("changeOpac("+5*(10 - i)+", 'photobarForeground')", (60 * i));
   }
  
  // ITEM NAAR VOORGROND ZETTEN  
   setTimeout("document.getElementById('photobarForeground').style.backgroundImage=\"url('lstssdata/?f="+photobarArray[photoIndex]+"&width=120&special=photobar')\"", (11 * 100));
 }