ddaccordion.init({
  headerclass: "sublink",
  contentclass: "submenu",
  revealtype: "click",
  mouseoverdelay: 200,
  collapseprev: true,
  defaultexpanded: [],
  onemustopen: false,
  animatedefault: false,
  persiststate: false,
  toggleclass: ["closed", "opened"],
  togglehtml: ["none", "", ""],
  animatespeed: "fast",
  oninit:function(expandedindices){ //custom code to run when headers have initalized
    //do nothing
  },
  onopenclose:function(header, index, state, isuseractivated){ //custom code to run whenever a header is opened or closed
    //do nothing
  }
})

    function sorter_top (type)
    {
        ShowLoading("");
        $("#top_rated").animate({opacity: 0.001}, 500, function(){
            $.post ("/index.php",
            {
                top_time: type
            },
            function (data)
            {
                $("#top_rated").html(data).animate({opacity: 1.0}, 500);
                HideLoading("");
            });
        });

    }
