function funccionUno(i){

        $.ajax({
            //Aquí se hara la petición (sin nada)
            url: "/index.php?m=user&action=FrontRefreshNotification",
            cache: false,
            success: function(html){
                //Aquí refrescamos el div
                $("#top_mess .message p span").html(html);
            }
        });

        $.ajax({
            //Aquí se hara la petición (sin nada)
            url: "/index.php?m=user&action=FrontRefreshNotificationNumerito",
            cache: false,
            success: function(html){
                //Aquí refrescamos el div
                $("#divparanumero").html(html);
            }
        });

        $.ajax({
            //Aquí se hara la petición (sin nada)
            url: "/index.php?m=user&action=FrontRefreshNotificationAvatares",
            cache: false,
            success: function(html){
                //Aquí refrescamos el div
                $("#divParaAvataresDeNotificaciones").html(html);
            }
        });

//Verifica pedidos de amidtades automaticamente
 			$.ajax({
            //Aquí se hara la petición (sin nada)
            url: "/index.php?m=user&action=FrontRefreshPedidosAmistad",
            cache: false,
            success: function(html){
                //Aquí refrescamos el div
                $("#divparapedidos").html(html);
            }
        	});

        $.ajax({
            //Aquí se hara la petición (sin nada)
            url: "/index.php?m=user&action=FrontRefreshNotificationPopup",
            cache: false,
            success: function(html){
                //Aquí refrescamos el div
               html = jQuery.trim(html);
                if (html != ""){
                    jQuery.noticeAdd({
                        text: html,
                        stay: false,
                        type: 'error'
                    });
                }
            }
        });
    }
    
$(document).ready(function(){
  // var j = jQuery.noConflict();
  //j(document).ready(function(){
    $("#top_mess .message p span").everyTime(20000,funccionUno);
    $("#top_mess .message p span").oneTime(1000,funccionUno);
});

