mayn.Portlet.content_style = mayn.Portlet.extend({ __version : "1.0.0.0", __id : "ContentStyle", __start_pos : 0, __end_pos : 0, __gameseq : "", showPortlet : function(a_gameSeq) { this._DoGet('showPortlet', '/' + a_gameSeq, this.tpl_compile_$showPortlet); }, tpl_compile_$showPortlet : function(a_data) { $("#faqlist_container").html(a_data); if($("#sPageNum").html() == "0") $("#id_content_startNum_area, #id_content_readmore_area").hide(); }, topCategoryDesign : function() { this._DoGet('topCategoryDesign', '', this.tpl_compile_$topCategoryDesign); }, tpl_compile_$topCategoryDesign : function(a_data) { $("#Support_TopCategory_Area").append(a_data); }, showSubPortlet : function(a_gameSeq, a_topcate) { this._DoGet('showSubPortlet', "/" + a_gameSeq + "/" + a_topcate, this.tpl_compile_$showSubPortlet); }, tpl_compile_$showSubPortlet : function(a_data) { $("#faqlist_container").html(a_data); if($("#sPageNum").html() == "0"){ $("#id_content_startNum_area, #id_content_readmore_area").hide(); } }, showSearch : function(a_gameid, a_topcate, a_cont) { this._DoPost('showSearch', { gameid : a_gameid, type : a_topcate, cont : a_cont } , this.tpl_compile_$showSearch); }, tpl_compile_$showSearch : function(a_data) { $("#faqlist_container").html(a_data); if($("#sPageNum").html() == "0"){ $("#id_content_startNum_area, #id_content_readmore_area").hide(); } }, showSubReadPortlet : function(a_gameSeq, a_subcate) { this._DoGet('showSubReadPortlet', "/" + a_gameSeq + "/" + a_subcate , this.tpl_compile_$showSubReadPortlet); }, tpl_compile_$showSubReadPortlet : function(a_data) { $("#faqlist_container").html(a_data); if($("#sPageNum").html() == "0"){ $("#id_content_startNum_area, #id_content_readmore_area").hide(); } }, showFaqContent : function(a_gameseq, a_seq) { var _param = '/0'; if(a_gameseq != '') _param = '/' + a_gameseq; this._DoGet('showFaqContent', _param + '/' + a_seq, this.tpl_compile_$showFaqContent); }, tpl_compile_$showFaqContent : function(a_data) { $("#" + tmpFaqObj).next().html(a_data).show("slide", { direction: "up" }, 1000); }, showIssuesContent : function(a_seq) { this._DoGet('showIssuesContent', "/" + a_seq, this.tpl_compile_$showIssuesContent); }, tpl_compile_$showIssuesContent : function(a_data) { $("#" + tmpIssuesObj).next().html(a_data).show("slide", { direction: "up" }, 1000); }, showFaqView : function(a_Topcate, a_faqNum) { this._DoGet('showFaqView', "/" + a_Topcate + "/" + a_faqNum, this.tpl_compile_$showFaqView); }, tpl_compile_$showFaqView : function(a_data) { $("#faqlist_container").html(a_data); }, readMore : function(a_startpos) { this._DoGet('readMore', a_startpos, this.tpl_compile_$readMore); }, tpl_compile_$readMore : function(a_data) { $("#UI_Issues").append(a_data); objContentStyle.readMoreBtn($("#sPageNum").html(), $("#ePageNum").html()); if($("#sPageNum").html() == "0") $("#id_content_readmore_area").hide(); }, faqReadMore : function(a_startpos, a_gseq, a_topcate, a_subcate) { var a_param = ""; if(a_subcate != "") a_param = "/" + a_subcate; this._DoGet('faqReadMore', "/" + a_startpos + "/" + a_gseq + '/' + a_topcate + a_param, this.tpl_compile_$faqReadMore); }, tpl_compile_$faqReadMore : function(a_data) { $("#UI_Issues").append(a_data); objContentStyle.readMoreBtn($("#sPageNum").html(), $("#ePageNum").html()); if($("#sPageNum").html() == "0") $("#id_content_readmore_area").hide(); }, readMoreBtn : function(a_startpos, a_endpos) { this._DoGet('readMoreBtn', "/" + a_startpos + "/" + a_endpos, this.tpl_compile_$readMoreBtn); }, tpl_compile_$readMoreBtn : function(a_data) { $("#id_content_readmore_area").html(a_data); }, searchtype : function() { this._DoGet('searchtype', '', this.tpl_compile_$searchtype) }, tpl_compile_$searchtype : function(a_data) { $("#select_search_list").html(a_data); }, satisfaction : function(a_faqseq, a_score) { this._DoPost('satisfaction', { faqseq : a_faqseq, score : a_score } , this.tpl_compile_$satisfaction); }, tpl_compile_$satisfaction : function(a_data) { _display_satmsg(a_data); } });