// Slideshow function
function slideshow(start,last,interval) {
  if ($('bildspel1')) {
	  var frame = start;
    var nextframe = start+1;
    Effect.Appear('bildspel1',{duration:1,from:0.0,to:1.0});
      setInterval(function() {
      Effect.Fade('bildspel'+frame,{duration:.5,from:1.0,to:0.0,afterFinish:function(){
      $('bildspel'+frame).hide();
      Effect.Appear('bildspel'+nextframe,{duration:1,from:0.0,to:1.0});
      frame = nextframe;
      nextframe = (frame == last) ? start : nextframe+1;
      }});
    },interval);
	}
  return;
};
