/*!
* VLC Slideshow Customizations
* The parts you can customize are the following
* 'speed' sets the speed of the transitions in milliseconds (1000 by default)
* 'timeout' sets the waiting period before a transition (3000 by default)
*/
 var stack = []; 
 // preload images into an array; we will 3.jpg - 11.jpg 
 for (var i = 3; i < 12; i++) { 
     var img = new Image(); 
     img.src = 'http://www.vancouverlakecrew.com/images/slideshow/' + i + '.jpg'; 
     $(img).bind('load', function() { 
         stack.push(this); 
     }); 
 }  
 // start slideshow 
 $('.slideshow').cycle({ 
	 speed: 	1000,
     timeout:  3000,
     before:   onBefore
 }); 
 // add images to slideshow 
 function onBefore(curr, next, opts) { 
     if (opts.addSlide)
         while(stack.length) 
             opts.addSlide(stack.pop());  
 };
