// JavaScript Document
var mygallery=new simpleGallery({
	wrapperid: "graphic", //ID of main gallery container,
	dimensions: [896, 340], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["./gallery/sgw/01.jpg", "sgw/film/sgw2.html", "", ""],
		["./gallery/sgw/02.jpg", "sgw/film/sgw2.html", "", ""],
		["./gallery/sgw/03.jpg", "sgw/film/sgw2.html", "", ""],
		["./gallery/sgw/04.jpg", "sgw/film/sgw.html", "", ""],
		["./gallery/sgw/05.jpg", "sgw/film/sgw.html", "", ""],
		["./gallery/sgw/06.jpg", "sgw/film/sgw2.html", "", ""],
		["./gallery/sgw/07.jpg", "sgw/film/sgw.html", "", ""],
		["./gallery/sgw/08.jpg", "sgw/film/sgw2.html", "", ""],
		["./gallery/sgw/09.jpg", "sgw/film/sgw2.html", "", ""],
		["./gallery/sgw/10.jpg", "sgw/film/sgw.html", "", ""],
		["./gallery/sgw/11.jpg", "sgw/film/sgw.html", "", ""],
		["./gallery/sgw/12.jpg", "sgw/film/sgw.html", "", ""]
	],
	autoplay: [true, 6000, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
	persist: true,
	fadeduration: 500, //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)
	}
})

