// Configurações JQuery

//$(document).pngFix(); 

$(document).ready(function() {
	Cufon.replace('.titulo, .subtitulo', { fontFamily: 'Futura Lt BT' });
	Cufon.replace('#item-menu, #menu_topo', { fontFamily: 'Futura Md BT' });
	
	$('.dataTable').dataTable( {
		"bPaginate": false,
		"bLengthChange": false,
		"bFilter": true,
		"bSort": false,
		"bInfo": false,
		"bAutoWidth": false,
		"oLanguage":
				{
					"sProcessing":   "Processando...",
					"sLengthMenu":   "Mostrar _MENU_ registros",
					"sZeroRecords":  "Não foram encontrados resultados (No Records)",
					"sInfo":         "Mostrando de _START_ até _END_ de _TOTAL_ registros",
					"sInfoEmpty":    "Mostrando de 0 até 0 de 0 registros",
					"sInfoFiltered": "(filtrado de _MAX_ registros no total)",
					"sInfoPostFix":  "",
					"sSearch":       "Digite a Geração (Type the Generation):",
					"sUrl":          "",
					"oPaginate": {
						"sFirst":    "Primeiro",
						"sPrevious": "Anterior",
						"sNext":     "Seguinte",
						"sLast":     "Último"
					}
				}
	} );

	
	/* This is basic - uses default settings */
	
	$("a#ampliar").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'titlePosition'  : 'over'
		});
	
	/* Using custom settings */
	
	$("a#inline").fancybox({
		'hideOnContentClick': true
	});

		
	$(".iframe").fancybox({
		'width'				: '75%',
		'height'			: '90%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'hideOnContentClick': false
	});
	
	$(".parc").fancybox({
		'width'				: '50%',
		'height'			: '70%',
        'autoScale'     	: false,
        'transitionIn'		: 'none',
		'transitionOut'		: 'none',
		'type'				: 'iframe',
		'hideOnContentClick': false
	});

	/* Apply fancybox to multiple items */
	
	$("a.grupo").fancybox({
		'transitionIn'	:	'elastic',
		'transitionOut'	:	'elastic',
		'titlePosition' : 	'over',
		'speedIn'		:	600, 
		'speedOut'		:	200, 
		'overlayShow'	:	false
	});
	
	$("a.video").click(function() {
		 $.fancybox({
		  'padding'             : 0,
		  'autoScale'   : false,
		  'transitionIn'        : 'none',
		  'transitionOut'       : 'none',
		  'title'               : this.title,
		  'width'               : 680,
		  'height'              : 495,
		  'href'                : this.href = this.href.replace(new RegExp("watch\\?v=", "i"), 'v/') + '&autoplay=1',
		  'type'                : 'swf',    // <--add a comma here
		  'swf'                 : {'allowfullscreen':'true'} // <-- flashvars here
		  });
		 return false;

	}); 
	
    $('.slideshow').cycle({
		fx: 	'fade',
		timeout: 6000 // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
		
	$('#menu_garanhoes').jqDock({size:60, distance:0});
	$('#menu_garanhoes1').jqDock({size:60, distance:0});
	
});


