 $(document).ready(function(){
 		
	 var oTable = $('#tabela').dataTable( {
         "bJQueryUI": true,
         "bStateSave": false,
         "bPaginate": false,
         "sPaginationType": "full_numbers",
         "bSort": false,
         "bFilter": false,
         "bLengthChange": false,
         "bInfo": false,
         "aoColumns": [
       				{"sWidth":"30px", "sClass": "text-center"},
       				{"sClass": "text-justify"},	
       				{"sClass": "text-justify"},
       				{"sWidth":"400px", "sClass": "text-left"} 								 	
       			],
     });
	
	$("#tabela tr").mouseover(function(){
		$(this).addClass("tableRow_mouseover");
	});
	
	$("#tabela tr").mouseout(function(){
		$(this).removeClass("tableRow_mouseover");
	});  
  	 
 	
	$('#busca').click(function() { 
        $.blockUI({ message: $('#buscaForm') }); 
 
        //setTimeout($.unblockUI, 2000); 
    }); 

    $("#search").focus(function() {
        if($("#search").val() == 'pesquisa textual'){
            $("#search").attr('value','');
            $("#search").removeClass('search_text');
        }
    }).blur(function() {
        if($("#search").val() == ''){
            $("#search").attr('value','pesquisa textual');
            $("#search").addClass('search_text');
        }
    });
    
    
   $('#adicionar').click(function() {
        return !$('#campoFuncionarios option:selected').remove().appendTo("#campoFuncionariosSelecionados");
    });
    
   $('#remover').click(function() {
	   return !$('#campoFuncionariosSelecionados option:selected').remove().appendTo('#campoFuncionarios');
   });
   
   //add
   $("#campoFone").mask("(99)9999.9999");
   $("#campoFax").mask("(99)9999.9999");
   $("#campoCelular").mask("(99)9999.9999");

   
			
 });	
	
	