
$(function() {
      $('ul.nav > li > a').corner('15px');
      $('ul.nav > li.current_page').corner('15px');
      $('img.showshot').corner('0.4em');
      $('h3').corner('bite keep cc:#246');
      $('h1').corner('bite keep cc:#246');
      $('h2').corner('bite keep cc:#246');
      $('.main').corner('30px');
	var $slideshow = $('#slideshow'),
		$caption = $('div.caption');

	
	$slideshow.crossSlide({
		fade: 2
	}, [
		{
			src:  'image/Twelfth_Night_Andrew_and_Toby.jpg',
			alt:  'Twelfth Night Andrew and Toby',
			from: '60% 40% 0.7x',
			to:   '50% 21% 0.4x',
			time: 6
		}, {
			src:  'image/Twelfth_Night_s.jpg',
			alt:  'Twelfth Night Aguecheck',
			from: '0% 0%',
			to:   '45% 0%',
			time: 6
		}, {
			src:  'image/Book_2010_2_s.jpg',
			alt:  'First year student with book',
			from: '55% 60% 1.4x',
			to:   '70% 40% 0.4x',
			time: 6
		}, {
			src:  'image/Richard_II_amazed.jpg',
			alt:  'Richard is amazed',
			from: '60% 25% 0.7x',
			to:   '60% 25% 0.7x',
			time: 6
		}, {
			src:  'image/Macbeth_and_Lady.jpg',
			alt:  'Macbeth',
			from: '100% 50%',
			to:   '30% 50% 1.4x',
			time: 6
		}
	], function(idx, img, idxOut, imgOut) {
		if (idxOut == undefined) {
			$caption.text(img.alt).animate({ opacity: .7 })
		} else {
			$caption.animate({ opacity: 0 })
		}
	});
	$caption.show().css({ opacity: 0 })

});
