         }
            }
        };

        function toggle(className) {
            var order = getUrlParameter('order');
            var elements = document.getElementsByClassName(className);
            for (var i = 0, length = elements.length; i < length; i++) {
                var currHref = elements[i].href;
                if (order == 'desc') {
                    var chg = currHref.replace('desc', 'asc');
                    elements[i].href = chg;
                }
                if (order == 'a