// JavaScript Document
var mygallery=new simpleGallery({
	wrapperid: "top-img", //ID of main gallery container,
	dimensions: [700, 350], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["./gallery/shop5.jpg", "", "", ""],
		["./gallery/jazz1.jpg", "", "", ""],
		["./gallery/jazz2.jpg", "", "", ""],
		["./gallery/shop1.jpg", "", "", ""],
		["./gallery/jazz3.jpg", "", "", ""],
		["./gallery/food1.jpg", "", "", ""],
		["./gallery/food2.jpg", "", "", ""],
		["./gallery/shop2.jpg", "", "", ""],
		["./gallery/food3.jpg", "", "", ""],
		["./gallery/shop4.jpg", "", "", ""],
		["./gallery/food4.jpg", "", "", ""]
	],
	autoplay: [true, 6000, 20], //[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)
	}
})

