// JavaScript Document

var mygallery=new simpleGallery({
	wrapperid: "simplegallery1", //ID of main gallery container,
	dimensions: [669, 351], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["/media/images/aida_santiago.jpg", "/student-stories/Aida_Santiago.html", "_new", "APNN program, Aida Santiago - Click to read her story..."],
		["/media/images/Patrick_Hopkins3.jpg", "/student-stories/Patrick_Hopkins.html", "_new", "Doctor of Nursing Practice, Patrick Hopkins, MS, C-PNP, NNP, RNC - Click to read his story..."],
		["/media/images/Meghan_Aldrich.jpg", "/student-stories/Meg_Aldrich.html", "_new", "M.S.-Ph.D. Program, Meghan Aldrich, MS, CPNP - Click to read her story..."],
		["/media/images/Lonnie_Pollocks.jpg", "/student-stories/Lonnie_Pollacks.html", "_new", "APNN program, Lonnie Pollocks - Click to read his story..."],
		["/media/images/Sandra_Cosman.jpg", "/student-stories/Sandra_Cosman.html", "_new", "RN to BS program, Sandra Cosman, RN - Click to read her story..."],
		["/media/images/Tamala_David.jpg", "/student-stories/Tamala_David.html", "_new", "MS-Ph.D program, Tamala David - Click to read her story..."],
		["/media/images/Ida_Zarate.jpg", "/student-stories/Iduvina_Zarate.html", "_new", "Acute Care Nurse Practitioner Program, Iduvina Zarate, RN, ACNP - Click to read her story..."],	
		["/media/images/karilee_bingam.jpg", "/student-stories/karilee_bingham.html", "_new", "Family Nurse Practitioner Program, Karilee Bingham, RN, BS - Click to read her story..."]	
	],
	autoplay: [true, 5000, 99], //[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)
	}
})

