 $(document).ready(function(){
	
	// Feature Animation
	$('#feature-rotations ul')
	.before('<div id="controls">')
	.cycle({
		fx:			'fade',
		speed:		1500,
		timeout:	7000,
		pager:		'#controls'
									 });
	
	// Pause / Play Controls
	$('#pause')
	.click(function(event){
		event.preventDefault();
		$('#feature-rotations ul').cycle('pause');
		$(this).hide().next('a').show();
					});
	
	$('#play')
	.click(function(event){
		event.preventDefault();
		$('#feature-rotations ul').cycle('resume');
		$(this).hide().prev('a').show();
					});

	// Add Classes to Control Links
	
	$('#controls a:eq(0)')
		.addClass("rotation-1-button");

	$('#controls a:eq(1)')
		.addClass("rotation-2-button");

	$('#controls a:eq(2)')
		.addClass("rotation-3-button");

	$('#controls a:eq(3)')
		.addClass("rotation-4-button");

	// Begin with slideshow paused
	
	//$('#feature-rotations ul').cycle('pause');

	// Activate PNG transparency fix for IE6
	jQuery(function($) {
		 $("#controls a, #pause, #play").pngfix();
		 }); 

 });
