// JavaScript Document
       $(function () {
            //add "Current" class to 'a' tags where their 'href' attribute = current page
            //classic asp, VB.NET: Request.ServerVariables("SCRIPT_NAME")
            //C#: Request.ServerVariables["SCRIPT_NAME"]
            //php: $_SERVER["PHP_SELF"];
//            $('#nav a').each(function () {
//                if (($(this).attr('href') == <?php echo "'".$_SERVER["PHP_SELF"]."'"; ?>) || ($(this).attr('href') + '/' == <?php echo "'".$_SERVER["PHP_SELF"]."'"; ?>)) {
//                    $(this).addClass('Current');
//                }
//            });

            //show immediate children and all parents of current item
//            $('.Current').parent('li').children('ul').show();
//            $('.Current').parents('ul').show();

            var slideSpeed = 150; //miliseconds or 'slow','normal','fast'

            $('.nav span.drop-down').click(function () {
                if ($(this).parent('li').children('ul').html() != null) {
                    $(this).parent('li').parent('ul').children('li').children('ul').slideUp(slideSpeed);
                    if ($(this).parent('li').children('ul').css('display') == "block") {
                        $(this).parent('li').children('ul').slideUp(slideSpeed);
                    }
                    else {
                        $(this).parent('li').children('ul').slideDown(slideSpeed);
                    }
                    return false;
                }
                window.location.href = $(this).attr('href');
                return false;
            });
        });
