$(function(){
	// ######### AUX DO SITE ###########


	// ######### CAROUSEL ###########
	$('#PORTFOLIO').jcarousel({scroll:4});

	//circle
	$('#cycle').after('<div id="nav_pics" class="nav_pics" style="text-align:right; position: relative; margin: -29px 2px 20px 0; z-index: 50">').cycle({
		fx:     'turnLeft',
		speed:  'fast',
		timeout: 8000,
		pager:  '#nav_pics'
	});
	$('.Banner').after('<div id="nav_pics" class="BannerNav" style="text-align:right; position: relative; margin: -29px 2px 20px 0; z-index: 50">').cycle({
		pager:  '#nav_pics',
                fx:     'scrollHorz',
		speed:  500,
		timeout: 3000,
		speedIn:  1000,
		speedOut: 1000,
		easeIn:  'easeinout',
		easeOut: 'easeinout'
	});

	// ######### SELECT ###########

	$("#MENU li").hover(
		function() { 	$("ul", this).animate({opacity:'show'}, { queue:true, duration:10,
							complete: function() {
								$(this).parent().zIndex(1);
							}
						});
						$(this).zIndex(1);

		},
		function() { 	$("ul", this).animate({opacity:'hide'}, { queue:true, duration:10,
							complete: function() {
								$(this).parent().zIndex(0);
							} });
						$(this).zIndex(0);
	});

	$('.data').each(function(){
		var $this = $(this);
		$(this).setMask({mask : '39/19/2999'});
		$(this).datepicker({
			onClose: function(dateText, inst) {
				$this.focus();
			},
			changeMonth: true,
			changeYear: true,
			showOn: 'button',
			buttonImage: '/imagens/icon/calendar.png',
			buttonImageOnly: true,
			dateFormat: 'dd/mm/yy',
			dayNamesMin: ['Do', '2ª', '3ª', '4ª', '5ª', '6ª', 'Sa'],
			monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun','Jul','Ago','Set','Out','Nov','Dez'],
			monthNames: ['Janeiro','Fevereiro','Março','Abril','Maio','Junho','Julho','Agosto','Setembro','Outubro','Novembro','Dezembro']
		});
	});


});
function Flash(src) {
	document.write(src);
}
<!--
Shadowbox.init({
    language: 'pt-BR',
    players:  ['img', 'html'],
    handleOversize:'drag'
});
//-->
