/***********************************************
* 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 slidetext=[
"<div class=\"slide-title\">HIGHLAND DANCING</div><div class=\"slide-text\">Admire the elegance and athleticism of the highland dancing...</div>",
"<div class=\"slide-title\">HAMMER THROW</div><div class=\"slide-text\">These hammers are no ordinary tools for building houses. They weigh up to 22lbs and fly through the air over distances of 80 feet.</div>",
"<div class=\"slide-title\">HEAVY EVENTS</div><div class=\"slide-text\">Not for the overly undersized.</div>",
"<div class=\"slide-title\">MASSED PIPES &amp; DRUMS</div><div class=\"slide-text\">Take in the magic and excitement of the massed pipes and drums ...</div>",
"<div class=\"slide-title\">MEDIEVAL BATTLES</div><div class=\"slide-text\">The Society for Creative Anachronism perform realistic battle re-enactments as you might have seen in the days of William Wallace.</div>",
"<div class=\"slide-title\">BAGPIPERS</div><div class=\"slide-text\">Many of the bagpipes played at the games are over 100 years old.</div>",
"<div class=\"slide-title\">CABER TOSS</div><div class=\"slide-text\">The caber toss has always been a fan-favourite and is much harder than it looks.</div>",
"<div class=\"slide-title\">CEILIDH CABARET</div><div class=\"slide-text\">The evening party pronoucned 'kay-lee' in Scottish is a great way to visit with friends and meet new ones.</div>",
"<div class=\"slide-title\">PIPE BANDS</div><div class=\"slide-text\">Pipe bands from across the prairies compete during the afternoon playing a mixture of traditional and contemporary Scottish tunes.</div>",
"<div class=\"slide-title\">DANCING</div><div class=\"slide-text\">Highland dancers wear an assortment of bright colors and change their costume depending on the dance.</div>",
"<div class=\"slide-title\">DANCING</div><div class=\"slide-text\">Grace and posture are some of the many elements judges look for in crowning the champion dancers.</div>",
"<div class=\"slide-title\">HIGHLAND REEL</div><div class=\"slide-text\">It takes four dancers to fill in the spots required for dancing a highland reel.</div>",
"<div class=\"slide-title\">DRUM MAJOR</div><div class=\"slide-text\">The drum major is the key leader for the massed pipes and drums. He gives the commands to start and stop and directs the group where to march.</div>",
"<div class=\"slide-title\">DOG FRIENDLY</div><div class=\"slide-text\">Even dogs get to enjoy the sites and sounds of Scotland at the highland games. Don't expect any sheep for them to chase.</div>",
"<div class=\"slide-title\">MASSED BANDS</div><div class=\"slide-text\">The massed pipes and drums include all bands in attendance at the games.</div>",
"<div class=\"slide-title\">HEAVY EQUIPMENT</div><div class=\"slide-text\">Weights of various sizes make up the challenges posed to our heavy event athletes.</div>",
"<div class=\"slide-title\">TRANSPORTATION</div><div class=\"slide-text\">Getting to the games can take various modes of transport, even in a kilt.</div>",
"<div class=\"slide-title\">MASSED BANDS</div><div class=\"slide-text\">The mix of kilt colors, instruments and marching all add up to a spectacular display of Scottish regalia.</div>",
"<div class=\"slide-title\">STAGING</div><div class=\"slide-text\">A group of dancers of the same age group wait around for their turn to dance next.</div>",
"<div class=\"slide-title\">DANCING FEET</div><div class=\"slide-text\">A pair of highland dance slippers.</div>",
"<div class=\"slide-title\">WEIGHT FOR HEIGHT</div><div class=\"slide-text\">Please do not try throwing this weight at home, unless you can throw it high above your head.</div>",
"<div class=\"slide-title\">PIPERS</div><div class=\"slide-text\">During competitions, pipe bands beging their selection with two 3-pace drum rolls called an 'attack'. Pipers lead the band into a circle followed by the drummers.</div>",
"<div class=\"slide-title\">SPECTATORS</div><div class=\"slide-text\">Spectators bring lawn chairs and blankets when enjoying the afternoon to watch the various events.</div>",
"<div class=\"slide-title\">VENDORS MARKET</div><div class=\"slide-text\">Shop around at the different Scottish vendors in attendance. Buy your clan badge and tie, or even a kilt to match if you dare!</div>"
]

var mygallery=new simpleGallery({
	wrapperid: "simplegallery1", //ID of main gallery container,
	dimensions: [467, 310], //width/height of gallery in pixels. Should reflect dimensions of the images exactly
	imagearray: [
		["images/slideshow/dancing-slide.jpg", "highland-dancing.html", "", ""],
		["images/slideshow/heavy-events.jpg", "heavy-events.html", "", ""],
		["images/slideshow/heavy-events2.jpg", "heavy-events.html", "", ""],
		["images/slideshow/massed-pipes-drums-slide.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/medieval-battle-slide.jpg", "schedule.html", "", ""],
		["images/slideshow/bagpipe-pic.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/caber-toss.jpg", "heavy-events.html", "", ""],
		["images/slideshow/ceilidh1.jpg", "ceilidh-cabaret.html", "", ""],
		["images/slideshow/conservatory-pipe-band.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/dancer-red.jpg", "highland-dancing.html", "", ""],
		["images/slideshow/dancer-upright.jpg", "highland-dancing.html", "", ""],
		["images/slideshow/dancers-line2.jpg", "highland-dancing.html", "", ""],
		["images/slideshow/drum-major.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/dog-slide.jpg", "", "", ""],
		["images/slideshow/edmonton-district.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/heavy-events-equipment.jpg", "heavy-events.html", "", ""],
		["images/slideshow/kilt-bike.jpg", "ceilidh-cabaret.html", "", ""],
		["images/slideshow/massed-bands1.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/dancers-staging.jpg", "highland-dancing.html", "", ""],
		["images/slideshow/dancing-feet.jpg", "highland-dancing.html", "", ""],
		["images/slideshow/neil-weight-for-height-slide2.jpg", "heavy-events.html", "", ""],
		["images/slideshow/pipers1.jpg", "piping-drumming.html", "", ""],
		["images/slideshow/spectators1.jpg", "", "", ""],
		["images/slideshow/vendors-market2.jpg", "vendors-market.html", "", ""]
	],
	autoplay: [true, 8000, 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
	slidediv=document.getElementById("myslide")
		//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)
	slidediv.innerHTML=slidetext[i]
	}
})