﻿function EnlacesLateraisMostraEsconde() {
    if ($("#divContenidoZonas").is(":hidden")) {
        $("#divContenidoZonas").slideDown("slow");
        imgSrc = $get('BaseRoot').value + 'App_Themes/Nuevo_2010/images/2010/square_ico_up.gif';
        htmlLink = Resources.EnlacesLateral.prototype.VerMenos;
    } else {
        $("#divContenidoZonas").slideUp("slow");
        imgSrc = $get('BaseRoot').value + 'App_Themes/Nuevo_2010/images/2010/square_ico_down.gif';
        htmlLink = Resources.EnlacesLateral.prototype.VerMas;
    }

    $("#imgVerMasEnlacesLateral").attr("src", imgSrc);
    $("#linkVerMasEnlacesLateral").html(htmlLink);
}

if (typeof (GUI) != 'undefined') {
    Sys.Application.add_load(function () {
        jQuery(document).ready(function () {
            $('#linkVerMasEnlacesLateral').click(function () {
                EnlacesLateraisMostraEsconde();
            }),

            $('#imgVerMasEnlacesLateral').click(function () {
                EnlacesLateraisMostraEsconde();
            });
        });
    });
}

