$(function() {
   $('#textoBuscar')
        .live('focus',function() {
            if ( $(this).val() == "Buscar" )
                $(this).val("");
        })
        .live('blur',function() {
            if ( $(this).val() == "" )
                $(this).val("Buscar");
        });
    $('.submenuCabeceraElemento').live('hover',function() {
        $(this).toggleClass('activo2');
    });
    $('.submenuCabeceraElemento table').live('click',function() {
        document.location = $(this).parents('.submenuCabeceraElemento').attr('href');
        return false;
    })

    $('.vinculosCabeceraFlecha').live('mouseenter',function() {
       $(this).addClass('activo1')
       $(this).find('.submenuCabecera').css('display','block');
    });
    $('.vinculosCabeceraFlecha').live('mouseleave',function() {
       $(this).removeClass('activo1')
       $(this).find('.submenuCabecera').css('display','none');
    });
    // y esta duplicidad se la debemos a IE6, que no entiende css ".clase.clase2"
    $('.vinculosPieFlecha').live('mouseenter',function() {
       $(this).addClass('activo3')
       $(this).find('.submenuCabecera').css('display','block');
    });
    $('.vinculosPieFlecha').live('mouseleave',function() {
       $(this).removeClass('activo3')
       $(this).find('.submenuCabecera').css('display','none');
    });
});

