$(document).ready(function()
	{
		$('#slides').cycle({
				prev 	: '#previous-slide',
				next 	: '#next-slide',
				timeout : 10000,
				pause 	: 1,
				before 	: changeTitle
			});
	
	
	  $('div.demo-show:eq(0)> div').hide();
  $('div.demo-show:eq(0)> h4').click(function() {
 $(this).next().slideToggle('fast');
  });
	
	
	});
// first function does slideshow and buttons.  pause 1 makes it not change when user is over.   Second function changes title.
function changeTitle()
	{
		var title = $(this).find('img').attr('alt');
		var href = $(this).attr('href');
		
		$('#slide-title').text(title).attr('href', href);
	}
