// JavaScript Document

var mygallery=new simpleGallery({
	wrapperid: "simplegallery1", //ID of main gallery container,
	dimensions: [400, 300], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["images/homeimages/rotatingimages/rotatingimage_1.jpg", "http://eventsavvyco.com/gallery-eventsavvywedding2009103_2.html", "", "Something Blue"],
		["images/homeimages/rotatingimages/rotatingimage_2.jpg", "http://eventsavvyco.com/gallery-eventsavvywedding2009103_2.html", "", "Reception Table Set Up"],
		["images/homeimages/rotatingimages/rotatingimage_3.jpg", "http://eventsavvyco.com/gallery-eventsavvywedding20090627.html", "", "Beach Wedding Setup"],
		["images/homeimages/rotatingimages/rotatingimage_4.jpg", "http://eventsavvyco.com/gallery-eventsavvywedding20090627.html", "", "Just Married"],
		["images/homeimages/rotatingimages/rotatingimage_5.jpg", "http://eventsavvyco.com/gallery-eventsavvywedding20080802_2.html", "", "A Kiss"],
		["images/homeimages/rotatingimages/rotatingimage_6.jpg", "http://eventsavvyco.com/gallery-eventsavvywedding20080802.html", "", "The Boutonniere"],
		["images/homeimages/rotatingimages/rotatingimage_7.jpg", "http://eventsavvyco.com/gallery-eventsavvyanniversary20090212.html", "", "Anniversary Party"],
		["images/homeimages/rotatingimages/rotatingimage_8.jpg", "http://eventsavvyco.com/gallery-eventsavvyanniversary20090212.html", "", "Anniversary Party"]
		
		//["image url goes here", "a href goes here", "_new window or target blank", "Description goes here."],
	],
	autoplay: [true, 2500, 2], //[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)
	}
})
