﻿
/*combine position*/

/*
 * common lib 1.0 
 * (c) 2007-2008 UssCorp 
 * compressed version
  */
function co(hP){var aa=document.getElementsByName(hP);var ct="";for(var i=0;i<aa.length;i++){if(aa[i].type=="checkbox"&&aa[i].checked)ct+=(ct==""?"":",")+aa[i].value;}return ct;};function yi(pJ){var aa=document.getElementsByName(pJ);for(var i=0;i<aa.length;i++){if(aa[i].type=="radio"&&aa[i].checked)return aa[i].value;}return "";};function iV(hP,jC){var aa=document.getElementsByName(hP);var eh=document.getElementsByName(jC);var ct="";var regex=new RegExp('^[1-9][0-9]*$');for(var i=0;i<aa.length;i++){if(aa[i].type=="checkbox"&&aa[i].checked){if(!eh[i].value.match(regex)){alert(lang1300);eh[i].value="";eh[i].focus();return null;}else ct+=(ct==""?"":",")+eh[i].value;}}return ct;};function kW(img){if(typeof img.gp=='undefined')img.gp=img.width;if(typeof img.ej=='undefined')img.ej=img.height;var dy=img.hw/img.gp;var dF=img.iG/img.ej;if(dy>1&&dF>1){if(img.ej>img.gp){img.height=img.iG;img.width=Math.floor(img.ej*dF);}else{img.width=img.hw;img.height=Math.floor(img.ej*dy);}}else if(dy<dF){img.height=Math.floor(img.ej*dy);img.width=img.hw;}else{img.width=Math.floor(img.gp*dF);img.height=img.iG;}if(img.style.visibility=='hidden')img.style.visibility='visible';img=null;};function yD(img,Ji,im){var dy=Ji/img.width;var dF=im/img.height;if(dy<dF){img.height=Math.floor(img.height*dy);img.width=Ji;}else{img.width=Math.floor(img.width*dF);img.height=im;}};function hl(bi,oz,cz){aa=bi.getElementsByTagName("img");var iK=new Object();if(aa&&aa.length>0)for(var i=0;i<aa.length;i++){var Ji=0,im=0;var rule=false;var gw="";var css=aa[i].getAttribute("uss_class");var bd=aa[i].getAttribute("uss_selector");gw=aa[i].getAttribute("default_selector");if(!bd&&gw)aa[i].setAttribute("uss_selector",gw.replace(oz,cz));if(css){if(typeof iK[css]=='undefined'){if(css.indexOf('.')== -1)css="."+css;if(bd){bd="#"+bd+" "+css;rule=dK(bd);}if(rule==false){if(typeof cz!='undefined'){bd="#"+aa[i].getAttribute("uss_selector")+" "+css;rule=dK(bd);}if(rule==false){bd="."+gw+" "+css;rule=dK(bd);}}if(rule)iK[css]=rule;}rule=iK[css];if(rule){aa[i].iG=parseInt(rule.style.height,10);aa[i].hw=parseInt(rule.style.width,10);}if(aa[i].complete)kW(aa[i]);else aa[i].onload=function(){kW(this);};}}};function yB(gJ){if(!window.opera&& !document.mimeType&&document.all&&document.getElementById){parent.document.getElementById(gJ).style.height=this.document.body.offsetHeight+"px";}else if(navigator.userAgent.indexOf('Safari')!= -1){parent.document.getElementById(gJ).style.height=this.document.body.offsetHeight+"px";}else if(document.getElementById){parent.document.getElementById(gJ).style.height=this.document.body.scrollHeight+"px"}};function hs(ce,cG,dG){return window.location.protocol+"//"+ce+"/"+cG+"/fpages/"+dG+"/";};function nD(ce,cG,dG){return window.location.protocol+"//"+ce+"/"+cG+"/bpages/"+dG+"/";};function yu(ce,cG,dG){return window.location.protocol+"//"+ce+"/"+cG+"/opages/"+dG+"/";};function __H(ce,cG,dG){var url=window.location.protocol+"//"+ce+"/"+cG+"/services/"+dG+".srv";return url.replace("//service","/service");};function yt(ce,cG){return window.location.protocol+"//"+ce+"/"+cG+"/";};function bo(dir){var bB="";if(dir=='center'){bB="<table width='100%' height='100%' style='background-color:#ffffff'><tr><td";bB+=" valign='middle' align='center'>";bB+="<img src='/dat/commons/images/loadingball_64.gif' style='top:50%' />";bB+="</td></tr></table>";}else bB="<img src='/dat/commons/images/loading.gif' />";return bB;};function jm(dir){var bB="";if(dir=='center'){bB="<table width='100%' height='100%' style='background-color:#ffffff'><tr><td";bB+=" valign='middle' align='center'>";bB+="<img src='/dat/commons/images/reload.gif' /> reload";bB+="</td></tr></table>";}else bB="<img src='/dat/commons/images/reload.gif' /> reload";return bB;};function lk(){return "Tải dữ liệu không thành công";};function ac(){};ac.Global=[];ac.__ag=[];function onUnload(){var cW=function(T){if(typeof T.constructor=='undefined'||T.constructor.toString().indexOf('Array')== -1)T=null;else{for(var o in T)cW(T[o]);}};cW(ac.__ag);cW(ac.Global);if(typeof __f!='undefined'&&typeof __f.cW=='function')__f.cW();bh(document.body);};function ay(o){o.responseText=null;o.responseXML=null;o.at=null;o=null;};function si(f,lj){var ik='../../js/';if(typeof lj!='undefined')ik=lj;if(f.indexOf(".js")== -1)f+=".js";if(ac.__ag["includedjs"]==null)ac.__ag["includedjs"]=new Array();if(ac.__ag["includedjs"][f]!=true){document.write(unescape("%3Cscript src='"+ik+f+"' type='text/javascript'%3E%3C/script%3E"));ac.__ag["includedjs"][f]=true;}};function ys(f){if(ac.__ag["includedcss"]==null)ac.__ag["includedcss"]=new Array();if(ac.__ag["includedcss"][f]!=true){var il=document.getElementsByTagName("head")[0];if(il==null)il=document.body;var gm=document.createElement("link");gm.setAttribute("type","text/css");gm.setAttribute("rel","stylesheet");gm.setAttribute("href",f);il.appendChild(gm);ac.__ag["includedcss"][f]=true;}};function kG(ap){var ae=ap.getElementsByTagName("a");for(var i=0;i<ae.length;i++){ae[i].setAttribute("href","javascript:void(0)");ae[i].onmouseover=null;ae[i].onmouseout=null;ae[i].onclick=null;}};function bh(dg){if(dg==null)return;var cy=dg.attributes,i,l,n;if(cy){l=cy.length;for(i=0;i<l;i+=1){n=cy[i].name;if(typeof dg[n]==='function'){dg[n]=null;}}}cy=dg.childNodes;if(cy){l=cy.length;for(i=0;i<l;i+=1){bh(dg.childNodes[i]);}}};function cD(dh){var cy,i,l,n;if(dh!=null&&dh.hasChildNodes()){while(dh.childNodes.length>=1){bh(dh.firstChild);dh.removeChild(dh.firstChild);}}};if(!document.all&&HTMLElement){HTMLElement.prototype.__defineGetter__("innerText",function(){return this.textContent;});HTMLElement.prototype.__defineSetter__("innerText",function(v){this.textContent=v;});};function yv(){var s=arguments[0];var ic="";for(var i=0;i<arguments.length-1;i++){if(typeof arguments[i+1]=='string')ic=arguments[i+1].toLowerCase();else ic=arguments[i+1];s=s.replace('{'+i+'}',ic);}return s;};function lm(name){var iq="[\\?&]"+name+"=([^&#]*)";var regex=new RegExp(iq);var qY=window.location.href;var __X=regex.exec(qY);if(__X==null)return "";else return __X[1];};function yr(ox){var iq="[/\\\|,<>:?\*%]";return ox.match(new RegExp(iq));};function __K(aH){aH.className="uss_textfield uss_textfield_focus";};function __L(aH){aH.className="uss_textfield";};function __b(aH){aH.className="uss_textfield_sel uss_textfield_sel_focus";};function __a(aH){aH.className="uss_textfield_sel";};function nI(aH){aH.className="uss_textarea uss_textarea_focus";};function nm(aH){aH.className="uss_textarea";};function ll(){var gh="1234567890";var oS=gh.length;var result,i,j;result='';for(j=0;j<13;j++){i=Math.floor(Math.random()*16%oS);result=result+i;}return result};function wS(ln,qr){__F.__E({url:__H(window.location.host,sv_c,"public"),__D:"wsf_h",__G:function(ag){if(ag.responseText=="true")ln.apply();else qr.call(null,ln);}});};if(!Array.prototype.indexOf){Array.prototype.indexOf=function(T){for(var i=0;i<this.length;i++){if(this[i]==T){return i;}}return-1;}};String.prototype.trim=function(){return this.replace(/^\s\s*/,'').replace(/\s\s*$/,'');};String.prototype.format=function(){var s=this;var ic="";for(var i=0;i<arguments.length;i++){if(typeof arguments[i+1]=='string')ic=arguments[i+1].toLowerCase();else ic=arguments[i+1];s=s.replace('{'+i+'}',ic);}return s;};String.prototype.JG=function(){return this.replace(/[<>&"]/g,function(c){return{'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;'}[c]||c;});};String.prototype.JE=function(){return s.replace(/&lt;|&gt;|&amp;|&quot;/g,function(s){return{'&lt;':'<','&gt;':'>','&amp;':'&','&quot;':'"'}[s]||s;});};String.prototype.JB=function(){return this.replace(/<([^>]+)>/g,'&lt;$1&gt;');};String.prototype.JD=function(){return s.replace(/&lt;|&gt;/g,function(s){return{'&lt;':'<','&gt;':'>'}[s]||s;});};String.prototype.JF=function(kC){var vB=new RegExp("["+kC+"]","g");return this.replace(vB,function(c){return{'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;','\'':'&apos'}[c]||c;});};String.prototype.JC=function(kC){var xL={'<':'&lt;','>':'&gt;','&':'&amp;','"':'&quot;','\'':'&apos'};var le="";for(var i=0;i<kC.length;i++)le+=(le==""?"":"|")+xL[kC.charAt(i)];var vB=new RegExp(le,"g");return s.replace(vB,function(s){return{'&lt;':'<','&gt;':'>','&amp;':'&','&quot;':'"','&apos':'\''}[s]||s;});}
/*combine position*/
/*  
 * (c) 2007-2008 UssCorp  
 * compressed version
 */;var oa=false;var am=null;function gP(){var V=this;var ao=null;this.gf=false;this.Init=function(){try{__F.mq({bU:0,bw:20000,__C:sv_b,url:__H(sv_P,sv_c,"public"),onError:V.ee,__B:V.fH,nc:V.ji});hH();if(typeof __w!='undefined')ri(__w);}catch(e){}};var hH=function(){aa=aT("uss_image","img");var iK=new Object();var Ji,im,rule,css,bd,oz,tF;var iK=new Object();var regex=new RegExp("^([^\\s]+)");if(aa&&aa.length>0)for(var i=0;i<aa.length;i++){Ji=0;im=0;rule=false;css=aa[i].getAttribute("uss_class");bd=aa[i].getAttribute("uss_selector");gw=aa[i].getAttribute("default_selector");tF=aa[i].getAttribute("cid");if(!bd&&gw){bd=gw.replace(regex,"$1"+"_"+tF);aa[i].setAttribute("uss_selector",bd);}if(css){if(typeof iK[css]=='undefined'){if(css.indexOf('.')== -1)css="."+css;if(bd){bd="#"+bd+" "+css;rule=dK(bd);}if(rule==false){if(typeof tF!='undefined'){bd="#"+aa[i].getAttribute("uss_selector")+" "+css;rule=dK(bd);}if(rule==false){bd="."+gw+" "+css;rule=dK(bd);}}if(rule)iK[css]=rule;}rule=iK[css];if(rule){aa[i].iG=parseInt(rule.style.height,10);aa[i].hw=parseInt(rule.style.width,10);}if(aa[i].complete)gi(aa[i]);else aa[i].onload=function(){gi(this);};}}};var gi=function(img){if(typeof img.gp=='undefined')img.gp=img.width;if(typeof img.ej=='undefined')img.ej=img.height;var dy=img.hw/img.gp;var dF=img.iG/img.ej;if(dy>1&&dF>1){if(img.ej>img.gp){img.height=img.iG;img.width=Math.floor(img.ej*dF);}else{img.width=img.hw;img.height=Math.floor(img.ej*dy);}}else if(dy<dF){img.height=Math.floor(img.ej*dy);img.width=img.hw;}else{img.width=Math.floor(img.gp*dF);img.height=img.iG;}if(img.style.visibility=='hidden')img.style.visibility='visible';img=null;};this.__g=function(ax){var Count=0;var o=document.createElement("div");o.id="view_detail";xInnerHtml(o,bo('center'));if(am==null)am=new by("f_");am.bf(o,"Xem chi tiết",700);__F.__E({url:__H(sv_P,sv_c,"public"),__D:"ws_P",__A:{sp_f:ax},__G:uY});};var uY=function(ab){if(ab.responseText[0]=='\n'){am.SetHtml(ab.responseText);return;}aU("/"+sv_c+"/../translate/?f=xembai",ab.responseXML,va,new Date().getTime());};var va=function(o){o.id="view_detail";am.bf(o,"Xem chi tiết",700);};this.__k=function(cU,kz){cssRule=dK("#"+cU+"."+cU+" p, #"+cU+"."+cU,"cmodcss.cns");var bY=12;var cX=16;var fv=2;if(cssRule){bY=parseInt(cssRule.style.fontSize);if(isNaN(bY))bY=12;cX=parseInt(cssRule.style.lineHeight);if(isNaN(cX))bY=16;cX+=kz?fv: -1*fv;if(cX<16)cX=16;bY+=kz?fv: -1*fv;if(bY<12)bY=12;cssRule.style.fontSize=bY+"px";cssRule.style.lineHeight=cX+"px";}else{var mu=dK(".ussBody");if(mu){bY=parseInt(mu.style.fontSize);if(isNaN(bY))bY=12;cX=parseInt(mu.style.lineHeight);if(isNaN(cX))bY=16;}var styleSheet=document.styleSheets[0];var selectorText="#"+cU+"."+cU+" p, #"+cU+"."+cU;bY+=kz?fv: -1*fv;if(bY<12)bY=12;cX+=kz?fv: -1*fv;if(cX<16)cX=16;var cssText="font-size:"+bY+"px"+";line-height:"+cX+"px";try{if(styleSheet.insertRule)styleSheet.insertRule(selectorText+"{ "+cssText+" }",0);else if(styleSheet.addRule)styleSheet.addRule(selectorText,cssText,0);}catch(e){}}__o("dt_f",bY+"_"+cX);};this.tQ=function(cU){var styleSheet=document.styleSheets[0];var selectorText="#"+cU+"."+cU+" p, #"+cU+"."+cU;var oA=yj("dt_f");if(oA!=""){var aa=oA.split("_");if(aa.length==2){var cssText="font-size:"+aa[0]+"px"+";line-height:"+aa[1]+"px";try{if(styleSheet.insertRule)styleSheet.insertRule(selectorText+"{ "+cssText+" }",0);else if(styleSheet.addRule)styleSheet.addRule(selectorText,cssText,0);}catch(e){}}}};this.mB=function(){var ae=null;var cq="";var bp="";var bI="";var i=0;var gU=null;var gQ=null;var eC="";var cV="";ae=aT("module","div");while(ae.length>0){bp=ae[0].getAttribute("type");bO=ae[0].getAttribute("slot");gU=xGetElementById("md_"+bO);if(gU!=null){gQ=gU.firstChild;if(gQ!=null){if(gQ.nodeType!=1){ae[0].innerHTML=gU.innerHTML;ae[0].setAttribute("name","");}else{eC=gU.getAttribute("cust_id");if(eC==null)eC=new Date().getTime();cV=gU.getAttribute("tpl_name");gQ.id=cV+"_"+eC;ae[0].parentNode.replaceChild(gQ,ae[0]);if(cV!=null){hl(gQ,cV,cV+"_"+eC);}}}else{ae[0].parentNode.replaceChild(document.createElement("div"),ae[0]);}}else{ae[0].parentNode.replaceChild(document.createElement("div"),ae[0]);}ae=aT("module","div");}};this.lC=function(iU){var aQ=null;if(ac.__ag["slottemplate"]!=null)aQ=ac.__ag["slottemplate"][iU];if(aQ==null){aQ=document.getElementById(iU);if(aQ==null)aQ=document.getElementById("slot_uss_slot_01");if(aQ!=null){if(ac.__ag["slottemplate"]==null)ac.__ag["slottemplate"]=new Array();ac.__ag["slottemplate"][iU]=aQ;}}return aQ;};this.mz=function(){var lD=xGetElementById("page_content");if(lD!=null)lD.parentNode.removeChild(lD);}}
