var mygallery=new simpleGallery({
wrapperid: "simplegallery", //ID of main gallery container,
dimensions: [520, 390], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
imagearray: [
["simplegallery/33.jpg", "", "", ""],
["simplegallery/34.jpg", "", "", ""],
["simplegallery/35.jpg", "", "", ""],
["simplegallery/36.jpg", "", "", ""],
["simplegallery/37.jpg", "", "", ""],
["simplegallery/18.jpg", "", "", ""],
["simplegallery/1.jpg", "", "", ""],
["simplegallery/31.jpg", "", "", ""],
["simplegallery/32.jpg", "", "", ""],
["simplegallery/2.jpg", "", "", ""],
["simplegallery/3.jpg", "", "", ""],
["simplegallery/4.jpg", "", "", ""],
["simplegallery/10.jpg", "", "", ""],
["simplegallery/5.jpg", "", "", ""],
["simplegallery/17.jpg", "", "", ""],
["simplegallery/11.jpg", "", "", ""],
["simplegallery/20.jpg", "", "", ""],
["simplegallery/12.jpg", "", "", ""],
["simplegallery/13.jpg", "", "", ""],
["simplegallery/16.jpg", "", "", ""],
["simplegallery/19.jpg", "", "", ""],
["simplegallery/6.jpg", "", "", ""],
["simplegallery/7.jpg", "", "", ""],
["simplegallery/14.jpg", "", "", ""],
["simplegallery/15.jpg", "", "", ""],
["simplegallery/8.jpg", "", "", ""],
["simplegallery/9.jpg", "", "", ""]
],
autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
persist: true,
fadeduration: 1000, //transition duration (milliseconds)
oninit:function(){ //event that fires when gallery has initialized/ ready to run
},
onslide:function(curslide, i){ //event that fires after each slide is shown
//curslide: returns DOM reference to current slide's DIV (ie: try alert(curslide.innerHTML)
//i: integer reflecting current image within collection being shown (0=1st image, 1=2nd etc)
}
})