$(document).ready(function(){
			$('#top_investigations').cycle({  
    			fx:     'fade',
    			speed:  1000,
    			timeout:  7000,
    			
    			//fx: 'cover',
				//direction: 'left', // one of up|down|left|right default=left
				//delay: -2000,
    			prev:   '#prev', 
    			next:   '#next', 
    			pager:  '#pager',
    			
    			// callback fn that creates a thumbnail to use as pager anchor 
    			pagerAnchorBuilder: function(idx, slide) { 
        		return '<li class="z' + idx + '"><a href="#"><span>' + idx + '</span></a></li>';
    			}
			});
			
			$('.pause').click(function() { 
    			$('#top_investigations').cycle('pause');
    			$('.pause').hide();
    			$('.play').show();
    			
    			$('#controls_alert').removeClass();
    			
    			$('#controls_alert').addClass('alert_pause').fadeIn('slow').fadeOut(3000);
    			
    			$('#investigations_controls').addClass('paused');
    			
    			return false;
			});
			
			$('ul#pager li a , #next , #prev').click(function() { 
    			$('#top_investigations').cycle('pause');
    			$('.pause').hide();
    			$('.play').show();
    			
    			if ($('#investigations_controls').hasClass('paused')) {
    			// do nothing
    			} else {
    			$('#controls_alert').removeClass().addClass('alert_pause').fadeIn('slow').fadeOut(3000);
    			}
    			
    			$('#investigations_controls').addClass('paused');
    			
    			$('#next , #prev').click(function() {
    			return false;
    			});
			});
			
			$('.play').click(function() { 
    			$('#top_investigations').cycle('resume');
    			$('.play').hide();
    			$('.pause').show();
    			
    			$('#controls_alert').removeClass();
    			
    			$('#controls_alert').addClass('alert_play').fadeIn('slow').fadeOut(3000);
    			
    			$('#investigations_controls').removeClass('paused');
    			
    			return false;
			});
			
			
		});