	 // slightly modified version of Remco van 't Veer's image slideshow script at http://blog.remvee.net/post/17
 
    function Slideshow(slideshow, timeout) {
		Element.hide(slideshow);
	    this.slides = [];
    	var nl = $(slideshow).getElementsByTagName('p');
	    for (var i = 0; i < nl.length; i++) {
    	  if (Element.hasClassName(nl[i], 'blurb')) {
	        this.slides.push(nl[i]);
			Element.hide(nl[i]);
    	  }
	    }
		this.timeout = timeout;
    	this.current = this.slides.length-1;
	    Element.show(slideshow);
        setTimeout((function(){this.next();}).bind(this), 0);
	  }
	
	Slideshow.prototype = {
	    next: function() {
//		Element.hide(this.slides[this.old]);
		if (this.current < 0)
			return;
		Effect.SlideDown(this.slides[this.current], {});
		this.current = (this.current - 1) % this.slides.length;
    	setTimeout((function(){this.next();}).bind(this), this.timeout + 50);
     	}
	  }  
	  new Slideshow('blurbs', 1500);