$(function() {

    $('#slideshow').cycle({
        fx:      'fade',
        timeout:  0,
        prev:    '#prev',
        next:    '#next',
		timeout: 6000, 
        pager:   '#nav',
        pagerAnchorBuilder: pagerFactory, 
	});
	
	function pagerFactory(idx, slide) {
   		if( $(this).children().length<2){
            $('#prev').hide();
			$('#next').hide();
        }else{
            // call cycle
        }
	}

});
