$(document).ready(function() {
  //var slides = $('#slides').find('.slide');
	
	$('#slideshow').before('<ul class="countDisplay">').cycle({ 
		fx:     'fade', 
		speed:  'slow',
		timeout: 8000,
		pager: '.countDisplay',
		cssBefore: { display: 'none' },
		pagerAnchorBuilder: pagination
		//before:	onBefore
	});
	
	function pagination(ind, dom) {
		return '<li><a href="#">&nbsp;</a></li>';
	}
	
	$("input").toggleVal();

    $('.cycle-slideshow').cycle ({
        fx:     'fade',
        speed:  'slow',
        timeout: 0,
        pager:  '.cycle-nav',
        pagerAnchorBuilder: function(idx, slide) {
            // return selector string for existing anchor
            return '.cycle-nav a:eq(' + idx + ')';
        }
    });

});
























