var mygallery=new simpleGallery({ wrapperid: "photogallery", //ID of main gallery container, dimensions: [500, 500], //width/height of gallery in pixels. Should reflect dimensions of the images exactly imagearray: [ ["/photo_gallery/photo_15132_1.jpg", "", "", ""], ["/photo_gallery/photo_15132_2.jpg", "", "", ""], ["/photo_gallery/photo_15132_3.jpg", "", "", ""], ["/photo_gallery/photo_15132_4.jpg", "", "", ""], ["/photo_gallery/photo_15132_5.jpg", "", "", ""], ["/photo_gallery/photo_15132_6.jpg", "", "", ""], ["/photo_gallery/photo_15132_7.jpg", "", "", ""], ["/photo_gallery/photo_15132_8.jpg", "", "", ""], ["/photo_gallery/photo_15132_9.jpg", "", "", ""], ["/photo_gallery/photo_15132_10.jpg", "", "", ""], ["/photo_gallery/photo_15132_11.jpg", "", "", ""], ["/photo_gallery/photo_15132_12.jpg", "", "", ""], ["/photo_gallery/photo_15132_13.jpg", "", "", ""], ["/photo_gallery/photo_15132_14.jpg", "", "", ""], ["/photo_gallery/photo_15132_15.jpg", "", "", ""], ["/photo_gallery/photo_15132_16.jpg", "", "", ""], ["/photo_gallery/photo_15132_17.jpg", "", "", ""], ["/photo_gallery/photo_15132_18.jpg", "", "", ""], ["/photo_gallery/photo_15132_19.jpg", "", "", ""], ["/photo_gallery/photo_15132_20.jpg", "", "", ""], ["/photo_gallery/photo_15132_21.jpg", "", "", ""], ["/photo_gallery/photo_15132_22.jpg", "", "", ""], ["/photo_gallery/photo_15132_23.jpg", "", "", ""], ["/photo_gallery/photo_15132_24.jpg", "", "", ""], ["/photo_gallery/photo_15132_25.jpg", "", "", ""], ["/photo_gallery/photo_15132_26.jpg", "", "", ""] ], autoplay: [true, 2500, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int] persist: false, //remember last viewed slide and recall within same session? fadeduration: 500, //transition duration (milliseconds) oninit:function(){ //event that fires when gallery has initialized/ ready to run //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause")) }, onslide:function(curslide, i){ //event that fires after each slide is shown //Keyword "this": references current gallery instance //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) } })