jQuery(document).ready(function($) {
        
    $("aside").find(".sub-menu").hide();
    var li = $("aside li:has(.sub-menu)");
    li.delegate("a[href^='#']","click",function(e) {
        $(this).toggleClass("active-drop").parent().find(".sub-menu").toggle();
        if(!$.browser.msie) {
            e.preventDefault();
        }
    });
        
//    if(!$.browser.msie) {
//        var $mainContent = $("#content"),
//        siteUrl = "http://" + top.location.host.toString(),
//        url = ''; 
//
//        $("nav").delegate("a[href^='"+siteUrl+"']:not([href*=/wp-admin/]):not([href*=/wp-login.php]):not([href$=/feed/])", "click", function() {
//            $("a").removeClass("active");
//            $(this).addClass("active");
//            location.hash = this.pathname;
//            $("html,body").animate({
//                scrollTop : $("#main").offset().top-20
//            },200);
//            return false;
//        }); 
//
//        $(window).bind('hashchange', function(){
//            url = window.location.hash.substring(1); 
//
//            if (!url) {
//                return;
//            } 
//
//            url = url + " #ajax-content"; 
//            $mainContent.animate({
//                opacity: "0.5"
//            }).html("<p class='loader'>&nbsp;</p>").load(url, function() {
//                $mainContent.animate({
//                    opacity: "1"
//                });
//            });
//        });
//
//        $(window).trigger('hashchange');
//    }
});



