


jQuery(document).ready(function($){

	 
	
		
	 $('.slideshow').cycle({
		fx: 'fade', // choose your transition type, ex: fade, scrollUp, shuffle, etc...
		speed:  2500,
		timeout:  2000
	});

		//the most commonly used options are likely to be align, size and labels, closely followed
	//by fadeIn and inactivity (the other options are probably for the more advanced user)
	
	
	var opts =
  	// horizontal Dock with images expanding downwards in the vertical axis...
  		{ align: 'top'
  	// set the maximum minor axis (vertical) image dimension to 48px
  		, size: 38
  	// add labels..
  		, labels: true
  	// swap the GIF extension for PNG extension for the larger image...
  		, source: function(i){ return this.src.replace(/gif$/,'png'); }
  	};

	
	jQuery('#menu').jqDock(opts);

	$(".myMenu").buildMenu(
    {
      template:"menuVoices.html",
      additionalData:"pippo=1",
      menuWidth:200,
      openOnRight:false,
      menuSelector: ".menuContainer",
      iconPath:"library/jquery.mb.menu.2.8.5/ico/",
      hasImages:true,
      fadeInTime:100,
      fadeOutTime:300,
      adjustLeft:2,
      minZindex:"auto",
      adjustTop:10,
      opacity:.95,
      shadow:false,
      shadowColor:"#ccc",
      hoverIntent:0,
      openOnClick:true,
      closeOnMouseOut:false,
      closeAfter:1000,
      submenuHoverIntent:200
    });

		// BUTTONS

    	$('.fg-button').hover(

    		function(){ $(this).removeClass('ui-state-default').addClass('ui-state-focus'); },

    		function(){ $(this).removeClass('ui-state-focus').addClass('ui-state-default'); }

    	);

    	

    	// MENUS    	

		$('#flat').menu({ 

			content: $('#flat').next().html(), // grab content from this page

			showSpeed: 400 

		});

		

		$('#hierarchy').menu({

			content: $('#hierarchy').next().html(),

			crumbDefaultText: ' '

		});

		

		$('#hierarchybreadcrumb').menu({

			content: $('#hierarchybreadcrumb').next().html(),

			backLink: false

		});

		

		// or from an external source

		/*$.get('menuContent.html', function(data){ // grab content from another page

			$('#flyout').menu({ content: data, flyOut: true });

		});*/



			

			

			

		$.localise('ui-multiselect', {language: 'en', path: 'library/jquery.multiSelect/js/locale/'});

		$(".multiselect").multiselect();

		//$('#switcher').themeswitcher();

	



 

		$("#accordion").accordion({

			autoHeight: false,

			navigation: true

		});

	



  /* $("#actionsSelectGo").live("click",function(){

		_ajaxSimple('#moduleActionsGo','application/modules/Module/_view/ajax/loadActionsGo.php?direction=go',$('#moduleManage'));

		_ajaxSimple('#moduleActionsBack','application/modules/Module/_view/ajax/loadActionsBack.php?direction=go',$('#moduleManage'));

	

	});

    $("#actionsSelectBack").live("click",function(){

		_ajaxSimple('#moduleActionsGo','application/modules/Module/_view/ajax/loadActionsGo.php?direction=back',$('#moduleManage'));

		_ajaxSimple('#moduleActionsBack','application/modules/Module/_view/ajax/loadActionsBack.php?direction=back',$('#moduleManage'));

	

	});

	*/



	

	//$('#').tipsy({ delayIn: 0.5, delayOut: 1 });

	//$('#showHelp').tipsy();

    $("#tickerTextHolder").newsTicker({

             showTime: 2000,



  effect: 'slide',

  effectTime: 1000



        });

		

	



   //$("#processo").mask("9999999999",{placeholder:" "});

   $("#registro").mask("99999999", {placeholder:" "});

   $("#registro2").mask("99999999", {placeholder:" "});

   $("#data").mask("99/99/9999");

   $("#telefone").mask("(99) 9999-9999");

    $("#fax").mask("(99) 9999-9999");

   $("#tin").mask("99-9999999");

   $("#ssn").mask("999-99-9999");

    $("#cnpj").mask("99.999.999/9999-99");

	$("#cpf").mask("999.999.999-99");

	$("#cep").mask("99999-999");

	

	

	// Datepicker

				/*$("#datepicker").datepicker();*/

/*				$.datepicker.setDefaults($.extend({showMonthAfterYear: false}, $.datepicker.regional['']));

				$("#datepicker").datepicker($.datepicker.regional['pt-BR']);



				$('#datepicker').datepicker('option', {dateFormat: 'dd-mm-yy'}); 

				

				$('#datepicker').datepicker('option', $.extend({showMonthAfterYear: false}, $.datepicker.regional['pt-BR']));

		

	*/

	

		 $("#datepicker").datepicker();

	

	     $.datepicker.regional['pt-BR'] = {

			 		changeMonth: true,

					changeYear: true,

	                clearText: 'Limpar', clearStatus: '',

	                closeText: 'Fechar', closeStatus: '',

	                prevText: '&#x3c;Anterior', prevStatus: '',

	                prevBigText: '&#x3c;&#x3c;', prevBigStatus: '',

	                nextText: 'Pr&oacute;ximo&#x3e;', nextStatus: '',

	                nextBigText: '&#x3e;&#x3e;', nextBigStatus: '',

	                currentText: 'Hoje', currentStatus: '',

	                monthNames: ['Janeiro','Fevereiro','Mar&ccedil;o','Abril','Maio','Junho',

	                'Julho','Agosto','Setembro','Outubro','Novembro','Dezembro'],

	                monthNamesShort: ['Jan','Fev','Mar','Abr','Mai','Jun',

	                'Jul','Ago','Set','Out','Nov','Dez'],

	                monthStatus: '', yearStatus: '',

	                weekHeader: 'Sm', weekStatus: '',

	                dayNames: ['Domingo','Segunda-feira','Ter&ccedil;a-feira','Quarta-feira','Quinta-feira','Sexta-feira','Sabado'],

	                dayNamesShort: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'],

	                dayNamesMin: ['Dom','Seg','Ter','Qua','Qui','Sex','Sab'],

	                dayStatus: 'DD', dateStatus: 'D, M d',

	                dateFormat: 'dd/mm/yy', firstDay: 0,

	                initStatus: '', isRTL: false};

	        $.datepicker.setDefaults($.datepicker.regional['pt-BR']);

				







});

/*$(document).ready(function() {

  var options = {

    newsList: "#news",

    startDelay: 10,

    placeHolder1: " "

  }

  $().newsTicker(options);

});*/






