/*Load these images for slideshow*/

var mygallery=new simpleGallery({
	wrapperid: "simplegallery1", //ID of main gallery container,
	dimensions: [215, 340], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
	["../images/shop/0_tauranga.png", "", "", ""],//0
	["../images/shop/1_whangarei.png", "", "", ""],//1
	["../images/shop/2_greenhithe.png", "", "", ""],//2
	["../images/shop/3_birkenhead.png", "", "", ""],//3
	["images/shop/4_waihi.png", "", "", ""],//4
	["images/shop/5_tauranga.png", "", "", ""],//5
	["images/shop/6_papamoa.png", "", "", ""],//6
	["images/shop/7_whakatane.png", "", "", ""],//7
	["images/shop/8_cambridge.png", "", "", ""],//8
	["images/shop/9_teawamutu.png", "", "", ""],//9
	["images/shop/10_tokoroa.png", "", "", ""],//10
	["images/shop/11_taupo.png", "", "", ""],//11
	["images/shop/12_clive.png", "", "", ""],//12
	["images/shop/13_taradale.png", "", "", ""],//13
	["images/shop/14_hastings.png", "", "", ""],//14
	["images/shop/15_norsewood.png", "", "", ""],//15
	["images/shop/16_palmerston.png", "", "", ""],//16
	["images/shop/17_foxton.png", "", "", ""],//17
	["images/shop/18_blenheim.png", "", "", ""],//18
	["images/shop/19_motueka.png", "", "", ""],//19
	["images/shop/20_nelson.png", "", "", ""],//20
	["images/shop/21_greymouth.png", "", "", ""],//21
	["images/shop/22_lincolnroad.png", "", "", ""],//22
	["images/shop/23_rangiora.png", "", "", ""],//23
	["images/shop/24_newbrighton.png", "", "", ""],//24
	["images/shop/25_stanmoreroad.png", "", "", ""],//25
	["images/shop/26_oamaru.png", "", "", ""],//26
	["images/shop/27_timaru.png", "", "", ""],//27 
	["images/shop/28_invercargill.png", "", "", ""],//28
	["images/shop/29_ashburton.png", "", "", ""],//29
	["images/shop/30_pukekohe.png", "", "", ""],//30
	["images/shop/31_fitzroy.png", "", "", ""],//31
	["images/shop/32_hamilton.png", "", "", ""],//32
	["images/shop/33_hamiltoneast.png", "", "", ""]//33
	//last one does not need a comma at the end
	],
	autoplay: [true, 2500, 100], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
	randomplay: [true],
	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)
	}
})