//JQuery Setup
$(function(){

	// jQuery Cycle Plugin
	$('.slideshow').cycle({
	pause: true,
	wmode: 'transparent'
	});
	
	// Duplicate the following block of code to add extra office tours
	$('#cycle-office-tour') // Give this ID a unique name if more than one office tour is needed on a page
	.before('<div class="office-tour-nav" id="office-1">') // Ditto for this ID
	.cycle({
	cleartype: true, // true if clearType corrections should be applied (for IE)
	cleartypeNoBg: true, // Set to true to disable extra cleartype fixing (leave false to force background color setting on slides)
	speed: 500, // This controls speed of transition
	timeout: 5000, // This controls delay between slides. Set to 0 if more than one office tour on a page, so they don't auto-play
	pager: '#office-1',
	before: function() {
	$('#caption span').fadeOut(); // Give this ID a unique name if more than one office tour is needed on a page
	},
	after: function(curr, next, opts) {
	var alt = $(next).find('img').attr('alt'); // This grabs the image alt text
	$('#caption span').html(alt).fadeIn(); // This puts alt text into the caption span
	}
	}); 


});//end document.ready
