$(document).ready(function(){
    $('.Apagar').click(function(){
        if(this.value == this.defaultValue){
            this.value = '';
        }
    });
    $('.Apagar').blur(function(){
        if (this.value == ''){
            this.value = this.defaultValue;
        }
    });
    if ($('.notif').is(':visible')){
        window.setTimeout(function() {
            $('.notif .close').click();
        }, 6000);
    }
    $('#tableaction').change(function(){
        $(this).parent().parent().parent().submit();
    });

    $('#esq').click(function(){
        $('#esquecer').slideToggle();
    });

    /*gravar no localStorage*/
    $('[id^="menu"]').click(function(){
        localStorage.setItem('menu',$(this).attr('id'));
    });

    /* fim gravar no localStorage*/
    
    $("a[rel^='prettyPhoto']").prettyPhoto();
    $('div.pic').hover(function(){
        $(this).css('border-color', '#84b12d');
    }, function(){
        $(this).css('border-color', 'white');
    })
    $('textarea').addClass('ckeditor');
    $(".Money").maskMoney({symbol:'R$ ', showSymbol:true, thousands:'.', decimal:',', symbolStay: true});
});


