$(document).ready(function() {
	$('#imagem-ampliada').cycle({
		fx: 'scrollDown',
		speed: 300,
		timeout: 6500,
		next:   '#next2',
		prev:   '#prev2',
		pager:  '#nav',
		pagerAnchorBuilder: function(idx, slide) { 
				// return selector string for existing anchor 
				return '#nav li:eq(' + idx + ') a';
		}
	});
	$('#btn-pause').click(function() {
		$('#imagem-ampliada').cycle('pause');
	});
	$('#btn-play').click(function() {
		$('#imagem-ampliada').cycle('resume');
	});
	
	// inicia pausado
	$('#imagem-ampliada').cycle('pause');
});


// function clique(pag) {
// 	$("#loading").show();
// 	$.ajax({
// 		type: "GET",
// 		url: "_amplia.php",
// 		data: "q="+pag,
// 		success: function(html){
// 			$("#imagem-ampliada").empty().html(html);
// 			//$("#loading").hide();
// 		}
//  });
// }