/*combine position*/
;var kD="";function eI(At){var ae=null;var oX=true;var bu=xGetElementById("uss_uss_info");var bq=xGetElementById("uss_info");if(document.getElementById("uss_frame_header_fr")!=null){bq.style.display='';oX=false;}if(bu!=null&&bq!=null){bu.parentNode.replaceChild(bq,bu);if(bK){document.getElementById("uss_frame_header_fr").onload=function(){var ae=this.contentWindow.document.getElementsByTagName("a");for(var i=0;i<ae.length;i++)ae[i].href="javascript:void(0)";}}}bu=xGetElementById("uss_bottom_line");bq=xGetElementById("bottom_line");if(bu!=null&&bq!=null){bu.parentNode.replaceChild(bq,bu);xDisplay(bq,"");if(bK){ae=bq.getElementsByTagName("a");for(var i=0;i<ae.length;i++)ae[i].href="javascript:void(0)";}}bu=xGetElementById("uss_after_bottom_line");bq=xGetElementById("after_bottom_line");if(bu!=null&&bq!=null){bu.parentNode.replaceChild(bq,bu);xDisplay(bq,"");}eW();};function vy(di){am.bf("login_require_dlg","",480,200);if(typeof di=='function')setTimeout(di,2000);setTimeout(am.Hide,2000);};function __j(){var aG=xGetElementById("bmk_url");if(aG!=null)aG.value=window.location.href;else return;aG=xGetElementById("add_bmk_form");try{if(aG!=null){var o=window.open("about:blank","addbmk","status=no,scrollbars=no,location=no,width=1,height=1");if(o==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;}o.focus();aG.target="addbmk";if(aG.action.indexOf("jcapt.com")== -1)aG.action=aG.action.replace(window.location.host,sv_a);aG.submit();}}catch(e){}};function __l(){var aG=xGetElementById("cmt_art_url");if(aG!=null)aG.value=window.location.href;else return;aG=xGetElementById("post_cmt_form");try{if(aG!=null){var o=window.open("about:blank","postcmt","status=no,scrollbars=no,location=no,width=1,height=1");if(o==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;}o.focus();aG.target="postcmt";if(aG.action.indexOf("jcapt.com")== -1)aG.action=aG.action.replace(window.location.host,sv_a);aG.submit();}}catch(e){}};function __q(gn,gs){kD=gn;var f=0;if(typeof gs!='undefined')f=gs;__F.__E({url:__H(sv_P,sv_c,"public"),__D:"ws_dA",__A:{sp_a:gn,sp_i:f,sp_l:10},__G:qB,onError:function(ag){},__B:function(ag){}});};function ri(gn){__F.__E({url:__H(sv_P,sv_c,"public"),__D:"ws_dA",__A:{sp_a:gn,sp_i:0,sp_l:3},__G:qG,onError:function(ag){},__B:function(ag){}});};function qG(ag){if(ag.responseText[0]!='\n'){if(ac.__ag["cmtxsl"]!=null){var s=aZ(ag.responseXML,"//RealTotalCount");if(s!="")xInnerHtml("cmt_count",s);var o=dj(ac.__ag["cmtxsl"],ag.responseXML);gq(o);ay(ag);}else{__F.__E({url:__H(sv_P,sv_c,"public"),__D:"ws_dB",__A:{sp_bo:"cmt_output"},__G:function(ft){ac.__ag["cmtxsl"]=ft.responseXML;var o=dj(ac.__ag["cmtxsl"],ag.responseXML);var s=aZ(ag.responseXML,"//RealTotalCount");if(s!="")xInnerHtml("cmt_count",s);ay(ag);ay(ft);gq(o);},onError:function(ag){},__B:function(ag){}});}}};function gq(o){var oDiv=document.getElementById("cmt_list");cD(oDiv);oDiv.appendChild(o);};function qB(ag){if(ag.responseText[0]!='\n'){if(ac.__ag["cmtxsl"]!=null){var o=dj(ac.__ag["cmtxsl"],ag.responseXML);gq(o);ld(parseInt(aZ(ag.responseXML,"//TotalCount"),10));ay(ag);}else{__F.__E({url:__H(sv_P,sv_c,"public"),__D:"ws_dB",__A:{sp_bo:"cmt_output"},__G:function(ft){ac.__ag["cmtxsl"]=ft.responseXML;var o=dj(ac.__ag["cmtxsl"],ag.responseXML);ld(parseInt(aZ(ag.responseXML,"//TotalCount"),10));ay(ag);ay(ft);gq(o);},onError:function(ag){},__B:function(ag){}});}}};function ld(bm){if(typeof as=='undefined')as=new gZ();var aO=10;as.bL=(bm%aO==0?Math.floor(bm/aO):Math.floor(bm/aO)+1);as.ea=10;as.eP="cmt_pager";as.Show();as.Direction="up";as.cY=function(cP){var f=(cP-1)*aO;__q(kD,f);};};function eW(){var aa=ma("object");for(var i=0;i<aa.length;i++)if(aa[i].getAttribute('id')!=null&&aa[i].getAttribute('id').indexOf('audioplayer')!= -1){var eR=document.createElement("script");eR.setAttribute("src","/dat/players/audio-player.js");document.getElementsByTagName("head")[0].appendChild(eR);break;}};function ns(){var jc=GX("q");if(jc==""||typeof jc=="undefined")return;jc=decodeURIComponent(jc).replace(/\+/g," ");var ae=aT("search_result","div");var mW="<span class='uss_fmark'>$1</span>";for(var i=0;i<ae.length;i++){var s=xInnerHtml(ae[i]);s=s.replace(new RegExp("("+jc+")","gi"),mW);xInnerHtml(ae[i],s);}}
/*combine position*/
/*  
 * (c) 2007-2008 UssCorp  
 * compressed version
 */;function nd(){var nn=20000;var nv=0;var V=this;this.rF=function(ax,ho,dR){var ap=xGetElementById(ax);ho+="<br />";if(ap!=null){bh(ap);ap.innerHTML="";var ei=ad.createElement("span");xInnerHtml(ei,ho);ap.appendChild(ei);if(typeof Au=='function'){var cE=document.createElement("a");cE.innerHTML=jm('center');cE.onclick=dR;ap.appendChild(cE);}}};this.ee=function(ag){};this.fH=function(ag){};this.ji=function(ag){};var jn=function(ao){ao.responseText=null;ao.responseXML=null;ao.tag=null;ao=null;};this.ay=function(ao){jn(ao)};this.dk=function(ag){return ag.responseText[0]=='\n';};this.bJ=function(){aK.Show("loading",lang1297,false,200,100);};this.aW=function(msg){aK.Show("error",msg,true,300,100);};this.fE=function(msg){aK.Show("ok",msg,true,300,100);setTimeout(aK.Hide,600);};}
