
/*------------------------------*/
var _qE=false;var _s=null;function _dF(){var f=this;var d=null;this._hj=false;this.Init=function(){try{__F._iD({_bn:0,timeout:20000,__C:sv_b,url:__H(sv_P,sv_c,"public"),onError:f._dn,__B:f._gS,_fU:f._hu});b()}catch(g){}};var b=function(){_G=xGetElementsByName("uss_image","img");var j=new Object();var h,o,n,m,k,g,q;var j=new Object();var p=new RegExp("^([^\\s]+)");if(_G&&_G.length>0){for(var l=0;l<_G.length;l++){h=0;o=0;n=false;m=_G[l].getAttribute("uss_class");k=_G[l].getAttribute("uss_selector");_mU=_G[l].getAttribute("default_selector");q=_G[l].getAttribute("cid");if(!k&&_mU){k=_mU.replace(p,"$1"+"_"+q);_G[l].setAttribute("uss_selector",k)}if(m){if(typeof j[m]=="undefined"){if(m.indexOf(".")== -1){m="."+m}if(k){k="#"+k+" "+m;n=xGetCssRule(k)}if(n==false){if(typeof q!="undefined"){k="#"+_G[l].getAttribute("uss_selector")+" "+m;n=xGetCssRule(k)}if(n==false){k="."+_mU+" "+m;n=xGetCssRule(k)}}if(n){j[m]=n}}n=j[m];if(n){_G[l]._aE=parseInt(n.style.height,10);_G[l]._bh=parseInt(n.style.width,10)}if(_G[l].complete){e(_G[l])}else{_G[l].onload=function(){e(this)}}}}}};var e=function(h){if(typeof h._ab=="undefined"){h._ab=h.width}if(typeof h._bv=="undefined"){h._bv=h.height}var i=h._bh/h._ab;var g=h._aE/h._bv;if(i>1&&g>1){if(h._bv>h._ab){h.height=h._aE;h.width=Math.floor(h._bv*g)}else{h.width=h._bh;h.height=Math.floor(h._bv*i)}}else{if(i<g){h.height=Math.floor(h._bv*i);h.width=h._bh}else{h.width=Math.floor(h._ab*g);h.height=h._aE}}if(h.style.visibility=="hidden"){h.style.visibility="visible"}h=null};this.__g=function(i){var g=0;var h=document.createElement("div");h.id="view_detail";xInnerHtml(h,_r("center"));if(_s==null){_s=new _p("f_")}_s._c(h,"Xem chi tiết",700);__F.__E({url:__H(sv_P,sv_c,"public"),_n:"ws_P",__A:{sp_f:i},__G:a})};var a=function(g){_s._uW(g.responseText);_s._c()};var c=function(g){};this.__k=function(p,m){_bl=xGetCssRule("#"+p+"."+p+" p, #"+p+"."+p,"cmodcss.cns");var o=12;var i=16;var h=2;if(_bl){o=parseInt(_bl.style.fontSize);if(isNaN(o)){o=12}i=parseInt(_bl.style.lineHeight);if(isNaN(i)){o=16}i+=m?h: -1*h;if(i<16){i=16}o+=m?h: -1*h;if(o<12){o=12}_bl.style.fontSize=o+"px";_bl.style.lineHeight=i+"px"}else{var k=xGetCssRule(".ussBody");if(k){o=parseInt(k.style.fontSize);if(isNaN(o)){o=12}i=parseInt(k.style.lineHeight);if(isNaN(i)){o=16}}var n=document.styleSheets[0];var g="#"+p+"."+p+" p, #"+p+"."+p;o+=m?h: -1*h;if(o<12){o=12}i+=m?h: -1*h;if(i<16){i=16}var j="font-size:"+o+"px"+";line-height:"+i+"px";try{if(n.insertRule){n.insertRule(g+"{ "+j+" }",0)}else{if(n.addRule){n.addRule(g,j,0)}}}catch(l){}}$.cookie("dt_f",o+"_"+i)};this._qQ=function(l){var m=document.styleSheets[0];var j="#"+l+"."+l+" p, #"+l+"."+l;var i=$.cookie("dt_f");if(i!=""){var g=i.split("_");if(g.length==2){var h="font-size:"+g[0]+"px"+";line-height:"+g[1]+"px";try{if(m.insertRule){m.insertRule(j+"{ "+h+" }",0)}else{if(m.addRule){m.addRule(j,h,0)}}}catch(k){}}}};this._eW=function(){var g=xGetElementById("page_content");if(g!=null){g.parentNode.removeChild(g)}}};
/*------------------------------*/
var _gl="";function _I(e){var a=null;var f=true;var c=xGetElementById("_fd");var b=xGetElementById("uss_info");if(document.getElementById("_il")!=null){b.style.display="";f=false}if(c!=null&&b!=null){c.parentNode.replaceChild(b,c);if(_R){document.getElementById("_il").onload=function(){var g=this.contentWindow.document.getElementsByTagName("a");for(var h=0;h<g.length;h++){g[h].href="javascript:void(0)"}}}}c=xGetElementById("_cp");b=xGetElementById("_fw");if(c!=null&&b!=null){c.parentNode.replaceChild(b,c);xDisplay(b,"");if(_R){a=b.getElementsByTagName("a");for(var d=0;d<a.length;d++){a[d].href="javascript:void(0)"}}}c=xGetElementById("_kq");b=xGetElementById("after_bottom_line");if(c!=null&&b!=null){c.parentNode.replaceChild(b,c);xDisplay(b,"")}_nM()}function _lN(a){_s._c("_qY","",480,200);if(typeof a=="function"){setTimeout(a,2000)}setTimeout(_s._X,2000)}function __j(){var c=xGetElementById("bmk_url");if(c!=null){c.value=window.location.href}else{return}c=xGetElementById("add_bmk_form");try{if(c!=null){var b=window.open("about:blank","addbmk","status=no,scrollbars=no,location=no,width=1,height=1");if(b==null){alert("Để sử dụng chức năng này bạn hãy tắt chức năng chặn popup cho website của hệ thống");return}b.focus();c.target="addbmk";if(c.action.indexOf("jcapt.com")== -1){c.action=c.action.replace(window.location.host,sv_a)}c.submit()}}catch(a){}}function __l(){var c=xGetElementById("cmt_art_url");if(c!=null){c.value=window.location.href}else{return}c=xGetElementById("post_cmt_form");try{if(c!=null){var b=window.open("about:blank","postcmt","status=no,scrollbars=no,location=no,width=1,height=1");if(b==null){alert("Để sử dụng chức năng này bạn hãy tắt chức năng chặn popup cho website của hệ thống");return}b.focus();c.target="postcmt";if(c.action.indexOf("jcapt.com")== -1){c.action=c.action.replace(window.location.host,sv_a)}c.submit()}}catch(a){}}function __q(b,c){_gl=b;var a=0;if(typeof c!="undefined"){a=c}__F.__E({url:__H(sv_P,sv_c,"public"),_n:"ws_dA",__A:{sp_a:b,sp_i:a,sp_l:10},__G:_od,onError:function(d){},__B:function(d){}})}function _xr(a){__F.__E({url:__H(sv_P,sv_c,"public"),_n:"ws_dA",__A:{sp_a:a,sp_i:0,sp_l:3},__G:_ow,onError:function(b){},__B:function(b){}})}function _ow(a){if(a.responseText[0]!="\n"){if(_u._w["cmtxsl"]!=null){var b=_S(a.responseXML,"//RealTotalCount");if(b!=""){xInnerHtml("cmt_count",b)}var c=_ba(_u._w["cmtxsl"],a.responseXML);_ex(c);_q(a)}else{__F.__E({url:__H(sv_P,sv_c,"public"),_n:"ws_dB",__A:{sp_bo:"cmt_output"},__G:function(e){_u._w["cmtxsl"]=e.responseXML;var f=_ba(_u._w["cmtxsl"],a.responseXML);var d=_S(a.responseXML,"//RealTotalCount");if(d!=""){xInnerHtml("cmt_count",d)}_q(a);_q(e);_ex(f)},onError:function(d){},__B:function(d){}})}}}function _ex(b){var a=document.getElementById("cmt_list");_bd(a);a.appendChild(b)}function _od(a){if(a.responseText[0]!="\n"){if(_u._w["cmtxsl"]!=null){var b=_ba(_u._w["cmtxsl"],a.responseXML);_ex(b);_jq(parseInt(_S(a.responseXML,"//TotalCount"),10));_q(a)}else{__F.__E({url:__H(sv_P,sv_c,"public"),_n:"ws_dB",__A:{sp_bo:"cmt_output"},__G:function(c){_u._w["cmtxsl"]=c.responseXML;var d=_ba(_u._w["cmtxsl"],a.responseXML);_jq(parseInt(_S(a.responseXML,"//TotalCount"),10));_q(a);_q(c);_ex(d)},onError:function(c){},__B:function(c){}})}}}function _jq(b){if(typeof _ar=="undefined"){_ar=new _dx()}var a=10;_ar._A=(b%a==0?Math.floor(b/a):Math.floor(b/a)+1);_ar._bK=10;_ar._dg="cmt_pager";_ar._j();_ar.Direction="up";_ar._bq=function(d){var c=(d-1)*a;__q(_gl,c)}}function _nM(){var a=xGetElementsByTagName("object");for(var b=0;b<a.length;b++){if(a[b].getAttribute("id")!=null&&a[b].getAttribute("id").indexOf("audioplayer")!= -1){var c=document.createElement("script");c.setAttribute("src","/dat/players/audio-player.js");document.getElementsByTagName("head")[0].appendChild(c);break}}}function _kf(){var b=xGetURLArguments("q");if(b==""||typeof b=="undefined"){return}b=decodeURIComponent(b).replace(/\+/gi," ");var a=xGetElementsByName("_jS","div");var c="<span class='_jr'>$1</span>";var e="";for(var d=0;d<a.length;d++){e=xInnerHtml(a[d]);e=e.replace(new RegExp("("+b+")","gi"),c);xInnerHtml(a[d],e)}}var _iw=0;function _kW(){if(_iw<1&&typeof sv_cE=="undefined"){setTimeout(_kW,100);return;_iw+=1}if(sv_cE==""||typeof sv_cE=="undefined"){return}sv_cE=decodeURIComponent(sv_cE).replace(/\+/gi," ");var a=xGetElementsByName("_jS","div");var b="$1<em class='_jr'>$2</em>$3";var d="";for(var c=0;c<a.length;c++){d=">"+xInnerHtml(a[c])+"<";d=d.replace(new RegExp("(>[^<]*)("+sv_cE+")([^<]*<)","gi"),b);d=d.substring(1,d.length-1);xInnerHtml(a[c],d)}};
/*------------------------------*/
function _DF(){if(_R){this._t=_aF}else{this._t=_dF}this._t();var l=this;var n=null;var o=null;var i="_ia";var c="_io";var j=0;var f=10;var a=__H(sv_P,sv_c,"public");this._vB=function(s){if(typeof s!="undefined"){sv_A=s}l._jU()};this._jU=function(){var s=xGetElementById(i);if(s==null){return}xInnerHtml(s,_r());__F.__E({url:a,_n:"ws_aO",__A:{sp_f:sv_A},__G:g})};var g=function(s){if(s.responseText[0]=="0"){xInnerHtml(i,s.responseText)}else{document.title=_S(s.responseXML,"/root/Title");if(_u._w["detail_subj_tpl"]!=null){h(s.responseXML,_u._w["detail_subj_tpl"],i)}else{n=s;__F.__E({url:a,_n:"ws_aN",__A:{sp_m:"detail_subject",sp_ah:_R},__G:m})}}};var m=function(s){if(s.responseText[0]=="\n"){xInnerHtml(i,s.responseText)}else{_u._w["detail_subj_tpl"]=s.responseXML;h(n.responseXML,s.responseXML,i)}};var h=function(t,u,x){var v=xGetElementById(x);_bd(v);var w=_ba(u,t,new Date().getTime());v.appendChild(w);if(_R){r(v)}if(x=="_io"){var s=_S(t,"//TotalCount");q(parseInt(s,10))}};this._gY=function(){var s=xGetElementById(c);if(s==null){return}xInnerHtml(s,_r());__F.__E({url:a,_n:"ws_aP",__A:{sp_ai:sv_G,sp_i:j,sp_l:f,sp_aj:_R},__G:p,__B:d})};var d=function(){l._zz(i,"Timed out. ",_gY)};var p=function(s){if(s.responseText[0]=="\n"){xInnerHtml(c,s.responseText)}else{if(_u._w["art_in_subj_tpl"]!=null){h(s.responseXML,_u._w["art_in_subj_tpl"],c)}else{o=s;__F.__E({url:a,_n:"ws_aN",__A:{sp_m:"artinsub",sp_ah:_R},__G:e})}}};var e=function(s){if(s.responseText[0]=="\n"){xInnerHtml(c,s.responseText)}else{_u._w["art_in_subj_tpl"]=s.responseXML;h(o.responseXML,s.responseXML,c)}};this._ok=function(t,u){var s=xGetElementById("_kT");xInnerHtml(s,_r());__c._j(t,u,s);__F.__E({url:a,url:__H(sv_P,sv_c,"public"),_n:"ws_aQ",__A:{sp_aj:_R},__G:k})};var k=function(u){var s=xGetElementById("_kT");if(u.responseText[0]=="\n"){xInnerHtml(s,u.responseText)}else{var t=_bF(_S(u.responseXML,"/root/Xml"));var v=_bF(_S(u.responseXML,"/root/Xsl"));var w=_ba(v,t);s.innerHTML="";s.appendChild(w);if(_R){r(s)}delete u.responseText}};var r=function(u){var s=u.getElementsByTagName("a");for(var t=0;t<s.length;t++){s[t].setAttribute("href","javascript:void(0)");s[t].onmouseover=null;s[t].onmouseout=null}};var b=new _dx();function q(s){b._A=(s%f==0?Math.floor(s/f):Math.floor(s/f)+1);b._bK=10;b._dg="_uA";b._j();b.Direction="down";if(!_R){b._bq=function(t){j=(t-1)*f;l._gY()}}}};
/*------------------------------*/
function _jR(){if(_R){this._t=_aF}else{this._t=_dF}this._t();var h=this;var g="";var f="";var d=0;var b=10;var a=null;function c(j){if(j.responseText[0]=="\n"){xInnerHtml(f,j.responseText)}else{var i=_bF(_S(j.responseXML,"/root/Xml"));var k=_bF(_S(j.responseXML,"/root/Xsl"));var n=parseInt(_S(i,"//TotalCount"),10);var m=xGetElementById(f);if(n>0){m.innerHTML="";var p=_ba(k,i,g);var l=xFirstChild(p);if(l){_eF(l,g)}m.appendChild(p);e(n);h._q(j)}else{m.innerHTML="Tìm thấy 0 kết quả";m.style.height="200px"}}}function e(i){if(a==null){a=new _dx()}a._A=(i%b==0?Math.floor(i/b):Math.floor(i/b)+1);a._bK=10;a._dg="_lq";a._j();a.Direction="down";a._bq=function(j){d=(j-1)*b;h._gs()}}this._gs=function(){if(_R){return}var p=xGetElementById("_mV");var k=xGetElementById("_oz");var o=xGetElementById("_mi");var j=o.options[o.selectedIndex].value+"-"+k.options[k.selectedIndex].value+"-"+p.options[p.selectedIndex].value;var q=_u._w["commonconfig"];var l=_cC(q,"//slot[@type='list']/module");var m=l.getAttribute("tpl_name");b=l.getAttribute("rec_count");if(b==null){_ap=10}if(m==null){m="default"}f=l.parentNode.getAttribute("id")+"_"+"_ad_";var i=xGetElementById(f);var n=l.parentNode.getAttribute("cust_id");n=(n==null?new Date().getTime():n);if(i==null){return}xInnerHtml(i,_r("center"));var r=new __F();__F.__E({_n:"ws_aI",__A:{sp_f:sv_C,sp_i:d,sp_l:b,sp_Y:j,sp_Z:m},__G:c})}};
/*------------------------------*/
function __t(){var a=xGetElementById("_ao_");if(a.value==lang927){a.value=""}a.className="_a12_ uss_textfield_focus fl"}function __p(){_bJ=xGetElementById("_ao_");if(_bJ.value==""){_bJ.value=lang927}_bJ.className="_a12_ fl"}function __u(a){if(typeof _R!="undefined"&&_R==true){return}var b=new xEvent(a);if(b.keyCode==13){__v()}}function __v(){_bJ=xGetElementById("_ao_");window.location="/"+sv_c+"/search/1.html?q="+encodeURIComponent(_bJ.value)};
