/*
 * Função para causar delay antes de realizar o 
 * que estiver dentro da função

    Exemplo:
    $(this).delay(1000,function(){
        $(document).ready(function() {
            $("#erro1").fadeIn("slow");
        });
    }

 * Primeiro o script espera 1 segundo, depois executa
 * o que estiver dentro
*/


jQuery.fn.delay = function(time,func){
    this.each(function(){
        setTimeout(func,time);
    });

    return this;
};