/*combine position*/

/*
 * dropdown menu 1.0 
 * (c) 2007-2008 UssGroup  
 * compressed version
 */
;function __c(button,menu){var T=new Object();var ai=null;var oButton=null;if(dc(menu))ai=xGetElementById(menu);else ai=menu;if(dc(button))oButton=xGetElementById(button);else oButton=button;T.qs=function(aw){var e=new fs(aw);T.ec(aw,e.target,ai);};T.ec=function(aw,dN,aJ,hO,hZ,dir){if(typeof aJ=='string')aJ=xGetElementById(aJ);if(ai==null)ai=aJ;if(document.all){aw.cancelBubble=true;}else if(aw!=null)aw.stopPropagation();xDisplay(aJ,"");var x=xPageX(dN,true)+jb(dN);var y=xPageY(dN,true)+xHeight(dN)+hp(dN);var bx=0;var cd=0;var Ld=cJ(aJ,"max_height",1);var Lb=cJ(aJ,"max_width",1);if(Ld>0)hZ=Ld;var Lc=aJ.getAttribute("auto_width")=="true";bx=xWidth(aJ);if(dr(hO)){if(bx>0&&bx<hO){aJ.style.width=hO+"px";Lc=false;}}if(Lb>0&&bx>Lb){aJ.style.width=Lb+"px";Lc=false;}if(Lc)aJ.style.width="auto";if(dr(hZ)){cd=xHeight(aJ);if(cd>hZ)aJ.style.height=hZ+"px";aJ.style.overflowY="auto";aJ.style.overflowX="hidden";}else aJ.style.height="auto";bx=xWidth(aJ);cd=xHeight(aJ);var df=qM();var lc=df.h-hp()-xClientHeight();var sr=df.w-jb()-xClientWidth();if(dir=='left'){x+=cJ(dN,"width",1)-bx;if(x<0)x=10;}else{if(x+bx>=(df.w-sr))x-=(x+bx-(df.w-sr))+4;}if(y+cd>=(df.h-lc)){y-=(y+cd-(df.h-lc))+10;}xMoveTo(aJ,x,y);xAddEventListener(document,"click",T.ep,false);};T.ep=function(){if(ai!=null){xDisplay(ai,"none");xRemoveEventListener(document,"click",T.ep,false);ai=null;}};xAddEventListener(oButton,"click",T.qs,false);return T;};__c.be=null;__c.Show=function(aw,__cX,aJ,qW,qo,dir){if(__c.be!=null)__c.be.ep();__c.be=new __c();__c.be.ec(aw,__cX,aJ,qW,qo,dir);};__c.__d=function(aw,__cX,aJ,fp){if(__c.be!=null)__c.be.ep();__c.be=new __c();var o=xGetElementById(aJ);o.style.zIndex=999999;var aa=o.getElementsByTagName("a");for(var i=0;i<aa.length;i++){aa[i].setAttribute("href","javascript:void(0)");aa[i].onclick=function(){xGetElementById(fp).value=this.innerHTML;}}__c.be.ec(aw,__cX,o,80,200,'left');};__c.rn=function(aw,__cX,aJ,pY,fp){if(__c.be!=null)__c.be.ep();__c.be=new __c();var o=xGetElementById(aJ);o.style.zIndex=999999;var aa=o.getElementsByTagName("a");for(var i=0;i<aa.length;i++){aa[i].setAttribute("href","javascript:void(0)");aa[i].onclick=function(){xGetElementById(fp).value=this.getAttribute('value');xGetElementById(pY).value=this.getAttribute('text');}}__c.be.ec(aw,__cX,o,80,200,'left');};__c.__e=function(aw,__cX,fp){if(__c.be!=null)__c.be.ep();__c.be=new __c();var o=xGetElementById("color_select");o.style.zIndex=9999;var aC=xGetElementById("color_select_ok");var hB=o.getElementsByTagName("iframe")[0];aC.hB=hB;aC.onclick=function(){xGetElementById(fp).value=hB.contentWindow.document.getElementById("color_selected").value;};__c.be.ec(aw,__cX,o,200,400,'left');};__c.Le=function(aJ,pY,fp){var o=xGetElementById(aJ);var aa=o.getElementsByTagName("a");for(var i=0;i<aa.length;i++){aa[i].setAttribute("href","javascript:void(0)");aa[i].onclick=function(){xGetElementById(fp).value=this.getAttribute('value');xGetElementById(pY).value=this.getAttribute('text');}}}
/*combine position*/

