﻿$(function() {
    $("#s > div ul li").bind("click", function() {
        $(this).siblings(".cur").removeClass("cur");
        $(this).addClass("cur");
        var str1 = ".";
        $("#s >div").each(function(index) {
            str1 = str1 +"_"+ $.trim($(this).find(".cur").text()).replace(/\s/, "-");
        });
        $(str1).siblings("div").hide();
        $(str1).show();
    })
})
