BUILD_VERSION='29873';
 
var pq='';function qc(mG){var qd=document.getElementById('reg_email');var my=document.getElementById('login_email');if(qd)qd.value=mG;if(my)my.value=mG;return false;};function qa(iL){var gN=document.getElementById('login_type');var fQ=document.getElementById('signin_register');if(!gN|| !fQ)
return false;switch(iL){case 1:document.signin_register.login_type[0].checked=true;document.signin_register.login_type[1].checked=false;fQ.action="/dynamic/register.php";DoShow('new-password1');DoShow('new-password2');DoHide('old-password');break;case 2:default:
document.signin_register.login_type[0].checked=false;document.signin_register.login_type[1].checked=true;fQ.action="/dynamic/login.php";DoHide('new-password1');DoHide('new-password2');DoShow('old-password');break;}return true;};function pH(){var ah=document.getElementById('credit_card_form');if(ah)
ah.submit();return false;};function pu(ps){var ah=document.getElementById('texas_tax_amount');if(ps=='TX'&&pE>0){DoShow('texas_tax_notice');if(ah)ah.innerHTML=pE;}else DoHide('texas_tax_notice');return false;};function pr(pn){if(pn=='MC'||pn=='Visa'||pn=='Disc'){DoShow('cardcode_general');DoHide(
'cardcode_amex');}else if(pn=='AmEx'){DoHide('cardcode_general');DoShow('cardcode_amex');}else{DoHide('cardcode_general');DoHide('cardcode_amex');}return false;};function pi(oV){switch(oV.substring(0,2)){case '34':case '37':if(oV.length==15)return 'AmEx';break;case '60':if(oV.substring(0,4)==
'6011'&&oV.length==16)return 'Disc';break;case '65':if(oV.length==16)return 'Disc';break;case '51':case '52':case '53':case '54':case '55':if(oV.length==16)return 'MC';break;case '40':case '41':case '42':case '43':case '44':case '45':case '46':case '47':case '48':case '49':if(oV.length==13||
oV.length==16)return 'Visa';break;default:return false;}return false;};function pj(pn){var ah=document.getElementById('cardtype');var pf=false;var pb=false;var pe=false;var pd=false;var po=false;switch(pn){case 'MC':pf=true;break;case 'AmEx':pb=true;break;case 'Visa':pd=true;break;case 'Disc':pe=
true;break;default:pp=true;break;}if(ah){if(au(ah))at(ah);kP(ah,' ','0',po);kP(ah,'Visa','Visa',pd);kP(ah,'MasterCard','MC',pf);kP(ah,'Discover','Disc',pe);kP(ah,'American Express','AmEx',pb);}pr(pn);return false;};function oP(pa){if(!pa)return;if(pa.length<=0)return;if(pa=='saved'){if(pD=='TX')pu(
pD);else pu('');}else if(pa=='new'){var ah=document.getElementById('billing_state');if(ah&&ah.value=='TX')pu(ah.value);else pu('');}else{pu('');}var oW=document.getElementById('savedcard_box');var oR=document.getElementById('newcard_box');var oT=document.getElementById('paypal_box');var rh=
document.getElementById('amazon_box');var oU=document.getElementById('saved_payment_method');var oQ=document.getElementById('new_payment_method');var oS=document.getElementById('paypal_payment_method');var rg=document.getElementById('amazon_payment_method');switch(pa){case 'saved':if(oW)
oW.className='payment_selected';if(oR)oR.className='payment_not_selected';if(oT)oT.className='payment_not_selected';if(rh)rh.className='payment_not_selected';if(oU)oU.checked=true;if(oQ)oQ.checked=false;if(oS)oS.checked=false;if(rg)rg.checked=false;break;case 'new':if(oW)oW.className=
'payment_not_selected';if(oR)oR.className='payment_selected';if(oT)oT.className='payment_not_selected';if(rh)rh.className='payment_not_selected';if(oU)oU.checked=false;if(oQ)oQ.checked=true;if(oS)oS.checked=false;if(rg)rg.checked=false;break;case 'paypal':if(oW)oW.className='payment_not_selected';
if(oR)oR.className='payment_not_selected';if(oT)oT.className='payment_selected';if(rh)rh.className='payment_not_selected';if(oU)oU.checked=false;if(oQ)oQ.checked=false;if(oS)oS.checked=true;if(rg)rg.checked=false;break;case 'amazon':if(oW)oW.className='payment_not_selected';if(oR)oR.className=
'payment_not_selected';if(oT)oT.className='payment_not_selected';if(rh)rh.className='payment_selected';if(oU)oU.checked=false;if(oQ)oQ.checked=false;if(oS)oS.checked=false;if(rg)rg.checked=true;break;default:if(oW)oW.className='payment_not_selected';if(oR)oR.className='payment_not_selected';if(oT)
oT.className='payment_not_selected';if(rh)rh.className='payment_not_selected';if(oU)oU.checked=false;if(oQ)oQ.checked=false;if(oS)oS.checked=false;if(rg)rg.checked=false;break;}return;};function cL(){if(UserLogin!=1){DoAPopup('mediapro_login_popup',500,500);ab(1,'main_create','main_login',
'hide_header','div');return false;}else return true;};function oZ(pg){var jJ="http://"+(window.location.toString().split("//")[1].split("/")[0])+"/billing/go_pro_check.php?pid=";var gI=document.getElementById("mediapro_link_upgrade1");if(gI&&pg)gI.href=jJ+pg;var gI=document.getElementById(
"mediapro_link_upgrade2");if(gI&&pg)gI.href=jJ+pg;};function bi(iL){for(eh=1;document.getElementById('mediapro_option_'+eh+'_layer');eh++){if(eh==iL)document.getElementById('mediapro_option_'+eh+'_layer').className="bandwidth_option_highlight";else document.getElementById('mediapro_option_'+eh+
'_layer').className="bandwidth_option";}cQ(iL);};function cQ(iL){DoHide("checkbox_yearly_checked");DoShow("checkbox_yearly_unchecked");var Fy=document.getElementById("mediapro_select_dailymonthly_price");var ph=document.getElementById("savings_amount");if(Fy){switch(iL){case 1:oY='a $33 savings';at(
Fy);kP(Fy,'No Thanks - $9 billed Monthly','4',true);kP(Fy,'Yes - $75 for a Year (a $33 dollar savings!)','7',false);oZ(4);break;case 2:oY='a $72 savings';at(Fy);kP(Fy,'No Thanks - $20 billed Monthly','5',true);kP(Fy,'Yes - $168 for a Year (savings of $72 dollars!)','8',false);oZ(5);break;case 3:oY=
'a $252 savings';at(Fy);kP(Fy,'No Thanks - $70 billed Monthly','6',true);kP(Fy,'Yes - $588 for a Year (savings of $252 dollars!)','9',false);oZ(6);break;default:break;}if(ph){ph.innerHTML=oY;}}};function ct(){var be=document.getElementById('expected_file_size');var da=document.getElementById(
'expected_downloads');var hO=document.getElementById('suggested_plan_text');if(be&&da&&hO){if(be.value==0||da.value==0)return false;DoShow('suggested_plan');var af=be.value*da.value;if(af<90*1024*1024*1024){hO.innerHTML="100 GB / $9 per month";}else if(af<210*1024*1024*1024){hO.innerHTML=
"250 GB / $20 per month";}else if(af<900*1024*1024*1024){hO.innerHTML="1000 GB / $70 per month";}else{hO.innerHTML="1000 GB / $70 per month + Additional Bandwidth";}}return false;};function pA(telNo){if(telNo.value=="")return;var phone=new String(telNo.value);phone=phone.substring(0,14);if(
phone.match(".[0-9]{3}.[0-9]{3}-[0-9]{4}")==null){if(phone.match(".[0-9]{2}.[0-9]{3}-[0-9]{4}|"+".[0-9].[0-9]{3}-[0-9]{4}|"+".[0-9]{3}.[0-9]{2}-[0-9]{4}|"+".[0-9]{3}.[0-9]-[0-9]{4}")==null){var phoneNumeric=phoneChar="",i;for(i=0;i<phone.length;i++){phoneChar=phone.substr(i,1);if(!isNaN(phoneChar)&&
(phoneChar!=" "))phoneNumeric=phoneNumeric+phoneChar;}phone="";for(i=0;i<phoneNumeric.length;i++){if(i==0)phone=phone+"";if(i==3)phone=phone+"-";if(i==6)phone=phone+"-";phone=phone+phoneNumeric.substr(i,1)}}}else{phone="("+phone.substring(1,4)+") "+phone.substring(5,8)+"-"+phone.substring(9,13);}if(
phone!=telNo.value)telNo.value=phone;};function pG(telNo){if(telNo.value=="")return;if(telNo.value.match(".[0-9]{3}.[0-9]{3}-[0-9]{4}")==null){if(telNo.value.match("[0-9]{10}")!=null)pA(telNo)}};function pL(e){var pB;if(e&&e.which){e=e;pB=e.which;}else{e=event;pB=e.keyCode;}if(pB==13){
document.forms[getNetuiTagName("findListingForm")].submit();return false;}else{return true;}}var hi=[['A1',"Anonymous Proxy"],['A2',"Satellite Provider"],['GB',"United Kingdom"],['AD',"Andorra"],['AF',"Afghanistan"],['AG',"Antigua and Barbuda"],['AI',"Anguilla"],['AL',"Albania"],['AM',"Armenia"],['AN',"Netherlands Antilles"],['AO',"Angola"],['AP',"Asia/Pacific Region"],['AQ',"Antarctica"],['AR',"Argentina"],['AS',"American Samoa"],['AT',"Austria"],['AU',"Australia"],['AW',"Aruba"],['AX',"Aland Islands"],['AZ',"Azerbaijan"],['BA',"Bosnia and Herzegovina"],['BB',"Barbados"],['BD',"Bangladesh"],['BE',"Belgium"],['BF',"Burkina Faso"],['BG',"Bulgaria"],['BH',"Bahrain"],['BI',"Burundi"],['BJ',"Benin"],['BM',"Bermuda"],['BN',"Brunei Darussalam"],['BO',"Bolivia"],['BR',"Brazil"],['BS',"Bahamas"],['BT',"Bhutan"],['BV',"Bouvet Island"],['BW',"Botswana"],['BY',"Belarus"],['BZ',"Belize"],['CA',"Canada"],['CC',"Cocos (Keeling] Islands"],['CD',"Congo, The Democratic Republic of the"],['CF',"Central African Republic"],['CG',"Congo"],['CH',"Switzerland"],['CI',"Cote d'Ivoire"],['CK',"Cook Islands"],['CL',"Chile"],['CM',"Cameroon"],['CN',"China"],['CO',"Colombia"],['CR',"Costa Rica"],['CU',"Cuba"],['CV',"Cape Verde"],['CX',"Christmas Island"],['CY',"Cyprus"],['CZ',"Czech Republic"],['DE',"Germany"],['DJ',"Djibouti"],['DK',"Denmark"],['DM',"Dominica"],['DO',"Dominican Republic"],['DZ',"Algeria"],['EC',"Ecuador"],['EE',"Estonia"],['EG',"Egypt"],['EH',"Western Sahara"],['ER',"Eritrea"],['ES',"Spain"],['ET',"Ethiopia"],['EU',"Europe"],['FI',"Finland"],['FJ',"Fiji"],['FK',"Falkland Islands (Malvinas]"],['FM',"Micronesia, Federated States of"],['FO',"Faroe Islands"],['FR',"France"],['GA',"Gabon"],['GD',"Grenada"],['GE',"Georgia"],['GF',"French Guiana"],['GG',"Guernsey"],['GH',"Ghana"],['GI',"Gibraltar"],['GL',"Greenland"],['GM',"Gambia"],['GN',"Guinea"],['GP',"Guadeloupe"],['GQ',"Equatorial Guinea"],['GR',"Greece"],['GS',"South Georgia and the South Sandwich Islands"],['GT',"Guatemala"],['GU',"Guam"],['GW',"Guinea-Bissau"],['GY',"Guyana"],['HK',"Hong Kong"],['HM',"Heard Island and McDonald Islands"],['HN',"Honduras"],['HR',"Croatia"],['HT',"Haiti"],['HU',"Hungary"],['ID',"Indonesia"],['IE',"Ireland"],['IL',"Israel"],['IM',"Isle of Man"],['IN',"India"],['IO',"British Indian Ocean Territory"],['IQ',"Iraq"],['IR',"Iran, Islamic Republic of"],['IS',"Iceland"],['IT',"Italy"],['JE',"Jersey"],['JM',"Jamaica"],['JO',"Jordan"],['JP',"Japan"],['KE',"Kenya"],['KG',"Kyrgyzstan"],['KH',"Cambodia"],['KI',"Kiribati"],['KM',"Comoros"],['KN',"Saint Kitts and Nevis"],['KP',"Korea, Democratic People's Republic of"],['KR',"Korea, Republic of"],['KW',"Kuwait"],['KY',"Cayman Islands"],['KZ',"Kazakhstan"],['LA',"Lao People's Democratic Republic"],['LB',"Lebanon"],['LC',"Saint Lucia"],['LI',"Liechtenstein"],['LK',"Sri Lanka"],['LR',"Liberia"],['LS',"Lesotho"],['LT',"Lithuania"],['LU',"Luxembourg"],['LV',"Latvia"],['LY',"Libyan Arab Jamahiriya"],['MA',"Morocco"],['MC',"Monaco"],['MD',"Moldova, Republic of"],['ME',"Montenegro"],['MG',"Madagascar"],['MH',"Marshall Islands"],['MK',"Macedonia"],['ML',"Mali"],['MM',"Myanmar"],['MN',"Mongolia"],['MO',"Macao"],['MP',"Northern Mariana Islands"],['MQ',"Martinique"],['MR',"Mauritania"],['MS',"Montserrat"],['MT',"Malta"],['MU',"Mauritius"],['MV',"Maldives"],['MW',"Malawi"],['MX',"Mexico"],['MY',"Malaysia"],['MZ',"Mozambique"],['NA',"Namibia"],['NC',"New Caledonia"],['NE',"Niger"],['NF',"Norfolk Island"],['NG',"Nigeria"],['NI',"Nicaragua"],['NL',"Netherlands"],['NO',"Norway"],['NP',"Nepal"],['NR',"Nauru"],['NU',"Niue"],['NZ',"New Zealand"],['OM',"Oman"],['PA',"Panama"],['PE',"Peru"],['PF',"French Polynesia"],['PG',"Papua New Guinea"],['PH',"Philippines"],['PK',"Pakistan"],['PL',"Poland"],['PM',"Saint Pierre and Miquelon"],['PN',"Pitcairn"],['PR',"Puerto Rico"],['PS',"Palestinian Territory"],['PT',"Portugal"],['PW',"Palau"],['PY',"Paraguay"],['QA',"Qatar"],['RE',"Reunion"],['RO',"Romania"],['RS',"Serbia"],['RU',"Russian Federation"],['RW',"Rwanda"],['SA',"Saudi Arabia"],['SB',"Solomon Islands"],['SC',"Seychelles"],['SD',"Sudan"],['SE',"Sweden"],['SG',"Singapore"],['SH',"Saint Helena"],['SI',"Slovenia"],['SJ',"Svalbard and Jan Mayen"],['SK',"Slovakia"],['SL',"Sierra Leone"],['SM',"San Marino"],['SN',"Senegal"],['SO',"Somalia"],['SR',"Suriname"],['ST',"Sao Tome and Principe"],['SV',"El Salvador"],['SY',"Syrian Arab Republic"],['SZ',"Swaziland"],['TC',"Turks and Caicos Islands"],['TD',"Chad"],['TF',"French Southern Territories"],['TG',"Togo"],['TH',"Thailand"],['TJ',"Tajikistan"],['TK',"Tokelau"],['TL',"Timor-Leste"],['TM',"Turkmenistan"],['TN',"Tunisia"],['TO',"Tonga"],['TR',"Turkey"],['TT',"Trinidad and Tobago"],['TV',"Tuvalu"],['TW',"Taiwan"],['TZ',"Tanzania, United Republic of"],['UA',"Ukraine"],['UG',"Uganda"],['AE',"United Arab Emirates"],['UM',"United States Minor Outlying Islands"],['US',"United States"],['UY',"Uruguay"],['UZ',"Uzbekistan"],['VA',"Holy See (Vatican City State]"],['VC',"Saint Vincent and the Grenadines"],['VE',"Venezuela"],['VG',"Virgin Islands, British"],['VI',"Virgin Islands, U.S."],['VN',"Vietnam"],['VU',"Vanuatu"],['WF',"Wallis and Futuna"],['WS',"Samoa"],['YE',"Yemen"],['YT',"Mayotte"],['ZA',"South Africa"],['ZM',"Zambia"],['ZW',"Zimbabwe"]];var ht=[['US','AA',"Armed Forces Americas"],['US','AE',"Armed Forces Foreign"],['US','AK',"Alaska"],['US','AL',"Alabama"],['US','AP',"Armed Forces Pacific"],['US','AR',"Arkansas"],['US','AS',"American Samoa"],['US','AZ',"Arizona"],['US','CA',"California"],['US','CO',"Colorado"],['US','CT',"Connecticut"],['US','DC',"District of Columbia"],['US','DE',"Delaware"],['US','FL',"Florida"],['US','FM',"Federated States of Micronesia"],['US','GA',"Georgia"],['US','GU',"Guam"],['US','HI',"Hawaii"],['US','IA',"Iowa"],['US','ID',"Idaho"],['US','IL',"Illinois"],['US','IN',"Indiana"],['US','KS',"Kansas"],['US','KY',"Kentucky"],['US','LA',"Louisiana"],['US','MA',"Massachusetts"],['US','MD',"Maryland"],['US','ME',"Maine"],['US','MH',"Marshall Islands"],['US','MI',"Michigan"],['US','MN',"Minnesota"],['US','MO',"Missouri"],['US','MP',"Northern Mariana Islands"],['US','MS',"Mississippi"],['US','MT',"Montana"],['US','NC',"North Carolina"],['US','ND',"North Dakota"],['US','NE',"Nebraska"],['US','NH',"New Hampshire"],['US','NJ',"New Jersey"],['US','NM',"New Mexico"],['US','NV',"Nevada"],['US','NY',"New York"],['US','OH',"Ohio"],['US','OK',"Oklahoma"],['US','OR',"Oregon"],['US','PA',"Pennsylvania"],['US','PR',"Puerto Rico"],['US','PW',"Palau"],['US','RI',"Rhode Island"],['US','SC',"South Carolina"],['US','SD',"South Dakota"],['US','TN',"Tennessee"],['US','TX',"Texas"],['US','UT',"Utah"],['US','VA',"Virginia"],['US','VI',"Virgin Islands"],['US','VT',"Vermont"],['US','WA',"Washington"],['US','WV',"West Virginia"],['US','WI',"Wisconsin"],['US','WY',"Wyoming"],['CA','AB',"Alberta"],['CA','BC',"British Columbia"],['CA','MB',"Manitoba"],['CA','NB',"New Brunswick"],['CA','NL',"Newfoundland"],['CA','NS',"Nova Scotia"],['CA','NU',"Nunavut"],['CA','ON',"Ontario"],['CA','PE',"Prince Edward Island"],['CA','QC',"Quebec"],['CA','SK',"Saskatchewan"],['CA','NT',"Northwest Territories"],['CA','YT',"Yukon Territory"]];var pk=0;function dh(mG){try{var fP=document.getElementById('loadingicon');if(fP)fP.style.display="none";var md=document.getElementById('pprotected');var hk=document.getElementById('passworderror');if(!md)return false;if(mG&&hk)hk.innerHTML="<div class='form_error'>The password you entered was invalid, please try again!</div>";md.style.display="block";}catch(errno){parent.aa(0,"There was a software exception (#2) while trying to initialize your download.  Please refresh your page and try again.");}};function GetCaptcha(sCaptchaCode,sBadCaptcha){try{var fP=document.getElementById('loadingicon');if(fP)fP.style.display="none";var oCaptcha=document.getElementById('captchaprotected');var hk=document.getElementById('captchaerror');if(!oCaptcha)return false;if(sBadCaptcha.length>0&&hk)hk.innerHTML="<div class='form_error'>"+sBadCaptcha+"</div>";document.write(sCaptchaCode);oCaptcha.style.display="block";}catch(errno){parent.aa(0,"There was a software exception (#3) while trying to initialize your download.  Please refresh your page and try again.");}};function Eo(){var elm,CL;var Di=[[vm+'/images/v4images/catfishads/bulkdownload.gif','/select_account_type.php?utm_source=download_page&utm_medium=catfish&utm_content=bulk_download&utm_campaign=MediaPro%2BBulk%20Download'],[vm+'/images/v4images/catfishads/directlinking.gif','/select_account_type.php?utm_source=download_page&utm_medium=catfish&utm_content=direct_linking&utm_campaign=MediaPro%2BDirect%20Linking'],[vm+'/images/v4images/catfishads/dropbox.gif','/select_account_type.php?utm_source=download_page&utm_medium=catfish&utm_content=drop_box&utm_campaign=MediaPro%2BDrop%20Box'],[vm+'/images/v4images/catfishads/mediapro.gif','/select_account_type.php?utm_source=download_page&utm_medium=catfish&utm_content=mediapro_general&utm_campaign=MediaPro%2BGeneral'],[vm+'/images/v4images/catfishads/signup.gif','/select_account_type.php?utm_source=download_page&utm_medium=catfish&utm_content=signup_account&utm_campaign=Sign%2BUp%20for%20an%20Account'],];var Ew=Math.floor(Math.random()*(Di.length+1));if(!(CL=Di[Ew]))CL=Di[0];if(elm=document.getElementById('catfish_img')){elm.src=CL[0];}if(elm=document.getElementById('catfish_link')){elm.href=CL[1];}DR();};function DR(EP){var DW=116;var Eq=1000000;var Ee= -100;var DO=6;var rE=50;var Ep=300;var Ez=1800;var Cj,qR,Db;var BP;function DE(){if(Cj){if(BP>0){BP=Math.max(BP-DO,0);Cj.style.height=BP+"px";setTimeout(DE,rE);}}};function DN(){if(Db){if(Db.complete==false){setTimeout(DN,Ep);}else{qR.style.zIndex=Eq;DE();}}};function Ef(){DN();};function DI(){if(Cj){if(BP<DW){BP=Math.min(BP+DO,DW);Cj.style.height=BP+"px";setTimeout(DI,rE);}else{qR.style.zIndex=Ee;}}};if((Cj=document.getElementById('catfish_filler'))&&(Db=document.getElementById('catfish_img'))&&(qR=document.getElementById('catfish_div'))){var rn=/msie|MSIE 6/.test(navigator.userAgent);if(rn){Cj.style.display="none";Db.style.display="none";qR.style.display="none";return;}BP=Cj.offsetHeight;if(EP){DI();}else{setTimeout(Ef,Ez);}}};function Dy(){if(!fu&& !hq){if(ES.length>2)Ch('/templates/upgrade/download_all.html',800,450);else Ck();return;}Ds(ES,'Shared Files');};function pKn(mG){if(!pKr)return false;pKr=mG;return true;};function pKl(){if(!pKr)return false;return pKr;}if(typeof infosoftglobal=="undefined")var infosoftglobal=new Object();if(typeof infosoftglobal.FusionChartsUtil=="undefined")infosoftglobal.FusionChartsUtil=new Object();infosoftglobal.FusionCharts=function(swf,id,w,h,debugMode,registerWithJS,c,scaleMode,lang,detectFlashVersion,autoInstallRedirect){if(!document.getElementById){return;}this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(swf){this.setAttribute('swf',swf);}if(id){this.setAttribute('id',id);}if(w){this.setAttribute('width',w);}if(h){this.setAttribute('height',h);}if(c){this.addParam('bgcolor',c);}this.addParam('quality','high');this.addParam('allowScriptAccess','always');this.addVariable('chartWidth',w);this.addVariable('chartHeight',h);debugMode=debugMode?debugMode:0;this.addVariable('debugMode',debugMode);this.addVariable('DOMId',id);registerWithJS=registerWithJS?registerWithJS:0;this.addVariable('registerWithJS',registerWithJS);scaleMode=scaleMode?scaleMode:'noScale';this.addVariable('scaleMode',scaleMode);lang=lang?lang:'EN';this.addVariable('lang',lang);this.detectFlashVersion=detectFlashVersion?detectFlashVersion:1;this.autoInstallRedirect=autoInstallRedirect?autoInstallRedirect:1;this.installedVer=infosoftglobal.FusionChartsUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){infosoftglobal.FusionCharts.doPrepUnload=true;}};infosoftglobal.FusionCharts.prototype={setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name];},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name];},getVariables:function(){return this.variables;},getVariablePairs:function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key]);}return variablePairs;},getSWFHTML:function(){var swfNode="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){swfNode='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'"  ';swfNode+=' id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'" ';var params=this.getParams();for(var key in params){swfNode+=[key]+'="'+params[key]+'" ';}var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='flashvars="'+pairs+'"';}swfNode+='/>';}else{swfNode='<object id="'+this.getAttribute('id')+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'">';swfNode+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var params=this.getParams();for(var key in params){swfNode+='<param name="'+key+'" value="'+params[key]+'" />';}var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='<param name="flashvars" value="'+pairs+'" />';}swfNode+="</object>";}return swfNode;},setDataURL:function(strDataURL){if(this.initialDataSet==false){this.addVariable('dataURL',strDataURL);this.initialDataSet=true;}else{var chartObj=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id'));chartObj.setDataURL(strDataURL);}},setDataXML:function(strDataXML){if(this.initialDataSet==false){this.addVariable('dataXML',strDataXML);this.initialDataSet=true;}else{var chartObj=infosoftglobal.FusionChartsUtil.getChartObject(this.getAttribute('id'));chartObj.setDataXML(strDataXML);}},setTransparent:function(isTransparent){if(typeof isTransparent=="undefined"){isTransparent=true;}if(isTransparent)this.addParam('WMode','transparent');else this.addParam('WMode','Opaque');},render:function(elementId){if((this.detectFlashVersion==1)&&(this.installedVer.major<8)){if(this.autoInstallRedirect==1){var installationConfirm=window.confirm("You need Adobe Flash Player 8 (or above) to view the charts. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");if(installationConfirm){window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";}else{return false;}}else{return false;}}else{var n=(typeof elementId=='string')?document.getElementById(elementId):elementId;n.innerHTML=this.getSWFHTML();if(!document.embeds[this.getAttribute('id')]&& !window[this.getAttribute('id')])window[this.getAttribute('id')]=document.getElementById(this.getAttribute('id'));return true;}}};infosoftglobal.FusionChartsUtil.getPlayerVersion=function(){var PlayerVersion=new infosoftglobal.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new infosoftglobal.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var counter=3;while(axo){try{counter++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+counter);PlayerVersion=new infosoftglobal.PlayerVersion([counter,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");PlayerVersion=new infosoftglobal.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(PlayerVersion.major==6){return PlayerVersion;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){PlayerVersion=new infosoftglobal.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}return PlayerVersion;};infosoftglobal.PlayerVersion=function(arrVersion){this.major=arrVersion[0]!=null?parseInt(arrVersion[0]):0;this.minor=arrVersion[1]!=null?parseInt(arrVersion[1]):0;this.rev=arrVersion[2]!=null?parseInt(arrVersion[2]):0;};infosoftglobal.FusionChartsUtil.cleanupSWFs=function(){var objects=document.getElementsByTagName("OBJECT");for(var i=objects.length-1;i>=0;i--){objects[i].style.display='none';for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=function(){};}}}};if(infosoftglobal.FusionCharts.doPrepUnload){if(!infosoftglobal.unloadSet){infosoftglobal.FusionChartsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",infosoftglobal.FusionChartsUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",infosoftglobal.FusionChartsUtil.prepUnload);infosoftglobal.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];}}if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}infosoftglobal.FusionChartsUtil.getChartObject=function(id){var chartRef=null;if(navigator.appName.indexOf("Microsoft Internet")== -1){if(document.embeds&&document.embeds[id])chartRef=document.embeds[id];else chartRef=window.document[id];}else{chartRef=window[id];}if(!chartRef)chartRef=document.getElementById(id);return chartRef;};var getChartFromId=infosoftglobal.FusionChartsUtil.getChartObject;var FusionCharts=infosoftglobal.FusionCharts;if(typeof infosoftglobal=="undefined")var infosoftglobal=new Object();if(typeof infosoftglobal.FusionMapsUtil=="undefined")infosoftglobal.FusionMapsUtil=new Object();infosoftglobal.FusionMaps=function(swf,id,w,h,debugMode,registerWithJS,c,scaleMode,lang,detectFlashVersion,autoInstallRedirect){if(!document.getElementById){return;}this.initialDataSet=false;this.params=new Object();this.variables=new Object();this.attributes=new Array();if(swf){this.setAttribute('swf',swf);}if(id){this.setAttribute('id',id);}w=w.toString().replace(/\%/,"%25");if(w){this.setAttribute('width',w);}h=h.toString().replace(/\%/,"%25");if(h){this.setAttribute('height',h);}if(c){this.addParam('bgcolor',c);}this.addParam('quality','high');this.addParam('allowScriptAccess','always');this.addVariable('mapWidth',w);this.addVariable('mapHeight',h);debugMode=debugMode?debugMode:0;this.addVariable('debugMode',debugMode);this.addVariable('DOMId',id);registerWithJS=registerWithJS?registerWithJS:0;this.addVariable('registerWithJS',registerWithJS);scaleMode=scaleMode?scaleMode:'noScale';this.addVariable('scaleMode',scaleMode);lang=lang?lang:'EN';this.addVariable('lang',lang);this.detectFlashVersion=detectFlashVersion?detectFlashVersion:1;this.autoInstallRedirect=autoInstallRedirect?autoInstallRedirect:1;this.installedVer=infosoftglobal.FusionMapsUtil.getPlayerVersion();if(!window.opera&&document.all&&this.installedVer.major>7){infosoftglobal.FusionMaps.doPrepUnload=true;}};infosoftglobal.FusionMaps.prototype={setAttribute:function(name,value){this.attributes[name]=value;},getAttribute:function(name){return this.attributes[name];},addParam:function(name,value){this.params[name]=value;},getParams:function(){return this.params;},addVariable:function(name,value){this.variables[name]=value;},getVariable:function(name){return this.variables[name];},getVariables:function(){return this.variables;},getVariablePairs:function(){var variablePairs=new Array();var key;var variables=this.getVariables();for(key in variables){variablePairs.push(key+"="+variables[key]);}return variablePairs;},getSWFHTML:function(){var swfNode="";if(navigator.plugins&&navigator.mimeTypes&&navigator.mimeTypes.length){swfNode='<embed type="application/x-shockwave-flash" src="'+this.getAttribute('swf')+'" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'"  ';swfNode+=' id="'+this.getAttribute('id')+'" name="'+this.getAttribute('id')+'" ';var params=this.getParams();for(var key in params){swfNode+=[key]+'="'+params[key]+'" ';}var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='flashvars="'+pairs+'"';}swfNode+='/>';}else{swfNode='<object id="'+this.getAttribute('id')+'" classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" width="'+this.getAttribute('width')+'" height="'+this.getAttribute('height')+'">';swfNode+='<param name="movie" value="'+this.getAttribute('swf')+'" />';var params=this.getParams();for(var key in params){swfNode+='<param name="'+key+'" value="'+params[key]+'" />';}var pairs=this.getVariablePairs().join("&");if(pairs.length>0){swfNode+='<param name="flashvars" value="'+pairs+'" />';}swfNode+="</object>";}return swfNode;},setDataURL:function(strDataURL){if(this.initialDataSet==false){this.addVariable('dataURL',strDataURL);this.initialDataSet=true;}else{var mapObj=infosoftglobal.FusionMapsUtil.getMapObject(this.getAttribute('id'));mapObj.setDataURL(strDataURL);}},setDataXML:function(strDataXML){if(this.initialDataSet==false){this.addVariable('dataXML',strDataXML);this.initialDataSet=true;}else{var mapObj=infosoftglobal.FusionMapsUtil.getMapObject(this.getAttribute('id'));mapObj.setDataXML(strDataXML);}},setTransparent:function(isTransparent){if(typeof isTransparent=="undefined"){isTransparent=true;}if(isTransparent)this.addParam('WMode','transparent');else this.addParam('WMode','Opaque');},render:function(elementId){if((this.detectFlashVersion==1)&&(this.installedVer.major<8)){if(this.autoInstallRedirect==1){var installationConfirm=window.confirm("You need Adobe Flash Player 8 (or above) to view the maps. It is a free and lightweight installation from Adobe.com. Please click on Ok to install the same.");if(installationConfirm){window.location="http://www.adobe.com/shockwave/download/download.cgi?P1_Prod_Version=ShockwaveFlash";}else{return false;}}else{return false;}}else{var n=(typeof elementId=='string')?document.getElementById(elementId):elementId;n.innerHTML=this.getSWFHTML();if(!document.embeds[this.getAttribute('id')]&& !window[this.getAttribute('id')])window[this.getAttribute('id')]=document.getElementById(this.getAttribute('id'));return true;}}};infosoftglobal.FusionMapsUtil.getPlayerVersion=function(){var PlayerVersion=new infosoftglobal.PlayerVersion([0,0,0]);if(navigator.plugins&&navigator.mimeTypes.length){var x=navigator.plugins["Shockwave Flash"];if(x&&x.description){PlayerVersion=new infosoftglobal.PlayerVersion(x.description.replace(/([a-zA-Z]|\s)+/,"").replace(/(\s+r|\s+b[0-9]+)/,".").split("."));}}else if(navigator.userAgent&&navigator.userAgent.indexOf("Windows CE")>=0){var axo=1;var counter=3;while(axo){try{counter++;axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash."+counter);PlayerVersion=new infosoftglobal.PlayerVersion([counter,0,0]);}catch(e){axo=null;}}}else{try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.7");}catch(e){try{var axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash.6");PlayerVersion=new infosoftglobal.PlayerVersion([6,0,21]);axo.AllowScriptAccess="always";}catch(e){if(PlayerVersion.major==6){return PlayerVersion;}}try{axo=new ActiveXObject("ShockwaveFlash.ShockwaveFlash");}catch(e){}}if(axo!=null){PlayerVersion=new infosoftglobal.PlayerVersion(axo.GetVariable("$version").split(" ")[1].split(","));}}return PlayerVersion;};infosoftglobal.PlayerVersion=function(arrVersion){this.major=arrVersion[0]!=null?parseInt(arrVersion[0]):0;this.minor=arrVersion[1]!=null?parseInt(arrVersion[1]):0;this.rev=arrVersion[2]!=null?parseInt(arrVersion[2]):0;};infosoftglobal.FusionMapsUtil.cleanupSWFs=function(){var objects=document.getElementsByTagName("OBJECT");for(var i=objects.length-1;i>=0;i--){objects[i].style.display='none';for(var x in objects[i]){if(typeof objects[i][x]=='function'){objects[i][x]=function(){};}}}};if(infosoftglobal.FusionMaps.doPrepUnload){if(!infosoftglobal.unloadSet){infosoftglobal.FusionMapsUtil.prepUnload=function(){__flash_unloadHandler=function(){};__flash_savedUnloadHandler=function(){};window.attachEvent("onunload",infosoftglobal.FusionMapsUtil.cleanupSWFs);};window.attachEvent("onbeforeunload",infosoftglobal.FusionMapsUtil.prepUnload);infosoftglobal.unloadSet=true;}}if(!document.getElementById&&document.all){document.getElementById=function(id){return document.all[id];}}if(Array.prototype.push==null){Array.prototype.push=function(item){this[this.length]=item;return this.length;}}infosoftglobal.FusionMapsUtil.getMapObject=function(id){var mapRef=null;if(navigator.appName.indexOf("Microsoft Internet")== -1){if(document.embeds&&document.embeds[id])mapRef=document.embeds[id];else mapRef=window.document[id];}else{mapRef=window[id];}if(!mapRef)mapRef=document.getElementById(id);return mapRef;};var getMapFromId=infosoftglobal.FusionMapsUtil.getMapObject;var FusionMaps=infosoftglobal.FusionMaps;var jb=0;var nZ=0;var ho=0;var hp=0;var eT=Array(151);var gM=0;var oA=1;var iStretchTimeout=1;var eG=75;var ff=0;var eD=Array(8);var ScrollMutex=0;var gS=0;var hJ=false;var oy=1;var gsKey='';var ke='';var jZ='';var oK=0;var oL=0;function bE(){var fP=document.getElementById('loadingicon');var hW=document.getElementById('loadingicon2');if(fP)fP.style.display='block';if(hW)hW.style.display='block';return false;};function cJ(){var fP=document.getElementById('loadingicon');var hW=document.getElementById('loadingicon2');if(fP)fP.style.display='none';if(hW)hW.style.display='none';return false;};function bH(fo,iK,fO,mo){for(eh=0;eh<151;eh++)eT[eh]=0;var hT=document.getElementById('imageslidework');if(hT){bE();if(hT.location)hT.location='/js/imageloaddata.php?key='+fO+'&time='+iK+'&quickkey='+fo+'&shiftslide='+mo+'&r='+aC(5);else if(hT.src)hT.src='/js/imageloaddata.php?key='+fO+'&time='+iK+'&quickkey='+fo+'&shiftslide='+mo+'&r='+aC(5);else return false;}return false;};function cK(kZ,gO,lv,fO,iK,fo){if(fO==0){cJ();return false;}if(ScrollMutex==1)return false;gsKey=fO;if(jb==0){ScrollMutex=1;bH(fo,iK,fO,1);return false;}if((hp>0||ho>0)&&lv){lv.style.display="block";var ju=document.getElementById('imageprevbutton');var jv=document.getElementById('imagenextbutton');var kh=document.getElementById('imageprevdiv');if(ju&&hp>0)ju.style.display="block";if(jv&&ho>0)jv.style.display="block";if(kh&&ho>0&&hp>0&&ju&&jv)kh.innerHTML="prev&nbsp;|&nbsp;&nbsp;";else kh.innerHTML="prev";if(kZ&&gO){kZ.style.display="block";gO.style.display="block";ScrollMutex=1;gM=0;az(document.getElementById('toslide'),1,2,eG-3);az(document.getElementById('toslide'),2,2,eG-2);az(document.getElementById('toslide'),3,2,eG-1);az(document.getElementById('toslide'),4,2,eG);az(document.getElementById('toslide'),5,2,eG+1);az(document.getElementById('toslide'),6,2,eG+2);az(document.getElementById('toslide'),7,2,eG+3);eD[0]=Array(1,45,0,0,1);eD[1]=Array(2,115,0,0,1);eD[2]=Array(3,115,0,0,1);eD[3]=Array(4,115,0,0,1);eD[4]=Array(5,115,0,0,1);eD[5]=Array(6,115,0,0,1);eD[6]=Array(7,45,0,0,1);hJ=false;aQ();}}};function by(){if(ScrollMutex==1)return false;ScrollMutex=1;if(gS==1){if((eG+ff-3)<=(eG-(hp-2))){if(eT[(eG+ff-4)]&&eT[(eG+ff-5)]&&jZ!=eT[(eG)][0]){jZ=eT[(eG)][0];ke='';bH(eT[(eG+ff)][0],eT[(eG+ff)][1],gsKey,2);return false;}else{if(!eT[(eG+ff-2)]){ScrollMutex=0;return false;}}}az(document.getElementById('toslide'),0,1,(eG+ff-4));ff--;var fm=0;eD[fm++]=Array(1,115,45,0,1);eD[fm++]=Array(7,0,45,0,2);eD[fm++]=0;hJ=true;aQ();}if(gS==2){if((eG+ff+3)>=(eG+(ho-2))){if(eT[(eG+ff+4)]&&eT[(eG+ff+5)]&&ke!=eT[(eG)][0]){ke=eT[(eG)][0];jZ='';bH(eT[(eG+ff)][0],eT[(eG+ff)][1],gsKey,2);return false;}else{if(!eT[(eG+ff+2)]){ScrollMutex=0;return false;}}}az(document.getElementById('toslide'),8,2,(eG+ff+4));ff++;var fm=0;eD[fm++]=Array(7,115,45,0,1);eD[fm++]=Array(1,0,45,0,2);eD[fm++]=0;hJ=true;aQ();}};function dq(){if(ScrollMutex==1)return false;ScrollMutex=1;hJ=false;if(gS==1){if(document.getElementById('ImageSlideThumb'+7)){document.getElementById('toslide').removeChild(document.getElementById('ImageSlideThumb'+7));}for(eh=7;(jB=document.getElementById('ImageSlideThumb'+(eh-1)));eh--){jB.setAttribute('id','ImageSlideThumb'+(eh));if(eh<0)break;}var fm=0;eD[fm++]=Array(1,45,0,0,1);eD[fm++]=Array(7,45,115,0,2);eD[fm++]=0;aQ();}if(gS==2){if(document.getElementById('ImageSlideThumb'+1)){document.getElementById('toslide').removeChild(document.getElementById('ImageSlideThumb'+1));}for(eh=1;(jB=document.getElementById('ImageSlideThumb'+(eh+1)));eh++){jB.setAttribute('id','ImageSlideThumb'+(eh));if(eh>6)break;}var fm=0;eD[fm++]=Array(7,45,0,0,1);eD[fm++]=Array(1,45,115,0,2);eD[fm++]=0;aQ();}};function aQ(){var gJ=30;var oa=1;var jm=0;for(eh=0;eD[eh];eh++){if(eD[eh][3]==1)continue;fB=document.getElementById('ImageSlideThumb'+eD[eh][0]);if(!fB){continue;}if(eD[eh][4]==1){if(eD[eh][2]+gJ>eD[eh][1]){fB.style.width=eD[eh][1]+"px";eD[eh][2]=eD[eh][1];eD[eh][3]=1;}else{fB.style.width=(eD[eh][2]+gJ)+"px";eD[eh][2]=eD[eh][2]+gJ;jm=1;}}else if(eD[eh][4]==2){if(eD[eh][2]-gJ<eD[eh][1]){fB.style.width=eD[eh][1]+"px";eD[eh][2]=eD[eh][1];eD[eh][3]=1;}else{fB.style.width=(eD[eh][2]-gJ)+"px";eD[eh][2]=eD[eh][2]-gJ;jm=1;}}}if(jm)window.setTimeout(aQ,oa);else{ScrollMutex=0;if(hJ==true)dq();}};function az(gO,nl,ng,eC,hL){if(!gO)return false;var iX=eT[eC];var newDiv=document.createElement('div');newDiv.setAttribute('id',('ImageSlideThumb'+nl));newDiv.style.width="0px";newDiv.style.overflow="hidden";newDiv.style.margin="0 2px";newDiv.style.zIndex=0;if(iX){kY='<a  href="/imageview.php?quickkey='+iX[0]+'&thumb='+document.getElementById('S_thumb').innerHTML+'"  class="small_thumbnail" style="z-index: 0;"><img src="http';if(lB==1)kY+='s://www';else kY+='://www'+aX(iX[2]);kY=kY+'.mediafire.com/imgbnc.php/'+iX[2]+'1g.jpg" border="0"/></a>';}else kY='<img src="'+vm+'/images/imgerrs/blank.jpg" width="107" height="80" border="0"/>';newDiv.innerHTML=kY;if(ng==1){for(var eh=1;!(kW=document.getElementById('ImageSlideThumb'+eh))&&eh<=8;eh++);if(kW)gO.insertBefore(newDiv,kW);else return false;}else gO.appendChild(newDiv);};function cn(nS,hL){if(jb==0)return false;var iq=Array();switch(nS){case 'next':if(eT[eG+hL])iq=eT[(eG+hL)];else return false;break;case 'prev':if(eT[eG-hL])iq=eT[(eG-hL)];else return false;break;default:return false;break;}var fB=document.getElementById('S_thumb');if(fB)var gi=fB.innerHTML;else var gi=4;if(iq[0]){var ez='imageview.php?quickkey='+iq[0]+'&thumb='+gi;if(document.location)document.location=ez;else document.src=ez;}return false;};function Ei(){if(!fu&& !hq){Ck();return;}var aZipFiles=new Array(['2',gsKey]);var jF=false;var Q;var CZ=eT.length;for(var qy=0;qy<CZ;++qy){Q=eT[qy];if(Q){aZipFiles[aZipFiles.length]=[1,Q[0],2];jF=true;}}if(jF)return Co(aZipFiles,sImageFolderName);}var kd='';var identifier='';var oz=4000;var eP=null;var iG=null;var Uploading=false;var UploadFiles=1;var UserLogin=0;var UserEmail='n/a';var gY=0;var iv=0;var fu=0;var hq=0;var lB=0;var mv=0;var jd=0;var oo=false;var ka=false;var pZ=null;var qz=0;var qr=0;var qw='';var qt=100;var qx=6000;var qB=10;var qp=10;var qq=0;var bDelayAds=0;function vs(){var Br=window.document.location;var vt=(Br.hostname=="www.mediafire.com");var vu=(Br.protocol=="https:");if(!vu&&vt){return "http://cdn.mediafire.com";}return '';};var vm=vs();function qA(qv,qy){if(!(qy>0))return false;if(qv=='')return false;if(!document.getElementById(qv+'1'))return false;qz=qy;qr=1;qw=qv;setTimeout('qu()',qt+qx);};function qu(){var qs=qr+1;if(qs>qz){qs=1;}var oW=document.getElementById(qw+qr);var oR=document.getElementById(qw+qs);if(!oW|| !oR){return false;}oW.style.opacity=((qp-1)/10);oW.style.filter='alpha(opacity='+((qp-1)*10)+')';oR.style.opacity=((qq+1)/10);oR.style.filter='alpha(opacity='+((qq+1)*10)+')';qp=qp-1;qq=qq+1;if(qp<=0){qr=qs;qp=10;qq=0;setTimeout('qu()',qt+qx);return;}setTimeout('qu()',qt);};Array.prototype.multiSort=function(index){for(var i=0;i<this.length;i++){var temp=this[i].splice(index,1);this[i].unshift(temp);}return this.sort();};function vB(it){return TRUE;};function cv(){var ah=document.getElementById('form_reg');if(ah)ah.submit();else aa(0,"Unable to submit registration, please reload page and try again.");};function dW(ez){if(!ez)return false;var kV=ez.split('/');for(eh=0;kV[eh]!=undefined&&eh<10;eh++);if(eh-- >1){var jC=kV[eh].split('?');for(fA=0;jC[fA]!=undefined&&fA<10;fA++);if(fA>0)fA--;var mT=jC[fA].split('&');for(gZ=0;mT[gZ]!=undefined&&gZ<10;gZ++);if(gZ>0)gZ--;var kj=jC[gZ].split('=');for(gy=0;kj[gy]!=undefined&&gy<10;gy++);if(gy>0)gy--;if(kj[gy].length>3)return kj[gy];else return false;}else return false;};function dO(){aa(3,"Logging off user '"+UserEmail+"'.. Please wait..");if(wM){if(wL){aa(3,'You are currently logged into Facebook.com. Would you like to be logged out of Facebook?<br /><br /><a href="#" onclick="xF(dS); return false;">Yes</a> &nbsp; &nbsp; &nbsp; <a href="#" onclick="dS();return false;">No</a><br /><br /><span style="font-size: 12px; font-weight: normal;">NOTE: You are also logged into Twitter, to log out of Twitter, visit twitter.com.</span>',true,dS);}else{aa(3,"You are currently logged into Facebook.com. Would you like to be logged out of Facebook?<br /><br /><a href=\"#\" onclick=\"xF(dS);return false;\">Yes</a> &nbsp; &nbsp; &nbsp; <a href=\"#\" onclick=\"dS();return false;\">No</a>",true,dS);}}else if(wL){aa(3,"<p>You are currently logged into Twitter.com as well. Twitter does not allow 3rd-party log-outs, please visit Twitter to log out.</p>",false,dS);}else{setTimeout("dS();",2000);}};function dG(lu){if(window.location)window.location=lu;else window.src=lu;};function pN(lu,pO){var ah=document.getElementById(pO);if(ah){if(ah.location)ah.location=lu;else ah.src=lu;}else return false;};function dS(){iD=document.getElementById('userwork');if(iD){av();ab(1,'none','prelogin','postlogin','div');var fT='/dynamic/logout.php?rand='+aC(5);if(iD.location)iD.location=fT;else iD.src=fT;}};function as(lP){if(lP==gY&&iv==1)return false;ii=document.getElementById('userwork');if(ii){aa(3,"Changing sharing mode.. Please wait..");var fT="/dynamic/douseracl.php?acl="+lP;if(ii.location)ii.location=fT;else ii.src=fT;}return true;};function cj(oc){var jw=document.getElementById('sharingmodebrowse');var jy=document.getElementById('sharingmodesingle');if(jw&&jy){if(gY==1){jy.className="singlefile";jw.className="browsable_selected";}else{jy.className="singlefile_selected";jw.className="browsable";}}var gV=document.getElementById('pagename');if(gV&&gV.value=='myfiles'&&oc!=1){RenderMyFiles(er,eN);}};function bF(ob,xf){if(pZ)clearTimeout(pZ);pZ=setTimeout(av,ob);if(typeof xf==="function"){setTimeout(xf,ob);}return false;};function av(xf){gm=document.getElementById('statusmessage');EW=document.getElementById('statusmessage_text');if(ka==false){if(gm){gm.style.display="none";}if(EW){EW.innerHTML='';}return false;}ka=false;if(gm){gm.style.display='none';}if(typeof xf==="function"){xf();}return false;};function aa(qH,hg,bNoDisappearOnClick,xf){am=document.getElementById('statusmessagebox');bw=document.getElementById('statusmessageboxtext');gm=document.getElementById('statusmessage');EW=document.getElementById('statusmessage_text');bNoDisappearOnClick=bNoDisappearOnClick||false;xf=xf||function(){av();return false;};if(am&&bw){am.style.display="block";bw.innerHTML=hg;}else{if(gm&&EW){EW.innerHTML=hg;gm.style.display="block";ka=true;}else return false;switch(qH){case 0:bF(5000,xf);break;case 1:bF(10000,xf);break;case 2:bF(15000,xf);break;case 3:break;default:av(xf);break;}var bDoOnClick=true;if(bNoDisappearOnClick===true){var aElements=gm.getElementsByTagName('DIV');for(var i=0;i<aElements.length;i++)if(aElements[i].id=='dismiss_message_div')bDoOnClick=false;}if(bDoOnClick===true){DoShow('dismiss_message_div');gm.onclick=xf;gm.style.cursor='pointer';}else{gm.onclick=undefined;gm.style.cursor='default';DoHide('dismiss_message_div');}}return false;};function opacity(id,opacStart,opacEnd,millisec){var object=document.getElementById(id).style;object.opacity=(opacEnd/100);object.MozOpacity=(opacEnd/100);object.KhtmlOpacity=(opacEnd/100);object.filter="alpha(opacity="+opacEnd+")";return;};function opacity_real(id,opacStart,opacEnd,millisec){var object=document.getElementById(id).style;var speed=Math.round(millisec/100);var timer=0;if(opacStart>opacEnd){for(i=opacStart;i>=opacEnd;i--){setTimeout("co("+i+",'"+id+"')",(timer*speed));timer++;}}else if(opacStart<opacEnd){for(i=opacStart;i<=opacEnd;i++){setTimeout("co("+i+",'"+id+"')",(timer*speed));timer++;}}};function co(opacity,id){var mainobject=document.getElementById(id);if(!mainobject)return false;var object=document.getElementById(id).style;object.opacity=(opacity/100);object.MozOpacity=(opacity/100);object.KhtmlOpacity=(opacity/100);object.filter="alpha(opacity="+opacity+")";};function aq(limitField,limitCount,limitNum,nC){if(limitField.value.length>limitNum){limitField.value=limitField.value.substring(0,limitNum);limitCount.innerHTML=0;}else{limitCount.innerHTML=limitNum-(limitField.value.length+nC);}limitCount.style.visibility='visible';};function xp(xe,yt,xK,xV,yf,xY){if(typeof xe=="string")xe=document.getElementById(xe);var xE=420;var xA=140;var xt=false;var xB=false;var xj=0;var elm;if(xe){if(elm=document.getElementById(yf)){if(elm.checked){if(elm=document.getElementById(yt)){var fo=String(elm.value);xA-=fo.length+18;xt=true;}}}if(elm=document.getElementById(xK)){if(elm.checked){xB=true;}}if(xB&&xt)xj=Math.min(xE,xA);else if(xt)xj=xA;else xj=xE;var yv=false;if(xe.value.length>xj){xe.value=xe.value.substring(0,xj);yv=true;}if(xB&&(elm=document.getElementById(xV))){elm.style.visibility='visible';elm.innerHTML=xE-(xe.value.length);}if(xt&&(elm=document.getElementById(xY))){elm.style.visibility='visible';elm.innerHTML=xA-(xe.value.length);}}return true;};function cE(lw,iH,ik){if(!lw)return false;if(!ik&&ik!=0)ik=1;var ez="";if(lB==1){ez+="/imgbnc.php/"+iH+ik+"g.jpg";}else{ez+="http://www"+aX(iH)+".mediafire.com/imgbnc.php/"+iH+ik+"g.jpg";}lw.src=ez;};function aX(iH){return Math.ceil(h2d(iH.substring(0,1))/4);};function en(){return "You haven't finished yet!  Please press 'Cancel' to continue.";};function ap(hv){if(mv!=0)return;var eh=0;var jD;while(document.getElementById('toptab_'+eh)){jD=document.getElementById('toptab_'+eh);if(hv==eh)jD.className='current';else{switch(eh){case 0:case 1:break;case 2:jD.className='green';default:break;}}eh++;}mv=1;};function d2h(d){return d.toString(16);};function h2d(h){return parseInt(h,16);};function ab(){var i,x,tB,j=0,tA=new Array(),arg=ab.arguments;if(document.getElementsByTagName){for(i=4;i<arg.length;i++){tB=document.getElementsByTagName(arg[i]);for(x=0;x<tB.length;x++){tA[j]=tB[x];j++;}}for(i=0;i<tA.length;i++){if(tA[i].className){if(tA[i].id==arg[1]){if(arg[0]==1){tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}else{tA[i].className=arg[2];}}else if(arg[0]==1&&arg[1]=='none'){if(tA[i].className==arg[2]||tA[i].className==arg[3]){tA[i].className=(tA[i].className==arg[3])?arg[2]:arg[3];}}else if(tA[i].className==arg[2]){tA[i].className=arg[3];}}}}};function ax(){if(jd!=0)return;if(document.getElementById('iframe_ad1')){pN('/templates/728x90.html','iframe_ad1');DoShow('remove_ads_button1');DoShow('iframe_ad1');}if(document.getElementById('iframe_ad2')){pN('/templates/160x600.html','iframe_ad2');DoShow('remove_ads_button2');DoShow('iframe_ad2');}if(document.getElementById('iframe_ad3')){pN('/templates/336x280.html','iframe_ad3');DoShow('remove_ads_button3');DoShow('iframe_ad3');}jd=1;};function dC(){if(jd!=1)return;if(document.getElementById('iframe_ad1')){pN('/blank.html','iframe_ad1');DoHide('iframe_ad1');}if(document.getElementById('iframe_ad2')){pN('/blank.html','iframe_ad2');DoHide('iframe_ad2');}if(document.getElementById('iframe_ad3')){pN('/blank.html','iframe_ad3');DoHide('iframe_ad3');}jd=0;};function change_top_window(newlocation){window.location.href=newlocation;};function bL(flipto){if(flipto=='logout')ab(1,'none','prelogin','postlogin','div');};function bT(){var gV=document.getElementById('pagename');var fi='';if(!gV){dG(window.location.href.replace('#',''));return;}switch(gV.value){case 'imageview':var query=window.location.search.substring(1);var vars=query.split("&");fi=vars[0]+"&"+vars[1]+"&r="+aC(5);break;case 'download':var query=window.location.search.substring(1);var vars=query.split("&");fi=vars[0];break;case 'myfiles':case 'about1':case 'about2':case 'billinghistory':case 'myaccount':fi="?r="+aC(5);break;case 'statisticsfilter':fi="?r="+aC(5);break;case 'upload':default:break;}switch(gV.value){case 'imageview':dG("/imageview.php?"+fi);break;case 'download':dG("/download.php?"+fi);break;case 'myfiles':var query=window.location.search.substring(1);var vars=query.split("&");if(vars[0].substr(0,9)!='sharekey='&&vars[0].length!=13)dG("/myfiles.php"+fi);break;case 'about1':case 'register':dG('/register.php');break;case 'login':dG('/');break;case 'about2':case 'myaccount':dG("/myaccount.php"+fi);break;case 'billinghistory':dG("/myaccount/billinghistory.php"+fi);break;case 'statisticsfilter':dG("/myaccount/statisticsfilter.php"+fi);break;case 'upload':dG("/"+fi);break;default:dG(window.location.href.replace('#',''));break;}};function cR(){var gd=document.getElementById('header_icon_pro_logo');if(UserLogin!=0){if(UserEmail.length<21){document.getElementById('loggedin_email').innerHTML=UserEmail;}else{var ui=UserEmail.slice(0,18)+'...';document.getElementById('loggedin_email').innerHTML='<acronym title="'+UserEmail+'">'+ui+'</acronym>';}bL('logout');if(gd){if(fu>=1)gd.style.display='';else gd.style.display='none';}if(document.getElementById('upload_create')){document.getElementById('upload_create').style.visibility="hidden";document.getElementById('upload_login').style.visibility="hidden";document.getElementById('upload_create').innerHTML="";document.getElementById('upload_login').innerHTML="";document.getElementById('upload_create').style.display="none";document.getElementById('upload_login').style.display="none";}}else{if(gd){gd.style.display='none';}if(document.getElementById('upload_create')){document.getElementById('upload_create').style.visibility="visible";document.getElementById('upload_login').style.visibility="visible";}if(document.getElementById('reg_emailUL')){document.getElementById('reg_emailUL').value="";document.getElementById('reg_passUL').value="";}if(document.getElementById('reg_email')){document.getElementById('reg_pass').value="";}}if(document.getElementById('login_area')){document.getElementById('login_area').style.visibility="visible";}DoShow('networks_login_status');};function ClipBoardClick(){aa(0,"Data copied to the clipboard!");return false;};function ClipBoardDone(){try{if(xT)xT.destroy();}catch(e){return false;}return false;};function ClipBoard(mU,uq){var hO;if(typeof mU=="string")hO=document.getElementById(mU);else hO=mU;if(!hO){aa(0,"Failed to copy to clipboard, please use CTRL-C");return false;}if(hO.value)var text2copy=hO.value;else if(hO.innerHTML)var text2copy=hO.innerHTML;var xT=new ZeroClipboard.Client();xT.setText(text2copy);xT.glue(uq);return false;};function cH(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 db(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 aC(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 bR(){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 dg(jM){if(jM==null)jM=0;var filefield=document.getElementById('file_name0');if(filefield.value==""){aa(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=kd;document.form_upload.action='http://upload.mediafire.com/'+identifier+'p'+jM;ab(1,'none','preupload','progressupload','div');Uploading=true;cH("blank");document.getElementById('form_upload').submit();}};function aP(){if(typeof XMLHttpRequest!="undefined"){eP=new XMLHttpRequest();return 1;}else if(window.ActiveXObject){var gp=["MSXML2.XMLHttp.5.0","MSXML2.XMLHttp.4.0","MSXML2.XMLHttp.3.0","MSXML2.XMLHttp","Microsoft.XMLHttp"];for(var i=0;i<gp.length;i++){try{eP=new ActiveXObject(gp[i]);return 1;}catch(hk){}}}return 0;};function set_file_name(je,iI){var gu='';if(!iI)return false;if(je&&je.length<11){return false;}if((gu=dW(je))!=false){iI.value=gu;}else if(iI){iI.value='Uknown_'+aC(5)+'.upload';}else return false;};function bn(numfiles,force,website){if(!document.getElementById('upload_content')|| !document.getElementById('links'))return;if(numfiles==UploadFiles&&force!=1)return;document.getElementById('links').selectedIndex=(parseInt(numfiles)-1);var counter=0;var sHTML=new Array();var newSlot;while(counter<parseInt(numfiles)){sHTML[counter]='<div class="web_uploader_url_table"><table style="margin: auto; width: 580px;"><tr>';if(parseInt(numfiles)>1)sHTML[counter]+='<td><div class="ul_number">'+(counter+1)+'</div></td>';else sHTML[counter]+='<td><div id="filenum_1" name="filenum_1" class="ul_number"></div></td>';if(website){sHTML[counter]+='<td> URL&nbsp;</td>';sHTML[counter]+='<td align="center"><input class="browse_lite" name="file_name'+counter+'" id="file_name'+counter+'" type="input"  size="30" value="http://" OnBlur="if (this.value == \'\') { this.value = \'http://\'; this.className = \'browse_lite\'; }" OnFocus="if (this.value == \'http://\') { this.value = \'\';  this.className = \'browse\'; }" OnChange="set_file_name(this.value,document.getElementById(\'file_title'+counter+'\'));" /></td>';sHTML[counter]+='<td>&nbsp;&nbsp;&nbsp; Save As&nbsp;</td>';sHTML[counter]+='<td align="center"><input class="browse_lite" name="file_title'+counter+'" id="file_title'+counter+'" type="input"  size="20" value="file.exe" OnFocus="if (this.value == \'file.exe\') this.value = \'\'; this.className = \'browse\';"/></td></tr></table></div>';}else sHTML[counter]+='<td align="center"><input class="browse" name="file_name'+counter+'" id="file_name'+counter+'" type="file"  size="58" /></td></tr></table></div>';counter++;}if(parseInt(numfiles)<=UploadFiles){counter=parseInt(numfiles);while(counter<10){document.getElementById('links_html_'+counter).innerHTML=' ';counter++;}counter=0;if(force)while(counter<numfiles){document.getElementById('links_html_'+counter).innerHTML=sHTML[counter];counter++;}}else{counter=UploadFiles;while(counter<numfiles){document.getElementById('links_html_'+counter).innerHTML=sHTML[counter];counter++;}}if(parseInt(numfiles)==1){document.getElementById('filenum_1').innerHTML='';document.getElementById('submit_file').src=vm+"/images/v4images/buttons/webuploader/upload_file.gif";}else{document.getElementById('filenum_1').innerHTML='1';document.getElementById('submit_file').src=vm+"/images/v4images/buttons/webuploader/upload_files.gif";}UploadFiles=parseInt(numfiles);};function aY(fZ,value,lj){var exdate=new Date();exdate.setDate(exdate.getDate()+lj);document.cookie=fZ+"="+escape(value)+((lj==null)?"":";expires="+exdate.toGMTString());};function aU(fZ,value,lh){var exdate=new Date();exdate.setTime(exdate.getTime()+(lh*1000));document.cookie=fZ+"="+escape(value)+((lh==null)?"":";expires="+exdate.toGMTString());};function ef(fZ,value){document.cookie=fZ+"="+escape(value);};function aL(fZ){if(document.cookie.length>0){hG=document.cookie.indexOf(fZ+"=");if(hG!= -1){hG=hG+fZ.length+1;jN=document.cookie.indexOf(";",hG);if(jN== -1)jN=document.cookie.length;return unescape(document.cookie.substring(hG,jN));}}return "";};function bU(fZ){aY(fZ,'',-1);};function cI(){var ip=0,iu=0;if(typeof(window.pageYOffset)=='number'){iu=window.pageYOffset;ip=window.pageXOffset;}else if(document.body&&(document.body.scrollLeft||document.body.scrollTop)){iu=document.body.scrollTop;ip=document.body.scrollLeft;}else if(document.documentElement&&(document.documentElement.scrollLeft||document.documentElement.scrollTop)){iu=document.documentElement.scrollTop;ip=document.documentElement.scrollLeft;}return[ip,iu];};function GetViewportSize(){var viewportwidth;var viewportheight;if(typeof window.innerWidth!='undefined'){viewportwidth=window.innerWidth,viewportheight=window.innerHeight}else if(typeof document.documentElement!='undefined'&&typeof document.documentElement.clientWidth!='undefined'&&document.documentElement.clientWidth!=0){viewportwidth=document.documentElement.clientWidth,viewportheight=document.documentElement.clientHeight}else{viewportwidth=document.getElementsByTagName('body')[0].clientWidth,viewportheight=document.getElementsByTagName('body')[0].clientHeight}return[viewportwidth,viewportheight];};function aj(fC,hQ,hm){DoAPopup(fC,hQ,hm);};function Ch(Ea,hQ,hm,yI,CZ){if(pN(Ea,'modal_msg_iframe')!=false){dZ();mw('modal_msg_iframe',hQ-30,hm-30);cq('modal_window_popup',hQ,hm,yI,CZ);}};function DoAPopup(fC,hQ,hm){dZ();cq(fC,hQ,hm);};function ai(fC){bY(fC);};function bO(fC,hQ,hm){cq(fC,hQ,hm);};function bs(fC){bY(fC,true);};function cq(fC,hQ,hm,yI,CZ){var gH=document.getElementById(fC);if(!gH){return false;}w=hQ;h=hm;xc=Math.round((document.body.clientWidth/2)-(w/2));yc=Math.round((document.body.clientHeight/2)-(h/2));gH.style.left=xc+"px";if(yI){gH.style.top=CZ+'px';}else{var og=cI();gH.style.top=(og[1]+(yc<15?15:yc))+'px';}gH.style.width=w+'px';gH.style.height=h+'px';gH.style.zIndex=1005;gH.style.display='block';};function mw(kC,hQ,hm){var eY=document.getElementById(kC);if(!eY){return false;}w=hQ;h=hm;eY.style.width=w+'px';eY.style.height=h+'px';};function bY(fC,nc){var gH=document.getElementById(fC);if(gH){gH.style.display='none';if(nc!=true){cU();}}else{aa(0,"Internal Error closing popup, please contact support!");alert(fC);return;}};function dZ(){var page_screen=document.getElementById('page_screen');if(!page_screen)return;page_screen.style.height=document.body.parentNode.scrollHeight+'px';page_screen.style.display='block';opacity('page_screen',0,80,200);};function cU(){var page_screen=document.getElementById('page_screen');if(page_screen){opacity('page_screen',80,0,100);setTimeout('cO()',1500);}return;};function cO(){var kA=document.getElementById('page_screen');if(!kA)return false;kA.style.display="none";};function au(obj){if(obj!=null&&obj.options!=null){return true;}return false;};function at(from){if(!au(from)){return;}for(var i=(from.options.length-1);i>=0;i--){from.options[i]=null;}from.selectedIndex= -1;};function kP(obj,text,value,selected){if(obj!=null&&obj.options!=null){obj.options[obj.options.length]=new Option(text,value,false,selected);}};function DoHide(nD){var ah;ah=document.getElementById(nD);if(ah&&ah.className!='hide')ah.className="hide";return;};function DoShow(nD){var ah;ah=document.getElementById(nD);if(ah&&ah.className!='show')ah.className="show";return;};function nd(nD){var ah;ah=document.getElementById(nD);if(ah&&ah.innerHTML)ah.innerHTML="";return;};function al(bQ){function dc(ah){function fv(){ah.value="";ah.onclick="";ah.onblur="";};return fv;};if(typeof bQ=="string"){bQ=document.getElementById(bQ);}if(bQ&&bQ.value&&typeof bQ.rH=="undefined"){var A=dc(bQ);bQ.onclick=A;bQ.onblur=A;bQ.rH=1;}};function aA(ah,ga){if(typeof ah=="string"){ah=document.getElementById(ah);}if(ah){var cl=ah.value;var v=cl.match(/\n/g);var ac=1;if(v)ac+=v.length+1;if(ac>ga){return false;}}return true;};function bA(nD){var ah=document.getElementById(nD);if(ah)if(ah.style.display=='block')return true;else return false;else return false;};String.prototype.trim=function(){return this.replace(/^\s+|\s+$/g,"");};String.prototype.ltrim=function(){return this.replace(/^\s+/,"");};String.prototype.rtrim=function(){return this.replace(/\s+$/,"");};function GetThis(T,C,U,L){var targetUrl='http://www.myspace.com/Modules/PostTo/Pages/?'+'t='+encodeURIComponent(T)+'&c='+encodeURIComponent(C)+'&u='+encodeURIComponent(U)+'&l='+L;window.open(targetUrl);};function LoadJS(je){var oF=document.createElement('script');oF.setAttribute('type','text/javascript');oF.setAttribute('src',je);document.getElementsByTagName('head')[0].appendChild(oF);};function LoadUploader(){if(typeof yy=="undefined"){LoadJS(vm+'/js/MFUL_'+BUILD_VERSION+'.js');setTimeout(LoadUploaderWait,500);}else MFUL=new yy();};function LoadUploaderWait(){if(typeof yy=="undefined"){setTimeout(LoadUploaderWait,500);}else MFUL=new yy();};function ShowUploader(){if(typeof yy=="undefined")aa(1,'Loading Uploader');if(typeof MFUL=="undefined"){LoadUploader();setTimeout(ShowUploaderWait,500);}else MFUL.Bq();};function ShowUploaderWait(){if(typeof MFUL=="undefined")setTimeout(ShowUploaderWait,500);else{av();MFUL.Bq();}};function lc(){if(navigator&&navigator.platform){if(navigator.platform.indexOf("Win")!= -1)return "Windows";if(navigator.platform.indexOf("Mac")!= -1)return "MacOS";if(navigator.platform.indexOf("X11")!= -1)return "UNIX";if(navigator.platform.indexOf("Linux")!= -1)return "Linux";}return "Unknown OS";};function vQ(vL,xk){if(typeof xk=="undefined")xk=false;try{mf=document.getElementById('login_mediafire');fb=document.getElementById('login_facebook');tw=document.getElementById('login_twitter');mft=document.getElementById('login_tab_mediafire');fbt=document.getElementById('login_tab_facebook');twt=document.getElementById('login_tab_twitter');switch(vL){case 2:fbt.className='login_tab_active';fb.className='';mft.className=(UserLogin==1)?'login_tab_inactive':'';twt.className=wL?'login_tab_inactive':'';mf.className=tw.className='login_hide';xC(xk);break;case 3:twt.className='login_tab_active';tw.className='';mft.className=(UserLogin==1)?'login_tab_inactive':'';fbt.className=wM?'login_tab_inactive':'';mf.className=fb.className='login_hide';yA(xk);break;case 1:default:mft.className='login_tab_active';mf.className='';fbt.className=wM?'login_tab_inactive':'';twt.className=wL?'login_tab_inactive':'';fb.className=tw.className='login_hide';break;}}catch(err){}};var wK;function wD(eu){if(eu== -1)eu=wK;wK=eu;if(ele=document.getElementById('fb_share_checkbox'+eu))if(ele.checked)if(wM==0){if(typeof FB=="undefined"){LoadJS('http://connect.facebook.net/en_US/all.js');setTimeout(function(){wD(wK);},500);return;}FB.init({appId:FBAppId,status:true,cookie:true,xfbml:true});FB.login(function(response){if(response.session){wM=1;document.getElementById('fb_login_status').className='network_login_active';wD(wK);}},{perms:'publish_stream'});return;}if(ele=document.getElementById('tw_share_checkbox'+eu))if(ele.checked)if(wL==0){wI(1);return;}if(ele=document.getElementById('message_networks_progress'+eu)){ele.style.display='block';setTimeout(function(){if(ele.style.display=='block'){ele.style.display='none';aa(2,"Error: No response from the Social Network. The connection has timed out.<br />Please try again.");}},30000);}document.getElementById('share_networks'+eu).submit();};function wG(yB){wL=1;document.getElementById('twitter_login_status').className='network_login_active';if(yB==1)wD(wK);if(yB==2)window.location='/register.php?connect=twitter';};function wg(eu,wC,eC,jK){if(sharediv=document.getElementById('sharediv'+eu)){if(sharediv.className=="hide"){sharediv.innerHTML=bh(eH[jK],eC,eu,'');sharediv.className="actions";ab(1,'share_button'+eu,'share_button'+eu,'hide','div');}}ae('sharetabsfile'+eu+'-',5);ad(4,document.getElementById('sharetemplatefile'+eu),eu,'sharedtabsfileinfo'+eu+'-');document.getElementById((wC==1?'fb':'tw')+'_share_checkbox'+eu).checked=true;document.getElementById((wC==2?'fb':'tw')+'_share_checkbox'+eu).checked=false;};function vS(eu){document.getElementById('fb_share_checkbox'+eu).checked=wM;document.getElementById('tw_share_checkbox'+eu).checked=wL;};function wP(sP,wy){var elm;for(var i=0;elm=document.getElementById('facebook_login_'+i);i++){if(sP==i)elm.style.display='inline';else elm.style.display='none';if(elm=document.getElementById('fb_error_step'+i)){if(typeof wy=="string"&&sP==i){elm.innerHTML=wy;elm.style.display="block";}else elm.style.display="none";}}};function wX(sP,wy){var elm;for(var i=0;elm=document.getElementById('twitter_login_'+i);i++){if(sP==i)elm.style.display='inline';else elm.style.display='none';if(elm=document.getElementById('tw_error_step'+i)){if(typeof wy=="string"&&sP==i){elm.innerHTML=wy;elm.style.display="block";}else elm.style.display="none";}}};function xC(){if(typeof FB=="undefined"){wP(0);LoadJS('http://connect.facebook.net/en_US/all.js');setTimeout(xC,500);}else{var elm;if(elm=document.getElementById('facebook_app_id')){FB.init({appId:elm.value,status:true,cookie:true});wP(1);}else aa(2,"Facebook application not set. Please contact support.");}};function vZ(wA){function xJ(response){var elm;if(elm=document.getElementById('facebook_app_id')){xS=elm.value;var xR=String(document.cookie);var yu=xR.indexOf('fbs_'+xS);if(yu!= -1){var wQ=document.getElementById('fb_login_action');var sg=document.getElementById('facebook_login_form');if(wQ&&sg){wQ.value='do_login';sg.submit();}else aa(2,"Missing form element on page. Please contact support.");}else aa(2,"Facebook cookie not set. Please contact support.");}else aa(2,"Facebook application not set. Please contact support.");};wP(2);if(wA){FB.login(function(response){if(response.session){xJ(response);}},{perms:wA});}else{var wi=new Array();var i=0;if(document.getElementById('fb_email_allow').checked)wi[i++]="email";if(document.getElementById('fb_publish_stream_allow').checked)wi[i++]="publish_stream";FB.login(function(response){if(response.session){xJ(response);}},{perms:wi.join(',')});}};function yA(){wX(1);};function xF(xf){if(typeof FB=="undefined"){wP(0);LoadJS('http://connect.facebook.net/en_US/all.js');setTimeout(function(){xF(xf);},500);}else{FB.init({appId:document.getElementById('facebook_app_id').value,status:true,cookie:true});FB.logout(function(response){if(typeof xf==="function"){xf();}});}};function yz(){var wQ=document.getElementById('tw_login_action');var sg=document.getElementById('twitter_login_form');if(wQ&&sg){wQ.value='post_twitter_authorize';sg.submit();}else aa(2,"Missing form element on page. Please contact support.");};function wI(yB){window.open('/dynamic/tw_login.php?popup_twitter_login=1'+(yB?'&callback='+yB:''),'twitter_login','scrollbars=0,status=0,width=780,height=410');};function yF(rO,xf){var vj=0;if(rO===""){return false;}rO=rO.toLowerCase()||"";if(rO==="facebook"){vj=yO;}else if(rO==="twitter"){vj=yP;}else{vj=30000;}yQ=function(){if(typeof xf==="function"){xf();}aa(3,"Authenticating with "+(rO.substr(0,1).toUpperCase()+rO.substr(1))+" timed out. Please make sure that your browser is not blocking pop-ups.");};return setTimeout(yQ,vj);};function zo(){if(navigator.appName=="Microsoft Internet Explorer")return "Internet Explorer";else if(navigator.appName=="Opera")return "Opera";else if(navigator.appName=="Netscape"){if(navigator.userAgent.indexOf("Firefox")> -1)return "Firefox";else if(navigator.userAgent.indexOf("Chrome")> -1)return "Chrome";else if(navigator.userAgent.indexOf("Safari")> -1)return "Safari";else return "Netscape";}else return navigator.appName;};function Bm(){var prefix;switch(zo()){case "Internet Explorer":prefix="MSIE ";break;case "Firefox":prefix="Firefox/";break;case "Safari":case "Opera":prefix="Version/";break;case "Chrome":prefix="Chrome/";break;}if(prefix){var re=new RegExp(prefix+"([0-9]+(\.[0-9]+)*)");if(re.exec(navigator.userAgent)!=null)return RegExp.$1;}return-1;};function uy(){return zo()+' '+Bm();};function zl(id,Bk){if(elm=document.getElementById(id)){var yW=elm.width-elm.height;if(Bk==90||Bk==270){if(uy()=='Internet Explorer 8.0')elm.style.margin="0px 0px "+yW+"px "+yW+"px";else if(uy()=='Internet Explorer 7.0')elm.style.margin="0px";else if(uy()=='Opera 10.60')elm.style.margin=(-yW/2)+"px 0px "+(-yW/2)+"px 0px";else elm.style.margin=yW/2+"px 0px "+yW/2+"px 0px";}else elm.style.margin="0px";if(uy()=='Internet Explorer 7.0'){elm.width++;elm.width--;}}};function FP(id,dir){if(elm=document.getElementById(id)){var Gi=isNaN(Gi=parseInt(elm.className.substr(3)))?0:Gi;var yV=(Gi+(dir=='right'?90:270))%360;elm.className="rot"+yV;zl(id,yV);return yV;}return-1;};function yZ(id,dir,imgkey){var yV=FP(id,dir);if(yV!= -1){if(elmframe=document.getElementById('userwork')){var Be='/dynamic/imagerotation.php?imgkey='+imgkey+'&newrotation='+yV+'&nocache='+Math.random();if(elmframe.location)elmframe.location=Be;else elmframe.src=Be;}try{es[eK[(fg-1)][0][1]][17]=yV;}catch(err){}}}function bW(){try{var agree=confirm("Are you sure you want to delete your account?  All of your files will be deleted as well.");if(agree){if(document.getElementById('userwork')){if(document.getElementById('userwork').location)document.getElementById('userwork').location='/dynamic/deleteaccount.php';else document.getElementById('userwork').src='/dynamic/deleteaccount.php';}else return false;}else return false;}catch(errno){alert("Deletion Error\n\nThere was an unknown error while trying to delete your account.\n\nPlease contact support for further assistance.");}};function check_display_name(){display_name=document.getElementById('display_name');if(document.getElementById('userwork').location)document.getElementById('userwork').location='/dynamic/check_display_name.php?display_name='+display_name.value;else document.getElementById('userwork').src='/dynamic/check_display_name.php?display_name='+display_name.value;};function check_directurl(){display_name=document.getElementById('direct_url_name');if(document.getElementById('userwork').location)document.getElementById('userwork').location='/dynamic/check_directurl.php?name='+display_name.value;else document.getElementById('userwork').src='/dynamic/check_directurl.php?name='+display_name.value;};function Bf(AU){var eY=document.getElementById('customwork');var ez='';if(eY){ez='/myaccount/docustomize.php?enable='+AU;if(eY.location)eY.location=ez;else eY.src=ez;}return false;};function Bj(fO,Ap,Aq,lJ,mz){var elm;if(elm=document.getElementById('custom_header_on')){elm.style.display='block';}if(elm=document.getElementById('custom_header_off')){elm.style.display='none';}if(elm=document.getElementById('custom_header_exists')){elm.style.display='block';}if(elm=document.getElementById('preview_div1')){elm.style.background=Ap;}if(elm=document.getElementById('preview_div2')){elm.style.textAlign=Aq;}if(elm=document.getElementById('preview_img')){function Aj(){if(!elm.complete)return false;DoShow('preview_img');};DoHide('preview_img');elm.width=Math.ceil(parseInt(lJ)*.26);elm.height=Math.ceil(parseInt(mz)*.26);elm.onload=Aj;elm.src='/basicapi/getcustomheader.php?key='+fO}};function Bi(){var elm;if(elm=document.getElementById('custom_header_on')){elm.style.display='none';}if(elm=document.getElementById('custom_header_off')){elm.style.display='block';}if(elm=document.getElementById('custom_header_exists')){elm.style.display='block';}}var fN=Array(100);var eS=Array(100);var qi=Array(30);var qj=Array(30);var qg=Array(30);var qh=Array(30);fN[0]='save_to_my_account_span';fN[1]='visitor_selected_imageview';fN[2]='visitor_selected_filesview';fN[3]='nomanagement_view_tab1';fN[4]='nomanagement_view_tab2';fN[5]='visitor_breadcrumb1';fN[6]='visitor_breadcrumb2';fN[7]='shared_header_message';eS[0]='new_folder_span';eS[1]='tag_selected_items_span';eS[2]='move_selected_items_span';eS[3]='delete_selected_items_span';eS[4]='view_account_details_span';eS[5]='owner_selected_imageview';eS[6]='owner_selected_filesview';eS[7]='management_view_tab1';eS[8]='management_view_tab2';eS[9]='search_my1';eS[10]='search_my2';eS[11]='owner_breadcrumb1';eS[12]='owner_breadcrumb2';eS[13]='upload_button_span';eS[14]='sharing_mode_span';eS[15]='my_header_message';eS[16]='downloads_column_header';eS[17]='delete_image';eS[18]='login_create_account';eS[19]='public_directory_span';eS[20]='update_file_span';qi[0]='sharing_owner_manage_button';qi[1]='sharing_owner_manage_exp';qj[0]='';qg[0]='help_resources_span';qh[0]='';var er=1;var mu=1;var eN=1;var jS= -1;var oM=0;var eF=0;var eA= -1;var gj=0;var gv=0;var kc=0;var gD=0;var oD=0;var gn=0;var ih=0;var iZ='';var fw=new String('');var gX=0;var hZ=0;var fq=0;var fa=null;var eB=20;var jt=Array(9);var bK=eB;var kp=0;var hC=0;var bOverRow=0;var eV=1;var fg= -1;var nk=5;var jO=0;var jE='';var eK=Array(eB);var gf=0;var kK=null;var lk=null;var lW='';var iR=false;var uE=false;var iJ= -1;for(var gA=0;gA<eB;gA++)eK[gA]=Array(3);var kv=9;var jV=0;var fM=Array(3);fM[1]=Array(kv+1);for(var eh=0;eh<=kv;eh++)fM[1][eh]=0;fM[2]=Array(1);fM[2][0]=0;var fx=0;var jT=0;var iP=0;var iPreviewScroll=1;function cx(fh){var ln=0;var oC=0;fh=Math.abs(fh);if(fh<20)return[1,50];else if(fh<50)return[2,50];else if(fh<180)return[5,50];else if(fh<180)return[7,50];else if(fh>=150)return[20,50];else return[1,50];};function cw(lq){if(iPreviewScroll!=1)return;if(jT!=lq){iP=0;jT=lq;}else iP++;setTimeout('aH()',500);};function aH(){var hb=195;var fh=0;var ah=document.getElementById('preview_mover');var ha;var kr=0;if(ah){var aLocation=cI();if(jT!=aLocation[1]){iP=0;setTimeout('cw('+aLocation[1]+')',500);return;}if(iP<2){setTimeout('cw('+aLocation[1]+')',500);return;}var fJ=parseInt(ah.style.paddingTop);var vl=ah.parentNode.offsetHeight-(ah.offsetHeight-fJ);if(fJ==aLocation[1])return;else if(fJ>(aLocation[1]-hb)){if(fJ==0)return;fh=aLocation[1]-fJ;if(iJ!=1){iJ=1;setTimeout('aH()',35);return;}if(fJ-hb<0){fh=fJ;kr=fJ;}else{kr=Math.abs(fh-hb);}ha=cx(kr);ah.style.paddingTop=(fJ-ha[0])+"px";setTimeout('aH()',ha[1]);}else if(fJ<(aLocation[1]-hb)){if(iJ!=2){iJ=2;setTimeout('aH()',35);return;}if(fJ==vl)return;fh=aLocation[1]-fJ;if(fh-hb>0)fh=fh-hb;else return;ha=cx(fh);ah.style.paddingTop=(fJ+ha[0])+"px";setTimeout('aH()',ha[1]);}}return;};function ek(np){if(!(ih>=1))return false;if(ih==np)return false;DoHide('stats'+ih);ih=0;};function dM(fo){if(iR==false)return false;if(aProfileFiles==null)return false;for(var eh=0;aProfileFiles[eh];eh++)if(aProfileFiles[eh]==fo)return true;return false;};function bk(){if(document.getElementById('image_thumb_small'))document.getElementById('image_thumb_small').className='thumbnail_ns';if(document.getElementById('image_thumb_small2'))document.getElementById('image_thumb_small2').className='thumbnail_ns';if(document.getElementById('image_thumb_big'))document.getElementById('image_thumb_big').className='thumbnail_ns';if(document.getElementById('image_thumb_big2'))document.getElementById('image_thumb_big2').className='thumbnail_ns';};function ej(){if(eL==eU){parent.aa(0,"You are current NOT in a folder, please enter a folder or create a folder before attempting to share.");return false;}};function qJ(){var eR=null;var ey=null;var gh='';var hd='';var eI=0;var nL=document.getElementById('email_files_qks');var nK=document.getElementById('email_files_filenames');var qI=document.getElementById('email_files_form');var lm=document.getElementById('email_files_to');var lo=document.getElementById('email_files_from');if(lm&&lm.value==''){aa(0,"You must enter your valid email address in the 'Recipient Email' box..");return;}if(lo&&lo.value==''){aa(0,"You must enter at least one valid email address in the 'Your Email' box..");return;}if(!(fx>0)){aa(0,"Select at least one public file or folder to email..");return;}for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){if(ey[1]==1&&ey[11]!=1){if(eI>0){gh+=';;';hd+=';;';}gh+=ey[3];hd+=ey[5];eI++;}if(ey[1]==2&&ey[11]!=1){if(eI>0){gh+=';;';hd+=';;';}gh+=ey[15];hd+=ey[5];eI++;}}}if(eI<=0){aa(0,"No public files or folders are currently checked, please check one or more non-private items before attempting to send them via email.");return false;}else{nL.value=gh;nK.value=hd;aa(3,"Sending "+eI+" items(s) via email..");if(qI)qI.submit();else aa(0,"HTML components missing, cannot perform operation, please contact support.");}};function dD(){var eR=null;var ey=null;var gh='';var eI=0;var ez='';if(!(fx>0)){aa(0,"You must select at least one file to save..");return;}for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){if(ey[1]==1){if(eI>0)gh+=';';gh+=ey[3];eI++;}}}if(eI<=0){aa(0,"No files are currently checked, please check 1 or more files before attempting to save them to your account.");return false;}else{ez="/dynamic/savefile.php?qk="+gh+"&status=statusmessage";aa(3,"Saving "+eI+" file(s) to your account..");var iw=document.getElementById('myfileswork');if(iw){if(iw.location)iw.location=ez;else iw.src=ez;}else{aa(0,"Unable to perform save files request because of site errors, please contact support with your browser information.");return false;}}};function bb(nY,eu,eC){var fB=document.getElementById('thumbpop'+eu);if(es[eC]&&es[eC][2]==1&&fB){switch(nY){case 1:cE(document.getElementById('previmg'+eu),es[eC][15]);fB.className='thumbpop'+eu;break;case 2:default:fB.className='hide';break;}}};function MyFilesSwapOptions(){for(var eh=0;eS[eh]||fN[eh];eh++){if(document.getElementById(eS[eh]))document.getElementById(eS[eh]).className='hide';if(document.getElementById(fN[eh]))document.getElementById(fN[eh]).className='show';}if(Number(qm)==1){for(var eh=0;qj[eh]||qi[eh];eh++){if(document.getElementById(qj[eh])){document.getElementById(qj[eh]).className='hide';}if(document.getElementById(qi[eh])){document.getElementById(qi[eh]).className='show';}}}};function dV(oh){var fI=document.getElementById('curr_previmage_name');var gT=document.getElementById('curr_previmage_id');if(!fI|| !gT){aa(2,"Missing site compontents");return false;}var fT="/imageview.php?quickkey="+es[gT.value][3]+"&thumb="+oh;window.open(fT);};function cP(){var jR=aL('thumbsize');if(parseInt(jR)==0||parseInt(jR)==1){eV=parseInt(jR);}var kE=aL('mflt');if(parseInt(kE)>0){mu=parseInt(kE);}if(!document.getElementById('is_shared')||document.getElementById('is_shared').value!=1){var kR=aL('mflf');if(kR){var xH=false;if(typeof kR!="undefined"){for(var i=0;i<es.length;i++){try{if(kR==es[i][3]){xH=true;break;}}catch(e){};}if(xH){jE=kR;}}}var mt=aL('mfpf');if(mt){jS=mt;}}var qb=aL('mfipp');if(qb){bK=qb/1;}if(!document.getElementById('is_shared')||document.getElementById('is_shared').value!=1){var bI=aL('mfsf');if(bI){kc=bI/1;}var mN=aL('mfsd');if(mN){gD=mN/1;}}};function dX(){var fr=document.getElementById('form_todolist1');var gw=document.getElementById('form_todolist2');var gN=document.getElementById('form_todotype');var fQ=document.getElementById('form_todoform');var fI=document.getElementById('curr_previmage_name');var gT=document.getElementById('curr_previmage_id');if(!fQ|| !gN|| !gw|| !fr|| !fI|| !gT){aa(2,"Missing site compontents");return;}var agree=confirm("Are you sure you want to delete the image named '"+fI.value+"'?");if(agree){gN.value=1;fr.value='';gw.value='';var eR=null;var ey=null;var ig='';ey=es[gT.value];if(ey){fr.value+=ey[1]+":"+ey[3]+";";bl(gT.value);}if(fr.value){aa(3,"Deleting 1 Image..");fQ.submit();fg= -1;aG(-1);bC();}return false;}else return false;};function CyclePreview(fc){if(eK[(fc+(fg-1))]&&eK[(fc+(fg-1))][1]==1&&document.getElementById('imagethumb'+(fc+fg))){fg=(fc+fg);}else{if(fc<0){for(var eu=eB;eu>=1;eu--){if(eK[(eu-1)]&&eK[(eu-1)][1]==1){fg=(eu);break;}}}else{for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){if(eK[(eu-1)][1]==1){fg=(eu);break;}}}}aG(fg);};function bC(){gG=document.getElementById('preview_box');hy=document.getElementById('preview_window_show');hz=document.getElementById('preview_window_hide');kf=document.getElementById('preview_window_show_second');jP=document.getElementById('preview_window_hide_second');if(gG){gG.innerHTML='';}if(hy){hy.className="preview_image";kf.className="preview_image";}if(hz){hz.className="hide";jP.className="hide";}ci();};function ci(){for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){qC=document.getElementById('imagethumb'+eu);if(qC&&eK[(eu-1)][1]==1){if(qC.className=='small_private'||qC.className=='medium_private')qC.className=eV?'small_private':'medium_private';else if(qC.className=='small_password'||qC.className=='medium_password')qC.className=eV?'small_password':'medium_password';else if(qC.className=='small_private_selected'||qC.className=='medium_private_selected')qC.className=eV?'small_private':'medium_private';else if(qC.className=='small_password_selected'||qC.className=='medium_password_selected')qC.className=eV?'small_password':'medium_password';else qC.className=eV?'small_thumbnail':'medium_thumbnail';}}};function aG(jQ){if(fg== -1&&jQ== -1&& !(gX>0)){bC();return;}fg= -1;if(jQ>=0)fg=jQ;else for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){if(eK[(eu-1)][1]==1){fg=(eu);break;}}ci();aH();var nH=document.getElementById('imagethumb'+(fg));if(!nH){aa(0,"NOTICE: No image available to preview.");}else{var gx=document.getElementById('imagethumb'+fg);if(gx.className=='small_private'||gx.className=='medium_private')gx.className=eV?'small_private_selected':'medium_private_selected';else if(gx.className=='small_password'||gx.className=='medium_password')gx.className=eV?'small_password_selected':'medium_password_selected';else gx.className=eV?'small_select':'medium_select';hy=document.getElementById('preview_window_show');hz=document.getElementById('preview_window_hide');kf=document.getElementById('preview_window_show_second');jP=document.getElementById('preview_window_hide_second');gG=document.getElementById('preview_box');gG.innerHTML='';if(gG){gG.className="preview_image";mV=bh((eH[7].replace(/#FILENUM#/g,'PREVIEW')),eK[(fg-1)][0][1],0,0);gG.innerHTML=mV;}if(hz){hz.className="preview_image";jP.className="preview_image";}if(hy){hy.className="hide";kf.className="hide";}}ae('sharetabsfilePREVIEW-',1);ad(0,document.getElementById('sharetemplatefilePREVIEW'),'PREVIEW','sharedtabsfileinfoPREVIEW-');};function uH(fo,uI,uD){for(var x in eK){if(eK[x][5]==fo){eK[x][4]=uI;break;}}uD=uD||false;if(uD){for(var y in es){if(es[y][3]==fo){es[y][16]=uI;break;}}}};function bj(mR,fo,lg){var fT;var iA=document.getElementById('myfileswork');if(iA){var Q;for(var eh=0;Q=es[eh];eh++){if(Q[3]==fo){Q[11]=lg;var Fs;var Fv=false;if(Q[1]=='2'){for(var Fu=0;Fs=es[Fu];Fu++){if(Fs[1]=='2'&&Fs[4]==fo){if(Fv=confirm('Press OK to change all subfolders to '+(lg==1?'private':'public')+'.\n\n  Press Cancel to only change the current folder.\n\n NOTE: this may take a few moments.')){DoRecursiveFolderAclChange(fo,lg);}break;}}}es[eh]=Q;if(Fv)fT="/dynamic/doaclchange.php?quickkey="+fo+"&acl="+lg+"&type="+Q[1]+"&filenum="+mR+"&recursive=1";else fT="/dynamic/doaclchange.php?quickkey="+fo+"&acl="+lg+"&type="+Q[1]+"&filenum="+mR;if(iA.location)iA.location=fT;else iA.src=fT;}}for(var x in eK){if(eK[x][5]==fo){eK[x][3]=lg;break;}}}};function DoRecursiveFolderAclChange(Fx,lg){var Q;for(var eh=0;Q=es[eh];eh++){if(Q[1]=='2'&&Q[4]==Fx){Q[11]=lg;DoRecursiveFolderAclChange(Q[3],lg);}}};function dI(eu,fo){uH(fo,0);document.getElementById('password_list'+eu).value='';for(var eh=0;es[eh];eh++)if(es[eh][3]==fo){es[eh][14]='';es[eh][16]=0;document.getElementById('form_todoform'+eu).submit();return true;}return false;};function dQ(mX){return confirm("Do you want to remove the password for '"+mX+"'?");};function cr(){var iE=document.getElementById('detailedviewA');if(iE&&gf==1)iE.innerHTML="Hide Extra Details";else if(iE&&gf==0)iE.innerHTML="Show Extra Details";};function cZ(){if(gf==1){aY("advancedview",0,90);gf=0;}else{aY("advancedview",1,90);gf=1;}cr();RenderMyFiles(er,eN);};function aN(){var jA=document.getElementById('search_input'+er);if(jA){if(jA.value!='')jA.value='';}var he=document.getElementById('search_delete_button'+er);if(he){he.style.visibility="hidden";}fw='';eA= -1;eE[er]=0;};function bB(mA,hv){var he=document.getElementById('search_delete_button'+hv);if(he){he.style.visibility=mA;}};function bp(ku){var oJ='';if(ku==fw)return false;var jq=document.getElementById('search_input'+(er));if(jq&&ku!=jq.value&&jq.value!='Viewing All')return false;DoShow('search_processing_icon'+(er));fw=ku;eA= -1;eE[er]=0;RenderMyFiles(er,eN);if(fw.length==0){bB('hidden',er);}else{bB('visible',er);}DoHide('search_processing_icon'+(er));};function bl(nm){var ah=es[nm];if(ah)ah[0]=0;else return false;};function cG(fj,hP,DH){var kH=false;var gu='';var jF=false;var eh= -1;var Q;while(Q=es[++eh]){if(Q[4]==fj&&Q[1]==2){if((kH=cG(Q[3],(hP+1)))!=false)gu+=Q[1]+":"+Q[3]+";"+kH;else gu+=Q[1]+":"+Q[3]+";";if(!DH)bl(eh);jF=true;}else if(Q[4]==fj){gu+=Q[1]+":"+Q[3]+";";if(!DH)bl(eh);jF=true;}}if(jF)return gu;return false;};function bX(et){var fr=document.getElementById('form_todolist1');var gw=document.getElementById('form_todolist2');var gN=document.getElementById('form_todotype');var fQ=document.getElementById('form_todoform');var BW=document.getElementById('form_todoconfirm');var xv=document.getElementById('form_todoparent');if(!fQ|| !gN|| !gw|| !fr|| !xv|| !BW){aa(2,"Missing site compontents");return;}fr.value='';gw.value='';BW.value='';switch(et){case 2:var gE=document.getElementById('tag_desc_list');if(gE.value==''){aa(0,"You must enter at least one word to tag items with.");return false;}gN.value=2;fr.value='';gw.value=gE.value;var eR=null;var ey=null;var ig='';for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){fr.value+=ey[1]+":"+ey[3]+";";es[eK[(eu-1)][0][1]][12]+=" "+gE.value;}}if(fr.value){aa(3,"Tagging "+fx+" objects with '"+gE.value+"'..");fQ.submit();}break;case 3:if(!(fx>0)){Ch('/templates/myfiles_updatefile_instructions.html',792,930);return;}if(!(fx==2)){aa(0,"You must select exactly 2 files using the check boxes to the right.");return;}var AI=Gp();if(!AI[0]|| !AI[1]){aa(0,"You must select exactly 2 files using the check boxes to the right.");return;}if(AI[0][1][1]!=1||AI[1][1][1]!=1){aa(0,"To use this feature, both selected items should be Files. Make sure you are not selecting Folders.");return;}if(AI[0][1][2]==1||AI[1][1][2]==1){aa(0,"This feature cannot be used to update images.");return;}if(Gm(AI[0][1][5])!=Gm(AI[1][1][5])){aa(0,"Both selected Files should have the same extension.");return;}Fz();Ch('/templates/myfiles_updatefile.html',792,970);break;case 1:if(!(fx>0)){aa(0,"You must select at least one item to delete using the check boxes to the right.");return;}var agree=confirm("Are you sure you want to delete "+fx+" objects?");if(agree){Fz();gN.value=1;fr.value='';gw.value='';var eR=null;var ey=null;var ig='';for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){fr.value+=ey[1]+":"+ey[3]+";";if(ey[1]==2&&(ig=cG(ey[3],1)))fr.value+=ig;bl(eK[(eu-1)][0][1]);}}if(fr.value){aa(3,"Deleting "+fx+" items..");fQ.submit();}return false;}else return false;break;case 30:if(iR!=true)break;var eR=null;var ey=null;var hn='';var eI=0;var jh=null;for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey&&ey[11]==0&&ey[0]==1){jh=false;for(var iO=0;iO<300&&aProfileFiles[iO];iO++)if(aProfileFiles[iO]==ey[3]){jh=true;break;}if(jh==false){if(eI>0)hn+=',';if(ey[1]==1){hn+='1:'+ey[2]+':';}else if(ey[1]==2){hn+='2:0:';}hn+=ey[3];eI++;}}}aa(3,"Adding "+eI+" objects to Profile..");top.location.href="http://apps.facebook.com/mediafire/?action=profile&subaction=1&objects="+hn+"&ukey="+aL('ukey');break;default:break;}};function Gm(filename){if(filename.lastIndexOf('.')== -1)return '';return filename.substr(filename.lastIndexOf('.')+1).toLowerCase();};function Gp(){var gg=Array();var i=0;for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){gg[i++]=Array(eK[(eu-1)][0][1],ey);}}return gg;};function zE(xn){if(!fu&& !hq){Ck();return;}var bP='';var aZipFiles=[['2',xn,0]];var eR,ey,Cu;if(eL!=eU){for(var i=0;i<fa.length;i++){if(fa[i][1]==eL)bP=fa[i][0];}}Cu=Dk(xn,1);if(Cu){aZipFiles=aZipFiles.concat(Cu);Co(aZipFiles,'');}else{aa(0,"Folder must contain at least one item to zip.");}return;};function dU(gU,iF,fQ,iz){Fz();if(!iz|| !gU|| !iF|| !fQ)return false;var ia=iF.value;var qG=iF[iF.selectedIndex].text;if(!(fx>0)){aa(0,"You must select at least one item to move using the check boxes to the right.");return;}if(eL==ia){aa(0,"The destination folder ('"+qG+"') and the current folder selected are the same.");return;}iz.value='';var jn=false;var eR=null;var ey=null;var fj=eU;var jL=eU;for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];jL=ia;if(eR&&eR.checked==true&&ey){if(ey[3]==ia){aa(0,"One of the source folders ("+ey[5]+") is the destination folder, nothing will be moved. ");jn=true;break;}if(ey[1]==2)var lp=0;while((fj=aE(jL))!=eU&&lp<1000){if(fj==ey[3]){jn=true;aa(0,"The source folder ("+ey[5]+") is in the destination tree, you cannot move folders in this fashion.");break;}jL=fj;lp++;}iz.value+=ey[1]+":"+ey[3]+";";}}if(jn){iz.value='';return false;}aa(3,"Moving "+fx+" selected items to folder '"+qG.trim()+"'..");fQ.submit();};function aE(gl){for(var eh=0;eh<(fz+1);eh++)if(fa[eh][1]==gl)return fa[eh][3];return 0;};function ak(gl){if(fw==''&&gl==eL)return false;if(!gl)return false;bt();aN();eL=gl;eA= -1;eE[er]=0;RenderMyFiles(er,eN);var oE=gl;var jk=document.getElementById('current_folder_name'+er);var gL=document.getElementById('parent_folder_names'+er);if(jk&&gL){var fj=eU;gL.innerHTML='';jk.innerHTML='';for(var eh=0;eh<(fz+1);eh++){if(fa[eh]&&fa[eh][1]==eL){if(fa[eh][1]!=eU)jk.innerHTML="&nbsp;/&nbsp; <strong>"+fa[eh][0]+"</strong> ";fj=fa[eh][3];break;}}var lz=Array();var gM=0;while(fj!=eU){for(var eh=0;eh<(fz+1);eh++){if(fa[eh][1]==fj){lz[gM]='&nbsp;/&nbsp; <a href="#" OnClick=" ak(\''+fa[eh][1]+'\'); return false;">'+fa[eh][0]+'</a> ';fj=fa[eh][3];gM++;break;}}}while(gM>0)gL.innerHTML+=lz[((gM--)-1)];if((!document.getElementById('is_shared')||document.getElementById('is_shared').value!=1)||Number(qm)==1){aU('mflf',eL,100);aU('mfpf',fj,100);}}Bd();};function Bd(){if(typeof mP!="undefined"){var nr;var zJ=[];for(var i=0;i<mP.length;i++){if(nr=mP[i]){if(nr[0]==eL&&nr[2]=='1'){zJ[zJ.length]=nr;}}}Cy(zJ);}};function Cy(mP){DoHide('direct_urls');DoHide('has_direct_url');DoHide('has_direct_urls');var elm;if(mP.length>0&&(elm=document.getElementById('direct_urls'))){var gb='';for(var i=0;i<mP.length;i++){gb+='<li>http://www.mediafire.com/'+mP[i][1]+'</li>';}elm.innerHTML=gb;DoShow('direct_urls');if(mP.length>1)DoShow('has_direct_urls');else DoShow('has_direct_url');}};function cX(){aS(0,kK);};function cT(fO){if(iR==true)var gb='<select id="move_dest_'+fO+'" name="move_dest_'+fO+'" style=" width: 120px;">';else var gb='<select id="move_dest_'+fO+'" name="move_dest_'+fO+'" style=" width: 150px;">';var ji=0;for(var eI=0;eI<(fz+1);eI++){if(fa[eI]){ji='';for(var ly=0;(fa[eI][2]*4)>ly;ly++)ji+="&nbsp;";gb+='<option value="'+fa[eI][1]+'">'+ji+fa[eI][0]+'</option>';}}gb+='</select>';return gb;};function cf(ny,eI,hP){if(!(fz>0)){fa=Array();return false;}if(hP>=20){aa(0,"Maximum Folder Depth Reached!");return false;}if(eI==0){fa=Array(fz);fa[0]=Array('My Files',eU,0,eU);eI++;}var fe='';for(var eh=0;eh<fz;eh++){if(!fd[eh])break;fe=es[fd[eh][1]];if(fe[4]==ny&&fe[0]==1&&fe[1]==2){fa[eI]=Array(fe[5],fe[3],hP,fe[4]);eI++;eI=cf(fe[3],eI,hP+1);}}return eI;};function aS(ki,fW){var fW=(fW==null)?"#FFFFFF":fW;if(fW==0)fW='';var lE=document.getElementById('new_folder');var gE=document.getElementById('tag_selected');var lY=document.getElementById('move_selected');var lM=document.getElementById('email_selected');var lH=document.getElementById('viewaccount_selected');var lF=document.getElementById('new_folderA');var la=document.getElementById('tag_selectedA');var lZ=document.getElementById('move_selectedA');var lN=document.getElementById('email_selectedA');var lI=document.getElementById('viewaccount_selectedA');gE.className='hide';lE.className='hide';lY.className='hide';lM.className='hide';lH.className='hide';la.style.backgroundColor=fW;lF.style.backgroundColor=fW;lZ.style.backgroundColor=fW;lN.style.backgroundColor=fW;lI.style.backgroundColor=fW;if(ki!=gn){switch(ki){case 1:document.getElementById('new_folder_name').value='';lE.className='show';lF.style.backgroundColor='#E1EDFF';document.getElementById('new_folder_name').focus();break;case 2:document.getElementById('tag_desc_list').value='';gE.className='show';la.style.backgroundColor='#E1EDFF';document.getElementById('tag_desc_list').focus();break;case 3:document.getElementById('move_dropdown').innerHTML=cT('navbar_filelist');lY.className='show';lZ.style.backgroundColor='#E1EDFF';document.getElementById('move_dest_navbar_filelist').focus();break;case 4:document.getElementById('email_files_to').value='';lM.className='show';lN.style.backgroundColor='#E1EDFF';document.getElementById('email_files_to').focus();break;case 5:lH.className='show';lI.style.backgroundColor='#E1EDFF';document.getElementById('stat_num_files').focus();break;default:break;}gn=ki;}else gn=0;};function dE(ic){if(ic.value!=hC){ic.disabled=true;bN(ic.value);ic.disabled=false;}};function bN(nx){hC=nx;eA= -1;eE[er]=0;RenderMyFiles(er,eN);};function dN(gU,fI,oB,fQ){aa(3,"Creating Folder..");switch(dm(fI.value)){case-3:aa(1,"The folder name you entered contains invalid characters.");gU.disabled=false;break;case-2:aa(1,"The folder name you entered is too long, please correct and try again.");gU.disabled=false;break;case-1:aa(1,"The folder name you entered is too short, please correct and try again.");gU.disabled=false;break;case 0:document.getElementById('new_folder_parent').value=eL;fQ.submit();break;default:aa(1,"The folder name you selected to create was invalid for an unknown reason, please check it and try again.");gU.disabled=false;break;}};function eo(jp){var numaric=jp;for(var j=0;j<numaric.length;j++){var alphaa=numaric.charAt(j);var hh=alphaa.charCodeAt(0);if((hh>31&&hh<59)||(hh>57&&hh<94)||(hh>93&&hh<123)){}else{return false;}}return false;};function ep(jp){var numaric=jp;for(var j=0;j<numaric.length;j++){var alphaa=numaric.charAt(j);var hh=alphaa.charCodeAt(0);if((hh>47&&hh<59)||(hh>64&&hh<90)||(hh>96&&hh<123)){continue;}else{return false;}}return false;};function dm(fU){var et=0;if(fU.length<1)et= -1;if(fU.length>40)et= -2;return et;};function dv(){kp=1;if(kk!=1)return false;if(document.getElementById('email_files_from')){document.getElementById('email_files_from').value=UserEmail;}if(!(gf=aL("advancedview"))){if(lk>=0)gf=lk;else gf=0;}var ix=document.getElementById('sharingmodebox');if(UserLogin==1){if(ix){ix.style.display="block";cj(1);}if(UserEmail.length>3){if(!document.getElementById('is_shared')||document.getElementById('is_shared').value!=1){DoShow('public_directory_span');}}}else{var my=document.getElementById('create_account_box');if(my)my.style.display="block";if(ix){ix.style.display="none";}}cP();oX(kc,'colheaderfiles');var gC=document.getElementById('image_thumb_small');var gF=document.getElementById('image_thumb_big');if(gF&&gC){if(eV){gC.className='thumbnail_selected';gF.className='thumbnail_ns';}else{gF.className='thumbnail_selected';gC.className='thumbnail_ns';}}var gC=document.getElementById('image_thumb_small2');var gF=document.getElementById('image_thumb_big2');if(gF&&gC){if(eV){gC.className='thumbnail_selected';gF.className='thumbnail_ns';}else{gF.className='thumbnail_selected';gC.className='thumbnail_ns';}}var hS=document.getElementById('is_shared');if(hS&&hS.value==1){eH=wY;}if(Number(fu)==1&&(!hS||hS.value!=1)){for(var eh=0;qh[eh]||qg[eh];eh++){if(document.getElementById(qg[eh])){document.getElementById(qg[eh]).className='show';}}}else{for(var eh=0;qh[eh]||qg[eh];eh++){if(document.getElementById(qh[eh])){document.getElementById(qh[eh]).className='hide';}}}bu();aN();cr();if(jE)ak(jE);sH=parent.document.URL;if(sH&&(sH.substring(sH.length-'#photos'.length)=='#photos')){aV(2);}else{aV(mu);}if(document.getElementById('is_shared')&&document.getElementById('is_shared').value==1){var mq=document.getElementById('visitor_selected_filesview');var mp=document.getElementById('visitor_breadcrumb1');var js=document.getElementById('currently_browsing_shared');var nM=document.getElementById('visitor_selected_imageview');var nJ=document.getElementById('visitor_breadcrumb2');var hE='';if(mq){for(var eh=0;es[eh];eh++){if(es[eh][1]==2&&es[eh][3]==eU){hE=es[eh][5];break;}}if(!hE)hE='MyFiles';mq.innerHTML='Shared Folder \''+hE+'\'';nM.innerHTML='Shared Folder \''+hE+'\'';}if(mp){mp.innerHTML=jY+"'s Shared Files "+hE;nJ.innerHTML=jY+"'s Shared Images "+hE;}if(js)js.innerHTML=js.innerHTML+jY+"'s Shared Files";}if(fu==0)DoShow('mediapro_promo');else DoHide('mediapro_promo');if(fu==0&&hq==0){ax();}else dC();window.onscroll=function(){setTimeout("aH()",100);};window.onresize=function(){setTimeout("aH()",100);};if(Number(qm)==1){DoShow('upload_to_this_folder');}else{DoHide('upload_to_this_folder');}Bd();kp=0;};function aW(){fx=0;for(var eh=0;eh<=eB;eh++)if(document.getElementById('filecheck'+eh)&&document.getElementById('filecheck'+eh).checked)fx++;var Span1=document.getElementById('NumOfSelectedObjects1');if(Span1&&fx>0){Span1.style.visibility="visible";Span1.innerHTML=' <strong>('+fx+' Items Selected)</strong>';var Span2=document.getElementById('NumOfSelectedObjects2');if(Span2){Span2.style.visibility="visible";Span2.innerHTML=Span1.innerHTML;}}else if(fx==0){if(document.getElementById('NumOfSelectedObjects1')){document.getElementById('NumOfSelectedObjects1').style.visibility="hidden";document.getElementById('NumOfSelectedObjects1').innerHTML="";}if(document.getElementById('NumOfSelectedObjects2')){document.getElementById('NumOfSelectedObjects2').style.visibility="hidden";document.getElementById('NumOfSelectedObjects2').innerHTML="";}}};function ck(){var eh=1;while(eh<=eB){if(document.getElementById('filecheck'+eh)&&document.getElementById('file_row'+eh)){document.getElementById('filecheck'+eh).checked=true;document.getElementById('file_row'+eh).className="file_selected";}eh++;}jV=1;aW();};function bm(eu){var fF='';eu%2==0?fF="odd":fF="even";if(document.getElementById('filecheck'+eu)&&document.getElementById('file_row'+eu)){if(document.getElementById('filecheck'+eu).checked==false)document.getElementById('file_row'+eu).className="file_"+fF;else document.getElementById('file_row'+eu).className="file_selected";}aW();return true;};function ce(){var eh=0;fM[2][0]=0;while(kv>=eh&&fM[1][eh]>=0){fM[1][eh]=0;eh++;}jV=0;};function bv(){var eh=1;var fF='';while(eh<=eB){if(document.getElementById('filecheck'+eh)){document.getElementById('filecheck'+eh).checked=false;eh%2==0?fF="odd":fF="even";document.getElementById('file_row'+eh).className="file_"+fF;}eh++;}ce();aW();};function ay(fD,gB,oj){var fF='';var nv=0;if(fD==2)gB=0;if(jV==1){bv();}oj=oj||2;var eh=1;while(eh<=eB){if(document.getElementById('filecheck'+eh)){if((fD==2&&eK[(eh-1)][1]==fD)||(fD==1&&oj===2&&gB==0&&eK[(eh-1)][1]==fD)||(fD==1&&eK[(eh-1)][1]==fD&&eK[(eh-1)][oj]==gB)){if(fM[fD][gB]==1){eh%2==0?fF="odd":fF="even";document.getElementById('file_row'+eh).className="file_"+fF;document.getElementById('filecheck'+eh).checked=false;}else{document.getElementById('filecheck'+eh).checked=true;document.getElementById('file_row'+eh).className="file_selected";}nv++;}}eh++;}if(fM[fD][gB]==1)fM[fD][gB]=0;else{fM[fD][gB]=1;}aW();};function aJ(km){if(km<0)return false;if((km*eB)>eA)return false;eE[er]=km;};function cD(sA,sB){return parseInt(sA)-parseInt(sB);};function oX(hM,hj){var eh=0;while(document.getElementById(hj+String(eh))&&eh<20){document.getElementById(hj+String(eh)).className="no_sort";eh++;}if(gD==0){document.getElementById(hj+String(hM)).className="sort_up";}else{document.getElementById(hj+String(hM)).className="sort_down";}};function bc(hM,hj){var eh=0;while(document.getElementById(hj+String(eh))&&eh<20){document.getElementById(hj+String(eh)).className="no_sort";eh++;}if(kc===hM)if(gD==1){gD=0;document.getElementById(hj+String(hM)).className="sort_up";}else{gD=1;document.getElementById(hj+String(hM)).className="sort_down";}else{kc=hM;gD=0;document.getElementById(hj+String(hM)).className="sort_up";}if(!document.getElementById('is_shared')||document.getElementById('is_shared').value!=1){aY('mfsf',kc,(60*24*30));aY('mfsd',gD,(60*24*30));}RenderMyFiles(er,eN);};function qK(){var jx=document.getElementById('sharethisfolder100'+er);if(!jx)return false;if(eL!=eU&&gY==1){jx.innerHTML="(share this folder)";DoShow("sharethisfolder100"+er+"-2");}else{jx.innerHTML='';DoHide("sharethisfolder100"+er+"-2");}return false;};function bt(){var sharediv=document.getElementById('sharediv100'+er);if(sharediv.className=="hide")return false;sharediv.className=="hide"?sharediv.className="actions":sharediv.className="hide";ab(1,'sharedivtab100'+er,'sharedivtab100'+er,'hide','span');return false;};function qF(){if(eL==eU)return false;var sharediv=document.getElementById('sharediv100'+er);if(sharediv.className!="hide")return false;for(var eh=0;eh<(iQ+fz+1);eh++)if(es[eh][3]==eL){break;}aD(eh,'100'+er,3);ab(1,'sharedivtab100'+er,'sharedivtab100'+er,'hide','span');return true;};function aD(eC,eu,jK){var sharediv=document.getElementById('sharediv'+eu);if(sharediv){if(sharediv.className=="hide"){sharediv.innerHTML=bh(eH[jK],eC,eu,'');}sharediv.className=="hide"?sharediv.className="actions":sharediv.className="hide";ae('sharetabsfile'+eu+'-',1);ad(0,document.getElementById('sharetemplatefile'+eu),eu,'sharedtabsfileinfo'+eu+'-');}else return false;};function cF(gl){var gg=Array(2);gg[0]=0;gg[1]=0;var yg=new String();var i= -1;while(xb=fa[++i]){if(xb[3]==gl||yg.search(xb[3])!= -1){yg+=xb[1]+',';gg[1]++;}}yg+=gl;if(!gg[1]){var i= -1;while(xb=es[++i]){if(xb[0]==1&&xb[1]==1&&xb[4]==gl){gg[0]++;}}}else{var i= -1;while(xb=es[++i]){var An=new RegExp(xb[4]);if(xb[0]==1&&xb[1]==1&&An.test(yg)){gg[0]++;}}}return gg;};function bh(ei,eC,ew,eJ){ei=ei.replace(/#FILENAME#/g,es[eC][5].replace(/"/g,'&#34;'));ei=ei.replace(/#FILENAME_URL#/g,escape(es[eC][5].replace(/"/g,'&#34;')));ei=ei.replace(/#QUICKKEY#/g,es[eC][3]);ei=ei.replace(/#FILETYPE#/g,es[eC][2]);ei=ei.replace(/#FILESIZE#/g,(es[eC][7]+" "+es[eC][8]));ei=ei.replace(/#UPLOADDATE#/g,es[eC][10]);ei=ei.replace(/#DOWNLOADS#/g,es[eC][9]);ei=ei.replace(/#FILENUM#/g,String(ew));ei=ei.replace(/#ODDEVEN#/g,String(eJ));ei=ei.replace(/#DESCRIPTION#/g,es[eC][13].replace(/"/g,'&#34;'));ei=ei.replace(/#TAGS#/g,es[eC][12].replace(/"/g,'&#34;'));ei=ei.replace(/#PASSWORD#/g,es[eC][14].replace(/"/g,'&#34;'));ei=ei.replace(/#INDEX#/g,String(eC));ei=ei.replace(/#UKEY#/g,aL('ukey'));ei=ei.replace(/#ISFOLDER#/g,es[eC][1]);ei=ei.replace(/#CDN_URL#/g,vm);ei=ei.replace(/#IMGROTATION#/g,es[eC][17]);if(es[eC][1]==2){var jz=Array(2);jz=cF(es[eC][3]);ei=ei.replace(/#SUBFOLDERS#/g,jz[1]);ei=ei.replace(/#SUBFILES#/g,jz[0]);if(es[eC][16]=='1'){ei=ei.replace(/#FOLDERICON#/g,vm+'/images/v4images/icons/myfiles/dropbox_folder.gif');ei=ei.replace(/#FOLDERIMAGEICONSMALL#/g,vm+'/images/v4images/icons/myfiles/imageview_dropbox_folder_small.gif');ei=ei.replace(/#FOLDERIMAGEICONLARGE#/g,vm+'/images/v4images/icons/myfiles/imageview_dropbox_folder_large.gif');}else{ei=ei.replace(/#FOLDERICON#/g,vm+'/images/filetype/list_icons/999.gif');ei=ei.replace(/#FOLDERIMAGEICONSMALL#/g,vm+'/images/myimages_icons/Folder_sm.jpg');ei=ei.replace(/#FOLDERIMAGEICONLARGE#/g,vm+'/images/myimages_icons/Folder.jpg');}if(es[eC][17]=='1'){ei=ei.replace(/#CUSTOM_URL_CLASS#/g,'');}else{ei=ei.replace(/#CUSTOM_URL_CLASS#/g,'hide');}}if(iR==true){if(dM(es[eC][3])){ei=ei.replace(/#STYLE_OFFPROFILE#/g,'display: none;');ei=ei.replace(/#STYLE_ONPROFILE#/g,'display: block;');}else{ei=ei.replace(/#STYLE_OFFPROFILE#/g,'display: block;');ei=ei.replace(/#STYLE_ONPROFILE#/g,'display: none;');}}var hS=document.getElementById('is_shared');if((hq>=1&&es[eC][14]==''||hq>=1&&es[eC][1]==2)&&es[eC][2]!=1)ei=ei.replace(/#DOBLANK#/g,'');else ei=ei.replace(/#DOBLANK#/g,'_blank');if(gY==0||(es[eC][1]==2&&es[eC][11]==1)){ei=ei.replace(/#ACLCLASS#/g,'hide');}else{ei=ei.replace(/#ACLCLASS#/g,'');}if(es[eC][1]==2&&gY==0){ei=ei.replace(/#SHARINGPRIVATECLASS#/g,'hide');}else{ei=ei.replace(/#SHARINGPRIVATECLASS#/g,'');}if(es[eC][1]==1&&es[eC][4]==eU)ei=ei.replace(/#CANTBROWSE#/g,'1');else ei=ei.replace(/#CANTBROWSE#/g,'0');if(es[eC][2]==1){ei=ei.replace(/#ISPICTURE#/g,'1');ei=ei.replace(/#STYLE_NOTPICTURE#/g,'display: none;');ei=ei.replace(/#STYLE_PICTURE#/g,'display: block;');}else if(hS){ei=ei.replace(/#ISPICTURE#/g,'0');ei=ei.replace(/#STYLE_NOTPICTURE#/g,'display: block;');ei=ei.replace(/#STYLE_PICTURE#/g,'display: none;');}else{ei=ei.replace(/#STYLE_NOTPICTURE#/g,'display: block;');ei=ei.replace(/#STYLE_PICTURE#/g,'display: none;');}if(hS&&hS.value==1)ei=ei.replace(/#ISOWNER#/g,'0');else if(hS&&hS.value==0)ei=ei.replace(/#ISOWNER#/g,'1');else ei=ei.replace(/#ISOWNER#/g,'0');if(es[eC][1]==1&&es[eC][2]==1){ei=ei.replace(/#URI2#/g,lW+"imageview.php?quickkey=");ei=ei.replace(/#QUERY_STRING2#/g,"&thumb=4");ei=ei.replace(/#PASSWORD_ANCHOR#/g,'hide');}else{ei=ei.replace(/#URI2#/g,lW+'download.php?');ei=ei.replace(/#QUERY_STRING2#/g,'');ei=ei.replace(/#PASSWORD_ANCHOR#/g,'code_header');}ei=ei.replace(/#URI#/g,lW+'download.php?');ei=ei.replace(/#QUERY_STRING#/g,'');if(lB==1){ei=ei.replace(/#SSL#/g,'s');ei=ei.replace(/#URLKEY#/g,'');}else{ei=ei.replace(/#SSL#/g,'');if(es[eC][1]==1){var iB=Math.ceil(h2d((es[eC][15]).substring(0,1))/4);if(iB<1||iB>4)iB=1;ei=ei.replace(/#URLKEY#/g,iB);}else ei=ei.replace(/#URLKEY#/g,'');}if(es[eC][1]==1)if(es[eC][15])ei=ei.replace(/#IMGKEY#/g,es[eC][15]);else ei=ei.replace(/#IMGKEY#/g,'INVALIDFILE');if(es[eC][1]==2)if(es[eC][15])ei=ei.replace(/#FOLDER_QUICKKEY#/g,es[eC][15]);else ei=ei.replace(/#FOLDER_QUICKKEY#/g,'INVALIDFILE');if(UserEmail)ei=ei.replace("#EMAILADDY#",UserEmail);else ei=ei.replace("#EMAILADDY#",'');if(es[eC][14]&&es[eC][1]!=2){if(er==1){ei=ei.replace(/#PASSWORDCLASS#/g,'privacy');ei=ei.replace(/#PUBLICCLASS#/g,'hide');ei=ei.replace(/#PRIVATECLASS#/g,'hide');ei=ei.replace(/#PRIVATEFILENAMECLASS#/g,'_password');}if(er==2){ei=ei.replace(/#PRIVATECLASS#/g,'password');}}else if(es[eC][11]==0){if(er==1){ei=ei.replace(/#PASSWORDCLASS#/g,'hide');ei=ei.replace(/#PUBLICCLASS#/g,'privacy');ei=ei.replace(/#PRIVATECLASS#/g,'hide');ei=ei.replace(/#PRIVATEFILENAMECLASS#/g,'');}if(er==2){ei=ei.replace(/#PRIVATECLASS#/g,'thumbnail');}}else{if(er==1){ei=ei.replace(/#PASSWORDCLASS#/g,'hide');ei=ei.replace(/#PUBLICCLASS#/g,'hide');ei=ei.replace(/#PRIVATECLASS#/g,'privacy');ei=ei.replace(/#PRIVATEFILENAMECLASS#/g,'_private');}if(er==2){ei=ei.replace(/#PRIVATECLASS#/g,'private');}}kQ=new String(es[eC][12]);if(kQ.length>0){var ez='Tags: ';var jf=kQ.split(' ');for(var eh=0;(jf[eh]||jf[(eh+1)])&&eh<30;eh++)ez+="<a href='#' OnClick='document.getElementById(\"search_input"+er+"\").value=this.innerHTML; bp(this.innerHTML); return false;'>"+jf[eh]+"</a> ";ei=ei.replace(/#TAGS_DISP#/g,ez);}else ei=ei.replace(/#TAGS_DISP#/g,'');if(gf==1||er==2)ei=ei.replace(/#FOLDERACTIONSCLASS#/g,'folder_actions');else ei=ei.replace(/#FOLDERACTIONSCLASS#/g,'hide');return ei;};function RenderMyFiles(jU,lD,ou,ot,os){jO++;cX();if(!kk||kk!=1)return false;ei=new String('');var jr=document.getElementById('loadingmessage');if(jr){jr.innerHTML="";jr.style.display="none";}er=jU;eN=lD;var jo=false;var oH=0;if(!document.getElementById('is_shared')||document.getElementById('is_shared').value!=1){if(kp!=1){aU('mflt',er,360);}}bu();var eQ=0;switch(er){case 1:eQ=hC;break;case 2:eQ=1;break;}qK();switch(kc){case 3:var eW=ld;eW.sort(cD);break;case 2:var eW=ma;eW.sort(cD);break;case 1:var eW=kJ;eW.sort();break;case 0:default:var eW=kX;eW.sort();break;}fd.sort();if(gD==1){eW.reverse();fd.reverse();}var ew=0;var ox=0;for(var gA=0;gA<eB;gA++)eK[gA]=Array(3);if(eL!=jS||eA== -1){eA=0;gv=0;gj=0;eF=0;var Bw;while(Bw=es[eF]){if(fw.length>0){hH=new String(Bw[5]);hI=new String(Bw[12]);hN=new String(Bw[13]);fR=new RegExp(fw,"gi");if(Bw[0]==1&&(hH.search(fR)>=0||hI.search(fR)>=0||hN.search(fR)>=0)){if(er==2){if(Bw[1]=='1'&&Bw[2]==eQ){eA++;gj++;}if(Bw[1]=='2'){eA++;gv++;}}else if(eQ== -1){if(Bw[1]=='2'){gv++;eA++;}}else if(eQ== -2){if(Bw[1]=='1'){eA++;gj++;}}else if(eQ>0){if(Bw[1]=='1'&&Bw[2]==eQ){eA++;gj++;}}else{eA++;if(Bw[1]=='1')gj++;if(Bw[1]=='2')gv++;}}}else{if(Bw[4]==eL&&Bw[0]==1){if(er==2){if(Bw[1]=='1'&&Bw[2]==eQ){gj++;eA++;}if(Bw[1]=='2'){gv++;eA++;}}else if(eQ== -1){if(Bw[1]=='2'){gv++;eA++;}}else if(eQ== -2){if(Bw[1]=='1'){eA++;gj++;}}else if(eQ>0){if(Bw[1]=='1'&&Bw[2]==eQ){eA++;gj++;}}else{eA++;if(Bw[1]=='1')gj++;if(Bw[1]=='2')gv++;}}}eF++;}jS=eL;}var hw=document.getElementById('page_numbers_prev'+er);var hB=document.getElementById('page_numbers_next'+er);var gs=document.getElementById('page_numbers_list'+er);var BV;if(hw&&hB&&gs){if(eE[er]>0)hw.style.visibility="visible";else hw.style.visibility="hidden";if(((eE[er]+1)*eB)<eA){hB.style.visibility="visible";}else{hB.style.visibility="hidden";}if(eA>eB){gs.style.visibility="visible";gs.innerHTML='';var nh=Math.ceil(eA/eB);var iC='';for(var hu=0;nh>hu;hu++){iC='<a href="#" OnClick="aJ('+hu+'); RenderMyFiles(er,eN,0,0); return false;"';if((hu)==eE[er]){iC+=' class="current_page" ';}iC+='>'+(hu+1)+'</a>';gs.innerHTML+=iC;}}else gs.style.visibility="hidden";var kq=document.getElementById('page_numbers_prev'+er+'second');var kt=document.getElementById('page_numbers_next'+er+'second');var jg=document.getElementById('page_numbers_list'+er+'second');if(kq&&kt&&jg){kq.innerHTML=hw.innerHTML;kt.innerHTML=hB.innerHTML;jg.innerHTML=gs.innerHTML;jg.style.visibility=gs.style.visibility;kt.style.visibility=hB.style.visibility;kq.style.visibility=hw.style.visibility;}}cf(eU,0,1);hZ=0;gX=0;var Dr='filelisting';switch(jU){case 2:var ln=0;var eZ=document.getElementById('filelistingtab'+er);var eJ=0;if(eZ){eZ.style.display="none";}if(eZ){eZ.innerHTML='';for(var eh=0;eh<(eB+1);eh++){BV=document.createElement('SPAN');BV.id=BV.name=Dr+eh;eZ.appendChild(BV);}eZ.style.display="block";}var hX=document.getElementById('filelisting0');if(hX&&eL!=eU){eV?hX.innerHTML=eH[8]:hX.innerHTML=eH[11];}else if(hX)hX.innerHTML='';var Cl;var Cz;if(gD==0){eV?fq=6:fq=10;Cz=bo(ew,fd,0,eJ);ew+=Cz;ew%2==0?eJ=0:eJ=1;eV?fq=5:fq=9;Cl=bq(ew,eW,hZ,eJ);ew+=Cl;}else{eV?fq=5:fq=9;Cl=bq(ew,eW,0,eJ);ew+=Cl;ew%2==0?eJ=0:eJ=1;eV?fq=6:fq=10;Cz=bo(ew,fd,gX,eJ);ew+=Cz;}if(Cz<Cl){DoShow('DownloadThisGallery');}else{DoHide('DownloadThisGallery');}if(ew==0){if(eL==eU&&eF==0)aa(0,"No objects (files or folders) were found! Click the Upload button to upload your files!");else{jo=true;if(eQ!=0&&er==1){aa(0,"No files or folders found.  The file filter is also currently set, this may be hiding files.  Click here to <A href='#' OnClick='bN(0); return false;'>un-filter</a>.");}else{switch(er){case 2:break;case 1:default:break;}}}}var gc=(eE[er]*eB);if(gc==0)gc=1;var fX=document.getElementById('file_count_message'+er);var nX=document.getElementById('file_count_message'+er+'second');if(fX&&ew>0){if(eE[er]==1)gc++;fX.innerHTML="Items "+gc+" to "+((eE[er]*eB)+(ew))+" of "+eA;}else if(ew==0&&fX)fX.innerHTML="0 Items found!";nX.innerHTML=fX.innerHTML;break;case 3:switch(lD){case 2:break;case 1:default:break;}break;case 4:break;default:case 1:var ln=0;var eZ=document.getElementById('filelistingtab'+er);var eJ=0;if(eZ){eZ.style.display="none";}if(eZ){eZ.innerHTML='';var CZ=eB+1;for(var eh=0;eh<CZ;++eh){BV=document.createElement('SPAN');BV.id=BV.name=Dr+eh;if(eh>0)BV.style.display='none';eZ.appendChild(BV);}eZ.style.display="block";}if(elm=document.getElementById('filelisting0')){if(eL!=eU)elm.innerHTML=eH[4];else elm.innerHTML='';}if(gD==0){fq=1;ew=bo(ew,fd,0,eJ);ew%2==0?eJ=0:eJ=1;fq=0;ew=bq(ew,eW,hZ,eJ);}else{fq=0;ew=bq(ew,eW,0,eJ);ew%2==0?eJ=0:eJ=1;fq=1;ew=bo(ew,fd,gX,eJ);}if(ew==0){if(eL==eU&&eF==0)aa(0,"No objects (files or folders) were found! Click the Upload tab in order to upload your files!");else{jo=true;if(eQ!=0){aa(0,"No files or folders found.  The file filter is also currently set, this may be hiding files.  Click here to <A href='#' OnClick='bN(0); return false;'>un-filter</a>.");}}}var gc=(eE[er]*eB);if(gc==0)gc=1;var fX=document.getElementById('file_count_message'+er);if(fX&&ew>0){if(eE[er]>=1)gc++;fX.innerHTML="Showing items "+gc+" through "+((eE[er]*eB)+(ew))+" out of "+eA+" in this folder";}else if(ew==0&&fX){fX.innerHTML="0 items found to display!";}break;}ce();aW();if(jU==1){if(document.getElementById('stat_num_files'))document.getElementById('stat_num_files').innerHTML=iQ;if(document.getElementById('stat_size_files'))document.getElementById('stat_size_files').innerHTML=lK;if(document.getElementById('stat_downloads'))document.getElementById('stat_downloads').innerHTML=kT;if(document.getElementById('stat_bandwidth'))document.getElementById('stat_bandwidth').innerHTML=le;}if(jo==false){av();}if(jO>=nk&&er==1&&fw==''){jO=0;if(fu==0&&hq==0)ax();}var zv;if(zv=document.getElementById('custom_header')){zv.style.display='block';}if(eL==eU&&Number(qm)==1){DoHide('DownloadThisFolder');}else{DoShow('DownloadThisFolder');}};function bo(ew,fd,jG,eJ){var eQ=0;switch(er){case 1:eQ=hC;break;case 2:eQ=0;break;}if(eQ!=0&&eQ!= -1)return ew;var fy=0;var hV=0;var fE=Array();var fl=0;hZ=0;var vO;var elm;while(fd[fy]&&ew<eB){fl=fy;if(!(vO=fd[fl]))break;fe=es[vO[1]];if((fe[4]!=eL&&fw.length<=0)||fe[0]==0||fe[1]!=2){fy++;continue;}if(fw.length>0){hH=new String(fe[5]);hI=new String(fe[12]);hN=new String(fe[13]);fR=new RegExp(fw,"gi");if(hH.search(fR)<0&&hI.search(fR)<0&&hN.search(fR)<0){fy++;continue;}}hV++;hZ++;if((hV-1)<((eE[er]*eB)-jG)){fy++;continue;}var vD=eK[ew];vD[0]=vO;vD[1]=fe[1];vD[2]=fe[2];ew++;ei=bh(eH[fq],vO[1],ew,(eJ==0?"even":"odd"));eJ==0?eJ=1:eJ=0;if(elm=document.getElementById('filelisting'+ew)){elm.style.display='inline';elm.innerHTML=ei;}if(er==1)if(es[vO[1]][11]==1){document.getElementById('asharelink'+ew).style.visibility='hidden';document.getElementById('asharelinkfb'+ew).style.visibility='hidden';document.getElementById('asharelinktw'+ew).style.visibility='hidden';}fy++;}return ew;};function bq(ew,eW,jG,eJ){var eQ=0;switch(er){case 1:eQ=hC;break;case 2:eQ=1;break;}if(eQ== -1)return ew;var fy=0;var hV=0;var fE=Array();var fl=0;var elm;gX=0;while(eW[fy]&&ew<eB){fl=fy;if(!eW[fl])break;fE=es[eW[fl][1]];if((fE[4]!=eL&&fw.length<=0)||fE[0]==0||fE[1]!=1||(eQ>0&&eQ!=fE[2])){fy++;continue;}if(fw.length>0){hH=new String(fE[5]);hI=new String(fE[12]);hN=new String(fE[13]);fR=new RegExp(fw,"gi");if(hH.search(fR)<0&&hI.search(fR)<0&&hN.search(fR)<0){fy++;continue;}}hV++;gX++;if((hV-1)<((eE[er]*eB)-jG)){fy++;continue;}eK[ew][0]=eW[fl];eK[ew][1]=fE[1];eK[ew][2]=fE[2];eK[ew][3]=fE[11];eK[ew][4]=fE[16];eK[ew][5]=fE[3];ew++;ei=bh(eH[fq],eW[fl][1],ew,(eJ==0?"even":"odd"));eJ==0?eJ=1:eJ=0;if(elm=document.getElementById('filelisting'+ew)){elm.style.display='inline';elm.innerHTML=ei;}if(es[eW[fl][1]][2]==1&&document.getElementById('filetype_icon_'+ew)){cE(document.getElementById('filetype_icon_'+ew),es[eW[fl][1]][15],0);}if(er==1)if(es[eW[fl][1]][11]==1){document.getElementById('asharelink'+ew).style.visibility='hidden';document.getElementById('asharelinkfb'+ew).style.visibility='hidden';document.getElementById('asharelinktw'+ew).style.visibility='hidden';}fy++;}return ew;};function aV(tab){var counter=1;var classname="";var displayname="";var oi=document.getElementById('current_folder_name'+er);var gL=document.getElementById('parent_folder_names'+er);var od=document.getElementById('current_folder_name'+tab);var mi=document.getElementById('parent_folder_names'+tab);od.innerHTML=oi.innerHTML;if(gL&&mi)mi.innerHTML=gL.innerHTML;var eZ=document.getElementById('filelistingtab'+er);if(eZ)eZ.innerHTML='';var eZ=document.getElementById('filelistingtab'+tab);if(eZ)eZ.innerHTML='';var jj=document.getElementById('search_input'+er);var lU=document.getElementById('search_input'+tab);if(jj&&lU){if(jj.value!=''){lU.value=jj.value;bB('visible',tab);}else{er=tab;aN();}}er=tab;eE[er]=0;bu();while(counter<=4){if(counter==tab){classname="selected";displayname="block";}else{classname="notselected";displayname="none";}if(document.getElementById('rt'+counter))document.getElementById('rt'+counter).className="right_tab_"+classname;if(document.getElementById('lt'+counter))document.getElementById('lt'+counter).className="left_tab_"+classname;if(document.getElementById('mt'+counter))document.getElementById('mt'+counter).className="tab_"+classname;if(document.getElementById('pl'+counter))document.getElementById('pl'+counter).style.display=displayname;counter++;}RenderMyFiles(er,eN);};function bu(){switch(er){case 1:if(jt[er]>0)eB=jt[er];else{if(bK>0&&bK<=250){eB=bK;var ah=document.getElementById('select_itemsperpage');if(ah){at(ah);var eh=10;var eq=false;while(eh<=50){if(bK==eh)eq=true;else eq=false;kP(ah,eh,eh,eq);eh=eh+10;}eh=eh+40;while(eh<=250){if(bK==eh)eq=true;else eq=false;kP(ah,eh,eh,eq);eh=eh+50;}}}else eB=20;}break;case 2:eB=eV?100:50;break;default:if(bK>0&&bK<=250)eB=bK;else eB=20;break;}};function qe(qf){aY('mfipp',qf,(60*24*30));};function qn(mB){aU('mflf',mB,180);};function xO(zw){var lX;var ah;switch(zw){case 2:lX='dropbox_color_options';break;case 3:lX='dropbox_advanced_options';break;case 1:default:lX='dropbox_basic_settings';break;}DoHide('dropbox_basic_settings');DoHide('dropbox_color_options');DoHide('dropbox_advanced_options');DoShow(lX);for(var i=1;i<=3;i++){ah=document.getElementById('dropbox_tab_'+i);if(ah&&ah.className)ah.className="";}ah=document.getElementById('dropbox_tab_'+zw);if(ah)ah.className="current";};function na(qX,vV){var elm;var zL=['#000000','#ffffff','#cccccc','#666666','#000000','#9900ff','#003399','#00ccff','#00ff99','#66ff00','#ffff00','#ff6600','#ff0000'];if(elm=document.getElementById('hextext_'+qX)){return xI(qX,true,elm,zL[vV]);}};function xI(qX,AS,wt,zd){var elm;if(!wt){if(!(wt=document.getElementById('hextext_'+qX))){return false;}}if(zd){wt.value=zd;}var wU=wt.value.replace(/[^0123456789ABCDEFabcdef]/g,'');while(wU.length<6){wU=wU+'0';}wU='#'+wU;if(wt.value.length>7||AS){wU=wU.substr(0,7);wt.value=wU.toLowerCase();}if(elm=document.getElementById('color_preview_'+qX)){elm.style.background=wU;}if(String(wt.value).replace(/[^0123456789ABCDEFabcdef#]/g,'')!=wt.value){wt.value=wU;zy(qX,wU);return false;}zy(qX,wU);return true;};function Al(wU){var elm;if(elm=document.getElementById('dropbox_step1')){elm.style.background=wU;}};function Ak(wU){var elm;if(elm=document.getElementById('dropbox_header_div')){elm.style.background=wU;}};function Ah(wU){var elm;if(elm=document.getElementById('dropbox_header_div')){elm.style.color=wU;}};function Ad(wU){var elm;if(elm=document.getElementById('dropbox_message_div')){elm.style.color=wU;}};function Ae(wU){var elm;if(elm=document.getElementById('dropbox_link')){elm.style.color=wU;}};function zx(vU){var elm;if(elm=document.getElementById('dropbox_header_div')){elm.innerHTML=vU;}};function zs(vU){var elm;if(elm=document.getElementById('dropbox_message_div')){elm.innerHTML=vU;}};function zy(qX,AE){var EE=[null,Al,Ak,Ah,Ad,Ae];var customFunc;if(customFunc=EE[qX]){customFunc(AE);}};var DropboxObj={yi:480,Fb:0};function Bu(){function xo(lX){var elm;if(elm=document.getElementById(lX)){return elm.value;}else{aa(2,"Missing site compontents. Unable to set dropbox.");}};function zD(lX){var elm;var xL;if((elm=document.getElementById(lX))&&(xL=elm.options[elm.selectedIndex])){return xL.value;}else{aa(2,"Missing site compontents. Unable to set dropbox.");}};DropboxObj.yj=xo('dbx_input_header');DropboxObj.yh=xo('dbx_input_greeting');DropboxObj.yn=xo('dbx_input_completion');DropboxObj.yi=zD('dbx_input_width');DropboxObj.AF=xo('hextext_1');DropboxObj.AH=xo('hextext_2');DropboxObj.AC=xo('hextext_3');DropboxObj.AA=xo('hextext_4');DropboxObj.AB=xo('hextext_5');DropboxObj.zO=zD('dbx_input_allow_description');DropboxObj.uL=zD('dbx_input_notification_email');DropboxObj.Bh=zD('dbx_input_allow_multiple');};function Ab(){var elm;var fQ=document.getElementById('form_dbx');Bu();if(!fQ){aa(2,"Missing site compontents. Unable to set dropbox.");return;}var DA=[DropboxObj.yj,DropboxObj.yh,DropboxObj.yn];for(var i=0;i<DA.length;i++){if(DA[i]===''){xO(1);aa(2,"Please fill in all text fields.");return;}}var DC=['dbx_folder','dbx_text1','dbx_text2','dbx_text3','dbx_color1','dbx_color2','dbx_color3','dbx_color4','dbx_color5','dbx_sharing','dbx_descrip','dbx_multi','dbx_width','dbx_email'];var zG=[DropboxObj.currentFolder,DropboxObj.yj,DropboxObj.yh,DropboxObj.yn,DropboxObj.AF,DropboxObj.AH,DropboxObj.AC,DropboxObj.AA,DropboxObj.AB,DropboxObj.Bg,DropboxObj.zO,DropboxObj.Bh,DropboxObj.yi,DropboxObj.uL];for(var i=0;i<DC.length;i++){if(elm=document.getElementById(DC[i])){elm.value=zG[i];}else{aa(2,"Missing site compontents. Unable to set dropbox.");return;}}aa(3,"Saving dropbox settings.");fQ.submit();};function zZ(yk){aa(3,"Disabling dropbox.");zp(false,yk);ai('create_dropbox_popup');};function zp(ts,yk,EK){var elm;var fQ=document.getElementById('form_dbx_status');var yM=document.getElementById('dbx_status_enable');var yC=document.getElementById('dbx_silent_return');var yN=document.getElementById('dbx_status_id');if(!fQ|| !yM|| !yN|| !yC){aa(2,"Missing site compontents. Unable to set dropbox.");return;}if(ts){yM.value='1';zr();}else{yM.value='0';zq();}if(EK){yC.value='1';}else{yC.value='0';}if(yk!==undefined){yN.value=yk;}else{yN.value=DropboxObj.currentFolder;}fQ.submit();};function zr(){var elm;var Q;var i= -1;var fO=DropboxObj.currentFolder;if(elm=document.getElementById('folder_icon_'+DropboxObj.currentMyFilesPosition))elm.src=vm+'/images/v4images/icons/myfiles/dropbox_folder.gif';while((Q=es[++i])&&Q[15]!=fO);Q[16]='1';};function zq(){var elm;var Q;var i= -1;var fO=DropboxObj.currentFolder;if(elm=document.getElementById('folder_icon_'+DropboxObj.currentMyFilesPosition))elm.src=vm+'/images/filetype/list_icons/999.gif';while((Q=es[++i])&&Q[15]!=fO);Q[16]='0';};function zW(xn,eu){if(!fu){Ch('/templates/upgrade/dropbox.html',800,450);return;}aa(0,"Loading folder dropbox data.");var elm;var fQ=document.getElementById('form_dbx_folder');var hO=document.getElementById('dbx_text_embeded');var sD=document.getElementById('dbx_folderid');DropboxObj.currentFolder=xn;DropboxObj.currentMyFilesPosition=eu;DropboxObj.zF='';var yb=document.getElementById('dbx_input_header');var ya=document.getElementById('dbx_input_greeting');var xZ=document.getElementById('dbx_input_completion');var oInput4=document.getElementById('dbx_input_width');if(!yb|| !ya|| !xZ|| !oInput4){aa(2,"Missing site compontents.");return;}if(yb.value&&yb.value!=DropboxObj.yj){DropboxObj.yj=yb.value;}if(ya.value&&ya.value!=DropboxObj.yh){DropboxObj.yh=ya.value;}if(xZ.value&&xZ.value!=DropboxObj.yn){DropboxObj.yn=xZ.value;}if(!fQ|| !hO|| !sD){aa(2,"Missing site compontents.");return;}hO.innerHTML='Retrieving folder data...';sD.value=xn;fQ.submit()};function Bl(xn){function xl(lX,mA){var elm;var i;if(elm=document.getElementById(lX)){if(elm.type=="select"){for(i=0;i<elm.length;i++){if(elm[i].value=mA){elm[i].selected=true;}}}else{elm.value=mA;}}};var elm;var vU;if(!DropboxObj.currentFolder){return;}av();if(arguments.length<2||arguments[1]!='1'){var AR=confirm("This folder is not enabled as a dropbox. Would you like to enable the folder as a dropbox? (This can be undone at any time.)");if(AR){zp(true,DropboxObj.currentFolder);}else{zq();return;}}zr();if(arguments.length>1){xl('dbx_input_header',arguments[2]);xl('dbx_input_greeting',arguments[3]);xl('dbx_input_completion',arguments[4]);zx(arguments[2]);zs(arguments[3]);xl('hextext_1',arguments[5]);xl('hextext_2',arguments[6]);xl('hextext_3',arguments[7]);xl('hextext_4',arguments[8]);xl('hextext_5',arguments[9]);na(1,arguments[5]);na(2,arguments[6]);na(3,arguments[7]);na(4,arguments[8]);na(5,arguments[9]);xl('dbx_input_allow_description',arguments[10]);xl('dbx_input_allow_multiple',arguments[12]);xl('dbx_input_notification_email',arguments[13]);}if(xn){DropboxObj.zF=xn;}Fd(true);zn();xO(1);DoAPopup('create_dropbox_popup',800,1000);};function zM(elm){var xL;if(elm){if(xL=elm.options[elm.selectedIndex]){DropboxObj.yi=xL.value;}}zn();};function zn(){if(elm=document.getElementById('dbx_text_embeded')){vU='<script type="text/javascript">';vU+='var mf_dropbox_width='+DropboxObj.yi+';';if(DropboxObj.Fb>0)vU+='var mf_dropbox_extralines='+DropboxObj.Fb+';';vU+='var mf_dropbox_id="'+DropboxObj.zF+'";';vU+='</script><script type="text/javascript" src="http://www.mediafire.com/dropbox/dropbox.js"></script>';elm.value=vU;}else{aa(2,"Missing site compontents.");}if(elm=document.getElementById('dbx_preview_width')){if(DropboxObj.yi== -1)elm.style.width='100%';else elm.style.width=DropboxObj.yi+'px';}};function Ck(){Ch('/templates/upgrade/bulkdownload.html',800,450);};var im={};var lb;function Eh(CR,CQ,mJ,bPremiumOnPremium){av();im.CR=CR;im.CQ=CQ;im.mJ=mJ;if(bPremiumOnPremium)Ch('/templates/confirm/approvebandwidthlimitedbulkdownload.html',800,450);else Ch('/templates/confirm/approvebulkdownload.html',800,450);};function Ec(){var fr=document.getElementById('form_todolist1');var gw=document.getElementById('form_todolist2');var gN=document.getElementById('form_todotype');var fQ=document.getElementById('form_todoform');var BW=document.getElementById('form_todoconfirm');var xv=document.getElementById('form_todoparent');if(!fQ|| !gN|| !gw|| !fr|| !xv|| !BW){aa(2,"Missing site compontents");return;}fr.value=im.CR;gw.value=im.CQ;BW.value=1;gN.value=3;xv.value=im.mJ;fQ.submit();};function DownloadThisFolder(){if(!fu&& !hq){Ck();return;}if(eL==eU&&Number(qm)==1){aa(0,"Unable to create zip file from root folder.");return;}var aZipFiles=new Array(['2',eL]);var Cu=Dk(eL,1);if(Cu){aZipFiles=aZipFiles.concat(Cu);}Co(aZipFiles,'');};function DownloadThisGallery(){if(!fu&& !hq){Ck();return;}var aZipFiles=new Array(['2',eL]);var jF=false;var eh= -1;var Q;while(Q=es[++eh]){if(Q[4]==eL&&Q[1]==1&&Q[2]==1){aZipFiles[aZipFiles.length]=[Q[1],Q[3],Q[6]];jF=true;}}if(jF)return Co(aZipFiles,'');};function Dk(fj,hP){var DB=false;var gg=[];var jF=false;var eh= -1;var Q;while(Q=es[++eh]){if(Q[4]==fj&&Q[1]==2){if((DB=Dk(Q[3],(hP+1)))!=false){gg=gg.concat([[Q[1],Q[3],'0']],DB);}else{gg[gg.length]=[Q[1],Q[3],'0'];}jF=true;}else if(Q[4]==fj){gg[gg.length]=[Q[1],Q[3],Q[6]];jF=true;}}if(jF)return gg;return false;};function uv(aZipFiles){var gu='';var eh= -1;var Q;while(Q=aZipFiles[++eh]){gu+=Q[0]+':'+Q[1]+';';}return gu;};function Co(aZipFiles,bP){var EC=786432000;var wp=0;var Q,eh= -1;while(Q=aZipFiles[++eh]){if(Q[0]=='1')wp+=parseInt(Q[2]);if(wp>EC){lb={'aZipFiles':aZipFiles,'bP':bP};Ch('/templates/confirm/approvelargedownload.html',800,450);return;}}Ds(aZipFiles,bP);};function El(){Ds(lb.aZipFiles,lb.bP);};function Ds(aZipFiles,bP){var fr=document.getElementById('form_todolist1');var gw=document.getElementById('form_todolist2');var gN=document.getElementById('form_todotype');var fQ=document.getElementById('form_todoform');var BW=document.getElementById('form_todoconfirm');var xv=document.getElementById('form_todoparent');if(!fQ|| !gN|| !gw|| !fr|| !xv|| !BW){aa(2,"Missing site compontents");return;}BW.value=0;gN.value=3;xv.value=bP;gw.value='';fr.value=uv(aZipFiles);fQ.submit();};function Ek(){if(!fu&& !hq){Ck();return;}var bP='';var aZipFiles=[];var eR,ey,Cu;if(eL!=eU){for(var i=0;i<fa.length;i++){if(fa[i][1]==eL)bP=fa[i][0];}}if(!(fx>0)){aa(0,"You must select at least two items or one folder to zip using the check boxes to the right.");return;}var agree=confirm("Are you sure you want to zip "+fx+" objects?");if(agree){for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){aZipFiles[aZipFiles.length]=[ey[1],ey[3],ey[6]];if(ey[1]==2&&(Cu=Dk(ey[3],1))){aZipFiles=aZipFiles.concat(Cu);}}}if(aZipFiles.length){Co(aZipFiles,bP);}}};function Ga(){var bP='';var uu=[];var eR,ey,Cu;if(eL!=eU){for(var i=0;i<fa.length;i++){if(fa[i][1]==eL)bP=fa[i][0];}}if(!(fx>0)){aa(0,"You must select a folder or file to begin the download.");return;}var agree=confirm("Are you sure you want to download "+fx+" object"+(fx>1?'s':'')+" using the MediaFire Toolbar?");if(agree){for(var eu=1;eu<=eB&&eu<=eA&&(eu)<=(eA-(eE[er]*eB));eu++){eR=document.getElementById('filecheck'+eu);ey=es[eK[(eu-1)][0][1]];if(eR&&eR.checked==true&&ey){uu[uu.length]=[ey[1],ey[3],ey[6]];if(ey[1]==2&&(Cu=Dk(ey[3],1))){uu=uu.concat(Cu);}}}var gs=document.getElementById('form_toolbarlist');var fQ=document.getElementById('form_toolbarform');if(!fQ|| !gs){aa(2,"Missing site compontents");return;}gs.value=uv(uu);fQ.submit();aa(3,"Sending files to toolbar.");}};function wa(){var vN=false;var vP;var elm=document.getElementById('toolbarxml');if(elm){try{if(vP=elm.contentWindow.document.XMLDocument.getElementsByTagName('file_count'))if(vP.length>0)vN=true;}catch(e){};try{if(vP=elm.contentWindow.document.getElementsByTagName('file_count'))if(vP.length>0)vN=true;}catch(e){};}try{if(vN===true){aa(2,"Unable to communicate with toolbar. If this continues please contact support.");}}catch(e){};};function Fe(vU){var EZ=[];EZ[4]=[106];EZ[5]=[73,92,105,108,44,45,46,47,58,59,32];EZ[6]=[74,91,93,102,40,41];EZ[7]=[116];EZ[8]=[95,114,122,42];EZ[9]=[63,99,115,118,120,121];EZ[10]=[83,97,101,107,111,48,49,50,51,52,53,54,55,56,57,36];EZ[11]=[70,75,76,80,84,88,89,90,98,100,103,104,110,112,113,117];EZ[12]=[65,195,135,66,67,69,82,86];EZ[13]=[78,79,81,85,94,43,60,61,68,71,72];EZ[14]=[119];EZ[15]=[109];EZ[16]=[64,77,87];var Fj=4;var CZ=16;var wp=1;var Fi=vU.length;var Fa;var sV;var jF;for(var qy=0;qy<Fi;qy++){jF=false;sV=vU.charCodeAt(qy);for(var Fc=Fj;!jF&&Fc<=CZ;Fc++){for(var i=0;!jF&&i<EZ[Fc].length;i++){if(EZ[Fc][i]==sV){Fa=Fc;jF=true;}}}if(!jF)Fa=10.5;wp+=Fa;}return wp;};function Fd(Fg){if(!(DropboxObj.yi>0)){if(DropboxObj.Fb!=0){DropboxObj.Fb=0;if(!Fg)zn();}return;}var yb=document.getElementById('dbx_input_header');var ya=document.getElementById('dbx_input_greeting');var xZ=document.getElementById('dbx_input_completion');var oInput4=document.getElementById('dbx_input_width');if(!yb|| !ya|| !xZ|| !oInput4){aa(2,"Missing site compontents.");return;}var Fl,Fa;var Fb=0;var Ff=0;var lJ=DropboxObj.yi-20;Fa=Fe(yb.value);Fa*=1.04;Fb+=Math.floor(Fa/lJ);Fa=Fe(ya.value);Fa*=0.7;Fb+=Math.floor(Fa/lJ);Fa=Fe(xZ.value);Fa*=0.7;Ff+=Math.floor(Fa/lJ);if(Ff>Fb)Fb=Ff;if(DropboxObj.Fb!=Fb){DropboxObj.Fb=Fb;if(!Fg)zn();}};function FI(){var FA=new Date();var ez="/dynamic/myfileschanges.php?t="+Math.floor(FA.getTime()/1000);var iw=document.getElementById('myfileschangeswork');try{if(iw){if(iw.location){iw.location=ez;}else{iw.src=ez;}}}catch(e){alert(e);}};function FK(ob,rO){var hg;var FA=new Date();var Cq=FF();if(Cq&&rO=='UPLOAD'){vE=ob;return;}if(rO=='UPLOAD'){hg="A file was uploaded ";}else if(rO=='MOVE'){hg="A file was moved ";}else if(rO=='DELETION'){hg="A file was deleted ";}else{hg="There was a change to your files ";}var FG=Math.floor(FA.getTime()/1000)-vE;if((FG>20)&&(parseFloat(ob)>vE)){vE=ob;var FC=Math.floor(((FA.getTime()/1000)-ob)/60);if(FC==0){hg+="in the last minute. ";}else if(FC==1){hg+="1 minute ago. ";}else{hg+=FC+" minutes ago. ";}if(Cq){hg+='Would you like to refresh your browser as soon as your upload completes? <br /><a href="#" onclick="FJ(); av(); return false;">Yes</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="av(); return false;">No</a>';}else{hg+='Would you like to refresh your browser now? <br /><a href="#" onclick="myfilesReload(); return false;">Yes</a>&nbsp;&nbsp;&nbsp;&nbsp;<a href="#" onclick="av(); return false;">No</a>';}hg+='<span class="hide" id="change_message"></span>';try{if(vk>0)clearTimeout(vk);}catch(e){}aa(3,hg);vk=setTimeout(myfilesRefreshPageOnNoUserAction,60000);}};function Fz(){var FA=new Date();vE=Math.floor(FA.getTime()/1000);};function FF(){if(typeof MFUL!="undefined"){if(MFUL.aUploaders){for(var i=0;i<MFUL.aUploaders.length;i++){if(MFUL.aUploaders[i].Cq||MFUL.aUploaders[i].ri>0)return true;}}}return false;};function FJ(){MFUL.FE=function(){aa(3,'Refreshing your My Files page.');myfilesReload();};};function myfilesReload(){window.location=window.location;};function FH(){var elm,qZ;if(elm=document.getElementById('change_message')){while(elm=elm.parentNode){if(elm.style&&(elm.style.display=="none"||parseFloat(elm.style.opacity)==0||elm.style.visibility=="hidden")){return false;}}return true;}return false;};function myfilesRefreshPageOnNoUserAction(){if(!FF()&&FH()){aa(3,'Refreshing your My Files page.');window.location.reload();}};function wb(Q){function rN(arr){var qy=0;var vD;while(vD=arr[qy]){vD[1]++;qy++;}};rN(oe);oe=[Array(Q[3],0)].concat(oe);rN(kX);kX=[Array(String(Q[5]).toLowerCase(),0)].concat(kX);rN(kJ);kJ=[Array(Q[10],0)].concat(kJ);rN(ld);ld=[Array('0',0)].concat(ld);rN(ma);ma=[Array(Q[6],0)].concat(ma);es=[Q].concat(es);rN(fd);oO=String(parseInt(oO,10)+1);iQ=String(parseInt(iQ,10)+1);}function du(eu,mE,mF){var ib='';var gQ='';for(var eh=0;eh<5;eh++){if(eh>0)ib=eh;else ib='';var gQ=document.getElementById('sharedtabsfileinfo'+ib+eu+'-desc');if(gQ)gQ.innerHTML=mE.replace(/"/g,'&#34;');var gQ=document.getElementById('sharedtabsfileinfo'+ib+eu+'-tags');if(gQ)gQ.innerHTML=mF.replace(/"/g,'&#34;');}};function dL(nI){for(var eh=1;document.getElementById(nI+eh+'-1')&&eh<=20;eh++){ae('sharetabsfile'+eh+'-',1);ad(0,document.getElementById('sharetemplatefile'+eh),eh,'sharedtabsfileinfo'+eh+'-');}};function dT(gi,gK){var ky=document.getElementById('preview_img');if(ky){if(gi>4)gi=4;ky.src='http://www'+aX(gK)+'.mediafire.com/imgbnc.php/'+gK+gi+'g.jpg';}};function ad(jK,ml,eu,nN){if(!ml)return false;var gb="";gb=hU[jK];gb=cY(gb,nN,eu);ml.innerHTML=gb;};function ae(mC,hv){var ah;for(var eh=1;(ah=document.getElementById(mC+eh));eh++){if(eh==hv)ah.className="current";else ah.className="sharetab";}};function cW(gi,nD,gK,fo){var lS=document.getElementById('uploaded_html_'+nD+'41');var lQ=document.getElementById('uploaded_bbs_'+nD+'42');if(lS&&lQ){lS.value="<a href='http://www.mediafire.com/imageview.php?quickkey="+fo+"&thumb=4' target='_blank'><img src='http://www.mediafire.com/imgbnc.php/"+gK+gi+"g.jpg' border='0' alt='Unlimited Free Image and File Hosting at MediaFire'></a>";lQ.value="[URL=http://www.mediafire.com/imageview.php?quickkey="+fo+"&thumb=4][IMG]http://www"+aX(gK)+".mediafire.com/imgbnc.php/"+gK+gi+"g.jpg[/IMG][/URL]";}};function cY(ei,eO,eu){ei=ei.replace(/#FILENAME#/g,document.getElementById(eO+'fn').value);var qE="";var ag="";if(document.getElementById(eO+'desc').innerHTML==''){qE="<span style='color: #555'>No description entered</span>";ag="No description entered";}else{qE=document.getElementById(eO+'desc').innerHTML;ag=document.getElementById(eO+'desc').innerHTML;}ei=ei.replace(/#DESCRIPTION#/g,qE.replace(/"/g,'&#34;'));ei=ei.replace(/#DESCRIPTION_URL#/g,escape(ag));ei=ei.replace(/#DESCRIPTION_ORIG#/g,document.getElementById(eO+'desc').innerHTML.replace(/"/g,'&#34;'));ei=ei.replace(/#FILENUM#/g,eu);var sTags=document.getElementById(eO+'tags').innerHTML;sTags=sTags.replace(/&lt;/g,"\x3c");sTags=sTags.replace(/&gt;/g,'>');ei=ei.replace(/#TAGS_URL#/g,escape(sTags));ei=ei.replace(/#TAGS_DISP#/g,sTags);ei=ei.replace(/#IMGKEY#/g,document.getElementById(eO+'imgkey').value);ei=ei.replace(/#FILENAME#/g,document.getElementById(eO+'fn').value);ei=ei.replace(/#FILENAME_URL#/g,escape(document.getElementById(eO+'fn').value));ei=ei.replace(/#UPLOADDATE#/g,document.getElementById(eO+'upload').value);ei=ei.replace(/#FILESIZE#/g,document.getElementById(eO+'fs').value);ei=ei.replace(/#DOWNLOADS#/g,document.getElementById(eO+'dls').value);ei=ei.replace(/#TAGS#/g,document.getElementById(eO+'tagorig').value.replace(/"/g,'&#34;'));ei=ei.replace(/#RAND1#/g,aC(5));ei=ei.replace(/#FILENUM#/g,db(1000,3000));if(lB==1){ei=ei.replace(/#SSL#/g,'s');ei=ei.replace(/#URLKEY#/g,'');}else{ei=ei.replace(/#SSL#/g,'');var bS=aX(document.getElementById(eO+'imgkey').value);if(isNaN(bS)){ei=ei.replace(/#NOIMG_START#/g,'<!--');ei=ei.replace(/#NOIMG_END#/g,'-->');}ei=ei.replace(/#URLKEY#/g,bS);}var kg=document.getElementById(eO+'show_cantbrowse');if(!kg)ei=ei.replace(/#STYLE_CANTBROWSE#/g,'display: none');else if(kg&&kg.value==1)ei=ei.replace(/#STYLE_CANTBROWSE#/g,'');else ei=ei.replace(/#STYLE_CANTBROWSE#/g,'display: none');var lx=document.getElementById(eO+'show_owner');if(lx&&lx.value==1)ei=ei.replace(/#STYLE_SHOWOWNER#/g,'');else ei=ei.replace(/#STYLE_SHOWOWNER#/g,'display: none');var io=document.getElementById(eO+'show_download');if(io&&io.value==1)ei=ei.replace(/#STYLE_SHOWDOWNLOAD#/g,'');else ei=ei.replace(/#STYLE_SHOWDOWNLOAD#/g,'display: none');if(document.getElementById(eO+'folder').value==2){var mO=String(document.getElementById(eO+'qk').value);if(mO.length==13)ei=ei.replace(/#QUICKKEY#/g,mO);else ei=ei.replace(/#QUICKKEY#/g,'sharekey='+mO);}else ei=ei.replace(/#QUICKKEY#/g,document.getElementById(eO+'qk').value);if(document.getElementById(eO+'folder').value==1){ei=ei.replace(/#STYLE_FILEONLY#/g,'');ei=ei.replace(/#STYLE_NOTFILE#/g,'display: none');}else{ei=ei.replace(/#STYLE_FILEONLY#/g,'display: none');ei=ei.replace(/#STYLE_NOTFILE#/g,'');}if(document.getElementById(eO+'showpicture').value==1){ei=ei.replace(/#STYLE_PICTURE#/g,'');ei=ei.replace(/#STYLE_NOTPICTURE#/g,'display: none');}else{ei=ei.replace(/#STYLE_NOTPICTURE#/g,'');ei=ei.replace(/#STYLE_PICTURE#/g,'display: none');}if(document.getElementById(eO+'showpicturebox').value==1)ei=ei.replace(/#STYLE_PICTUREBOX#/g,'');else ei=ei.replace(/#STYLE_PICTUREBOX#/g,'display: none');var nG=document.getElementById(eO+'nonmyfiles');if(nG){if(document.getElementById(eO+'nonmyfiles').value==1)ei=ei.replace(/#STYLE_HIDENONMYFILES#/g,'display: none');else ei=ei.replace(/#STYLE_HIDENONMYFILES#/g,'');}if(document.getElementById(eO+'savemyfiles').value==0)ei=ei.replace(/#STYLE_SAVE#/g,'');else ei=ei.replace(/#STYLE_SAVE#/g,'display: none');if(document.getElementById(eO+'editinfo').value==1)ei=ei.replace(/#STYLE_EDITINFO#/g,'');else ei=ei.replace(/#STYLE_EDITINFO#/g,'display: none');var lf=document.getElementById(eO+'showviewimage');if(lf&&lf.value==1)ei=ei.replace(/#STYLE_VIEWIMAGE#/g,'');else ei=ei.replace(/#STYLE_VIEWIMAGE#/g,'display: none');if(UserLogin==1)ei=ei.replace(/#EMAILADDY#/g,UserEmail);else ei=ei.replace(/#EMAILADDY#/g,'');ei=ei.replace(/#NOIMG_START#/g,'');ei=ei.replace(/#NOIMG_END#/g,'');return ei;};function onABCommComplete(data){oPlaxoInsert=document.getElementById(sPlaxoInsert);if(data&&oPlaxoInsert){oPlaxoInsert.value='';for(eh=0;data[eh]&&eh<30;eh++){var nameAndEmail=data[eh][1];if(nameAndEmail.length>0){if(eh>0)oPlaxoInsert.value+=", ";oPlaxoInsert.value+=data[eh][1];}}}}var fS=0;var mk=0;var nF=0;var oG='';var oN='';var ov=10;var nb=10;function dk(){var ah;var currentTime=new Date();var month=currentTime.getMonth()+1;var day=currentTime.getDate();var year=currentTime.getFullYear();var hc='';var gP='';if(month<10)hc='0'+month;else hc=''+month;if(day<10)gP='0'+day;else gP=''+day;if((ah=document.getElementById('input_time_end')))ah.value=year+'-'+hc+'-'+gP;currentTime.setDate(currentTime.getDate()-7);month=currentTime.getMonth()+1;day=currentTime.getDate();year=currentTime.getFullYear();if(month<10)hc='0'+month;else hc=''+month;if(day<10)gP='0'+day;else gP=''+day;if((ah=document.getElementById('input_time_start')))ah.value=year+'-'+hc+'-'+gP;Calendar.setup({inputField:"input_time_end",ifFormat:"%Y-%m-%d",button:"input_time_end_trigger",weekNumbers:false,iy:bV});Calendar.setup({inputField:"input_time_start",ifFormat:"%Y-%m-%d",button:"input_time_start_trigger",weekNumbers:false,iy:bD});};function bM(){var eh=0;for(eh=2;eh<nb;eh++){nd('report_contents'+eh);DoHide('report_contents'+eh);}};function dj(kz,ij){var gz=document.getElementById(kz);if(gz){if(ij!=1)gz.innerHTML='';DoShow(kz);}if(!ij){DoAPopup('report_loading_popup',453,332);bf();document.getElementById('customize_report_form').submit();}else{var ah=document.getElementById('statswork');if(ah){if(ah.location)ah.location=ij;else ah.src=ij;}}};function bD(){var hD=document.getElementById('input_time_start');var hA=document.getElementById('time_start');if(hD&&hA){hA.value=hD.value+'';}};function bV(){var hD=document.getElementById('input_time_end');var hA=document.getElementById('time_end');if(hD&&hA){hA.value=hD.value+'';}};function ao(hg){var ah=document.getElementById('stats_status_message');if(ah){ah.className='show';ah.innerHTML=hg;if(document.getElementById('pagename')&&document.getElementById('pagename').value=='myfiles')aa(0,hg);}else aa(0,hg);};function bd(){var ah=document.getElementById('stats_status_message');if(ah){ah.className='hide';ah.innerHTML='';}};function aO(fV){var i=0;var ah;for(eh=1;document.getElementById('report_type_display_'+eh);eh++){ah=document.getElementById('report_type_display_'+eh);if(eh==fV){ah.className='report_option_highlighted';}else{ah.className='report_option';}}ah=document.getElementById('report_type_preview_image');if(ah)ah.src='/images/bg/stats/'+fV+'_preview.png';ah=document.getElementById('country');ah=document.getElementById('query_type');if(ah)ah.value=fV;fS=fV;bx(fS);ah=document.getElementById('form_bandwidth_filter');if(ah)if(fS==3)ah.className='hide';else ah.className='show';ah=document.getElementById('form_downloads_filter');if(ah)if(fS==3)ah.className='hide';else ah.className='show';ah=document.getElementById('form_bandwidth_filter_fields');if(ah)if(fS==3)ah.className='hide';else ah.className='show';ah=document.getElementById('form_downloads_filter_fields');if(ah)if(fS==3)ah.className='hide';else ah.className='show';};function aI(fV){ah=document.getElementById('report_type_preview_image');if(ah){if(fV!=mk)ah.src='/images/bg/stats/'+fV+'_preview.png';}mk=fV;};function aR(ja){var i=0;var ah;for(eh=1;document.getElementById('report_type_time_'+eh);eh++){ah=document.getElementById('report_type_time_'+eh);if(eh==ja){ah.className='time_option_highlighted';}else{ah.className='time_option';}}ah=document.getElementById('date_range');if(ah){if(ja==4){ah.className='show';}else{ah.className='hide';}}ah=document.getElementById('country');ah=document.getElementById('time_fixed');if(ah)ah.value=ja;nF=ja;};function ea(kI,nU,lJ,mz,kS,kM,mZ){if(!mZ){var chart=new FusionCharts(kI,nU,lJ,mz,"0","0");chart.setTransparent();chart.setDataURL(escape(kS));chart.render(kM);}else{var map=new FusionMaps(kI,"MapID",lJ,mz,"0","0");map.setTransparent();map.setDataURL(escape(kS));map.render(kM);}};function cz(kG){var ah=document.getElementById('country');var eh=0;var eq=false;if(ah&&hi){if(au(ah))at(ah);if(kG)eq=true;else eq=false;kP(ah,'Any','',eq);kP(ah,'United States','US',eq);hi.multiSort(1);for(eh=2;hi[eh];eh++){eq=false;if(hi[eh][1]==kG)eq=true;kP(ah,hi[eh][0],hi[eh][1],eq);}}else return false;return;};function cC(mx){var ah=document.getElementById('region');var eh=0;var eq=false;if(ah&&ht){if(au(ah))at(ah);if(mx)eq=true;else eq=false;kP(ah,'Any','',eq);for(eh=0;ht[eh];eh++){eq=false;if(ht[eh][1]==mx)eq=true;kP(ah,ht[eh][2],ht[eh][1],eq);}}else return false;return;};function qo(hl,fc,iV){var ah;var eq=false;ah=document.getElementById('bandwidth_type');if(ah){if(au(ah))at(ah);if(1==hl)eq=true;kP(ah,'Greater Than',1,eq);eq=false;if(2==hl)eq=true;kP(ah,'Less Than',2,eq);}eq=false;ah=document.getElementById('bandwidth_amount');if(ah){if(fc>0)ah.value=fc;else ah.value='';}eq=false;ah=document.getElementById('bandwidth_multi');if(ah){if(au(ah))at(ah);if(1==iV)eq=true;kP(ah,'B',1,eq);eq=false;if(2==iV)eq=true;kP(ah,'KB',2,eq);eq=false;if(3==iV)eq=true;kP(ah,'MB',3,eq);eq=false;if(4==iV)eq=true;kP(ah,'GB',4,eq);}eq=false;return;};function cy(lO,iS,lC,iU){var ah;var eq=false;ah=document.getElementById('filesize_min_amount');if(ah){if(lO>0)ah.value=lO;else ah.value='';}ah=document.getElementById('filesize_min_multi');if(ah){if(au(ah))at(ah);if(1==iS)eq=true;kP(ah,'B',1,eq);eq=false;if(2==iS)eq=true;kP(ah,'KB',2,eq);eq=false;if(3==iS)eq=true;kP(ah,'MB',3,eq);eq=false;if(4==iS)eq=true;kP(ah,'GB',4,eq);}eq=false;ah=document.getElementById('filesize_max_amount');if(ah){if(lC>0)ah.value=lC;else ah.value='';}ah=document.getElementById('filesize_max_multi');if(ah){if(au(ah))at(ah);if(1==iU)eq=true;kP(ah,'B',1,eq);eq=false;if(2==iU)eq=true;kP(ah,'KB',2,eq);eq=false;if(3==iU)eq=true;kP(ah,'MB',3,eq);eq=false;if(4==iU)eq=true;kP(ah,'GB',4,eq);}eq=false;return;};function bz(mr){ah=document.getElementById('fileext');if(ah){if(mr)ah.value=mr;else ah.value='';}else return false;return;};function cA(hl,fc){var ah;var eq=false;ah=document.getElementById('download_type');if(ah){if(au(ah))at(ah);if(1==hl)eq=true;kP(ah,'Greater Than',1,eq);eq=false;if(2==hl)eq=true;kP(ah,'Less Than',2,eq);}eq=false;ah=document.getElementById('download_amount');if(ah){if(fc>0)ah.value=fc;else ah.value='';}eq=false;return;};function bx(fV,fk,mh){var ah;var eq=false;ah=document.getElementById('sort_dir');if(ah){if(au(ah))at(ah);if(1==mh)eq=true;kP(ah,'Descending',1,eq);eq=false;if(2==mh)eq=true;kP(ah,'Ascending',2,eq);eq=false;}ah=document.getElementById('sort_field');if(ah){if(au(ah))at(ah);switch(fV){case '1':case 1:eq=false;if(1==fk)eq=true;kP(ah,'Downloaders',1,eq);eq=false;if(2==fk)eq=true;kP(ah,'Bandwidth',2,eq);eq=false;if(3==fk)eq=true;kP(ah,'Transfers',3,eq);eq=false;if(4==fk)eq=true;kP(ah,'File Name',4,eq);eq=false;break;if(5==fk)eq=true;kP(ah,'File Size',5,eq);eq=false;break;case '2':case 2:eq=false;if(1==fk)eq=true;kP(ah,'Downloaders',1,eq);eq=false;if(2==fk)eq=true;kP(ah,'Bandwidth',2,eq);eq=false;if(3==fk)eq=true;kP(ah,'Avg. File Size',3,eq);eq=false;if(4==fk)eq=true;kP(ah,'Country',4,eq);eq=false;break;case '3':case 3:eq=false;if(1==fk)eq=true;kP(ah,'Hits',1,eq);eq=false;if(2==fk)eq=true;kP(ah,'Avg. File Size',3,eq);eq=false;if(3==fk)eq=true;kP(ah,'Domain',4,eq);eq=false;break;case '4':case 4:eq=false;if(1==fk)eq=true;kP(ah,'Downloaders',1,eq);eq=false;if(2==fk)eq=true;kP(ah,'Bandwidth',2,eq);eq=false;if(3==fk)eq=true;kP(ah,'Avg. File Size',3,eq);eq=false;if(4==fk)eq=true;kP(ah,'File Type',4,eq);eq=false;break;default:return false;break;}}return;};function cB(fc){var ah;var eq=false;ah=document.getElementById('num_rows');if(ah){if(!(fc>0))fc=10;if(au(ah))at(ah);if(10==fc)eq=true;kP(ah,'10',10,eq);eq=false;if(20==fc)eq=true;kP(ah,'20',20,eq);eq=false;if(35==fc)eq=true;kP(ah,'35',35,eq);eq=false;if(50==fc)eq=true;kP(ah,'50',50,eq);}return;};function cg(){cz();cC();qo();cy();cA();cB();bx(fS);bz();};function dB(){var kB=document.getElementById('save_report_name');if(kB){kB.value='';DoShow('save_report_form');DoHide('save_report_busy');DoAPopup('save_stats_popup',500,500);}};function dY(){var jI=document.getElementById('saved_reports_list');var eY=document.getElementById('statswork');var ez='';if(jI&&eY){if(au(jI))at(jI);DoHide('load_report_form');DoShow('load_report_busy');DoAPopup('load_stats_popup',500,500);ez='/dynamic/statistics.php?doviaget=1&report_list=1';if(eY.location)eY.location=ez;else eY.src=ez;}};function dJ(kb){var eY=document.getElementById('statswork');var ez='';if(eY){DoHide('load_report_form');DoShow('load_report_busy');ez='/dynamic/statistics.php?doviaget=1&load_report='+kb;if(eY.location)eY.location=ez;else eY.src=ez;}return false;};function dK(kb){var eY=document.getElementById('statswork');var ez='';if(eY){DoHide('load_report_form');DoShow('load_report_busy');ez='/dynamic/statistics.php?doviaget=1&delete_report='+kb;if(eY.location)eY.location=ez;else eY.src=ez;}return false;};function dr(){var fI=document.getElementById('save_report_name');var eY=document.getElementById('statswork');var ez='';var ah;if(fI&&eY){if(fI.value.length>=1&&fI.value.length<=60){DoHide('save_report_form');DoShow('save_report_busy');ez='/dynamic/statistics.php?doviaget=1&save_report=1&report_name='+escape(fI.value);if((ah=document.getElementById('query_type'))&&ah.value){ez+='&'+'query_type='+escape(ah.value);}if((ah=document.getElementById('time_fixed'))&&ah.value){ez+='&'+'time_fixed='+escape(ah.value);}if((ah=document.getElementById('time_start'))&&ah.value){ez+='&'+'time_start='+escape(ah.value);}if((ah=document.getElementById('time_end'))&&ah.value){ez+='&'+'time_end='+escape(ah.value);}if((ah=document.getElementById('country'))&&ah.value){ez+='&'+'country='+escape(ah.value);}if((ah=document.getElementById('region'))&&ah.value){ez+='&'+'region='+escape(ah.value);}if((ah=document.getElementById('filesize_min_amount'))&&ah.value){ez+='&'+'filesize_min_amount='+escape(ah.value);}if((ah=document.getElementById('filesize_max_amount'))&&ah.value){ez+='&'+'filesize_max_amount='+escape(ah.value);}if((ah=document.getElementById('filesize_min_multi'))&&ah.value){ez+='&'+'filesize_min_multi='+escape(ah.value);}if((ah=document.getElementById('filesize_max_multi'))&&ah.value){ez+='&'+'filesize_max_multi='+escape(ah.value);}if((ah=document.getElementById('sort_field'))&&ah.value){ez+='&'+'sort_field='+escape(ah.value);}if((ah=document.getElementById('sort_dir'))&&ah.value){ez+='&'+'sort_dir='+escape(ah.value);}if((ah=document.getElementById('fileext'))&&ah.value){ez+='&'+'fileext='+escape(ah.value);}if((ah=document.getElementById('bandwidth_type'))&&ah.value){ez+='&'+'bandwidth_type='+escape(ah.value);}if((ah=document.getElementById('bandwidth_amount'))&&ah.value){ez+='&'+'bandwidth_amount='+escape(ah.value);}if((ah=document.getElementById('bandwidth_multi'))&&ah.value){ez+='&'+'bandwidth_multi='+escape(ah.value);}if((ah=document.getElementById('download_type'))&&ah.value){ez+='&'+'download_type='+escape(ah.value);}if((ah=document.getElementById('download_amount'))&&ah.value){ez+='&'+'download_amount='+escape(ah.value);}if(eY.location)eY.location=ez;else eY.src=ez;}else{aa(0,"Enter a report name before saving the report.");}}else{aa(0,"Unable to save report, malformed HTML.");}}function addwarning(){var thealinks=document.getElementsByTagName("a");if(!thealinks){return;}for(var x=0;x!=thealinks.length;x++){if(thealinks[x].className=="addToolTip"){thealinks[x].setAttribute("tooltiptext",thealinks[x].title);thealinks[x].removeAttribute("title");thealinks[x].onmouseover=function ed(){eb(this.getAttribute("tooltiptext"))};thealinks[x].onmouseout=function ec(){di();};}}};var offsetfromcursorX= -7;var offsetfromcursorY=23;var offsetdivfrompointerX=13;var offsetdivfrompointerY=13;document.write('<div id="theToolTip"></div>');var ie=document.all;var ns6=document.getElementById&& !document.all;var enabletip=false;if(ie||ns6){var tipobj=document.all?document.all["theToolTip"]:document.getElementById?document.getElementById("theToolTip"):"";}var pointerobj=document.all?document.all["ToolTipPointer"]:document.getElementById?document.getElementById("ToolTipPointer"):"";function ietruebody(){return(document.compatMode&&document.compatMode!="BackCompat")?document.documentElement:document.body;};function eb(thetext,thewidth,thecolor){if(ns6||ie){if(typeof thewidth!=="undefined"){tipobj.style.width=thewidth+"px";}if(typeof thecolor!=="undefined"&&thecolor!==""){tipobj.style.backgroundColor=thecolor;}tipobj.innerHTML=thetext;enabletip=true;return false;}};function positiontip(e){if(enabletip){var nondefaultpos=false;var curX=(ns6)?e.pageX:event.clientX+ietruebody().scrollLeft;var curY=(ns6)?e.pageY:event.clientY+ietruebody().scrollTop;var winwidth=ie&& !window.opera?ietruebody().clientWidth:window.innerWidth-20;var winheight=ie&& !window.opera?ietruebody().clientHeight:window.innerHeight-20;var rightedge=ie&& !window.opera?winwidth-event.clientX-offsetfromcursorX:winwidth-e.clientX-offsetfromcursorX;var bottomedge=ie&& !window.opera?winheight-event.clientY-offsetfromcursorY:winheight-e.clientY-offsetfromcursorY;var leftedge=(offsetfromcursorX<0)?offsetfromcursorX*(-1): -1000;if(rightedge<tipobj.offsetWidth){tipobj.style.left=curX-tipobj.offsetWidth+"px";nondefaultpos=true;}else if(curX<leftedge){tipobj.style.left="5px";}else{tipobj.style.left=curX+offsetfromcursorX-offsetdivfrompointerX+"px";pointerobj.style.left=curX+offsetfromcursorX+"px";}if(bottomedge<tipobj.offsetHeight){tipobj.style.top=curY-tipobj.offsetHeight-offsetfromcursorY+"px";nondefaultpos=true;}else{tipobj.style.top=curY+offsetfromcursorY+offsetdivfrompointerY+"px";pointerobj.style.top=curY+offsetfromcursorY+"px";}tipobj.style.visibility="visible";if(!nondefaultpos){pointerobj.style.visibility="visible";}else{pointerobj.style.visibility="hidden";}}};function di(){if(ns6||ie){enabletip=false;tipobj.style.visibility="hidden";pointerobj.style.visibility="hidden";tipobj.style.left="-1000px";tipobj.style.backgroundColor='';tipobj.style.width='';}};function df(){document.onmousemove=positiontip;addwarning();return;}function ee(){title="MediaFire - File Hosting Made Simple";url="http://www.mediafire.com";if(window.sidebar){window.sidebar.addPanel(title,url,"");}else if(window.external){window.external.AddFavorite(url,title);}else if(window.opera&&window.print){alert("Sorry, your web browser does not support automatically adding Bookmarks/Favorites.  Press 'Ctrl-D' in Firefox or 'Ctrl-T' in Opera to manually bookmark MediaFire.");return true;}}// Simple Set Clipboard System
// Author: Joseph Huckaby
// Modified 04-21-2009 to support fixed positioning

var ZeroClipboard = {

	version: "1.0.4",
	clients: {}, // registered upload clients on page, indexed by id
	moviePath: '/js/zeroclipboard/ZeroClipboard.swf', // URL to movie
	nextId: 1, // ID of next movie

	$: function(thingy) {
		// simple DOM lookup utility function
		if (typeof(thingy) == 'string') thingy = document.getElementById(thingy);
		if (!thingy.addClass) {
			// extend element with a few useful methods
			thingy.hide = function() { this.style.display = 'none'; };
			thingy.show = function() { this.style.display = ''; };
			thingy.addClass = function(name) { this.removeClass(name); this.className += ' ' + name; };
			thingy.removeClass = function(name) {
				this.className = this.className.replace( new RegExp("\\s*" + name + "\\s*"), " ").replace(/^\s+/, '').replace(/\s+$/, '');
			};
			thingy.hasClass = function(name) {
				return !!this.className.match( new RegExp("\\s*" + name + "\\s*") );
			}
		}
		return thingy;
	},

	setMoviePath: function(path) {
		// set path to ZeroClipboard.swf
		this.moviePath = path;
	},

	dispatch: function(id, eventName, args) {
		// receive event from flash movie, send to client
		var client = this.clients[id];
		if (client) {
			client.receiveEvent(eventName, args);
		}
	},

	register: function(id, client) {
		// register new client to receive events
		this.clients[id] = client;
	},

	getDOMObjectPosition: function(obj) {
		// get absolute coordinates for dom element
		var info = {
			left: 0,
			top: 0,
			width: obj.width ? obj.width : obj.offsetWidth,
			height: obj.height ? obj.height : obj.offsetHeight
		};

		info.left += obj.offsetLeft;
		info.top += obj.offsetTop;
		do {
			obj = obj.offsetParent;
			info.left += obj.offsetLeft;
			info.top += obj.offsetTop;
		} while (obj.offsetParent&&obj.style.position!="absolute"&&obj.style.position!="fixed");
		switch(obj.style.position){
			case "fixed":
			info.position = "fixed";
			break;
			default:
			info.position = "absolute";
			break;
		}

		return info;
	},

	Client: function(elem) {
		// constructor for new simple upload client
		this.handlers = {};

		// unique ID
		this.id = ZeroClipboard.nextId++;
		this.movieId = 'ZeroClipboardMovie_' + this.id;

		// register client with singleton to receive flash events
		ZeroClipboard.register(this.id, this);

		// create movie
		if (elem) this.glue(elem);
	}
};

ZeroClipboard.Client.prototype = {

	id: 0, // unique ID for us
	ready: false, // whether movie is ready to receive events or not
	movie: null, // reference to movie object
	clipText: '', // text to copy to clipboard
	handCursorEnabled: true, // whether to show hand cursor, or default pointer cursor
	cssEffects: true, // enable CSS mouse effects on dom container
	handlers: null, // user event handlers

	glue: function(elem) {
		function getZindex(oElm) {
			if(oElm){
				if(oElm.style.zIndex) {
					return oElm.style.zIndex;
				}
				while(oElm = oElm.parentNode){
					if(oElm.style && oElm.style.zIndex) {
						return oElm.style.zIndex;
					}
				}
			}
			return false;
		}
		// glue to DOM element
		// elem can be ID or actual DOM element object
		this.domElement = ZeroClipboard.$(elem);

		// float just above object, or zIndex 1001 if dom element isn't set
		var zIndex = 1001;
		/* This doesn't work in all cases as zIndex can be set in a parent element  Herbert 20091111
		if (this.domElement.style.zIndex) {
			zIndex = parseInt(this.domElement.style.zIndex) + 1;
		} */

		// This works for popups  Herbert 20091111
		var iTestIndex;
		if(iTestIndex = getZindex(this.domElement)){ 
			zIndex = iTestIndex;
		}

		// find X/Y position of domElement
		var box = ZeroClipboard.getDOMObjectPosition(this.domElement);

		// create floating DIV above element
		this.div = document.createElement('div');
		var style = this.div.style;
		style.position = box.position;
		style.left = '' + box.left + 'px';
		style.top = '' + box.top + 'px';
		style.width = '' + box.width + 'px';
		style.height = '' + box.height + 'px';
		style.zIndex = zIndex;

		// style.backgroundColor = '#f00'; // debug

		var body = document.getElementsByTagName('body')[0];
		body.appendChild(this.div);

		this.div.innerHTML = this.getHTML( box.width, box.height );
	},

	getHTML: function(width, height) {
		// return HTML for movie
		var html = '';
		var flashvars = 'id=' + this.id +
			'&width=' + width +
			'&height=' + height;

		if (navigator.userAgent.match(/MSIE/)) {
			// IE gets an OBJECT tag
			var protocol = location.href.match(/^https/i) ? 'https://' : 'http://';
			html += '<object classid="clsid:d27cdb6e-ae6d-11cf-96b8-444553540000" codebase="'+protocol+'download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=9,0,0,0" width="'+width+'" height="'+height+'" id="'+this.movieId+'" align="middle"><param name="allowScriptAccess" value="always" /><param name="allowFullScreen" value="false" /><param name="movie" value="'+ZeroClipboard.moviePath+'" /><param name="loop" value="false" /><param name="menu" value="false" /><param name="quality" value="best" /><param name="bgcolor" value="#ffffff" /><param name="flashvars" value="'+flashvars+'"/><param name="wmode" value="transparent"/></object>';
		}
		else {
			// all other browsers get an EMBED tag
			html += '<embed id="'+this.movieId+'" src="'+ZeroClipboard.moviePath+'" loop="false" menu="false" quality="best" bgcolor="#ffffff" width="'+width+'" height="'+height+'" name="'+this.movieId+'" align="middle" allowScriptAccess="always" allowFullScreen="false" scale="noScale" type="application/x-shockwave-flash" pluginspage="http://www.macromedia.com/go/getflashplayer" flashvars="'+flashvars+'" wmode="transparent" />';
		}
		return html;
	},

	hide: function() {
		// temporarily hide floater offscreen
		if (this.div) {
			this.div.style.left = '-2000px';
		}
	},

	show: function() {
		// show ourselves after a call to hide()
		this.reposition();
	},

	destroy: function() {
		// destroy control and floater
		if (this.domElement && this.div) {
			this.hide();
			this.div.innerHTML = '';

			var body = document.getElementsByTagName('body')[0];
			try { body.removeChild( this.div ); } catch(e) {;}

			this.domElement = null;
			this.div = null;
		}
	},

	reposition: function(elem) {
		// reposition our floating div, optionally to new container
		// warning: container CANNOT change size, only position
		if (elem) {
			this.domElement = ZeroClipboard.$(elem);
			if (!this.domElement) this.hide();
		}

		if (this.domElement && this.div) {
			var box = ZeroClipboard.getDOMObjectPosition(this.domElement);
			var style = this.div.style;
			style.left = '' + box.left + 'px';
			style.top = '' + box.top + 'px';
//			style.position = box.position;
		}
	},

	setText: function(newText) {
		// set text to be copied to clipboard
		this.clipText = newText;
		if (this.ready) this.movie.setText(newText);
	},

	addEventListener: function(eventName, func) {
		// add user event listener for event
		// event types: load, queueStart, fileStart, fileComplete, queueComplete, progress, error, cancel
		eventName = eventName.toString().toLowerCase().replace(/^on/, '');
		if (!this.handlers[eventName]) this.handlers[eventName] = [];
		this.handlers[eventName].push(func);
	},

	setHandCursor: function(enabled) {
		// enable hand cursor (true), or default arrow cursor (false)
		this.handCursorEnabled = enabled;
		if (this.ready) this.movie.setHandCursor(enabled);
	},

	setCSSEffects: function(enabled) {
		// enable or disable CSS effects on DOM container
		this.cssEffects = !!enabled;
	},

	receiveEvent: function(eventName, args) {
		// receive event from flash
		eventName = eventName.toString().toLowerCase().replace(/^on/, '');

		// special behavior for certain events
		switch (eventName) {
			case 'load':
				// movie claims it is ready, but in IE this isn't always the case...
				// bug fix: Cannot extend EMBED DOM elements in Firefox, must use traditional function
				this.movie = document.getElementById(this.movieId);
				if (!this.movie) {
					var self = this;
					setTimeout( function() { self.receiveEvent('load', null); }, 1 );
					return;
				}

				// firefox on pc needs a "kick" in order to set these in certain cases
				if (!this.ready && navigator.userAgent.match(/Firefox/) && navigator.userAgent.match(/Windows/)) {
					var self = this;
					setTimeout( function() { self.receiveEvent('load', null); }, 100 );
					this.ready = true;
					return;
				}

				this.ready = true;
				this.movie.setText( this.clipText );
				this.movie.setHandCursor( this.handCursorEnabled );
				break;

			case 'mouseover':
				if (this.domElement && this.cssEffects) {
					this.domElement.addClass('hover');
					if (this.recoverActive) this.domElement.addClass('active');
				}
				break;

			case 'mouseout':
				if (this.domElement && this.cssEffects) {
					this.recoverActive = false;
					if (this.domElement.hasClass('active')) {
						this.domElement.removeClass('active');
						this.recoverActive = true;
					}
					this.domElement.removeClass('hover');
				}
				break;

			case 'mousedown':
				if (this.domElement && this.cssEffects) {
					this.domElement.addClass('active');
				}
				break;

			case 'mouseup':
				if (this.domElement && this.cssEffects) {
					this.domElement.removeClass('active');
					this.recoverActive = false;
					ClipBoardClick();
				}
				break;
		} // switch eventName

		if (this.handlers[eventName]) {
			for (var idx = 0, len = this.handlers[eventName].length; idx < len; idx++) {
				var func = this.handlers[eventName][idx];

				if (typeof(func) == 'function') {
					// actual function reference
					func(this, args);
				}
				else if ((typeof(func) == 'object') && (func.length == 2)) {
					// PHP style object + method, i.e. [myObject, 'myMethod']
					func[0][ func[1] ](this, args);
				}
				else if (typeof(func) == 'string') {
					// name of function
					window[func](this, args);
				}
			} // foreach event handler defined
		} // user defined handler for event
	}

};
 function registerNamespaces(){for(var i=0;i<arguments.length;i++){var astrParts=arguments[i].split(".");var root=window;for(var j=0;j<astrParts.length;j++){if(!root[astrParts[j]]){root[astrParts[j]]=new Object()}root=root[astrParts[j]]}}}registerNamespaces("Plaxo.Util");Plaxo.Util.Timer={timers:{},startTimer:function(id){if(!this.enabled)return;this.timers.id=new Date().getTime()},getElapsedTime:function(id){if(!this.enabled)return;var start=this.timers.id;if(!start){alert('Unknown timer: '+id)}return new Date().getTime()-start},alertElapsedTime:function(id){if(!this.enabled)return;alert('Elapsed time for "'+id+'": '+this.getElapsedTime(id))},enabled:true,setTimersEnabled:function(state){this.enabled=state}};Plaxo.Util.Looper={doLoop:function(list,func,doneFunc,loopSize,start){if(!loopSize)loopSize=500;if(!start)start=0;var max=start+loopSize;var lastLoop=false;if(max>list.length){max=list.length;lastLoop=true}for(var i=start;i<max;i++){func(list,i)}if(lastLoop){if(doneFunc)doneFunc()}else{setTimeout(function(){Plaxo.Util.Looper.doLoop(list,func,doneFunc,loopSize,max)},0)}}};registerNamespaces("Plaxo.Form");Plaxo.Form={getSelectValue:function(sel){if(!sel)return null;if(!sel.options)return sel.value;return sel.options[sel.selectedIndex].value},focusFirstVisibleFormElem:function(f,findFirstBlankField){for(var i=0;i<f.length;i++){var el=f.elements[i];if(el.type!='hidden'&&el.style.display!='none'&&(!findFirstBlankField||el.value.length==0)&&el.focus){el.focus();break}}}};registerNamespaces("Plaxo.String");Plaxo.String={contains:function(whole,part){return whole.indexOf(part)!=-1},alnumChars:"ABCDEFGHIJKLMNOPQRSTUVWXYZabcdefghijklmnopqrstuvwxyz0123456789_",isalnum:function(ch){return this.contains(this.alnumChars,ch)},otherSafeEmailChars:".-+=",findBoundary:function(s,start,forward){if(forward){for(var i=start;i<s.length;i++){var ch=s.charAt(i);if(!Plaxo.String.isalnum(ch)&&!this.contains(this.otherSafeEmailChars,ch)){return i-1}}return s.length-1}else{for(var i=start-1;i>=0;i--){var ch=s.charAt(i);if(!Plaxo.String.isalnum(ch)&&!this.contains(this.otherSafeEmailChars,ch)){return i+1}}return 0}},removeDups:function(strs,ignoreCase){var uniqueStrs=[];var oldStrs={};for(var i=0;i<strs.length;i++){var s=strs[i];if(ignoreCase)s=s.toLowerCase();if(!oldStrs[s]){uniqueStrs.push(strs[i]);oldStrs[s]=1}}return uniqueStrs}};registerNamespaces("Plaxo.Debug");Plaxo.Debug={logLevel:0,assert:function(expr,msg){if(!expr){if(!msg)msg='unk';throw new Error('Assertion failed: '+msg)}},error:function(msg){if(this.logLevel<1)return;alert(msg);msg=this.format(msg,1);if(this.dumpEnabled)dump(msg)},warning:function(msg){if(this.logLevel<2)return;msg=this.format(msg,2);if(this.dumpEnabled)dump(msg);else alert(msg)},trace:function(msg){if(this.logLevel<3)return;msg=this.format(msg,3);if(this.dumpEnabled)dump(msg);else window.status=msg},format:function(msg,level){var d=new Date();return level+'|'+d.toLocaleTimeString()+'.'+d.getMilliseconds()+'|'+msg+'\n'},dumpEnabled:false,initialize:function(){var PREFS_CID="@mozilla.org/preferences;1";var PREFS_I_PREF="nsIPref";var PREF_STRING="browser.dom.window.dump.enabled";try{var Pref=new Components.Constructor(PREFS_CID,PREFS_I_PREF);var pref=new Pref();pref.SetBoolPref(PREF_STRING,true);this.dumpEnabled=true}catch(e){if(typeof(dump)!='undefined'){this.dumpEnabled=true}}}};Plaxo.Debug.initialize();function Array_push(){var A_p=0;for(A_p=0;A_p<arguments.length;A_p++){this[this.length]=arguments[A_p]}return this.length};function Array_pop(){var response=this[this.length-1];this.length--;return response};function Array_unshift(){this.reverse();for(var i=arguments.length-1;i>=0;i--)this[this.length]=arguments[i];this.reverse();return this.length}if(typeof(Array.prototype.unshift)=="undefined"){Array.prototype.unshift=Array_unshift}if(typeof(Array.prototype.pop)=="undefined"){Array.prototype.pop=Array_pop}if(typeof Array.prototype.push=="undefined"){Array.prototype.push=Array_push};function isWhitespace(c){return c==' '||c=='\t'||c=='\r'||c=='\n'};function String_trim(trimset){if(this.length==0)return this;if(!trimset)trimset=" \t\r\n";var start=0;while(start<this.length&&trimset.indexOf(this.charAt(start))!=-1)start++;var end=this.length-1;while(end>start&&trimset.indexOf(this.charAt(end))!=-1)end--;if(start>0||end<this.length-1){return this.substring(start,end+1)}else return this}if(typeof String.prototype.trim=="undefined"){String.prototype.trim=String_trim};function String_endsWith(s){if(!s)return true;if(s.length>this.length)return false;var start=this.length-s.length;for(var i=0;i<s.length;i++){if(s.charAt(i)!=this.charAt(start+i)){return false}}return true}if(typeof String.prototype.endsWith=="undefined"){String.prototype.endsWith=String_endsWith} function inherits(child,parent){if(typeof parent.prototype=='function'){inherits(child,parent.prototype)}for(var method in parent.prototype){if(method=='prototype'){continue}child[method]=parent.prototype[method]}};function sprintf(){if(!arguments||arguments.length<1||!RegExp){return}var str=arguments[0];var re=/([^%]*)%('.|0|\x20)?(-)?(\d+)?(\.\d+)?(%|b|c|d|u|f|o|s|x|X)(.*)/; //'
	var a = b = [], numSubstitutions = 0, numMatches = 0;
	while (a = re.exec(str)) {
		var leftpart = a[1], pPad = a[2], pJustify = a[3], pMinLength = a[4];
		var pPrecision = a[5], pType = a[6], rightPart = a[7];

		
		numMatches++;
		if (pType == '%') {
			subst = '%';
		} else {
			numSubstitutions++;
			if (numSubstitutions >= arguments.length) {
				alert('Error! Not enough function arguments (' + (arguments.length - 1) + ', excluding the string)\nfor the number of substitution parameters in string (' + numSubstitutions + ' so far).');
			}
			var param = arguments[numSubstitutions];
			var pad = '';
			if (pPad && pPad.substr(0,1) == "'") pad = leftpart.substr(1,1);
			else if (pPad) pad = pPad;
			var justifyRight = true;
			if (pJustify && pJustify === "-") justifyRight = false;
			var minLength = -1;
			if (pMinLength) minLength = parseInt(pMinLength);
			var precision = -1;
			if (pPrecision && pType == 'f') precision = parseInt(pPrecision.substring(1));
			var subst = param;
			if (pType == 'b') subst = parseInt(param).toString(2);
			else if (pType == 'c') subst = String.fromCharCode(parseInt(param));
			else if (pType == 'd') subst = parseInt(param) ? parseInt(param) : 0;
			else if (pType == 'u') subst = Math.abs(param);
			else if (pType == 'f') subst = (precision > -1) ? Math.round(parseFloat(param) * Math.pow(10, precision)) / Math.pow(10,precision):parseFloat(param);else if(pType=='o')subst=parseInt(param).toString(8);else if(pType=='s')subst=param;else if(pType=='x')subst=(''+parseInt(param).toString(16)).toLowerCase();else if(pType=='X')subst=(''+parseInt(param).toString(16)).toUpperCase()}str=leftpart+subst+rightPart}return str};function popup(url,title,width,height){var numArgs=arguments.length;var ht;var windowObj;var windowParams=(numArgs>4)?arguments[4]:'statusbar=no,menubar=no,toolbar=no,scrollbars=yes,resizable=yes,top=0';var isOffset=(numArgs>7)?arguments[7]:false;var offset;if(numArgs>5){if(isOffset){offset=(window.screenY)?window.screenY:self.screenTop;offset=(offset)?offset:0}else{offset=0}offset+=arguments[5];windowParams+=(windowParams)?',':'';windowParams+='top='+offset+',screenY='+offset}else{windowParams+='top=0,screenY=0'}if(numArgs>6){if(isOffset){offset=(window.screenX)?window.screenX:self.screenLeft;offset=(offset)?offset:0}else{offset=0}offset+=arguments[6];windowParams+=',left='+offset+',screenX='+offset}if(screen.height){ht=screen.height}else if(window.document.body.clientHeight){ht=window.document.body.clientHeight}else if(window.innerHeight){ht=window.innerHeight}else if(document.documentElement.clientHeight){ht=document.documentElement.clientHeight}else{ht=580}if((height!=0)&&(height>ht)){height=ht}if(height!=0&&width!=0){windowParams+=',height='+height+',width='+width}else if(width!=0){windowParams+=',width='+width}windowObj=window.open(url,title,windowParams,false);if(windowObj){windowObj.focus()}return windowObj};function plx_Browser(){var d=document;this.agt=navigator.userAgent.toLowerCase();this.major=parseInt(navigator.appVersion);this.dom=(d.getElementById)?1:0;this.ns=(d.layers);this.ns4up=(this.ns&&this.major>=4);this.ns4=((navigator.appName=="Netscape")&&(parseInt(navigator.appVersion)==4));this.ns6=(this.dom&&navigator.appName=="Netscape");this.op=this.agt.indexOf('opera')!=-1;this.ie=(d.all);this.ie4=(d.all&&!this.dom)?1:0;this.ie4up=(this.ie&&this.major>=4);this.ie5=(d.all&&this.dom);this.win=((this.agt.indexOf("win")!=-1)||(this.agt.indexOf("16bit")!=-1));this.mac=(this.agt.indexOf("mac")!=-1);this.gecko=(this.agt.indexOf("gecko")!=-1);this.safari=(this.agt.indexOf("safari")!=-1);this.sp2=(this.agt.indexOf('sv1')!=-1)}var brz=new plx_Browser(); registerNamespaces("Plaxo");Plaxo.Util.Timer.setTimersEnabled(false);Plaxo.byId=function(elem){if(typeof elem=='string'){elem=document.getElementById(elem)}return elem};Plaxo.Class={create:function(){return function(){this.initialize.apply(this,arguments)}}};Plaxo.ABLauncher=Plaxo.Class.create();Plaxo.ABLauncher.prototype={initialize:function(){Plaxo.Debug.trace('initializing');this.name="Plaxo.ABLauncher 1.0";this.abWin=null;this.textArea=null;this.currentEmails={}},dialogWidth:460,dialogHeight:480,toQueryString:function(options){var queryComponents=[];for(key in options){if(typeof options[key]=='function')continue;var queryComponent=encodeURIComponent(key)+'='+encodeURIComponent(options[key]);queryComponents.push(queryComponent)}return queryComponents.join('&')},showABChooser:function(textArea,plaxoHost,callbackPage,extraOptions){this.textArea=Plaxo.byId(textArea);if(!this.textArea){Plaxo.Debug.error("can't find text area -> aborting");return}this.currentEmails={};this.extractEmails(this.textArea.value);if(!this.abWin||this.abWin.closed){if(callbackPage.length>0&&callbackPage.charAt(0)!='/'){callbackPage='/'+callbackPage}var cb=location.protocol+'//'+location.host+callbackPage;extraOptions.cb=cb;extraOptions.host=location.href;extraOptions.ts=new Date().getTime();var qs=this.toQueryString(extraOptions);var url='https://'+plaxoHost+'/ab_chooser?'+qs;if(extraOptions.plaxoMembersOnly){url+='&direct=1'}else{var emails=this.getCurrentEmailList().join(',');url+='&t=import&emails='+escape(emails)}this.abWin=popup(url,"PlaxoABC",this.dialogWidth,this.dialogHeight,'resizable=no,scrollbars=no')}if(this.abWin){this.abWin.focus()}},getCurrentEmailList:function(){var emails=[];for(email in this.currentEmails){emails.push(email)}return emails},extractEmails:function(str){var index=0;while(true){index=str.indexOf('@',index);if(index==-1)break;var start=Plaxo.String.findBoundary(str,index-1,false);var end=Plaxo.String.findBoundary(str,index+1,true);var email=str.substring(start,end+1).toLowerCase();this.currentEmails[email]=1;index++}},hasCurrentEmail:function(email){return this.currentEmails[email.toLowerCase()]},addCheckedRecipients:function(text){if(!text)return false;if(!this.textArea){Plaxo.Debug.error('no text area to add recipients to');return false}var curText=this.textArea.value;if(curText&&!curText.trim().endsWith(','))curText+=', ';curText+=text;this.setTextAreaValue(curText);return true},setTextAreaValue:function(str){this.textArea.value=str}};Plaxo.abl=null;function showPlaxoABChooser(textArea,callbackPage,plaxoHost,extraOptions){if(!Plaxo.abl)Plaxo.abl=new Plaxo.ABLauncher();if(!plaxoHost)plaxoHost='www.plaxo.com';if(!extraOptions)extraOptions={};Plaxo.abl.showABChooser(textArea,plaxoHost,callbackPage,extraOptions)}