﻿/*Copyright Bridgeline Software, Inc. An unpublished work created in 2009. All rights reserved. 
This software contains the confidential and trade secret information of Bridgeline Software, Inc. 
("Bridgeline").  Copying, distribution or disclosure without Bridgeline's express written permission is prohibited.*/

$(document).ready(
    function()
    {
        /* Function to expand Collapse Nested List */
        /* $("div.globalNav ul li span a").click
            (function()
                {
                    $("div.globalNav ul").children("li").each
                    (function(index)
                        {
                            $(this).removeClass("expandedList");
                            $(this).children("span").children("a").removeClass("closeSublist");
                        } 
                    ); 
                    
                    $("div.globalNav ul ul").each
                    (function(index)
                        {
                            $(this).hide(); 
                            //$(this).parent("li").toggleClass("expandedList");
                        } 
                    ); 
                    
                    var parentLi = $(this).parent("span").parent("li");
                    if(parentLi.attr("class").indexOf("hasSub") != -1)
                    {
                        $(this).toggleClass("closeSublist");
                        parentLi.children("ul").slideToggle(300);  
                        parentLi.toggleClass("expandedList");
                        
                        return false;
                    }
                    
                    if ($(this).attr("href") == "")
                        return false;
                }
            );
            */
        $("div.globalNav li.selected").each
            (function(index)
                {
                    $(this).parent("ul").show(); 
                    $(this).children("ul").show(); 
                } 
            ); 
        $("div.globalNav li.current span a").toggleClass("closeSublist");
        $("div.globalNav li.current").toggleClass("expandedList");
        $("div.globalNav li.current ul").show();
        
    }
);

