//**********************************************************************************************************
// EO.Web Script Library. Copyright (C) 2006-2008 Essential Objects, Inc. All rights reserved.
// Visit Us on the Web: http://www.essentialobjects.com
// Version: 5.0.51.2
//**********************************************************************************************************
 var eo_tk=0;var eo_tl=1;var eo_tm=2;var eo_tn=3;var eo_to=4;var eo_tp=100000;function _eofup_a(a,b,c,d){this.aauk=a;this.aaul=b;this.aaum=c;this.aaun=d;}function _eofup_b(a){var b=a;if(!b)b="{posted_file_name} - {posted_file_type} ({posted_file_size}bytes)";b=b.replace(/\{posted_file_name\}/g,this.aaul);b=b.replace(/\{posted_file_type\}/g,this.aaum);b=b.replace(/\{posted_file_size\}/g,this.aaun);return b;}function _eofup_c(){return this.aaul;}function _eofup_d(){return this.aaum;}function _eofup_e(){return this.aaun;}_eofup_a.prototype.app=_eofup_b;_eofup_a.prototype.getClientFileName=_eofup_c;_eofup_a.prototype.getContentType=_eofup_d;_eofup_a.prototype.getFileSize=_eofup_e;function _eofup_f(a){if(a)this.aauo(a);}function _eofup_g(a){this.ade(a[0]);this.aaup(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12]);}function _eofup_h(a,b,c,d,e,f,g,h,i,j,k,l){this.bfi=a==null?1:a;this.aauq=b;this.agb=eo_tk;this.aaur=c;this.aaus=d;this.aaut=e;this.aauu=i;this.aauv=f;this.aauw=g;this.aaux=l;this.aauy=new Array();if(h){for(var m=0;m<h.length;m++){_eofi_v(this.aauy,new _eofup_a(h[m]));}}if(j){j=j.toLowerCase();this.aauz=j.split("|");}this.aava=k;}function _eofup_i(){this.aar("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_j(){var a=this.eo_tq;a.upload();return false;}function _eofup_k(){var a=this.eo_tq;if(a)a.aavb();return false;}function _eofup_l(){var a=this.eo_tq;if(a)a.aavc();return false;}function _eofup_m(){this.aavd();this.aave=document.getElementById(this.c+"_UploadButton");if(this.aave){this.aave.eo_tq=this;this.aave.onclick=_eofup_j;_eofc_am(this.aave);}this.ajo=document.getElementById(this.c+"_CancelButton");if(this.ajo){this.ajo.eo_tq=this;this.ajo.onclick=_eofup_k;_eofc_am(this.ajo);}for(var a=0;a<this.bfi;a++){var b=document.getElementById(this.c+"_BrowseButton"+a);if(b){b.onclick=_eofu_ep;_eofc_am(b);}}this.aavf=document.getElementById(this.c+"_DeleteButton");if(this.aavf){this.aavf.eo_tq=this;this.aavf.onclick=_eofup_l;_eofc_am(this.aavf);if(!this.aauy.length)this.aavf.style.display="none";}this.aavg=document.getElementById(this.c+"_pt");this.aavh=document.getElementById(this.c+"_postedFiles");this.aen();_eofu_as(this,eo_az,100,true);if(_eofi_au()=="IE")_eofu_as(this,eo_ba,100,true);}function _eofup_n(){return document.getElementById(this.c);}function _eofup_o(){this.aavb();this.aaid();_eofu_at(this,eo_at);_eofu_at(this,eo_au);_eofu_at(this,eo_av);_eofu_at(this,eo_aw);_eofu_at(this,eo_ax);_eofu_at(this,eo_ay);_eofu_at(this,eo_az);if(_eofi_au()=="IE")_eofu_at(this,eo_ba);if(this.aave){this.aave.eo_tq=null;this.aave.onclick=null;}if(this.ajo){this.ajo.eo_tq=null;this.ajo.onclick=null;}for(var a=0;a<this.bfi;a++){var b=document.getElementById(this.c+"_BrowseButton"+a);if(b)b.onclick=null;}this.aavf=document.getElementById(this.c+"_DeleteButton");if(this.aavf){this.aavf.eo_tq=null;this.aavf.onclick=null;}this.aavg=null;this.aavh=null;if(this.bqx){try{this.bqx.onreadystatechange=null;}catch(e){}this.bqx=null;}}function _eofup_p(){this.aavi=null;if(this.aava){this.aavi=this.aava-this.aauy.length;if(this.aavi<0)this.aavi=0;}for(var a=0;a<this.bfi;a++){var b=document.getElementById(this.c+"_t_"+a);if(!b)continue;var c=document.getElementById(this.c+"_i_"+a);var d=document.getElementById(this.c+"_d_"+a);var e=document.getElementById(this.c+"_f_"+a);var f=document.getElementById(this.c+"_BrowseButton"+a);if(e){e.add=null;e.eo_tr=null;e.eo_ts=null;e.onkeyup=null;e.onmouseout=null;d.removeChild(e);}var g=this.c+"_f_"+a;if(_eofi_au()=="SA"){d.innerHTML="<input type=\"file\" id=\""+g+"\" name=\""+g+"\"/>";e=document.getElementById(g);}else{e=document.createElement("INPUT");e.type="file";e.id=e.name=g;}if(this.aavi!=null){if(this.aavi>0){e.disabled=false;c.disabled=false;f.disabled=false;this.aavi--;}else{e.disabled=true;c.disabled=true;f.disabled=true;}}if(_eofi_au()=="IE"){if(_eofu_em(document))b.rows[0].cells[1].style.paddingLeft="8px";}else if(_eofi_au()=="MZ"){var h=document.createElement("INPUT");h.type="file";h.style.position="absolute";h.style.left="0px";h.style.top="-3000px";h.size=10;this.aavj=h;d.appendChild(h);b.rows[0].cells[1].style.paddingLeft="8px";}else{e.style.width="100%";}e.eo_tr=c;c.value="";e.eo_ts=this;if(_eofi_au()!="SA"){e.onkeyup=_eofup_q;e.onmouseout=_eofup_q;d.appendChild(e);c.style.width="100%";}e.style.display="block";if((_eofi_au()=="IE")||(_eofi_au()=="MZ")){b.style.display="block";_eofu_eu(e,1);}else{b.style.display="none";d.style.position="";}}_eofu_as(this,eo_av,100);}function _eofup_q(){var a=this;var b=this.eo_tr;if(b.value!=a.value)b.value=a.value;if(this.eo_ts.aave)this.eo_ts.aave.disabled=!a.value;}function _eofup_r(){var a=this.parentElement;var b=_eofu_ac(a);if(!b){if(!_eofu_em(this))return"100%";else return"auto";}else return _eofu_ab(b);}function _eofup_s(a){return _eofi_ev("4EF2A06E-5171-4166-82A6-242BD1985E8A")+"&uploader_data="+a.be();}function _eofup_t(){if(this.agb!=eo_tk){this.aaub();return;}var a=this.aavk(true);if(!a){this.aavb();this.aaid();return;}this.aavl=null;if(this.aaut)this.aavl=EO.Web.getObject(this.aaut);if(!this.aavl)this.aavm();else{this.aavl.aavn=this;this.aavl.show(true);}this.aavo=null;this.aavp=new _eofi_er();this.aavq=new Array();this.aavr=this.aavs=null;this.aavt();this.aavu=new _eofup_bb(0);if(this.aavf)this.aavf.disabled=true;this.agb=eo_tl;var b=new _eofi_bu("new_session");b.bd(this.c,new _eofi_bu(this.aauq));b.bd("fc",new _eofi_bu(this.aavk(false)));this.aavv(b);_eofu_as(this,eo_ax,150,true);}function _eofup_u(a){this.aavn.aar("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_v(a){this.bqx=_eofc_a();if(this.bqx){var b=this;this.bqx.onreadystatechange=function(){b.aavw()};var c=_eofup_s(a);this.bqx.open("POST",c,true);this.bqx.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.bqx.setRequestHeader("delta","true");this.bqx.setRequestHeader("Cache-Control","no-cache");this.bqx.send("");}}function _eofup_w(){if(this.k)return;var a=this.bqx;if(a.readyState&&((a.readyState==4)||(a.readyState=="complete"))){if(a.responseXML){var b=this.aavx(a.responseXML);if(!b&&(this.agb!=eo_tk)){var c=a.responseText;if(!c){_eofi_k("AJAXUploader '"+this.c+"' has failed due to a "+"server or network problem.");}else{_eofi_k("AJAXUploader '"+this.c+"' has failed due to a "+"server side exception. Click OK to see the exception message.");this.aaae=c;window.setTimeout("eo_Callback_UpdateDocument(\""+this.c+"\");",100);}this.aaid();}}}}function _eofup_x(a,b){var c=_eofc_b(a,"Command");if(!c)return false;var d=_eofu_ew(c);return d==b;}function _eofup_y(a){var b=a.documentElement;if(b&&b.firstChild){if(this.agb==eo_tl){if(!this.aavy(b,"NewSession"))return;var c=_eofc_b(b,"Error");if(c){_eofi_k(c.firstChild.nodeValue);this.aaid();return true;}b=_eofc_b(b,"SessionID");this.aaug=b.firstChild.nodeValue;_eofu_as(this,eo_au,0);}else if(this.agb==eo_tm){if(!this.aavy(b,"GetProgress"))return;this.aavr=parseInt(_eofc_b(b,"Total").firstChild.nodeValue);var d=parseInt(_eofc_b(b,"Received").firstChild.nodeValue);this.aavz=parseInt(_eofu_ew(_eofc_b(b,"TotalFiles")));this.aawa=parseInt(_eofu_ew(_eofc_b(b,"TransferredFiles")));this.aawb=_eofu_ew(_eofc_b(b,"CurrentFileName"));if((d>0)&&(d<this.aavs))d=this.aavs;if((this.aavr>=0)&&(d>this.aavr))d=this.aavr;this.aavs=d;if(this.aavu){this.aavu.aaid(d);_eofi_v(this.aavq,this.aavu);this.aavu=null;}if((this.aavr>0)&&(this.aavs>=0)){this.aavt();this.aavu=new _eofup_bb(this.aavs);}if(this.aavr>=0){if(this.aavs<0){switch(this.aavs){case-1:this.aar("unknown_error","An unknown error has occurred.");break;case-2:this.aar("max_size_exceeded","The size of the submitted data exceeded MaxDataSize.");break;case-3:break;case-4:this.aar("aborted","The server has aborted the uploading process because httpRuntime -> executionTimeout has been met. Please modify your web.config to give it a larger value.");break;case-5:this.aar("module_required","EO.Web.Runtime must be added into your web.config's httpModules section because another HttpModule (Usually FormsAuthenticationModule) fetched the upload data before it reaches AJAXUploader. Please see \"Using AJAXUploader\" in the help file for details.");break;}this.aaid();return true;}else if(this.aavs>=this.aavr){this.aaid();this.aawc(_eofc_b(b,"PostedFiles"));this.aavd();_eofu_as(this,eo_ay,0);return true;}_eofu_as(this,eo_aw,eo_tp);}var e=0;if(this.aavp!=null)e=this.aavp.w();if(e<200)_eofu_as(this,eo_at,20);else if(e<1000)_eofu_as(this,eo_at,100);else if(e<3000)_eofu_as(this,eo_at,300);else _eofu_as(this,eo_at,1000);}else if(this.agb==eo_tn){if(!this.aavy(b,"DeleteFile"))return;this.agb=eo_tk;this.aawc(_eofc_b(b,"PostedFiles"));if(this.aava)this.aavd();this.ace(eo_az);}else if(this.agb==eo_to){this.aaid();this.aavd();}return true;}return false;}function _eofup_z(a){if(a==eo_au){var b=new _eofi_bu("upload");b.bd(this.c,new _eofi_bu(this.aauq));b.bd("s",new _eofi_bu(this.aaug));eo_j.eo_tg=eo_j.target;eo_j.eo_tt=eo_j.action;eo_j.eo_tu=eo_j.enctype;eo_j.eo_tv=eo_j.encoding;eo_j.target=this.c+"_frame";eo_j.action=_eofup_s(b);eo_j.enctype="multipart/form-data";eo_j.encoding="multipart/form-data";try{eo_j.submit();this.agb=eo_tm;_eofu_as(this,eo_at,10);_eofu_as(this,eo_aw,eo_tp);}catch(e){this.aaid();}}else if(a==eo_at){if(this.aaug){var b=new _eofi_bu("get_progress");b.bd(this.c,new _eofi_bu(this.aauq));b.bd("s",new _eofi_bu(this.aaug));b.bd("ds",new _eofi_bu(this.aawd()));this.aavv(b);}}else if(a==eo_av){if(!this.aawe())_eofu_as(this,eo_av,100);}else if(a==eo_aw){if(this.agb==eo_tm){this.aaid();this.aar("timeout","AJAX call to the server times out.");}}else if(a==eo_ax){this.aavt();}else if(a==eo_ay){if(this.aauu==null)this.aauu=new Array();this.aavr=this.aavs=null;this.aavt();_eofi_v(this.aauu,this.aaug);if(this.aauv)this.aej();}else if(a==eo_az){var c=this.aavk(false);if(c&&this.aaux&&(this.agb==eo_tk)){if(this.aawf!=this.aawg)this.aawh=false;if(!this.aawh){this.aawf=this.aawg;this.upload();}}if(this.aave)this.aave.disabled=!c||(this.agb!=eo_tk);if(this.aavf){var d=false;for(var e=0;e<this.aauy.length;e++){var f=document.getElementById(this.c+"_del_"+e);if(f&&f.checked){d=true;break;}}this.aavf.disabled=!d||(this.agb!=eo_tk);}}else if(a==eo_ba){for(var e=0;e<this.bfi;e++){var g=document.getElementById(this.c+"_f_"+e);var h=g.parentNode.clientWidth;if(h)g.style.width=_eofu_ab(h);}}else this.aem(a);}function _eofup_aa(){var a;var b;var c;if(this.aavj){var d=document.getElementById(this.c+"_d_0");var b=_eofu_ac(d);var c=_eofu_ac(this.aavj);if(!b||!c)return false;while(c<b){this.aavj.size=this.aavj.size+1;c=_eofu_ac(this.aavj);}while(c>b){this.aavj.size=this.aavj.size-1;c=_eofu_ac(this.aavj);}c=this.aavj.size;for(var a=0;a<this.bfi;a++){var e=document.getElementById(this.c+"_f_"+a);e.size=c;}}return true;}function _eofup_ab(){this.aaud();if(eo_j.eo_tg)eo_j.target=eo_j.eo_tg;else eo_j.target="_self";if(eo_j.eo_tt!=null){eo_j.action=eo_j.eo_tt;eo_j.eo_tt=null;}if(eo_j.eo_tu)eo_j.enctype=eo_j.eo_tu;if(eo_j.eo_tv)eo_j.encoding=eo_j.eo_tv;_eofu_at(this,eo_at);_eofu_at(this,eo_aw);_eofu_at(this,eo_ax);this.agb=eo_tk;if(this.aave)this.aave.disabled=false;if(this.ajo)this.ajo.disabled=true;if(this.aavf)this.aavf.disabled=false;this.aavo=null;this.aavp=null;this.aavq=null;this.aawi=null;if(this.aavl){this.aavl.end();this.aavl=null;}this.aavz=null;this.aawa=null;this.aawb=null;this.aavt();}function _eofup_ac(){var a=this.aavr;var b=this.aavs;var c=b;if((a>0)&&(b>0)&&this.aavq&&this.aavq.length){var d=this.aavq[this.aavq.length-1];c=d.aawj(a);}if((a>0)&&(b>0)){if(c&&this.aavo&&(c<this.aavo))c=this.aavo;this.aavo=c;}else{a=null;c=null;}if(this.aavl){this.aawk(a,c,this.aavl.aawl,this.aavl.aavg,this.aavl.aaus,this.aavl.ajo);}var e=eo_GetObject(this.c+"_ProgressBar");this.aawk(a,c,e,this.aavg,this.aaus,this.ajo);if(this.aaur){var f=window[this.aaur];if(f&&(typeof(f)=="function")){try{if(c>0)f(this,a,c);else f(this,null,null);}catch(e){}}}}function _eofup_ad(a,b,c,d,e,f){if(c){if(b>0){var g=c.getMaximum()-c.getMinimum();var h=Math.round(b/a*g+c.getMinimum());c.setValue(h)}else c.setValue(c.getMinimum());}if(d){if(b>0){var i=e;if(!i)i="Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";i=i.replace(/\{transferred\}/g,b);i=i.replace(/\{total\}/g,a);i=i.replace(/\{percentage\}/g,this.getPercentage());i=i.replace(/\{current_file_name\}/g,this.getCurrentFileName());i=i.replace(/\{total_file_count\}/g,this.getTotalFileCount());i=i.replace(/\{transferred_file_count\}/g,this.getTransferredFileCount());i=i.replace(/\{elapsed_seconds\}/g,this.getElapsedSeconds());i=i.replace(/\{estimated_remaining_seconds\}/g,this.getEstimiatedSecondsRemaining());d.innerHTML=i;}else{d.innerHTML="";}}if(f)f.disabled=!(b>0);}function _eofup_ae(){_eofu_at(this,eo_aw);_eofu_at(this,eo_at);if(this.agb!=eo_tk){if(this.aaug){var a=new _eofi_bu("cancel");a.bd(this.c,new _eofi_bu(this.aauq));a.bd("s",new _eofi_bu(this.aaug));this.aavv(a);this.agb=eo_to;}}this.aavr=-1;this.aavs=-1;this.aavq=null;this.aavt();if(!this.aaug)this.aaid();this.aaug=null;}function _eofup_af(){if(this.aavo>0)return Math.round(this.aavo*100/this.aavr);else if(this.aavs>0)return Math.round(this.aavs*100/this.aavr);else return null;}function _eofup_ag(){if(this.aavr<0)return null;return this.aavr;}function _eofup_ah(){if(this.aavs<0)return null;if(this.aavo>0)return this.aavo;return this.aavs;}function _eofup_ai(){if(this.aavp!=null)return Math.round(this.aavp.w()/1000);else return null;}function _eofup_aj(){if(!this.aavq)return 0;var a=this.aavq.length-3;if(a<0)a=0;var b=this.aavq.length-1;var c=this.aavq[a].aawm(this.aavq[b]);return c;}function _eofup_ak(){if(!this.aavq||!this.aavr)return null;var a=this.getSpeed();if(a==0)a=1;var b=this.getTotalBytes();var c=this.getTransferredBytes();var d=b-c;if(d<0)d=0;return Math.round(d/a);}function _eofup_al(){if(this.agb!=eo_tk)return;if(this.aavf){for(var a=0;a<this.aauy.length;a++){var b=document.getElementById(this.c+"_del_"+a);if(b)b.disabled=true;}this.aavf.disabled=true;}var c=new _eofi_bu("delete_file");c.bd(this.c,new _eofi_bu(this.aauq));c.bd("ds",new _eofi_bu(this.aawd()));for(var a=0;a<this.aauy.length;a++){var b=document.getElementById(this.c+"_del_"+a);if(b.checked)c.bd("f"+a,new _eofi_bu(this.aauy[a].aauk));}this.agb=eo_tn;this.ace(eo_az);this.aavv(c);}function _eofup_am(){var a=new Array();var b=document.body.getElementsByTagName("INPUT");for(var c=0;c<b.length;c++){var d=b[c];if(d==this.ajo)continue;var e=d.type.toLowerCase();if((e=="submit")||(e=="image")){d.eo_ts=this;d.eo_tw=d.onclick;d.onclick=_eofup_ao;_eofi_v(a,d);}}this.aauh=a;}function _eofup_an(){if(this.aauh){for(var a=0;a<this.aauh.length;a++){var b=this.aauh[a];b.eo_ts=null;b.onclick=b.eo_tw;b.eo_tw=null;}this.aauh=null;}}function _eofup_ao(a){var b=this.eo_ts;b.aaub(a);_eofi_dz(a);return false;}function _eofup_ap(a){var b=0;var c="";for(var d=0;d<this.bfi;d++){var e=document.getElementById(this.c+"_f_"+d);if(e&&e.value){if(a&&this.aauz){var f=false;var g=e.value;g=g.toLowerCase();for(var h=0;h<this.aauz.length;h++){var i=this.aauz[h];if(i&&(g.length>=i.length)){var j=g.substring(g.length-i.length);if(j==i){f=true;break;}}}if(!f){this.aar("extension_not_allowed","File '"+g+"' has an extension that is not allowed.");return 0;}}c+=";"+e.value;b++;}}this.aawg=c;return b;}function _eofup_aq(){var a=null;if(this.aauu){for(var b=0;b<this.aauu.length;b++){if(a==null)a=this.aauu[b];else a=a+"|"+this.aauu[b];}}return a;}function _eofup_ar(){var a=this.aawd();var b=new _eofi_bu(a);if(this.aawn)b.bd("exts",new _eofi_bu(this.aawn));return b;}function _eofup_as(a){var b=new Array();a=a.firstChild;while(a){if(a.tagName=="File"){var c=_eofc_b(a,"TempFileName").firstChild.nodeValue;var d=_eofc_b(a,"ClientFileName").firstChild.nodeValue;var e="";var f=_eofc_b(a,"ContentType").firstChild;if(f)e=f.nodeValue;var g=parseInt(_eofc_b(a,"FileSize").firstChild.nodeValue);_eofi_v(b,new _eofup_a(c,d,e,g));}a=a.nextSibling;}this.aauy=b;if(this.aavh){var h="";for(var i=0;i<this.aauy.length;i++){var j=this.aauy[i];var k=j.app(this.aauw);k="<input type=\"checkbox\" id=\""+this.c+"_del_"+i+"\" />"+k+"<br />";h+=k;}this.aavh.innerHTML=h;}if(this.aavf){if(this.aauy.length)this.aavf.style.display="block";else this.aavf.style.display="none";}}function _eofup_at(){return this.aawb;}function _eofup_au(){return this.aavz;}function _eofup_av(){return this.aawa;}function _eofup_aw(){if(!this.aauz)return null;var a="";for(var b=0;b<this.aauz.length;b++){if(b>0)a+="|";a+=this.aauz[b];}return a;}function _eofup_ax(a){if(a){a=a.toLowerCase();this.aauz=a.split("|");this.aawn=a;}else{this.aauz=null;this.aawn=" ";}}function _eofup_ay(){return this.aauy;}function _eofup_az(){if(eo_j)this.aawo();if(this.aave)this.aave.disabled=true;}function _eofup_ba(a,b){this.aawh=true;this.aas(a,b);}_eofup_f.prototype=new _eofu_dq();_eofup_f.prototype.aauo=_eofup_g;_eofup_f.prototype.aaup=_eofup_h;_eofup_f.prototype.aaub=_eofup_i;_eofup_f.prototype.abb=_eofup_m;_eofup_f.prototype.aawp=_eofup_m;_eofup_f.prototype.aac=_eofup_o;_eofup_f.prototype.aavd=_eofup_p;_eofup_f.prototype.aawo=_eofup_t;_eofup_f.prototype.ace=_eofup_z;_eofup_f.prototype.aavw=_eofup_w;_eofup_f.prototype.aavv=_eofup_v;_eofup_f.prototype.aavx=_eofup_y;_eofup_f.prototype.aavy=_eofup_x;_eofup_f.prototype.aawe=_eofup_aa;_eofup_f.prototype.aaid=_eofup_ab;_eofup_f.prototype.aavt=_eofup_ac;_eofup_f.prototype.aawk=_eofup_ad;_eofup_f.prototype.aavb=_eofup_ae;_eofup_f.prototype.aavc=_eofup_al;_eofup_f.prototype.aavm=_eofup_am;_eofup_f.prototype.aaud=_eofup_an;_eofup_f.prototype.aavk=_eofup_ap;_eofup_f.prototype.bg=_eofup_ar;_eofup_f.prototype.bf=_eofi_co;_eofup_f.prototype.aawc=_eofup_as;_eofup_f.prototype.aawd=_eofup_aq;_eofup_f.prototype.h=_eofup_n;_eofup_f.prototype.aar=_eofup_ba;_eofup_f.prototype.getPercentage=_eofup_af;_eofup_f.prototype.getTotalBytes=_eofup_ag;_eofup_f.prototype.getTransferredBytes=_eofup_ah;_eofup_f.prototype.getElapsedSeconds=_eofup_ai;_eofup_f.prototype.getEstimiatedSecondsRemaining=_eofup_ak;_eofup_f.prototype.getSpeed=_eofup_aj;_eofup_f.prototype.getCurrentFileName=_eofup_at;_eofup_f.prototype.getTotalFileCount=_eofup_au;_eofup_f.prototype.getTransferredFileCount=_eofup_av;_eofup_f.prototype.getAllowedExtension=_eofup_aw;_eofup_f.prototype.setAllowedExtension=_eofup_ax;_eofup_f.prototype.getPostedFiles=_eofup_ay;_eofup_f.prototype.cancel=_eofup_ae;_eofup_f.prototype.upload=_eofup_az;function _eofup_bb(a){this.aavp=new _eofi_er();this.aawq=a?a:0;}function _eofup_bc(a){this.aawr=new _eofi_er();this.aaws=a;}function _eofup_bd(a){var b=a.aaws-this.aawq;var c=_eofi_es(this.aavp.ap(),a.aawr.ap());c=c/1000;var d=Math.round(b/c);return d;}function _eofup_be(a){var b=this.aavp;var c=this.aawr;var d=new _eofi_er();var e=_eofi_es(b.ap(),c.ap());var f=_eofi_es(c.ap(),d.ap());if(e==0)return this.aaws;if(f>eo_tp)f=eo_tp;var g=(this.aaws-this.aawq)*(e+f)/e+this.aawq;g=Math.round(g);if(g>=a)g=a-1;return g;}_eofup_bb.prototype.aaid=_eofup_bc;_eofup_bb.prototype.aawm=_eofup_bd;_eofup_bb.prototype.aawj=_eofup_be;function _eofup_bf(a){if(a)this.aawt(a);}function _eofup_bg(a){this.aim(a[0]);this.aawu(a[1],a[2]);}function _eofup_bh(a){this.aaus=a!=null?a:"Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";}function _eofup_bi(a,b){this.amg(a,b);this.aavg=document.getElementById(this.c+"_pt");if(this.akf)this.aawl=EO.Web.getObject(this.akf+"_ProgressBar");if(!this.aawl&&this.akg)this.aawl=EO.Web.getObject(this.akg+"_ProgressBar");if(this.akf)this.ajo=document.getElementById(this.akf+"_CancelButton");if(!this.ajo&&this.akg)this.ajo=document.getElementById(this.akg+"_CancelButton");if(this.ajo){this.ajo.eo_jb=this;this.ajo.onclick=_eofup_bk;_eofc_am(this.ajo);}}function _eofup_bj(){this.amh();if(this.ajo){this.ajo.eo_jb=null;this.ajo.onclick=null;}}function _eofup_bk(a){var b=this.eo_jb;if(b){b.end();b.aavn.aavb();}_eofi_dz(a);return false;}function fx_UploaderProgressDialog_OnVeilClick(a){if(this.aavn)this.aavn.aaub();}_eofup_bf.prototype=new _eofdg_a();_eofup_bf.prototype.aawt=_eofup_bg;_eofup_bf.prototype.aawu=_eofup_bh;_eofup_bf.prototype.abb=_eofup_bi;_eofup_bf.prototype.aac=_eofup_bj;_eofup_bf.prototype.alj=fx_UploaderProgressDialog_OnVeilClick;eo_LoadModules();eo_ModuleLoaded('up');