﻿$(document).ready(function() {
    if (!window.customGroupNavigation) {
        $(".liGroupSelected ul:first").show();
        var maxDepth = 999;
        var tag = $(".liGroupSelected");
        if (tag.length > 0) {
            while (!tag.hasClass("ulGroupTreeRoot") && (0 < maxDepth)) {
                tag = tag.parent();
                if ("UL" == tag.attr("tagName").toUpperCase()) {
                    tag.show();
                }
                maxDepth--;
            }
        }
    }
});
