/***********************************************
* Simple Controls Gallery- (c) Dynamic Drive DHTML code library (www.dynamicdrive.com)
* This notice MUST stay intact for legal use
* Visit Dynamic Drive at http://www.dynamicdrive.com/ for this script and 100s more
***********************************************/


var mygallery=new simpleGallery({
	wrapperid: "simplegallery", //ID of main gallery container,
	dimensions: [540, 314], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["images/galleryimages/a.jpg", "", "", "PESPA Officers in a meeting with Secretary Jesli A. Lapus on the eve of his last day of Office"],
		["images/galleryimages/b.jpg", "", "", "PESPA President Dr. Franklin B. Marcelo, 2nd (from left) with NP Senatorial Candidate Gilbert Remulla, Mar and Milo during the 29th PDP-NBC at San Jose, Occidental Mindoro"],
		["images/galleryimages/c.jpg", "", "", "Dr. Franklin B. Marcelo, PESPA President (extreme right) with other officers during the 28th PDP-NBC at Roxas City, Capiz"],
		["images/galleryimages/d.jpg", "", "", "PESPA Officers with Dr. Franklin B. Marcelo (3rd from left)"],
		["images/galleryimages/e.jpg", "", "", "Dr. Franklin B. Marcelo, incumbent PESPA President and Dr. Erico M. Habijan, immediate past president"],
		["images/galleryimages/f.jpg", "", "", "The participants during the session"],
		["images/galleryimages/g.jpg", "", "", "29th PDP-NBC held at San Jose, Occidental Mindoro"],
		["images/galleryimages/h.jpg", "", "", "3rd PESPA Luzon Chapter Summit for Elementary School Heads held at Narciso Ramos Civic <br/> and Sports Complex, Lingayen, Pangasinan on May 18-20, 2010."],
		["images/galleryimages/i.jpg", "", "", "DepED Secretary Mona D. Valisno with Dr. Franklin B. Marcelo and other PESPA Officers <br/> and Board Members during the 3rd PESPA Luzon Chapter Summit in Pangasinan."],
	],
	autoplay: [true, 6000, 2], //[auto_play_boolean, delay_btw_slide_millisec, cycles_before_stopping_int]
	persist: false, //remember last viewed slide and recall within same session?
	fadeduration: 1000, //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)
	}
})
