// JavaScript Document

var mygallery=new simpleGallery({
	wrapperid: "simplegallery1", //ID of main gallery container,
	dimensions: [800, 400], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["../tour/1.jpg", "", "", ""],
		["../tour/2.jpg", "", "", ""],
		["../tour/3.jpg", "", "", ""],
		["../tour/4.jpg", "", "", ""],
		["../tour/5.jpg", "", "", ""],
		["../tour/6.jpg", "", "", ""],
		["../tour/7.jpg", "", "", ""],
		["../tour/8.jpg", "", "", ""],
		["../tour/9.jpg", "", "", ""],
		["../tour/15.jpg", "", "", ""],
		["../tour/16.jpg", "", "", ""],
		["../tour/17.jpg", "", "", ""],
		["../tour/18.jpg", "", "", ""],
		["../tour/19.jpg", "", "", ""],
		["../tour/20.jpg", "", "", ""],
		["../tour/21.jpg", "", "", ""]
	],
	autoplay: [true, 5000, 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)
	}
})