/**
 * Initialize Gallery: Tiger Moth
 *
 * $Id: sg_tigermoth_init.js 1088 2010-02-13 23:44:16Z Dave $
 */

var mygallery_tigermoth=new simpleGallery({
    wrapperid: "sg_tigermoth", //ID of main gallery container,
    dimensions: [360, 270], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
    imagearray: [ // "/images/gallery/slides/<name>.jpg", "<url>", "<target>", "<text>"], (no comma on last one)
        ["/gallery/thumbs/0301.jpg", "/showimage/tigermoth/0301", "", ""],
        ["/gallery/thumbs/0302.jpg", "/showimage/tigermoth/0302", "", ""],
        ["/gallery/thumbs/0303.jpg", "/showimage/tigermoth/0303", "", ""],
        ["/gallery/thumbs/0304.jpg", "/showimage/tigermoth/0304", "", ""],
        ["/gallery/thumbs/0305.jpg", "/showimage/tigermoth/0305", "", ""],
        ["/gallery/thumbs/0306.jpg", "/showimage/tigermoth/0306", "", ""],
        ["/gallery/thumbs/0307.jpg", "/showimage/tigermoth/0307", "", ""],
        ["/gallery/thumbs/0308.jpg", "/showimage/tigermoth/0308", "", ""]
    ],
    autoplay: [true, 3000, 10], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
    persist: true, //remember last viewed slide and recall within same session?
    fadeduration: 1000, //transition duration (milliseconds)
    oninit:function(){ //event that fires when gallery has initialized/ ready to run
        //textdiv=document.getElementById("txt_tigermoth")
        //Keyword "this": references current gallery instance (ie: try this.navigate("play/pause"))
    },
    onslide:function(curslide, i){ //event that fires after each slide is shown
        //textdiv.innerHTML=textarray[i]
        //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)
    }
})