/*
 * cookie.js 1.0 
 * (c) 2007-2008 UssCorp 
 * compressed version
 */
;function yj(sq){if(document.cookie.length>0){qa=document.cookie.indexOf(sq+"=");if(qa!= -1){qa=qa+sq.length+1;wA=document.cookie.indexOf(";",qa);if(wA== -1)wA=document.cookie.length;return unescape(document.cookie.substring(qa,wA))}}return "";};function __o(sq,value,zT,AI,gv){var vR=new Date();vR.setDate(vR.getDate()+zT);var wx=sq+"="+escape(value)+((zT==null)?"":";expires="+vR.toGMTString());if(typeof AI!='undefined')wx+=" ;path="+AI;if(typeof gv!='undefined')wx+=" ;domain="+gv;document.cookie=wx;}
/*combine position*/
/*
 * Edited by thanhpt
 * compressed version
 */;var hN=12;var jT=16;var ud=10;var uc=6;var fN=document.all;var iz=document.getElementById&& !document.all;var jx=false;var aL=null;var ia=300;function kd(){aL=document.createElement("div");aL.id="dhtmltooltip";aL.className="dhtmltooltip";aL.setAttribute("style","visibility:hidden;");document.body.appendChild(aL);};function ju(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;};function __i(po,jz,fL){if(po=="")return;if(iz||fN){if(aL==null)kd();if(typeof jz!="undefined")aL.style.width=jz+"px";if(typeof fL!="undefined"&&fL!="")aL.style.backgroundColor=fL;aL.innerHTML=po;jx=true;aL.style.visibility="visible";if(xWidth(aL)>ia)xWidth(aL,ia);return false;}};function Cd(url,Dv,jz,fL){w=400;if(iz||fN){if(aL==null)kd();if(typeof jz!="undefined")aL.style.width=w+"px";if(typeof fL!="undefined"&&fL!="")aL.style.backgroundColor=fL;Fy(aL,url);jx=true;return false;}};function vk(e){if(jx){if(aL==null)kd();aL.style.visibility="visible";var pe=false;var mQ=(iz)?e.pageX:event.clientX+ju().scrollLeft;var pa=(iz)?e.pageY:event.clientY+ju().scrollTop;var oT=fN&& !window.opera?ju().clientWidth:window.innerWidth-20;var od=fN&& !window.opera?ju().clientHeight:window.innerHeight-20;var tZ=fN&& !window.opera?oT-event.clientX-hN:oT-e.clientX-hN;var wK=fN&& !window.opera?od-event.clientY-jT:od-e.clientY-jT;var uR=(hN<0)?hN*(-1): -1000;if(tZ<aL.offsetWidth){aL.style.left=mQ-aL.offsetWidth+"px";pe=true;}else if(mQ<uR)aL.style.left="5px";else{aL.style.left=mQ+hN-ud+"px";}if(wK<aL.offsetHeight){aL.style.top=pa-aL.offsetHeight-jT+"px";pe=true;}else{aL.style.top=pa+jT+uc+"px";}}};function __h(){if(iz||fN){if(aL==null)kd();jx=false;aL.style.visibility="hidden";aL.style.left="-1000px";aL.style.backgroundColor='';aL.style.width='';}};document.onmousemove=vk;
