$(document).ready(
	function() {
		
		if($('#jogos') != null) {
			var auxStart;
			if($('#fCount') != null) {
				if($('#fCount').attr("value").length > 0) {
					auxStart = $('#fCount').attr("value") - 1
				}
				else {
					auxStart = 0;	
				}
			}
			else {
				auxStart = 0;
			}
			
			
			$('#jogos').cycle({
				fx: 'fade',
				startingSlide: auxStart,
				timeout: 0,
				//cssAfter: { background-color:none},
				speed:    500,
				nowrap:  1,
				prev:    '#re',
				next:	 '#av'
			});
		}

	}
);
