/**
 * Initialize Gallery: The Flight
 *
 * $Id: sg_flight_init.js 1088 2010-02-13 23:44:16Z Dave $
 */

var mygallery_flight=new simpleGallery({
    wrapperid: "sg_flight", //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/0101.jpg", "/showimage/flight/0101", "", ""],
        ["/gallery/thumbs/0102.jpg", "/showimage/flight/0102", "", ""],
        ["/gallery/thumbs/0103.jpg", "/showimage/flight/0103", "", ""],
        ["/gallery/thumbs/0104.jpg", "/showimage/flight/0104", "", ""],
        ["/gallery/thumbs/0105.jpg", "/showimage/flight/0105", "", ""],
        ["/gallery/thumbs/0106.jpg", "/showimage/flight/0106", "", ""],
        ["/gallery/thumbs/0107.jpg", "/showimage/flight/0107", "", ""],
        ["/gallery/thumbs/0108.jpg", "/showimage/flight/0108", "", ""],
        ["/gallery/thumbs/0109.jpg", "/showimage/flight/0109", "", ""],
        ["/gallery/thumbs/0110.jpg", "/showimage/flight/0110", "", ""],
        ["/gallery/thumbs/0111.jpg", "/showimage/flight/0111", "", ""],
        ["/gallery/thumbs/0112.jpg", "/showimage/flight/0112", "", ""],
        ["/gallery/thumbs/0113.jpg", "/showimage/flight/0113", "", ""],
        ["/gallery/thumbs/0114.jpg", "/showimage/flight/0114", "", ""],
        ["/gallery/thumbs/0115.jpg", "/showimage/flight/0115", "", ""],
        ["/gallery/thumbs/0116.jpg", "/showimage/flight/0116", "", ""],
        ["/gallery/thumbs/0117.jpg", "/showimage/flight/0117", "", ""],
        ["/gallery/thumbs/0118.jpg", "/showimage/flight/0118", "", ""]
    ],
    autoplay: [true, 3000, 99], //[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
        //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)
    }
})
