$(function() {

// Add galleryimg="no" to all images to stop the IE6 popup on hovering over img
$("div#grid img").attr("galleryimg","no");

	// FX Filters available to choose from are:	
	
	// The Good..
	
	// fade (best)
	// cover (cool - a little jumpy tho')
	// uncover (cool)
	// shuffle (good - but not as expected..)
	// scrollUp / Down / Left / Right / Horz / Vert (all good - a little jumpy tho')
	
	// The Bad..
	
	// toss (*acceptable*)
	
	// & The Ugly..
	
	// fadeZoom (my EYES!)
	// turnUp / Down / Left / Right
	// slideX / SlideY (Zoiks!)
	// curtainX /Y (bizarre!)
	// wipe (not great..)
	// growX / Y (not great..)
	// blindX / Y / Z (OTT!)
	// zoom (horrid!)
	
	$('div#grid').cycle({
		fx: 'fade',
		speed: '500',
		timeout: '7500',
		pager:  '#navigate',
		pause: 1 // pause on mouseover
	});

	$("#vcr a").click(function(e) {
		e.preventDefault();
		//console.log(this);
		var $slideshow = $('div#grid');
		$(this).hasClass("pause") ? $slideshow.cycle('pause') : $slideshow.cycle('resume', 'true');
	});
});