// done in calling page:
//var slideshow_width=240
//var slideshow_height=240
//var pause = 5000; //msec
//var speed = 5; // 10 = slick; 5 = gentle;
//var repeatForever=true

//var fadeimages=new Array()
//fadeimages[0]="../photos/test1.jpg"
//var imagecaptions=new Array()  //CAPTIONS ARE OPTIONAL
//imagecaptions[0]="this is number one"  //CAPTIONS ARE OPTIONAL



var ie4=document.all
var dom=document.getElementById

if (ie4||dom)
document.write('<div style="position:relative;width:'+slideshow_width+'px;height:'+slideshow_height+'px;overflow:hidden"><div id="canvas0" style="position:absolute;width:'+slideshow_width+'px;height:'+slideshow_height+'px;top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div><div id="canvas1" style="position:absolute;width:'+slideshow_width+'px;height:'+slideshow_height+'px;top:0;left:0;filter:alpha(opacity=10);-moz-opacity:10"></div></div>')
else
document.write('<img name="defaultslide" src="'+fadeimages[0]+'" GALLERYIMG="no">')

var curpos=speed
var curcanvas="canvas0"
var curimageindex=startPic
var nextimageindex=startPic+1

/*
  //
  //CE changed startit to DelayStart --> CheckReady --> startit
  //
if (ie4||dom)
  window.onload=DelayStart
else
  setInterval("rotateimage()",pause)
*/

//if not (ie4||dom) setInterval("rotateimage()",pause)


