var identifier_seed='';var identifier='';var jM=4000;var O=null;var Timeout=null;var Uploading=false;var UploadFiles=1;var UserLogin=0;var UserEmail='n/a';var dy=0;var cM=0;var dA=false;function fu(){ShowStatusMessage(3,"Logging off user '"+UserEmail+"'.. Please wait..");setTimeout('jz()',2000);};function jz(){eO=document.getElementById('userwork');if(eO){ai();m(1,'none','prelogin','postlogin','div');var dK='/dynamic/logout.php?rand='+cB(5);if(eO.location)eO.location=dK;else eO.src=dK;}};function aq(iY){if(iY==dy&&cM==1)return false;hs=document.getElementById('userwork');if(hs){ShowStatusMessage(3,"Changing sharing mode.. Please wait..");var dK="/dynamic/douseracl.php?acl="+iY;if(hs.location)hs.location=dK;else hs.src=dK;}return true;};function dO(){var dw=document.getElementById('sharingmodebrowse');var dx=document.getElementById('sharingmodesingle');if(dw&&dx){if(dy==1){dx.className="singlefile";dw.className="browsable_selected";}else{dx.className="singlefile_selected";dw.className="browsable";}}var da=document.getElementById('pagename');if(da&&da.value=='myfiles'){C(l,I);}};function bG(jF){setTimeout('ai()',jF);return false;};function ai(){dc=document.getElementById('statusmessage');if(dA==false){if(dc){dc.innerHTML='';dc.style.display="none";}return false;}dA=false;if(dc)opacity('statusmessage',100,0,500);return false;};function ShowStatusMessage(jH,iM){dc=document.getElementById('statusmessage');if(dc){dc.innerHTML=iM;dc.style.display="block";opacity('statusmessage',0,100,200);dA=true;}else return false;switch(jH){case 0:bG(3000);break;case 1:bG(5000);break;case 2:bG(9000);break;case 3:break;default:ai();break;}return false;};function opacity(id,opacStart,opacEnd,millisec){var speed=Math.round(millisec/100);var timer=0;if(opacStart>opacEnd){for(i=opacStart;i>=opacEnd;i--){setTimeout("gD("+i+",'"+id+"')",(timer*speed));timer++;}}else if(opacStartlimitNum){limitField.value=limitField.value.substring(0,limitNum);}else{limitCount.innerHTML=limitNum-(limitField.value.length+jv);}};function hU(jx,gc){if(!jx)return false;var eo="http://www"+cS(gc)+".MediaFire.com/imgbnc.php/"+gc+"1g.jpg";jx.src=eo;};function cS(gc){return Math.ceil(jL(gc.substring(0,1))/4);};function jD(){return "You haven't finished yet! Please press 'Cancel' to continue.";};function ap(hB){var g=0;var gY;while(document.getElementById('toptab_'+g)){gY=document.getElementById('toptab_'+g);if(hB==g)gY.className='current';else{switch(g){case 0:case 1:break;case 2:gY.className='green';default:break;}}g++;}};function kd(d){return d.toString(16);};function jL(h){return parseInt(h,16);};function m(){var i,x,tB,j=0,tA=new Array(),arg=m.arguments;if(document.getElementsByTagName){for(i=4;i';document.getElementById(flashcopier).innerHTML=divinfo;ShowStatusMessage(0,"Data copied to your clipboard!");}return false;};function cZ(direction){var counter=1;if(direction=="blank")var targetstring="_blank";else var targetstring="";while(counter<25){if(document.getElementById('alink_'+counter)){document.getElementById('alink_'+counter).target=targetstring;}counter++;}};function hM(num1,num2){num1=parseInt(num1);num2=parseInt(num2);if(num1>=num2)return 0;else{var generator=Math.random()*(num2-num1);return Math.round(num1+generator);}};function cB(len){var varAlpha="";var varBeta="";while(len>0){var rndNum=Math.random();rndNum=parseInt(rndNum*1000);rndNum=(rndNum%26)+65;varBeta=String.fromCharCode(rndNum);varAlpha=varAlpha+varBeta;len--;}varBeta=varAlpha.toLowerCase();return varBeta;};function dk(){if(document.getElementById('workframe2'))if(document.getElementById('workframe2').location)document.getElementById('workframe2').location="/dynamic/random_seed.php";else document.getElementById('workframe2').src="/dynamic/random_seed.php";};function cV(eT){if(eT==null)eT=0;var filefield=document.getElementById('file_name0');if(filefield.value==""){ShowStatusMessage(0,"Please click the 'Browse' or 'Choose' button and select at least one file before clicking the 'Upload File(s) to MediaFire' button");}else{identifier=identifier_seed;document.form_upload.action='http://upload.MediaFire.com/'+identifier+'p'+eT;m(1,'none','preupload','progressupload','div');Uploading=true;cZ("blank");document.getElementById('form_upload').submit();}};function ay(){if(typeof XMLHttpRequest!="undefined"){O=new XMLHttpRequest();return 1;}else if(window.ActiveXObject){var aU=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];for(var i=0;i1)gd[counter]+='
'+(counter+1)+'
';else gd[counter]+='
';gd[counter]+='';counter++;}if(parseInt(numfiles)<=UploadFiles){counter=parseInt(numfiles);while(counter<10){document.getElementById('links_html_'+counter).innerHTML=' ';counter++;}counter=0;if(force)while(counter0)divUploadPercentWidth.style.width=percent+"%";else divUploadPercentWidth.style.width=1;}if(kbps!=''&&kbps!='undefined'){divKbps=document.getElementById('kbps');divKbps.innerHTML=kbps+"Kbps";divKbpsWidth=document.getElementById('speed');if(kbps>0){if(kbps>512)divKbpsWidth.style.width="150px";else if(kbps<128)divKbpsWidth.style.width="25px";else divKbpsWidth.style.width=Math.round(kbps/3.5)+"px";}else divKbpsWidth.style.width=1;}if(verify!=''&&verify!='undefined'){divVerifyPercent=document.getElementById('progress');divVerifyPercent.innerHTML=verify+"%";divVerifyPercentWidth=document.getElementById('progress_bar');if(verify>0)divVerifyPercentWidth.style.width=verify+"%";else divVerifyPercentWidth.style.width=1;}if(eta!=''&&eta!='undefined'){divETA=document.getElementById('eta');divETA.innerHTML=eta;}};function cs(c_name,value,expiredays){var exdate=new Date();exdate.setDate(exdate.getDate()+expiredays);document.cookie=c_name+"="+escape(value)+((expiredays==null)?"":";expires="+exdate.toGMTString());};function bc(c_name,value,expireseconds){var exdate=new Date();exdate.setTime(exdate.getTime()+(expireseconds*1000));document.cookie=c_name+"="+escape(value)+((expireseconds==null)?"":";expires="+exdate.toGMTString());};function iR(c_name,value){document.cookie=c_name+"="+escape(value);};function cu(c_name){if(document.cookie.length>0){c_start=document.cookie.indexOf(c_name+"=");if(c_start!= -1){c_start=c_start+c_name.length+1;c_end=document.cookie.indexOf(";",c_start);if(c_end== -1)c_end=document.cookie.length;return unescape(document.cookie.substring(c_start,c_end));}}return "";};function eU(c_name){cs(c_name,'',-1);};function dF(eB,hR,gS){io();iA(eB,hR,gS);};function aR(eB){gP(eB);};function iA(eB,hR,gS){var ez=document.getElementById(eB);if(!ez){gl();return false;}w=hR;h=gS;xc=Math.round((document.body.clientWidth/2)-(w/2));yc=Math.round((document.body.clientHeight/2)-(h/2));ez.style.left=xc+"px";ez.style.top='100px';ez.style.display='block';};function gP(eB){var ez=document.getElementById(eB);if(ez)ez.style.display='none';else{ShowStatusMessage(0,"Internal Error closing popup, please contact support!");return;}gl();};function io(){var page_screen=document.getElementById('page_screen');page_screen.style.height=document.body.parentNode.scrollHeight+'px';page_screen.style.display='block';opacity('page_screen',0,80,200);};function gl(){var page_screen=document.getElementById('page_screen');if(page_screen){opacity('page_screen',80,0,100);setTimeout('hT()',1500);}else ShowStatusMessage(0,"Internal Error with HTML components, please contact support.");};function hT(){var ig=document.getElementById('page_screen');if(!ig)return false;ig.style.display="none";}