var bs=630,cZ=460,bC;var ed,aY,aE,cK,dR,cq,dL,cp,dO,dS,de,cS,ee,cb;var V=false;var ea=[];var aD;function fW(){gK();el();gf();hc();eT();};function el(){gS();gj();};function gS(){if(parseInt(navigator.appVersion)>3){if(navigator.appName=="Netscape"){bs=window.innerWidth;cZ=window.innerHeight;}if(navigator.appName.indexOf("Microsoft")!= -1){bs=document.body.offsetWidth;cZ=document.body.offsetHeight;}}ed=bs;aY=40;ee=bs;cS=20;cb=40;aE=bs-cb;cK=cZ-aY-cS-cb;dR=aE;cq=20;dL=aE*20/100;cp=cK-cq;dS=aE-dL-5;de=cp;dO=cp;};function gj(){var eb=document.getElementById("cE");var ei=document.getElementById("fH");var dQ=document.getElementById("bf");var bu=document.getElementById("bx");var gB=document.getElementById("df");var m=document.getElementById("ae");var ej=document.getElementById("eL");eb.style.width=ed+"px";eb.style.height=aY+"px";ei.style.width=aE+"px";ei.style.height=cK+"px";dQ.style.width=dR+"px";dQ.style.height=cq+"px";gB.style.height=dO+"px";bu.style.width=dL+"px";bu.style.height=cp+"px";m.style.width=dS+"px";m.style.height=de+"px";ej.style.width=ee+"px";ej.style.height=cS+"px";};function gf(){document.getElementById("df").addEventListener('mousedown',hg,false);document.getElementById("ae").addEventListener('mouseup',he,false);document.body.addEventListener('mouseup',hi,false);window.addEventListener('resize',el,false);document.onclick=eY;document.body.onmousedown=function(){return false};document.oncontextmenu=function(e){if(e.target.id=="hv"){document.getElementById("aK").style.display="none";document.getElementById("hv").select();return true;}if(e.target.className=="cu")return true;return false;};};function gK(){var gi='<div id="eH">'+'<div class="an" id="i_refresh">Refresh</div>'+'<div class="bh"><hr color="#AAA" size="1"/></div>'+'<div class="an" id="i_newFile">Create a New File</div>'+'<div class="an" id="i_newFolder">Create a New Folder</div>'+'<div class="bh"><hr color="#AAA" size="1"/></div>'+'<div class="an" id="i_past">Paste</div>'+'</div>';var gl='<div id="eJ">'+'<div id="i_loginForm">'+'Username: <input type="text" id="bv" /> &nbsp; Password: <input type="password" id="ca" />'+'&nbsp; <input type="button" id="cH" value="  Login  " /><span id="i_errorMsg"></span>'+'</div></div>';var gk='<div id="eQ">'+'<div class="an" id="i_openFolder">Open this folder</div>'+'<div class="bh"><hr color="#AAA" size="1"/></div>'+'<div class="an" id="i_deleteFolder">Delete this folder</div>'+'</div>';var gh='<div id="eR">'+'<div class="an" id="i_openFile">Open this file</div>'+'<div class="bh"><hr color="#AAA" size="1"/></div>'+'<div class="an" id="i_editFile">Edit</div>'+'<div class="an" id="i_deleteFile">Delete</div>'+'<div class="bh"><hr color="#AAA" size="1"/></div>'+'<div class="an" id="i_cutFile">Cut</div>'+'</div>';var ge='<div id="fP">'+'<div id="i_example">'+'Please note that HTML tags are not allowed. Only Image, Bold, and DownloadLinks are allowed.<br/><br/>'+'<pre>'+'Image :  [IMG]direct link to image[/IMG]&#13;Bold  :  [B]text[/B]&#13;DownloadLinks: [DL]download links[/DL]'+'</pre>'+'<br/><b>Example:</b><br/><br/>'+'<pre>'+'[IMG]http://example.com/movieA.jpg[/IMG]&#13;Movie A DVDRIP&#13;Duration   : 1h 30mn&#13;Video      : 924 Kbps&#13;Resolution : 624 x 256&#13;Frame rate : 23.976 fps&#13;Audio      : 147 Kbps&#13;&#13;IMDB : http://www.imdb.com/title/movieA&#13;&#13;[B]Download Links :[/B]&#13;[DL]&#13;http://example.com/movieA_link1.rar&#13;http://example.com/movieA_link2.rar&#13;http://example.com/movieA_link3.rar&#13;[/DL]'+'</pre>'+'</div></div>';var fb='<div id="eB">'+'<div id="es">'+'<div> &nbsp;File Name : <input id="cg" type="text"/> &nbsp; &nbsp;File Size : <input id="cn" type="text" /> KB</div><br/>'+'<div id="fQ">'+'<div id="dp">Add Image</div><div id="db">Bold</div><div id="da">Download Links</div><div id="cl" title="Help">???</div><div id="bj">Preview</div>'+'<br/><br/><textarea id="ai"></textarea>'+'<div id="aH">SUBMIT</div>'+'</div>'+'</div>'+'<div id="bg"></div>'+'</div>';var O='<div id="aK">'+'<table>'+'<tr>'+'<td id="aX"></td>'+'<td>'+'<table>'+'<tr><td colspan="4" id="ha"></td></tr>'+'<tr><td id="ey"></td><td id="eD"></td><td id="eu"></td><td id="eI"></td></tr>'+'</table>'+'</td>'+'</tr>'+'<tr>'+'<td colspan="2">'+'<table><tr><td id="hk"></td><td id="hn"></td><td id="hm"></td></tr></table>'+'</td>'+'</tr>'+'</table>'+'</div>';var fn='<div id="cD"></div>';document.body.innerHTML=document.body.innerHTML+O+gi+gl+gk+gh+ge+fb+fn;};function hc(){I("POST","ajax_controller.php","tver=1z","hy",gd);};function eT(){I("POST","ajax_controller.php","tver=3x","",fa);};function fa(d,k){if(k.substr(0,5)=="login"){document.getElementById("dj").innerHTML="Welcome, <b>"+k.substr(5)+"</b><br/><a onclick='en()' href='javascript:;'>Logout</a>";V=true;}};var bu,m;var eg,ef;function hg(e){if(e.which!=1)return;bu=document.getElementById("bx");m=document.getElementById("ae");eg=aE*5/100;ef=aE*50/100;document.onmousemove=hh;};function hh(e){var x=e.pageX-cb/2;if((x>eg)&&(x<ef)){bu.style.width=x+"px";m.style.width=aE-x-5+"px";}document.body.style.cursor="e-resize";};function hi(){document.onmousemove=null;document.body.style.cursor="default";};function gb(d){if(g[d].ag().length==0)return;var ce;var cQ;ce=document.getElementById(d+'t');cQ=document.getElementById(d+'i');if(ce.style.display=="none"){ce.style.display="block";cQ.style.background="url(icon/icons.png) -48px 0px";}else{ce.style.display="none";cQ.style.background="url(icon/icons.png) -32px 0px";}};var r=0;function ah(d){if(r!=0){document.getElementById(r+'n').style.background="none";if((g[r].ar()!=1))document.getElementById(r+'f').style.background="url(icon/icons.png) 0px 0px";document.getElementById(r+'n').style.borderStyle="none";}document.getElementById(d+'n').style.backgroundColor="#D0D1D9";document.getElementById(d+'n').style.border="2px solid #D0D1D9";document.getElementById(d+'n').style.borderLeftWidth="0px";if((g[d].ar()!=1))document.getElementById(d+'f').style.background="url(icon/icons.png) -16px 0px";document.getElementById('ae').innerHTML=fk(d);document.getElementById(g[d].ar()+'t').style.display="block";document.getElementById(g[d].ar()+'i').style.background="url(icon/icons.png) -48px 0px";eq(d);aD=true;r=d;ak=0;};function eq(bB){bC="";var d=bB;while(g[d].H()!=1){bC=g[d].getName().replace(/&nbsp;/g," ")+"\\"+bC;d=g[d].ar();}document.getElementById("hv").value=bC;document.getElementById("hv").blur();};function bc(cT,cJ,cA){document.getElementById(cT).style.background="url(icon/icons.png) -29px -17px";document.getElementById(cJ).style.background="url(icon/icons.png) 0px -37px";document.getElementById(cA).style.background="url(icon/icons.png) -36px -17px";};function bb(cT,cJ,cA){document.getElementById(cT).style.background="";document.getElementById(cJ).style.background="";document.getElementById(cA).style.background="";};var cB;var bt;function aL(d){if(window.event!=null)if(window.event.which!=1)return;cB=document.getElementById(d);document.onmousemove=hl;bt=0;};function hl(e){var x=e.pageX;if(bt==0)bt=x-cB.offsetWidth-5;if((x-bt)>40)cB.style.width=(x-bt)+"px";document.body.style.cursor="e-resize";};function cz(){var cX;this.dm=function(cY){cX=cY;};this.dr=function(aB){cO(aB,0,aB.length-1);};function cO(aJ,aW,aM){if(aM>aW){var aV=aM;aV=gI(aJ,aW,aM,aV);cO(aJ,aW,aV-1);cO(aJ,aV+1,aM);}};function gI(aJ,aW,aM,aV){var fJ=aJ[aV];var bQ=aW;for(var i=aW;i<aM;i++){if(cX(aJ[i])<cX(fJ)){aJ.et(bQ,i);bQ++;}}aJ.et(aM,bQ);return bQ;};Array.prototype.et=function(a,b){var aA=this[a];this[a]=this[b];this[b]=aA;}};var aT=0;var cL=false;function fX(d){if(d=="cc"){(aT==1)?ba():aZ(1,function(d){return R[d].getName();});}else if(d=="bd"){(aT==2)?ba():aZ(2,function(d){return R[d].dq();});}else if(d=="ci"){(aT==3)?ba():aZ(3,function(d){return R[d].dk();});}else if(d=="bR"){(aT==4)?ba():aZ(4,function(d){return R[d].bV();});}else if(d=="bP"){(aT==5)?ba():aZ(5,function(d){return R[d].bW();});}else if(d=="bL"){(aT==6)?ba():aZ(6,function(d){return R[d].bT();});}};function aZ(fM,cY){var aC=new cz();aC.dm(cY);aC.dr(g[r].aP());if(!cL){var aC=new cz();aC.dm(function(d){return g[d].getName();});aC.dr(g[r].ag());cL=true;}ah(r);aT=fM;};function ba(){g[r].aP().reverse();g[r].ag().reverse();ah(r);cL=false;};var ak=0;function cv(d){if(ak!=0){document.getElementById(ak).style.background="none";document.getElementById(ak).style.borderStyle="none";}document.getElementById(d).style.backgroundColor="#D0D1D9";document.getElementById(d).style.border="2px solid #D0D1D9";document.getElementById(d).style.borderLeftWidth="0px";document.getElementById("hv").value=bC+document.getElementById(d).innerHTML.replace(/&nbsp;/g," ");document.getElementById("hv").blur();ak=d;};function he(e){if(e.which!=3)return false;if(!aD)return false;var O=document.getElementById("aK");if(e.target.className=="c_files"){document.getElementById("aX").innerHTML=document.getElementById("eR").innerHTML;cv(e.target.id);}else if(e.target.className=="c_folders"){document.getElementById("aX").innerHTML=document.getElementById("eQ").innerHTML;cv(e.target.id);}else document.getElementById("aX").innerHTML=document.getElementById("eH").innerHTML;O.style.display="block";var gx=de+cq+aY-O.offsetHeight+10;O.style.right=null;O.style.left=e.pageX+'px';if(e.pageY>gx){O.style.top=(e.pageY-O.offsetHeight)+'px';}else{O.style.top=e.pageY+'px';}};function eY(e){gJ(e);if(e.target.id=="hv"){document.getElementById("hv").select();}else if(e.target.className=="cs"){ep(1,e.target.id.substr(1));}else if(e.target.className=="ct"){ep(0,e.target.id.substr(1));}else if(e.target.className=="cR"){if(e.target.id!="")dz(e.target.id.substr(1));}else if(e.target.id=="cH"){fT();}else if(e.target.id=="hw"){aq("");}else if(e.target.id=="i_commentButton"){gZ();return false;}else if(e.target.id=="ck"){gR();}else if(e.target.className=="P"){fX(e.target.id);}else if(e.target.id=="dp"){fL();}else if(e.target.id=="db"){fF();}else if(e.target.id=="da"){fI();}else if(e.target.id=="bj"){gz();}else if(e.target.id=="cl"){gm();}else if(e.target.id=="aH"){gW();}else if(e.target.id=="i_newFile"){ec();}else if(e.target.id=="i_newFolder"){eZ();}else if(e.target.id=="i_refresh"){}else if(e.target.id=="i_openFolder"){ah(ak);}else if(e.target.id=="i_deleteFolder"){fi(ak);}else if(e.target.id=="i_openFile"){dz(ak.substr(1));}else if(e.target.id=="i_editFile"){hf();}else if(e.target.id=="i_deleteFile"){fc();}else if(e.target.id=="i_cutFile"){fp(r,ak.substr(1));}else if(e.target.id=="i_cutFolder"){fe(r,ak);}else if(e.target.id=="i_past"){gN(r);}else if(e.target.className=="ft"){eS(e.target);}else if(e.target.id=="hB"){gc();}else if(e.target.id=="hC"){gC();}else if(e.target.id=="hx"){fZ();}else if(e.target.id=="hz"){fV();}};function gJ(e){if((navigator.appName=='Netscape')&&(e.which==1)){document.getElementById("aK").style.display="none";}};var cF=0;function gZ(){if(!V){aq("Please login to comment.");return;}var aI=document.getElementById("bN").value;if(aI=="")return;if(cF!=0){var t2=(new Date).getTime();var t=Math.round((60000-(t2-cF))/1000);if(t>0){l("Please wait <b>"+t+"</b> seconds before you can submit an other comment.");return;}}cF=(new Date).getTime();aI=aI.replace(/&(lt|gt);/g,function(fO,dM){return(dM=="lt")?"<":">";});aI=aI.replace(/<\/?[^>]+(>|$)/g,"");var d=document.getElementById("i_fi").value;I("POST","ajax_controller.php","tver=4w&pn=1&fi="+d+"&cmm="+encodeURIComponent(aI),d,dE);var f=R[d];f.gq(f.bT()+1);};function gR(){if(!V)aq("Please login to comment.");else{I("POST","ajax_controller.php","tver=5v&fi="+document.getElementById("i_fi").value,"",fd);document.getElementById("ck").style.display="none";}};function fd(){};function aq(U){var O=document.getElementById("aK");O.style.left=null;O.style.top=aY+5+'px';O.style.right="7px";document.getElementById("aX").innerHTML=document.getElementById("eJ").innerHTML;O.style.display="block";var aR=document.getElementById("bv");var aQ=document.getElementById("ca");var eh=document.getElementById("i_errorMsg");aR.value="";aQ.value="";eh.innerHTML="";if(U!="")eh.innerHTML="<br/><br/> <b>"+U+"</b>";aR.onmousedown=aR.onclick=aQ.onmousedown=aQ.onclick=function(e){e.stopPropagation();return true;};document.getElementById("i_loginForm").style.padding="10px";aR.focus();};function ep(cU,T){if(!V){aq("Please login to vote.");return;}var M;if(cU)M="tver=9r";else M="tver=10q";M+="&fi="+T;if(ea[T]!=cU)ea[T]=cU;else{l("You have already voted it!");return;}I("POST","ajax_controller.php",M,T,fR);};function fR(d,k){if(k.substr(0,4)=="done"){R[d].gw(k.substr(4));document.getElementById("nv"+d).innerHTML=R[d].bV();}if(k=="already"){l("You have already voted it!");}};function fT(){if(document.getElementById("bv").value==""||document.getElementById("ca").value=="")return;I("POST","ajax_controller.php","tver=7t","",gU);};function gU(d,fq){var aR=document.getElementById("bv");var aQ=document.getElementById("ca");aQ.value=ek(ek(aR.value.toLowerCase()+aQ.value)+fq);var M="tver=8s&username="+aR.value+"&pwd="+aQ.value;I("POST","ajax_controller.php",M,"token",fK);};function fK(d,k){if(k=="ok"){V=true;document.getElementById("dj").innerHTML="Welcome, <b>"+document.getElementById("bv").value+"</b><br/><a onclick='en()' href='javascript:;'>Logout</a>";}else{aq("Invalid Username or Password !");}};function en(){I("POST","ajax_controller.php","tver=11p","",gH);document.getElementById("dj").innerHTML="Welcome, <b>Guest</b><br /> Please <a id='hw' href='javascript:;'>Login</a> or <a href='https://forum.dlexplorer.com/index.php?action=register' target='_blank'>Register</a>";V=false;};function gH(){};function l(fm){var O=document.getElementById("aK");O.style.left=null;O.style.top=aY+5+'px';O.style.right="7px";document.getElementById("aX").innerHTML="<div id='gT'>"+fm+"</div>";O.style.display="block";};var Q=[0,0,0];var bn=true;function fp(G,T){if(!V)return;if(!bn)return;Q[0]=G;Q[1]=T;Q[2]=0;};function fe(G,am){if(!V)return;if(!bn)return;Q[0]=G;Q[1]=am;Q[2]=1;};function gN(bm){if(!V)return;if(!bn){l("Sorry, you are not a moderator.");return;}if((Q[0]==0)||(Q[1]==0))return;if(Q[0]==bm){return;}if(Q[2]==1){if(Q[1]==bm){l("Cannot move the folder: The destination folder is in the source folder.");return;}var ax=bm;while(g[ax].ar()!=1){ax=g[ax].ar();if(ax==Q[1]){l("Cannot move the folder: The destination folder is a subfolder of the source folder.");return;}}}var M="tver=17j&fi="+bm+"&fii="+Q[1]+"&type="+Q[2];var aO=Q[0]+":"+Q[1]+":"+Q[2]+":"+bm;I("POST","ajax_controller.php",M,aO,gM);};function gM(aO,ab){if(ab=="notLogin"){l("HA: Please login to past the file.");return;}if(ab=="notModerator"){l("Sorry, you are not a moderator.");bn=false;return;}if(ab!="ok"){l("Unknown response");return;}bn=true;var J=aO.split(":");if(J[2]==0){g[J[3]].gy(J[1]);g[J[0]].fs(J[1]);Q=[0,0,0];}else{g[J[3]].gE(J[1]);g[J[0]].fr(J[1]);}ah(J[3]);};function eS(fv){var aN=document.createElement("form");aN.action="http://wgtools.com/link-checker/";aN.method="post";aN.target="_blank";var aG=document.createElement("textarea");aN.appendChild(aG);aG.name="links";aG.value=fv.parentNode.innerHTML.replace(/(<([^>]+)>)/gi," ");aG=document.createElement("input");aN.appendChild(aG);aG.name="submit";aG.type="submit";document.body.appendChild(aN);aG.click();document.body.removeChild(aN);};var cI="";function gc(){aD=false;if(cI=="")I("POST","about.php","","",gF);else document.getElementById("ae").innerHTML=cI;};function gF(d,ab){cI=ab;document.getElementById("ae").innerHTML=ab;};var cN="";function gC(){aD=false;if(cN=="")I("POST","contact.php","","",gD);else document.getElementById("ae").innerHTML=cN;};function gD(d,ab){cN=ab;document.getElementById("ae").innerHTML=ab;};var dy="";function fZ(){aD=false;if(dy=="")I("POST","rss_feeds.php","","",fY);else document.getElementById("ae").innerHTML=dy;};function fY(d,ab){dy=ab;document.getElementById("ae").innerHTML=ab;};var dn="";function fV(){aD=false;if(dn=="")I("POST","terms_and_privacy.php","","",fU);else document.getElementById("ae").innerHTML=dn;};function fU(d,ab){dn=ab;document.getElementById("ae").innerHTML=ab;};var bo=false;function ec(){if(!V){aq("Please login to create a new file.");return;}if(r==1){l("Sorry, you can not create a new file here.");return;}if(g[r].aP().length>399){l("A folder can only contain 400 files. Please, create a new folder for your file.");return;}eq(r);aD=false;document.getElementById("ae").innerHTML=document.getElementById("eB").innerHTML;var ac=document.getElementById("cg");var aw=document.getElementById("cn");var cf=document.getElementById("ai");cf.onmousedown=cf.onclick=ac.onmousedown=ac.onclick=aw.onmousedown=aw.onclick=function(e){e.stopPropagation();return true;};ac.focus();document.getElementById("bg").style.display="none";cf.onfocus=function(){bo=true;};cf.onblur=function(){bo=false;};hq=false;};function fL(){if(!bo)return;var L=document.getElementById("ai");var ap=L.selectionStart;L.value=L.value.substr(0,ap)+"[IMG][/IMG]"+L.value.substr(ap);L.selectionStart=L.selectionEnd=ap+5;};function fF(){if(!bo)return;var L=document.getElementById("ai");var ap=L.selectionStart;L.value=L.value.substr(0,ap)+"[B][/B]"+L.value.substr(ap);L.selectionStart=L.selectionEnd=ap+3;};function fI(){if(!bo)return;var L=document.getElementById("ai");var ap=L.selectionStart;L.value=L.value.substr(0,ap)+"\n[DL]\n\n[/DL]"+L.value.substr(ap);L.selectionStart=L.selectionEnd=ap+6;};function gm(){l(document.getElementById("i_example").innerHTML);};function gz(){var p=document.getElementById("bj");if(p.innerHTML!="Preview"){p.innerHTML="Preview";document.getElementById("ai").style.display="block";document.getElementById("aH").style.display="block";document.getElementById("bg").style.display="none";document.getElementById("ai").focus();return;}p.innerHTML="Hide Preview";document.getElementById("ai").blur();document.getElementById("ai").style.display="none";document.getElementById("aH").style.display="none";document.getElementById("bg").style.display="block";var F=document.getElementById("ai").value;F=F.replace(/\[[Ii][Mm][Gg]\](.*)\[\/[Ii][Mm][Gg]\]/g,"<img class='dN' src='$1'/>");F=F.replace(/\[[Bb]\]/g,"<b>");F=F.replace(/\[\/[Bb]\]/g,"</b>");F=F.replace(/\[[Dd][Ll]\]\n?/g,"<div class='cu'>");F=F.replace(/\[\/[Dd][Ll]\]/g,"</div>");F=F.replace(/\n/g,"<br/>");document.getElementById("bg").innerHTML=F;};function gW(){var ac=document.getElementById("cg").value;var aw=document.getElementById("cn").value;var F=document.getElementById("ai").value;if((ac=="")||(ac.match(/[a-zA-Z0-9]/)==null)){l("Invalid name!");return;}if(ac.match(/[\\\/:*?"<>|]/)!=null){l("A file name can not contain any of the following characters : \\ / : * ? \" < > | ");return;}if(ac.length>100){l("File name is too long.(Max: 100 characters)");return;}ac=ac.replace(/^\s+|\s+$/g,'');if(aw==""){l("File size is required!");return;}if(aw.match(/^\d\d?\d?\d?\d?\d?\d?\d?$/)==null){l("File size have to be numeric!");return;}if(F==""){l("File description is required!");return;}if(F.length>65535){l("File description is too long (Max: 65535 characters). The current length : "+F.length);return;}var aB=g[r].aP();for(var i=0;i<aB.length;i++){if(R[aB[i]].getName()==ac){if(aB[i]!=document.getElementById("aH").className){l("The file name you specified already exists.");return;}}}F=F.replace(/&(lt|gt);/g,function(fO,dM){return(dM=="lt")?"<":">";});F=F.replace(/<\/?[^>]+(>|$)/g,"");F=F.replace(/^\s+|\s+$/g,'');var bO=document.getElementById("aH");bO.style.display="none";var ax=r;while(g[ax].ar()!=1)ax=g[ax].ar();var M="dn="+g[ax].getName().replace("&nbsp;"," ");if(bO.className==""){var aa=new Array(r,ac,aw);M=M+"&tver=12o&fi="+r+"&fn="+encodeURIComponent(ac)+"&fs="+aw+"&fd="+encodeURIComponent(F);I("POST","ajax_controller.php",M,aa,gQ);}else{var aa=new Array(r,ac,aw,bO.className);M=M+"&tver=14m&fi="+r+"&fn="+encodeURIComponent(ac)+"&fs="+aw+"&fd="+encodeURIComponent(F)+"&fii="+bO.className;I("POST","ajax_controller.php",M,aa,gY);}};function gQ(aa,k){if(k=="notLogin"){l("HA: Please login to edit this file.");return;}if(k=="exist"){l("HA: The file name you specified already exists.");return;}if(k=="max"){l("HA: Sorry, a folder can only contain 400 files. Please, create a new folder for your file.");return;}if(k.substr(0,2)=="ok"){var J=k.substr(2).split(" ");g[aa[0]].er(J[0],aa[1],aa[2],J[1],0,0,0);ah(aa[0]);l("File is saved successfully!");}};function hf(){if(!V){l("Please login to edit this file.");return;}var T=ak.substr(1);I("POST","ajax_controller.php","tver=13n&fi="+T,T,hb);};function hb(d,k){if(k=="notOwner"){l("Sorry, you are not the owner of that file");return;}if(k=="notLogin"){l("HA: Please login to edit this file.");return;}if(k.substr(0,2)=="ok"){var o=k.substr(2).split("<b>");ec();document.getElementById("cg").value=o[0];document.getElementById("cn").value=o[1];document.getElementById("ai").value=o[2];document.getElementById("aH").className=d;}};function gY(aa,k){if(k=="notLogin"){l("HA: Please login to edit this file.");return;}if(k=="exist"){l("HA: The file name you specified already exists.");return;}if(k.substr(0,2)=="ok"){R[aa[3]].gr(aa[1]);R[aa[3]].gu(aa[2]);R[aa[3]].gn(k.substr(2));ah(aa[0]);l("Your file is saved successfully!");}};function fc(){if(!V){l("Please login to delete this file.");return;}var gp=confirm("Are you sure that you want to delete this file?");if(!gp)return;var T=ak.substr(1);I("POST","ajax_controller.php","tver=15l&fi="+T,T+":"+r,ff);};function ff(aO,k){if(k=="notOwner"){l("Sorry, you are not the owner of that file");return;}if(k=="notLogin"){l("HA: Please login to delete this file.");return;}if(k=="ok"){var J=aO.split(":");var aj=g[J[1]].aP();for(var i=0;i<aj.length;i++){if(aj[i]==J[0]){aj.splice(i,1);ah(J[1]);l("Your file is deleted successfully!");return;}}}};function gV(){var ad;if(window.XMLHttpRequest)ad=new XMLHttpRequest();else if(window.ActiveXObject){try{ad=new ActiveXObject("Msxml2.XMLHTTP");}catch(e){ad=new ActiveXObject("Microsoft.XMLHTTP");}}else alert("Your browser does not support AJAX!");return ad;};function I(cG,eo,M,d,ga){document.getElementById("cD").style.display="block";document.body.style.cursor="wait";var ad=gV();ad.onreadystatechange=function(){if(ad.readyState==4&&ad.status==200){ga(d,ad.responseText);document.getElementById("cD").style.display="none";document.body.style.cursor="default";}};if(cG=="POST"){ad.open(cG,eo,true);ad.setRequestHeader('Content-type','application/x-www-form-urlencoded');ad.send(M);}else{ad.open(cG,eo+'?'+M,true);ad.send(null);}};var g=[];var R=[];var gL=['','WinRAR archive','Adobe Acrobat Document','','Text Document',''];var hj=['eK','ew','eO','eA','ev','eC'];function gO(bB,bl,bp,dw,cw,hd,dx){var d=bB;var af=bl;var au=bp;var bq=dw;var ao=dW();var cr=cw;var dZ=hd;var cj=dx;this.H=function(){return d;};this.getName=function(){return af.replace(/[ ]/g,"&nbsp;");};this.gr=function(bl){af=bl;};this.dq=function(){return au;};this.gu=function(bp){au=bp;};this.dk=function(){return ao;};this.gn=function(dw){bq=dw;ao=dW();};this.bV=function(){return cr;};this.gw=function(cw){cr=cw;};this.bW=function(){return dZ;};this.gs=function(fD){dZ=fD;};this.bT=function(){return cj;};this.gq=function(dx){cj=dx;};this.bS=function(){return hj[bq];};this.hs="";function dW(){var ao=gL[bq];if(ao==''){var i=af.length-1;while((i> -1)&&(af.charAt(i)!='.')){ao=af.charAt(i)+ao;i--;}if(ao==af)ao="File";else ao=ao+" File";}return ao;}};function dX(bB,bl,eV){var d=bB;var af=bl;var G=eV;var aj=[];var K=[];this.H=function(){return d;};this.getName=function(){return af.replace(/[ ]/g,"&nbsp;");};this.ar=function(){return G;};this.gv=function(eU){G=eU;};this.ag=function(){return K;};this.aP=function(){return aj;};this.bS=function(){if(G==1)return "eG";else return "eP";};this.ez=function(d,af,G){g[d]=new dX(d,af,G);K[K.length]=d;};this.er=function(d,af,au,bq,cr,gG,cj){R[d]=new gO(d,af,au,bq,cr,gG,cj);aj[aj.length]=d;};this.fs=function(T){for(var i=0;i<aj.length;i++){if(aj[i]==T){aj.splice(i,1);return true;}}return false;};this.fr=function(am){for(var i=0;i<K.length;i++){if(K[i]==am){K.splice(i,1);aU(null,d,K);return true;}}return false;};this.gy=function(T){aj[aj.length]=T;};this.gE=function(am){g[am].gv(d);K[K.length]=am;aU(null,d,K);}};function gd(d,k){if(k.charAt(0)!='1'){alert("response : "+">>"+k+"<<");return false;}var cy=k.length;var o;o=dV(0,k);g[parseInt(o[0])]=new dX(parseInt(o[0]),o[1],parseInt(o[0]));while(o[3]<cy){o=dV(o[3],k);g[parseInt(o[2])].ez(parseInt(o[0]),o[1],parseInt(o[2]));}I("POST","ajax_controller.php","tver=2y",d,gg);};function dV(al,bD){var o=[];var aA;for(var i=0;i<3;i++){aA=bD.indexOf('\\',al);o[i]=bD.substr(al,aA-al);al=aA+1;}o[3]=al;return o;};function gg(d,k){var cy=k.length;var o=[];o[8]=0;do{o=gP(o[8],k);g[parseInt(o[7])].er(parseInt(o[0]),o[1],parseInt(o[2]),parseInt(o[3]),parseInt(o[4]),parseInt(o[5]),parseInt(o[6]));}while(o[8]<cy)fj(d);};function gP(al,bD){var o=[];var aA;for(var i=0;i<8;i++){aA=bD.indexOf('\\',al);o[i]=bD.substr(al,aA-al);al=aA+1;}o[8]=al;return o;};function fj(d){document.getElementById(d).innerHTML='<table>'+dT(g[1].H(),g[1].getName())+'</table>';aU(null,g[1].H(),g[1].ag());ah(1);};function aU(fh,G,K){var aC=new cz();aC.dm(function(d){return g[d].getName();});aC.dr(K);var m=[];for(var i=0;i<K.length;i++){var f=g[K[i]];m[i]=dT(f.H(),f.getName());}document.getElementById(G+'t').innerHTML=m.join('');for(var i=0;i<K.length;i++){var f=g[K[i]];if(f.ag().length==0){document.getElementById(f.H()+'i').className="blankIcon";}else{document.getElementById(f.H()+'t').style.display="none";i=aU(i,f.H(),f.ag());}}return fh;};function dT(d,af){var cW="eE";if(g[d].ar()==1)cW="eF";if(d==1)cW="eN";return '<tr><td class="du" id="'+d+'i" onClick="gb('+d+')"></td><td onClick="ah('+d+')" id="'+d+'f" class="'+cW+'"></td><td onClick="ah('+d+')">&nbsp;<a id="'+d+'n">&nbsp;'+af+'</a></td></tr><tr><td class="fB"></td><td colspan="2" ><table id="'+d+'t"></table></td></tr>';};function fk(d){var m=dU();var bA=g[d].ag();var f;for(var i=0;i<bA.length;i++){f=g[bA[i]];m[1]+='<tr onClick="cv('+f.H()+')" ondblclick="ah('+f.H()+')"><td class="'+f.bS()+'"></td><td><a id="'+f.H()+'" class="c_folders">'+f.getName()+'</a></td></tr>';m[3]+='<tr><td> &nbsp; </td></tr>';m[5]+='<tr><td>File Folder</td></tr>';m[7]+='<tr><td> &nbsp; </td></tr>';m[9]+='<tr><td> &nbsp; </td></tr>';m[11]+='<tr><td> &nbsp; </td></tr>';}bA=g[d].aP();for(var i=0;i<bA.length;i++){f=R[bA[i]];m[1]+='<tr onClick="cv(\'f'+f.H()+'\')"><td class="'+f.bS()+'"></td><td><a id="f'+f.H()+'" class="c_files" ondblclick="dz('+f.H()+');">'+f.getName()+'</a></td></tr>';m[3]+='<tr><td align="right">'+dY(f.dq())+'</td></tr>';m[5]+='<tr><td>'+f.dk()+'</td></tr>';m[7]+='<tr><td>&nbsp; <div id="v'+f.H()+'" class="ct" title="Vote Down"></div>&nbsp;<span id="nv'+f.H()+'">'+f.bV()+'</span>&nbsp;<div id="v'+f.H()+'" class="cs" title="Vote Up"></div></td></tr>';m[9]+='<tr><td> &nbsp; '+f.bW()+'</td></tr>';m[11]+='<tr><td align="top">&nbsp; '+f.bT()+' <div id="c'+f.H()+'" class="cR" title="Comment"></div></td></tr>';}return m.join('');};function dU(){var m=[];m[0]='<table><tr><td><div id="di"><table><tr onMouseOver="bc(\'cV\',\'cc\',\'bk\')" onMouseOut = "bb(\'cV\',\'cc\',\'bk\')"><td id="cV" class="P"></td><td id="cc" class="P">&nbsp;Name</td><td id="bk" class="P" onMouseDown="aL(\'di\')" ></td></tr></table><table class="az">';m[1]='';m[2]='</table></div></td><td><div id="dh"><table><tr onMouseOver="bc(\'cP\',\'bd\',\'be\')" onMouseOut = "bb(\'cP\',\'bd\',\'be\')"><td id="cP" class="P"></td><td id="bd" class="P">Size</td><td id="be" class="P" onMouseDown="aL(\'dh\')" ></td></tr></table> <table class="az fy">';m[3]='';m[4]='</table></div></td><td><div id="dg"><table><tr onMouseOver="bc(\'cx\',\'ci\',\'by\')" onMouseOut="bb(\'cx\',\'ci\',\'by\')"><td id="cx" class="P"></td><td id="ci" class="P">&nbsp;Type</td><td id="by" class="P" onMouseDown="aL(\'dg\')" ></td></tr></table><table class="az">';m[5]='';m[6]='</table></div></td><td><div id="ds"><table><tr onMouseOver="bc(\'dc\',\'bR\',\'bz\')" onMouseOut="bb(\'dc\',\'bR\',\'bz\')"><td id="dc" class="P"></td><td id="bR" class="P">&nbsp;Votes</td><td id="bz" class="P" onMouseDown="aL(\'ds\')"></td></tr></table><table class="az">';m[7]='';m[8]='</table></div></td><td><div id="bU"><table><tr onMouseOver="bc(\'dv\',\'bP\',\'bw\')" onMouseOut="bb(\'dv\',\'bP\',\'bw\')"><td id="dv" class="P"></td><td id="bP" class="P">&nbsp;Views</td><td id="bw" class="P" onMouseDown="aL(\'bU\')" ></td></tr></table><table class="az">';m[9]='';m[10]='</table></div></td><td><div id="dK"><table><tr onMouseOver="bc(\'dD\',\'bL\',\'bi\')" onMouseOut="bb(\'dD\',\'bL\',\'bi\')"><td id="dD" class="P" onMouseDown="aL(\'bU\')"></td><td id="bL" class="P">&nbsp;Comments</td><td id="bi" class="P" onMouseDown="aL(\'dK\')" ></td></tr></table><table class="az">';m[11]='';m[12]='</table></div></td></tr></table>';return m;};function dY(bp){var au=""+bp;if(au.length<4)return au+" KB";return(au.length<7)?au.replace(/(.*)(\S{3})/,"$1,$2 KB"):au.replace(/(.*)(\S{3})(\S{3})/,"$1,$2,$3 KB");};function dz(d){R[d].gs(R[d].bW()+1);I("POST","ajax_controller.php","tver=4w&uv=''&fi="+d,d,dE);};function gX(d,M){I("POST","ajax_controller.php","tver=4w&fi="+d+"&"+M,d,dE);};function dE(d,k){var m=dU();var f=R[d];m[1]+='<tr><td class="'+f.bS()+'"></td><td><a id="f'+f.H()+'" >'+f.getName()+'</a></td></tr>';m[3]+='<tr><td align="right">'+dY(f.dq())+'</td></tr>';m[5]+='<tr><td>'+f.dk()+'</td></tr>';m[7]+='<tr><td align="center" style="border:solid #39C;border-width:1px 2px;width:70px;color:#06C">&nbsp; <div id="v'+f.H()+'" class="ct" title="Vote Down"></div>&nbsp;<span id="nv'+f.H()+'">'+f.bV()+'</span>&nbsp;<div id="v'+f.H()+'" class="cs" title="Vote Up"></div> &nbsp;</td></tr>';m[9]+='<tr><td> &nbsp; '+f.bW()+'</td></tr>';m[11]+='<tr><td align="top">&nbsp; '+f.bT()+' <div class="cR"></div></td></tr>';var aI='<br/><div id="fE">'+k+'<br/>&nbsp; <a href="javascript:;" id="i_postComment">Post a new comment</a><br/><div id="i_commentForm"><textarea id="bN"></textarea><br/><input type="submit" id="i_commentButton" value=" Submit "><input type="hidden" id="i_fi" value="'+d+'"/></div><br/></div>';document.getElementById("ae").innerHTML=m.join('')+aI;var dP=document.getElementById("bN");dP.onmousedown=dP.onclick=function(e){e.stopPropagation();return true;};var eW=document.getElementsByTagName("body")[0];var fG=new RegExp('\\b'+"cu"+'\\b');var cd=eW.getElementsByTagName("*");for(var i=0,j=cd.length;i<j;i++){if(fG.test(cd[i].className))cd[i].onmousedown=cd[i].onclick=function(e){e.stopPropagation();return true;};}document.getElementById("i_commentForm").style.display="none";document.getElementById("i_postComment").onclick=function(){var dA=document.getElementById("i_commentForm");if(dA.style.display=="none"){dA.style.display="block";document.getElementById("bN").focus();}else dA.style.display="none";};aD=false;};var at;function eZ(){if(!V){aq("Please login to create a new folder.");return;}if(g[r].ag().length>199){l("Sorry, a folder can only contain 200 folders.");return;}at=prompt("Input a new folder name : ","New Folder");if(at==null)return;var G=r;if((at=="")||(at.match(/[a-zA-Z0-9]/)==null)){l("Invalid name!");return;}if(at.match(/[\\\/:*?"<>|]/)!=null){l("A file name can not contain any of the following characters : \\ / : * ? \" < > | ");}if(G==1){l("Sorry, you can not create a new folder here.<br/><br/>( If you want to create a new folder here, please post a request with your<br/> reasons in the forum : 'DLExplorer Forum\\General Category\\General Requests' )");return;}var aB=g[r].ag();for(var i=0;i<aB.length;i++){if(g[aB[i]].getName()==at){l("The folder name you specified already exists.");return;}}at=at.replace(/^\s+|\s+$/g,'');I("POST","ajax_controller.php","tver=6u&fn="+encodeURIComponent(at)+"&pi="+G,G,fl);};function fl(G,k){if(k=="notLogin"){l("HA: Please login to create a new folder.");return;}if(k=="exist"){l("HA: The folder name you specified already exists.");return;}if(k=="max"){l("HA: Sorry, a folder can only contain 200 folders.");return;}if(k.substr(0,4)=="done"){var d=k.substr(4);g[G].ez(parseInt(d),at,G);aU(null,G,g[G].ag());if(g[G].ag().length==1){document.getElementById(G+'i').className="du";document.getElementById(G+'t').style.display="block";}ah(G);l("A new folder is created.");}};function fi(am){if(!V){l("Please login to delete this folder.");return;}if((g[am].aP().length>0)||(g[am].ag().length>0)){l("Sorry, you can only delete empty folder.");return;}I("POST","ajax_controller.php","tver=16k&fi="+am,am+":"+r,fg);};function fg(aO,k){if(k=="notLogin"){l("HA: Please login to delete this folder.");return;}if(k=="notOwner"){l("Sorry, you are not the owner of that folder");return;}if(k=="ok"){var J=aO.split(":");var K=g[J[1]].ag();for(var i=0;i<K.length;i++){if(K[i]==J[0]){K.splice(i,1);aU(null,J[1],K);ah(J[1]);l("Your folder is deleted successfully!");return;}}}};window.onload=fW;function ek(U){function ay(n,s){var t4=(n<<s)|(n>>>(32-s));return t4;};function bE(val){var str="";var i;var v;for(i=7;i>=0;i--){v=(val>>>(i*4))&0x0f;str+=v.toString(16);}return str;};function fo(bM){bM=bM.replace(/\r\n/g,"\n");var aS="";for(var n=0;n<bM.length;n++){var c=bM.charCodeAt(n);if(c<128){aS+=String.fromCharCode(c);}else if((c>127)&&(c<2048)){aS+=String.fromCharCode((c>>6)|192);aS+=String.fromCharCode((c&63)|128);}else{aS+=String.fromCharCode((c>>12)|224);aS+=String.fromCharCode(((c>>6)&63)|128);aS+=String.fromCharCode((c&63)|128);}}return aS;};var co;var i,j;var W=new Array(80);var H0=0x67452301;var H1=0xEFCDAB89;var H2=0x98BADCFE;var H3=0x10325476;var H4=0xC3D2E1F0;var A,B,C,D,E;var as;U=fo(U);var av=U.length;var aF=new Array();for(i=0;i<av-3;i+=4){j=U.charCodeAt(i)<<24|U.charCodeAt(i+1)<<16|U.charCodeAt(i+2)<<8|U.charCodeAt(i+3);aF.push(j);}switch(av%4){case 0:i=0x080000000;break;case 1:i=U.charCodeAt(av-1)<<24|0x0800000;break;case 2:i=U.charCodeAt(av-2)<<24|U.charCodeAt(av-1)<<16|0x08000;break;case 3:i=U.charCodeAt(av-3)<<24|U.charCodeAt(av-2)<<16|U.charCodeAt(av-1)<<8|0x80;break;}aF.push(i);while((aF.length%16)!=14)aF.push(0);aF.push(av>>>29);aF.push((av<<3)&0x0ffffffff);for(co=0;co<aF.length;co+=16){for(i=0;i<16;i++)W[i]=aF[co+i];for(i=16;i<=79;i++)W[i]=ay(W[i-3]^W[i-8]^W[i-14]^W[i-16],1);A=H0;B=H1;C=H2;D=H3;E=H4;for(i=0;i<=19;i++){as=(ay(A,5)+((B&C)|(~B&D))+E+W[i]+0x5A827999)&0x0ffffffff;E=D;D=C;C=ay(B,30);B=A;A=as;}for(i=20;i<=39;i++){as=(ay(A,5)+(B^C^D)+E+W[i]+0x6ED9EBA1)&0x0ffffffff;E=D;D=C;C=ay(B,30);B=A;A=as;}for(i=40;i<=59;i++){as=(ay(A,5)+((B&C)|(B&D)|(C&D))+E+W[i]+0x8F1BBCDC)&0x0ffffffff;E=D;D=C;C=ay(B,30);B=A;A=as;}for(i=60;i<=79;i++){as=(ay(A,5)+(B^C^D)+E+W[i]+0xCA62C1D6)&0x0ffffffff;E=D;D=C;C=ay(B,30);B=A;A=as;}H0=(H0+A)&0x0ffffffff;H1=(H1+B)&0x0ffffffff;H2=(H2+C)&0x0ffffffff;H3=(H3+D)&0x0ffffffff;H4=(H4+E)&0x0ffffffff;}var as=bE(H0)+bE(H1)+bE(H2)+bE(H3)+bE(H4);return as.toLowerCase();}