var FrontNewsCategory_tree01={newsListHref:"",categoryId:"",tree:"",newsListHrefTarget:"_self",showCurrent:"",createTree:function(c,d,b,a){this.tree=new dhtmlXTreeObject(c,d,b,a);this.tree.setOnClickHandler(this.setOnClickHandler)},setOnClickHandler:function(a){FrontNewsCategory_tree01.tree.selectedId=a;if(FrontNewsCategory_tree01.newsListHrefTarget=="_blank"){window.open(FrontNewsCategory_tree01.newsListHref.replace("newsListHrefParamValue",a),"")}else{window.location.href=/publicScripts/components/FrontNewsCategory_tree01.newsListHref.replace("newsListHrefParamValue",a)}}};var FrontNews_detail01={fontSize:-1,notAllowed:function(){alert(i18n_FrontNews_detail01_norightfordownload);return false},changeLinkHref:function(a,e,d,b){var c=FrontNews_detail01.getCookie("c_memberInfo");if(a==null||a==""){$(b).click(FrontNews_detail01.notAllowed)}else{if(a=="0"||(a.indexOf("0")==0)){$(b).attr("href",e)}else{if(!c){$(b).attr("href",d);$(b).attr("target","_blank")}else{if(a=="1"){$(b).attr("href",e)}else{if(a.indexOf(c)!=-1){$(b).attr("href",e)}else{$(b).click(FrontNews_detail01.notAllowed)}}}}}},setFontSize:function(b,c){if(this.fontSize==-1){this.fontSize=c}var a=this.fontSize.substring(0,this.fontSize.lastIndexOf("px"));if(b=="big"){if(this.fontSize!=-1&&this.fontSize!=""){document.getElementById("infoContent").style.fontSize=parseInt(a)+2+"px"}else{document.getElementById("infoContent").style.fontSize="16px"}}else{if(b=="small"){if(this.fontSize!=-1&&this.fontSize!=""){document.getElementById("infoContent").style.fontSize=parseInt(a)-2+"px"}else{document.getElementById("infoContent").style.fontSize="12px"}}else{if(this.fontSize!=-1&&this.fontSize!=""){document.getElementById("infoContent").style.fontSize=this.fontSize}else{document.getElementById("infoContent").style.fontSize="14px"}}}},getCookie:function(d){var b=document.cookie;var e=b.indexOf(d);if(e!=-1){e+=d.length+1;var a=b.indexOf(";",e);if(a==-1){a=b.length}var c=unescape(b.substring(e,a))}return c},changeQuestionStatus:function(b,a){if(a=="fail"){var c=document.getElementById(b+"_showQuestionnaire");c.style.display="none"}},getPreAndNextInfoByAjax:function(b,c,a,f,e,d){$.post(b+"/FrontNews.do","method=getPreAndNextInfoByAjax&newsCategoryId="+c+"&newsId="+a+"&href_PreAndNext="+f+"&openPreAndNext="+e,function(h){var g=h.split("|---|");if(g[0]=="no"){$("#preInfo").html(d)}else{$("#preInfo").html(g[0])}if(g[1]=="no"){$("#nextInfo").html(d)}else{$("#nextInfo").html(g[1])}})},openKeywordUrl:function(a,b){a=a.split("%").join("%25");if(b==0){window.location=a}else{window.open(a)}}};