/*Copyright by Nguyen Duc Minh*/; function mCopyright() { if((''+window.location).toLowerCase().indexOf('cache')>5) { window.status='Developed by Nguyen Duc Minh and mCMS group - http://www.onip.vn/'; document.getElementById('mCMS').style.display='block' } else { var mc=0; mS = function() { mc=mc+1; if(mc>=18) { window.status='Developed by Nguyen Duc Minh and mCMS group - http://www.onip.vn/'; if(mc==20){window.status='';mc=0;} } window.setTimeout('mS()',1000); } mS(); } } var mG=0; mCL = function () { } function mMenu(m,n) { try { var M=document.getElementById('mS'+m); if(mG!=m) { try{document.getElementById('mS'+mG).style.display='none';} catch(es){} mG=m; } var j=1; if(M==null) return; mCL = function () { if(j==2){M.style.display='none';} else {M.style.display='block';} } if(n==1) { var m8 = 0, m9 = 0; var P=document.getElementById('mM'+m); if (P.offsetParent) { do { m8 += P.offsetLeft m9 += P.offsetTop } while (P = P.offsetParent); } M.style.left=m8-1; M.style.top=m9+34; setTimeout('mCL()','10'); } else {j=2;setTimeout('mCL()','1000');} } catch(e){} } function mToImgAdv(i) { var a=document.getElementById(i); var x = 0; var y=0; if (a.offsetParent) { do { x += a.offsetLeft; y += a.offsetTop; } while (a = a.offsetParent); } a=document.getElementById(i+'_onip'); a.style.left=x+'px'; a.style.top=y+'px'; } function mIE() { if(document.all) { var o = document.getElementsByTagName('embed'); for (var i = 0; i < o.length; i++) o[i].outerHTML = o[i].outerHTML; } } function mVN(m) { try { var i=1; C = function () { if(i==2) { try{frames[0].window.document.mform.m[parent.mVm].checked=true;} catch(ef){} try{window.document.mform.m[mVm].checked=true;} catch(ep){} v.style.display='none'; } } v=document.getElementById('mVN'); if(m==1) { v.style.display='block'; document.forms[0].m[mVm].checked=true; } else {i=2;setTimeout('C()','1000');} } catch(ee){} } function mVoteClick(p,l,i,n) { var a='';var t=0;var o; if(p==1) o=document.getElementById('mL'+i); else if(p==3)o=document.getElementById('mR'+i); else o=document.getElementById('mM'+i); for(c=0;c';mGe=3;} else {o.innerHTML='';mGe=0;} break; case 4: if(mGe!=4) {if(p==null) p=1;mAjax(o,'/vi/phanhoi/baiviet/'+i+'/','p='+p);mGe=4;} else {o.innerHTML='';mGe=0;} break; } } else { switch(a) { case 1: if(mGe!=1) {o.innerHTML='';mGe=1;} else {o.innerHTML='';mGe=0;} break; case 2: if(mGe!=2) {o.innerHTML='';mGe=2;} else {o.innerHTML='';mGe=0;} break; case 3: if(mGe!=3) {o.innerHTML='';mGe=3;} else {o.innerHTML='';mGe=0;} break; case 4: if(mGe!=4) {if(p==null) p=1;mAjax(o,'/en/discussion/article/'+i+'/','p='+p);mGe=4;} else {o.innerHTML='';mGe=0;} break; } } } function mToSearchPage(m,n) { a=document.mform; if(n==0) { s=document.forms['mSP'].mPg; a.mPageId.value=s.options[s.selectedIndex].value; } else a.mPageId.value=n; a.mSubmit.click(); } function mLinkTo() { mObj=document.forms['mLink'].mP; m1=mObj.options[mObj.selectedIndex].value; if(m1.length>0) window.open(m1,'_mLink'); } function mResize(id) { mObj=document.getElementById(id); if(document.all) { window.dialogWidth=mObj.clientWidth+60+'px'; window.dialogHeight=mObj.clientHeight+60+'px'; } else { this.window.resizeTo(mObj.clientWidth+60,mObj.clientHeight+80); this.window.moveTo((screen.width-mObj.clientWidth-60)/2,(screen.height-mObj.clientHeight-80)/2); } } function mInOut(o,i) { document.images[o].src='/mfiles/icons/'+i; } function mShowTab(i) { if(i==1) { if(document.getElementById('m5560').style.display=='none') { document.getElementById('m5560').style.display='block'; document.getElementById('m5552').className='m5552'; document.getElementById('m5554').className='m5554'; document.getElementById('m5561').style.display='none'; } } else { if(document.getElementById('m5561').style.display=='none') { document.getElementById('m5561').style.display='block'; document.getElementById('m5552').className='m5553'; document.getElementById('m5554').className='m5555'; document.getElementById('m5560').style.display='none'; } } } function mProduct(r) { f=document.mPL; if(r){if(typeOf(f.mPageId)=='object') f.mPageId.value=1;} f.submit(); } function mMoveLayer() { var a=document.getElementById('mOnIP_Header'); var y=0; var x=0; if(a!=null) { if (a.offsetParent) { do { x += a.offsetLeft; y += a.offsetTop; } while (a = a.offsetParent); } a=document.getElementById('mOnIP_Link'); a.style.left=x+'px'; a.style.top=y+'px'; } } function mAutoRun() { try { document.getElementById('mNP'+mNPc).style.display='none'; mNPc=mNPc+1; if(mNPc>mNPt)mNPc=1; document.getElementById('mNP'+mNPc).style.display='block'; } catch(e) {} setTimeout('mAutoRun()',6000); } window.onload=function(){mIE(); mMoveLayer();setTimeout('mAutoRun()',6000);mCopyright();}