$(document).ready(function() {
	$('#bot_nav .link').hover(
		function () {
    			$(this).addClass("hover")
  		}, 
  		function () {
   			$(this).removeClass("hover");
  		}
	);
	$('.expansion_content').hide();
	$('.expansion_header').click(function() {
		$(this).next().slideToggle("slow", function() {
			var str = $(this).prev().text();
			if (str.match(/^-/))
				$(this).prev().text("+ Click to expand and see samples.");
			else
				$(this).prev().text("- Click to collapse samples.");
		});
	});
	$(function() {
	$('.rollover').hover(function() {
			var currentImg = $(this).attr('src');
			$(this).attr('src', $(this).attr('hover'));
			$(this).attr('hover', currentImg);
		}, function() {
			var currentImg = $(this).attr('src');
			$(this).attr('src', $(this).attr('hover'));
			$(this).attr('hover', currentImg);
		});
	});
	$('#pics').cycle({
		fx:		'shuffle',
		speed:		300,
		timeout: 	6000,
		next:		'#transition',
		pause:		1
	});
});

