var C = {
    _init_: function() {
        C.list.init();
    },
    
    list: {
        init: function() {
            $('a[@name=showhide]').click(function() {
                    id = '#' + $(this).attr('id') + "_item";
                    if ($(id).css('display') == 'none') {
                        $(id).show(300);
                    } else {
                        $(id).hide(300);
                    }
                });
            
            $('a[@name=showhide2]').click(function() {
                    id = '#' + $(this).attr('id') + "_item";
                    if ($(id).css('display') == 'none') {
                        $(id).show(300);
                        $(this).addClass('showhide_active');
                    } else {
                        $(id).hide(300);
                        $(this).removeClass('showhide_active');
                    }
                });
            $('div.answer').css('display', 'none');
            rem = $('div.answer').get(0);
            $(rem).show(300);
        },
        
        itemShowHide: function(id) {
            id = '#' + id;
            if ($(id).css('display') == 'none') {
                $(id).show(300);
            } else {
                $(id).hide(300);
            }
        }
    }
}