/*产品树展开和关闭*/
$(function() {
    $("#pronav .haschildren").click(function() {
        var $ul = $(this).children("ul");
        if ($ul.is(":visible")) {
            $(this).attr("class", "m-expanded");
            $ul.show();
        } else {
            $(this).attr("class", "m-expanded");
            $ul.show();
            $(this).siblings().children("ul").hide();
            $(this).siblings().attr("class", "m-collapsed");
        }
    })
    $(".treenav li span").hover(function() {
        $(this).addClass("over");
    },
				function() {
				    $(this).removeClass("over")
				});
    $("#main .faqlist li span").click(function() {
        var $p = $(this).siblings("p");
        if ($p.is(":visible")) {
            $(this).attr("class", "m-collapsed");
            $p.hide();
        } else {
            $(this).attr("class", "m-expanded");
            $p.show();
            $(this).parent().siblings().children("p").hide();
            $(this).parent().siblings().children("span").attr("class", "m-collapsed");
        }
    })
    $(".faqlist li span").hover(function() {
        $(this).addClass("over");
    },
				function() {
				    $(this).removeClass("over")
				});
})

function _showt() {
    var remid2 = document.getElementById('remid2');
    var remid1 = document.getElementById('remid1');
    var remradio1 = document.getElementById('remradio1');
    var remradio2 = document.getElementById('remradio2');
    if (remid1.style.display == "block") {
        remid1.style.display = "none";
    } else {
        remid1.style.display = "block";
        remid2.style.display = "none";
        remradio1.checked = "checked";
        remradio2.checked = "";
    }
}
function _hiddent() {
    var remid2 = document.getElementById('remid2');
    var remid1 = document.getElementById('remid1');
    var remradio1 = document.getElementById('remradio1');
    var remradio2 = document.getElementById('remradio2');
    if (remid2.style.display == "none") {
        remid2.style.display = "block";
        remid1.style.display = "none";
        remradio2.checked = "checked";
        remradio1.checked = "";
    } else {
        remid2.style.display = "none";
    }
}