$(document).ready(function() {
    
    $("#legalTxt").hide();
    $("#legal").click(function (){
       $("#legalTxt").show();
       return false;
    });
    $("#legalTxt .btnClose").click(function (){
       $(this).parent().hide();
       return false;
    });
    
    $("#datosTxt").hide();
    $("#datosLnk").click(function (){
       $("#datosTxt").show();
       return false;
    });
    $("#datosTxt .btnClose").click(function (){
       $(this).parent().hide();
       return false;
    });
    
    $("#datosTxtVol").hide();
    $("#datosLnkVol").click(function (){
       $("#datosTxtVol").show();
       return false;
    });
    $("#datosTxtVol .btnClose").click(function (){
       $(this).parent().hide();
       return false;
    });
    
    $('.lst-noticias dd').hide();
    $('.lst-noticias dt').click(function (){
        $('dt').removeClass('dt-selected');
        $('dd').slideUp();
        $(this).addClass('dt-selected');
        $(this).next().slideToggle();
        return false;
    });
    
    $(".galeria").fancybox({
        'cyclic'            : true,
        'padding'           : 7,
        'overlayOpacity'    : 0.8,
        'overlayColor'      : '#000',
    	'titlePosition' 	: 'inside'
    });
    
});
