// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000

// Duration of crossfade (seconds)
var crossFadeDuration = 2

// Specify the image files
var Pic = new Array() // don't touch this
// to add more images, just continue
// the pattern, adding to the array below
Pic[0] = 'images/top_breakz/viaduct.jpg'
Pic[1] = 'images/top_breakz/metro.jpg'
Pic[2] = 'images/top_breakz/garage2.jpg'
Pic[3] = 'images/top_breakz/garage.jpg'
Pic[4] = 'images/top_breakz/graffiti.jpg'
Pic[5] = 'images/top_breakz/garage3.jpg'

// =======================================
// do not edit anything below this line
// =======================================

var t
var j = 0
var p = Pic.length

var preLoad = new Array()
for (i = 0; i < p; i++){
   preLoad[i] = new Image()
   preLoad[i].src = Pic[i]
}

function runSlideShowfromindex(){
   if (document.all){
      document.images.SlideShow.style.filter="blendTrans(duration=2)"
      document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)"
      document.images.SlideShow.filters.blendTrans.Apply()      
   }
   document.images.SlideShow.src = preLoad[j].src
   if (document.all){
      document.images.SlideShow.filters.blendTrans.Play()
   }
   j = j + 1
   if (j > (p-1)) j=0
   t = setTimeout('runSlideShowfromindex()', slideShowSpeed)
}



//----------------------------------------------------------------------------------------------------------------------
// ## randomillustratie
// ## Laat random plaatjes zien
// ## de plaatjes heten '1.gif' '2.gif' '3.gif' '4.gif' etc
//----------------------------------------------------------------------------------------------------------------------
function randomillustratie() {
   var getal = parseInt(Math.random() * 5 + 1);
   var imagename = new Image();
   imagename = document.images.homepic;
   var imagepath = "http://www.bijlmerbreakz.com/images/home/";    
   
   if (getal == 0) {
      imagename.src = imagepath + getal + ".jpg";
   }
   
   if (getal == 1) {
      imagename.src = imagepath + getal + ".jpg";
   }
   
   if (getal == 2) {
      imagename.src = imagepath + getal + ".jpg";
   }
   
   if (getal == 3) {
      imagename.src = imagepath + getal + ".jpg";
   }
   
   if (getal == 4) {
      imagename.src = imagepath + getal + ".jpg";
   }
   
   if (getal == 5) {
      imagename.src = imagepath + getal + ".jpg";
   }
   
}