/*combine position*/
/*  
 * (c) 2007-2008 UssCorp  
 * compressed version
 */function gZ(){this.bL=0;this.bE=1;this.ea=10;this.eP=null;this.cY=function(page){};this.Direction="down";var cR=null;this.jj=true;var V=this;this.Show=function(){if(this.bL<1)this.bL=1;if(this.bE>this.bL||this.bE<1)return;var gb=1;var mI=Math.floor(this.ea/2);if(this.bL>this.ea&&this.bE-mI>0)gb=(this.bL-this.bE)<(mI+1)?this.bL-this.ea+1:this.bE-mI;gb=Math.floor(gb);var oDiv=xGetElementById(this.eP);if(oDiv==null)return;oDiv.innerHTML="";var ul=oDiv.appendChild(document.createElement("ul"));ul.className="usspaging";if(this.bL<2){xDisplay(oDiv,"none");return;}xDisplay(oDiv,"");lb(oDiv);var li=null;if(this.bE>1){li=ul.appendChild(document.createElement("li"));var mR=li.appendChild(document.createElement("a"));mR.href="javascript:void(0)";mR.onclick=function(){V.cY(1);V.bE=1;V.Show();};mR.innerHTML="&laquo; "+(V.jj?" First":"");li=ul.appendChild(document.createElement("li"));var mF=li.appendChild(document.createElement("a"));mF.href="javascript:void(0)";mF.onclick=function(){V.cY(V.bE-1);V.bE-=1;V.Show();};mF.innerHTML="&lsaquo;"+(V.jj?" Back":"");}for(var i=0;i<this.ea&&gb+i<=this.bL;i++){li=ul.appendChild(document.createElement("li"));var dS=li.appendChild(document.createElement("a"));dS.href="javascript:void(0)";dS.value=gb+i;dS.onclick=function(){V.cY(this.value);V.bE=this.value;V.Show();};dS.innerHTML=gb+i;if((gb+i)==this.bE)li.className="empty";}if(this.bE<this.bL){li=ul.appendChild(document.createElement("li"));var lU=li.appendChild(document.createElement("a"));lU.href="javascript:void(0)";lU.onclick=function(){V.cY(V.bE+1);V.bE+=1;V.Show();};lU.innerHTML="&rsaquo;"+(V.jj?" Next":"");li=ul.appendChild(document.createElement("li"));var lL=li.appendChild(document.createElement("a"));lL.href="javascript:void(0)";lL.onclick=function(){V.cY(V.bL);V.bE=V.bL;V.Show();};lL.innerHTML="&raquo;"+(V.jj?" Last":"");};};var FG=function(aE){var jO=aE?aE:window.event;var dN=aE?jO.target:jO.srcElement;if(aE)jO.stopPropagation();else jO.cancelBubble=true;var kl=xGetElementById(V.eP);cR.innerHTML="";ue=cR.appendChild(document.createElement("span"));for(var i=1;i<=V.bL;i++){var dS=ue.appendChild(document.createElement("a"));dS.innerHTML=i;dS.href="javascript:void(0)";dS.value=i;if(i==V.bE)dS.className="current";dS.onclick=function(){V.cY(this.value);V.bE=this.value;V.Show();};};xWidth(cR,xWidth(kl));if(xHeight(cR)>300)xHeight(cR,300);lb(cR);var y=xPageY(kl);var x=xPageX(kl);if(V.Direction!="down")y-=xHeight(cR);else y+=xHeight(kl);if(y<0)y=10;if(y+xHeight(cR)>=xClientHeight())y=xClientHeight()-xHeight(cR)-20;if(x+xWidth(cR)>=xClientWidth()){x=xClientWidth()-xWidth(cR)-20;}xMoveTo(cR,x,y);document.onclick=xk;};var xk=function(){vP(cR);document.onclick=null;}};
/*combine position*/
/*  
 * (c) 2007-2008 UssCorp  
 * compressed version
 */function __t(){var bD=xGetElementById("tbKeyword");if(bD.value==lang927)bD.value='';bD.className='uss_textfield uss_textfield_focus fl'};function __p(){bD=xGetElementById("tbKeyword");if(bD.value=='')bD.value=lang927;bD.className='uss_textfield fl'};function __u(aw){if(typeof bK!="undefined"&&bK==true)return;var e=new fs(aw);if(e.keyCode==13){__v();}};function __v(){bD=xGetElementById("tbKeyword");window.location="/"+sv_c+"/search/1.html?q="+encodeURIComponent(bD.value);}