/*funci�n para oscurecer la capa*/
jQuery.fn.oscurecer=function(){
    retraso=1000;
    this.css("opacity","0.7");
    this.css("visibility","visible");
    this.fadeIn(retraso,
        function(){
            $("#reservas").ShowReservas(retraso);
        }
        );
    
    
}
/*funci�n para mostrar las reservas*/
jQuery.fn.ShowReservas=function(time){
    this.fadeIn(time);
}
/*funci�n para ocultar las reservas*/
jQuery.fn.HideReservas=function(time){
    //alert("cerrar");
    $("#reservas").fadeOut(1000);
    $("#capa_oscura").css("visibility","hidden");
}
jQuery.fn.cerrar=function(capa,time){
    this.HideReservas(time);
}
function cerrar(){
    $("#reservas").cerrar(1000);
}




