function more_on_off(opt_module_id, opt_element_id) {
    var module_id = ""; //模組編碼參數
    var element_id = ""; //錨點代碼
    var word_on = "看更多"; //more on 顯示文字
    var word_off = "收回"; //more off 顯示文字
    var self = this;
	
	
    //商品頁內容簡介錨點代碼前面的名稱
    var anchor = new Array(5);
    anchor[0] = "Intro";    //內容簡介
    anchor[1] = "Category"; //目錄
    anchor[2] = "Preface";  //序
    anchor[3] = "Cover";	//封面故事
    anchor[4] = "Editor";  	//編輯的話

    //bind事件
    this.bindEvent = function () {
        $("." + module_id).bind("click", function () {
            var num = $(this).attr('id').slice(-1);
            if ($(this).hasClass('more off')) {
                $("#" + module_id + "_h" + num).addClass("more_off");
                $("#" + module_id + "_g" + num).show();
                $(this).removeClass();
                $(this).addClass(module_id + " more on");
                $(this).html(word_on);
                window.location.href = '#' + anchor[num - 1] + element_id;
            } else if ($(this).hasClass('more on')) {
                $("#" + module_id + "_h" + num).removeClass("more_off");
                $("#" + module_id + "_g" + num).hide();
                $(this).removeClass();
                $(this).addClass(module_id + " more off");
                $(this).html(word_off);
            }
        });
    }
    //主程式
    this.main = function (opt_module_id, opt_element_id) {
        module_id = opt_module_id; //取得參數
        element_id = opt_element_id;
        self.bindEvent();
    }
    //執行主程式
    this.main(opt_module_id, opt_element_id);
}

function show_more(opt_module_id) {
     var module_id = ""; 		//模組編碼參數
     var word_on = "看更多"; 	//more on 顯示文字
     var word_off = "收回"; 	//more off 顯示文字
     var self = this;
     //bind事件
     this.bindEvent = function () {
         $("#" + module_id).bind("click", function () {
             if ($(this).hasClass('more off')) {
                 $("." + module_id + "_more").hide();
                 $(this).removeClass();
                 $(this).addClass("more on");
                 $(this).html(word_on);
             } else if ($(this).hasClass('more on')) {
                 $("." + module_id + "_more").show();
                 $(this).removeClass();
                 $(this).addClass("more off");
                 $(this).html(word_off);
             }
         });
     }
     //主程式
     this.main = function (opt_module_id) {
         module_id = opt_module_id; //取得參數
         self.bindEvent();
     }
     //執行主程式
     this.main(opt_module_id);
 }