porque estas modificando el id del enlace creo que eso ya es un elemento nuevo, para eso tienes que usar el evento live
   Código HTML:
 $("#ocultar").live('click', function(event){
    event.preventDefault();
    $("#welcome").hide("slow");
    $('#ocultar').html(' Abrir ');
    $('#ocultar').attr("id","mostrar");
});
$("#mostrar").live('click',function(event){
    event.preventDefault();
    $("#welcome").show(3000);
    $('#mostrar').text(' Ocultar ');
    $('#mostrar').attr("id","ocultar");
});
 
pero para hacer eso yo utilizaria toggle que se usa para ejecutar 2 funciones en forma alternada  
 Código HTML:
 $("#ocultar").toggle(function(){
    $('#welcome').hide("slow");
    $(this).text("Mostrar");
},function(){
    $('#welcome').show(3000);
     $(this).text("Ocultar");
});