/* # vim: ai ts=4 sts=4 et sw=4 
 */


/* Cuando el documento este listo: 
 */
toggle = function() {
    hidden = $(this).parent().next('.hide');
    if (hidden.is('.hidden')) {
        hidden.fadeIn('slow');
        hidden.removeClass('hidden');
        $(this).html('-');
    } else {
        hidden.fadeOut('slow');
        hidden.addClass('hidden');
        $(this).html('+');
    }
}

$(document).ready(function() {
    $("#footer div").hover(
            function() { 
                $("ul", this).fadeIn("slow").limitQueue(2); },
            function() { 
                $("ul", this).hide(); }
        );
    if (document.all) {
            $("#footer div").hoverClass("sfHover");
        }

    /** Ocultar los div.hide **/
    $("div.hide").each(function(t) {
            holder = $(this).prev();
            holder.append('&nbsp;(<a href="#" class="shower">+</a>)');
            $(this).addClass('hidden');
            $(this).hide();
        })
    $("a.shower").click(toggle);
    });


$.fn.hoverClass = function(c) {
    return this.each(function(){
            $(this).hover( 
                function() { $(this).addClass(c);  },
                function() { $(this).removeClass(c); }
            );
        });
    };


