function displayCurrDescriptionChangeClass(idImgOpen, idImgClose, currDesc, currTR) {

    try {
        //wpCQWPDisplayDescription
        var imgOpen = document.getElementById(idImgOpen);
        var imgClose = document.getElementById(idImgClose);
        var divMore = document.getElementById(currDesc);
        var trCurrent = document.getElementById(currTR);

        if (imgOpen != null) {

            if (imgOpen.style.display != 'none') {
                imgOpen.style.display = 'none';
                if (imgClose != null)
                    imgClose.style.display = '';
                if (currTR != null) {

                    if (divMore != null)
                        divMore.style.display = '';
                    if (trCurrent != null) {
                        $(trCurrent).addClass('OpenTRQ');
                        $(trCurrent).removeClass('FaqTR');
                    }
                }
                else {
                    if (divMore != null)
                        divMore.style.display = 'block';
                }
            }
            else {

                imgOpen.style.display = '';
                if (imgClose != null)
                    imgClose.style.display = 'none';
                if (divMore != null)
                    divMore.style.display = 'none';
                if (trCurrent != null && currTR != null) {
                    $(trCurrent).addClass('FaqTR');
                    $(trCurrent).removeClass('OpenTRQ');
                }
            }
        }
    }
    catch (err) {
        txt = "There was an error on this page.\n\n";
        txt += "Error description: " + err.description + "\n\n";
        txt += "Click OK to continue.\n\n";
        alert(txt);
    }
}

function ShowExplanations(){   

try {
   
 $('.TRDesc').show();
 $('.ImgGridViewOpen').hide();
 $('.ImgGridViewClose').show();
 $('.Question').toggleClass('FaqTR',false);
 $('.Question').toggleClass('OpenTRQ',true);
}
catch (err) {

        txt = "There was an error on this page.\n\n";
        txt += "Error description: " + err.description + "\n\n";
        txt += "Click OK to continue.\n\n";
        alert(txt);

    }}

function HideExplanations(){   

try {
 $('.TRDesc').hide();
 $('.ImgGridViewClose').hide();
 $('.ImgGridViewOpen').show();
 $('.Question').toggleClass('FaqTR',true);
 $('.Question').toggleClass('OpenTRQ',false);
}
catch (err) {
      
 	txt = "There was an error on this page.\n\n";
        txt += "Error description: " + err.description + "\n\n";
        txt += "Click OK to continue.\n\n";
        alert(txt);

    }}
