//**********************************************************************************************************
// EO.Web Script Library. Copyright (C) 2006-2008 Essential Objects, Inc. All rights reserved.
// Visit Us on the Web: http://www.essentialobjects.com
// Version: 6.0.78.2
//**********************************************************************************************************
 var eo_ul=0;var eo_um=1;var eo_un=2;var eo_uo=3;var eo_up=4;var eo_uq=5;var eo_ur=100000;function _eofup_a(a,b,c,d){this.aazo=a;this.aazp=b;this.aazq=c;this.aazr=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.aazp);b=b.replace(/\{posted_file_type\}/g,this.aazq);b=b.replace(/\{posted_file_size\}/g,this.aazr);var c=this.aazr/1024/1024;if(c<=0.01)c=0.01;else if(c<10)c=Math.ceil(c*100)/100;else c=Math.ceil(c*10)/10;b=b.replace(/\{posted_file_size_mb\}/g,c);var d=Math.ceil(this.aazr/1024);if(d==0)d=1;b=b.replace(/\{posted_file_size_kb\}/g,d);return b;}function _eofup_c(){return this.aazp;}function _eofup_d(){return this.aazq;}function _eofup_e(){return this.aazr;}_eofup_a.prototype.asj=_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.aazs(a);}function _eofup_g(a){this.adm(a[0]);this.aazt(a[1],a[2],a[3],a[4],a[5],a[6],a[7],a[8],a[9],a[10],a[11],a[12],a[13],a[14],a[15],a[16],a[17],a[18],a[19],a[20],a[21],a[22]);}function _eofup_h(a,b,c,d,e,f,g,h,i,j,k,l,m,n,o,p,q,r,s,t,u){this.bic=a==null?1:a;this.aazu=b;this.agy=eo_ul;this.aazv=c;this.alv=e;this.aazw=d;this.aazx=f;this.aazy=g;this.aazz=h;this.abaa=l;this.abab=i;this.abac=j;this.abad=o;this.abae=new Array();if(k){for(var v=0;v<k.length;v++){_eofi_w(this.abae,new _eofup_a(k[v]));}}if(m){m=m.toLowerCase();this.abaf=m.split("|");}this.abag=n;this.aahc=p;this.abah=q;this.abai=r;this.abaj=s;this.abak=t;this.abal=u;if(r){this.bic=1;this.abad=true;}this.abam=true;}function _eofup_i(){this.aay("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_j(){var a=this.eo_us;a.upload();return false;}function _eofup_k(){var a=this.eo_us;if(a)a.aban();return false;}function _eofup_l(){var a=this.eo_us;if(a)a.abao();return false;}function _eofup_m(){this.aes();this.aabg=document.getElementById(this.c);this.bnj=document.getElementById(this.c+"_rt");this.aeu([this.bnj,this.aabg],true);this.abap();this.abaq=document.getElementById(this.c+"_UploadButton");if(this.abaq){this.abaq.eo_us=this;this.abaq.onclick=_eofup_j;_eofi_fv(this.abaq);}this.alq=document.getElementById(this.c+"_CancelButton");if(this.alq){this.alq.eo_us=this;this.alq.onclick=_eofup_k;_eofi_fv(this.alq);}for(var a=0;a<this.bic;a++){var b=document.getElementById(this.c+"_BrowseButton"+a);if(b){b.onclick=_eofu_ev;_eofi_fv(b);}}this.abar=document.getElementById(this.c+"_DeleteButton");if(this.abar){this.abar.eo_us=this;this.abar.onclick=_eofup_l;_eofi_fv(this.abar);if(!this.abae.length)this.abar.style.display="none";}this.abas=document.getElementById(this.c+"_pt");this.abat=document.getElementById(this.c+"_postedFiles");this.afc();this.aev();_eofu_at(this,eo_bf,100,true);if(_eofi_ay()=="IE")_eofu_at(this,eo_bg,100,true);}var eo_ut=null;var eo_uu=null;function _eofup_n(){if(!eo_ut){eo_ut=document.createElement("form");eo_ut.name="_eo_upload_form";eo_ut.id="_eo_upload_form";eo_ut.method="post";eo_ut.enctype="multipart/form-data";eo_ut.encoding="multipart/form-data";document.body.appendChild(eo_ut);var a=document.createElement("DIV");a.id="_eo_upload_root";a.style.position="relative";a.style.left="-3000px";a.style.top="-3000px";eo_ut.appendChild(a);eo_uu=a;}if(this.abah&&!this.abau){this.abau=eo_GetObject(this.abah);if(!this.abau)this.aah("StartToolBarButton is invalid.");else{var b=this;this.abav=this.abau.atm;this.abau.atm=function(tb,tbItem){return b.abaw(tb,tbItem);};this.abax=this.abau.getItem(this.abai);if(!this.abax)this.aah("ToolBarItem specified by StartToolBarButton does not exist.");else{if(this.abax.akg)this.abap();else{var c=this.abau.abj;this.abau.abj=function(){if(c)c.apply(this);b.abap();}}}}}if(this.abaj&&!this.abay){this.abay=eo_GetObject(this.abaj);if(!this.abay)this.aah("StopToolBarButton is invalid.");else{this.abaz=this.abay.getItem(this.abak);if(!this.abaz)this.aah("ToolBarItem specified by StopToolBarButton does not exist.");}}this.abap();this.abba();}function _eofup_o(a,b){if(b==this.abax)return false;if(b==this.abaz){this.cancel();return false;}var c=this.abav;if(c){if(typeof(c)=="string")c=window[c];if(c)return c(a,b);}}function _eofup_p(){return this.aabg?this.aabg:this.bnj;}function _eofup_q(){this.aban();this.aalv();_eofu_au(this,eo_az);_eofu_au(this,eo_ba);_eofu_au(this,eo_bb);_eofu_au(this,eo_bc);_eofu_au(this,eo_bd);_eofu_au(this,eo_be);_eofu_au(this,eo_bf);if(_eofi_ay()=="IE")_eofu_au(this,eo_bg);if(this.abaq){this.abaq.eo_us=null;this.abaq.onclick=null;}if(this.alq){this.alq.eo_us=null;this.alq.onclick=null;}for(var a=0;a<this.bic;a++){var b=document.getElementById(this.c+"_BrowseButton"+a);if(b)b.onclick=null;}this.abar=document.getElementById(this.c+"_DeleteButton");if(this.abar){this.abar.eo_us=null;this.abar.onclick=null;}this.abas=null;this.abat=null;if(this.aadh){try{this.aadh.onreadystatechange=null;}catch(e){}this.aadh=null;}}function _eofup_r(){if(this.abah&&(!this.abau||!this.abax||!this.abax.akg))return;this.abbb=null;if(this.abag){this.abbb=this.abag-this.abae.length;if(this.abbb<0)this.abbb=0;}this.abbc=new Array();for(var a=0;a<this.bic;a++){var b=document.getElementById(this.c+"_t_"+a);if(!b&&!this.abau)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(this.abau){d=this.abbd;if(!this.abbd){d=document.createElement("DIV");this.abax.akg.appendChild(d);this.abbd=d;this.abax.abbe(d);}}if(e){e.adl=null;e.eo_uv=null;e.eo_uw=null;e.onkeyup=null;e.onmouseout=null;e.parentNode.removeChild(e);}var g=this.c+"_f_"+a;if(_eofi_ay()=="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;}_eofi_w(this.abbc,e);if(this.abbb!=null){if(this.abbb>0){e.disabled=false;if(c)c.disabled=false;if(f)f.disabled=false;if(this.abax)this.abax.abbf(true);this.abbb--;}else{e.disabled=true;if(c)c.disabled=true;if(f)f.disabled=true;if(this.abax)this.abax.abbf(false);}}if(b){if(_eofi_ay()=="IE"){if(_eofu_es(document))b.rows[0].cells[1].style.paddingLeft="8px";}else if(_eofi_ay()=="MZ"){var h=document.createElement("INPUT");h.type="file";h.style.position="absolute";h.style.left="-3000px";h.style.top="0px";h.size=10;this.abbg=h;d.appendChild(h);b.rows[0].cells[1].style.paddingLeft="8px";}else{e.style.width="100%";}e.eo_uv=c;c.value="";e.eo_uw=this;if(_eofi_ay()!="SA"){e.onkeyup=_eofup_s;e.onmouseout=_eofup_s;d.appendChild(e);c.style.width="100%";}e.style.display="block";if((_eofi_ay()=="IE")||(_eofi_ay()=="MZ")){b.style.display="block";_eofu_fa(e,1);}else{b.style.display="none";d.style.position="";}}else{_eofu_fa(e,1);this.abbh=e;e.onmouseup=function(){_eofi_j(function(){_eofu_fh(document.body);},10);};if(_eofi_ay()!="SA")d.appendChild(e);}_eofu_at(this,eo_bb,100);}}function _eofup_s(){var a=this;var b=this.eo_uv;if(b.value!=a.value)b.value=a.value;if(this.eo_uw.abaq)this.eo_uw.abaq.disabled=!a.value;}function _eofup_t(){var a=this.parentElement;var b=_eofu_ad(a);if(!b){if(!_eofu_es(this))return"100%";else return"auto";}else return _eofu_ac(b);}function _eofup_u(a){return _eofi_fn("4EF2A06E-5171-4166-82A6-242BD1985E8A")+"&uploader_data="+a.be();}function _eofup_v(){if(this.agy!=eo_ul){this.aazf();return;}var a=this.abbi(true);if(!a){this.aban();this.aalv();return;}this.abbj=null;if(this.aazz)this.abbj=EO.Web.getObject(this.aazz);if(!this.abbj){}else{this.abbj.abbk=this;this.abbj.show(true);}this.abbl=null;this.abbm=new _eofi_fj();this.abbn=new Array();this.abbo=this.abbp=null;this.abbq();this.abbr=new _eofup_bj(0);if(this.abar)this.abar.disabled=true;this.agy=eo_um;var b=new _eofi_bz("new_session");b.bd(this.c,new _eofi_bz(this.aazu));b.bd("fc",new _eofi_bz(this.abbi(false)));this.abbs(b);_eofu_at(this,eo_bd,150,true);}function _eofup_w(a){this.abbk.aay("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_x(a){this.aadh=_eofc_a();if(this.aadh){var b=this;this.aadh.onreadystatechange=function(){b.abbt()};var c=_eofup_u(a);this.aadh.open("POST",c,true);this.aadh.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.aadh.setRequestHeader("delta","true");this.aadh.setRequestHeader("Cache-Control","no-cache");this.aadh.send("");}}function _eofup_y(){if(this.k)return;var a=this.aadh;if(a.readyState&&((a.readyState==4)||(a.readyState=="complete"))){if(a.responseXML){var b=this.abbu(a.responseXML);if(!b&&(this.agy!=eo_ul)){var c=a.responseText;if(!c){_eofi_l("AJAXUploader '"+this.c+"' has failed due to a "+"server or network problem.");}else{_eofi_l("AJAXUploader '"+this.c+"' has failed due to a "+"server side exception. Click OK to see the exception message.");this.aado=c;_eofi_j("eo_Callback_UpdateDocument(\""+this.c+"\");",100);}this.aalv();}}}}function _eofup_z(a,b){var c=_eofc_b(a,"Command");if(!c)return false;var d=_eofu_fc(c);return d==b;}function _eofup_aa(a){var b=a.documentElement;if(b&&b.firstChild){if(this.agy==eo_um){if(!this.abbv(b,"NewSession"))return;var c=_eofc_b(b,"Error");if(c){this.aay("server_error",c.firstChild.nodeValue);this.aalv();return true;}b=_eofc_b(b,"SessionID");this.aazk=b.firstChild.nodeValue;_eofu_at(this,eo_ba,0);}else if(this.agy==eo_un){if(!this.abbv(b,"GetProgress"))return;this.abbo=parseInt(_eofc_b(b,"Total").firstChild.nodeValue);var d=parseInt(_eofc_b(b,"Received").firstChild.nodeValue);this.abbw=parseInt(_eofu_fc(_eofc_b(b,"TotalFiles")));this.abbx=parseInt(_eofu_fc(_eofc_b(b,"TransferredFiles")));this.abby=_eofu_fc(_eofc_b(b,"CurrentFileName"));if((d>0)&&(d<this.abbp))d=this.abbp;if((this.abbo>=0)&&(d>this.abbo))d=this.abbo;this.abbp=d;if(this.abbr){this.abbr.aalv(d);_eofi_w(this.abbn,this.abbr);this.abbr=null;}if((this.abbo>0)&&(this.abbp>=0)){this.abbq();this.abbr=new _eofup_bj(this.abbp);}if(this.abbo>=0){if(this.abbp<0){switch(this.abbp){case-1:this.aay("unknown_error","An unknown error has occurred.");break;case-2:this.aay("max_size_exceeded","The size of the submitted data exceeded MaxDataSize.");break;case-3:break;case-4:this.aay("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.aay("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.aalv();this.abap();return true;}else if(this.abbp>=this.abbo){this.agy=eo_uq;_eofu_at(this,eo_bh,1);return true;}_eofu_at(this,eo_bc,eo_ur);}var e=0;if(this.abbm!=null)e=this.abbm.w();if(e<200)_eofu_at(this,eo_az,20);else if(e<1000)_eofu_at(this,eo_az,100);else if(e<3000)_eofu_at(this,eo_az,300);else _eofu_at(this,eo_az,1000);}else if(this.agy==eo_uo){if(!this.abbv(b,"DeleteFile"))return;this.agy=eo_ul;this.abbz(_eofc_b(b,"PostedFiles"));if(this.abag)this.abap();this.acl(eo_bf);}else if(this.agy==eo_up){this.aalv();this.abap();}else if(this.agy==eo_uq){this.abca=2;this.aalv();this.abbz(_eofc_b(b,"PostedFiles"));this.abap();_eofu_at(this,eo_be,0);}return true;}return false;}function _eofup_ab(a){if(a==eo_ba){var b=new _eofi_bz("upload");b.bd(this.c,new _eofi_bz(this.aazu));b.bd("s",new _eofi_bz(this.aazk));eo_uu.innerHTML="";for(var c=0;c<this.abbc.length;c++){var d=this.abbc[c];d.parentNode.removeChild(d);eo_uu.appendChild(d);d.eo_ux=true;}eo_ut.target=this.c+"_frame";eo_ut.action=_eofup_u(b);try{eo_ut.submit();this.agy=eo_un;_eofu_at(this,eo_az,10);_eofu_at(this,eo_bc,eo_ur);var e=this.aazw;if(e){if(typeof(e)=="string")e=window[this.aazw];if(e)e(this);}}catch(e){this.aalv();}}else if(a==eo_az){if(this.aazk){var b=new _eofi_bz("get_progress");b.bd(this.c,new _eofi_bz(this.aazu));b.bd("s",new _eofi_bz(this.aazk));b.bd("ds",new _eofi_bz(this.abcb()));this.abbs(b);}}else if(a==eo_bb){if(!this.abcc())_eofu_at(this,eo_bb,100);}else if(a==eo_bc){if(this.agy==eo_un){this.aalv();this.aay("timeout","AJAX call to the server times out.");}}else if(a==eo_bd){this.abbq();}else if(a==eo_be){if(this.abaa==null)this.abaa=new Array();this.abbo=this.abbp=null;this.abbq();_eofi_w(this.abaa,"N"+this.aazk);if(this.abab){if(this.bmu){_eofc_aq(this.bmu,this.c,null,this.abcd);}this.aey();if(this.bmu)_eofc_ar();}}else if(a==eo_bf){var f=this.abbi(false);if(f&&this.abad&&(this.agy==eo_ul)){if(this.abce!=this.abcf)this.abcg=false;if(!this.abcg){this.abce=this.abcf;this.upload();}}if(this.abaq)this.abaq.disabled=!f||(this.agy!=eo_ul);if(this.abar){var g=false;for(var c=0;c<this.abae.length;c++){var h=document.getElementById(this.c+"_del_"+c);if(h&&h.checked){g=true;break;}}this.abar.disabled=!g||(this.agy!=eo_ul);}if(this.abax&&this.abbd){var i=_eofu_ad(this.abax.akg);var j=_eofu_ad(this.abbd);if(i&&j&&(j>i)){if(_eofi_ay()=="SA")this.abbd.style.clip=_eofu_cv(null,i,null,null);else this.abbd.style.clip=_eofu_cv(null,null,null,j-i);}if(this.abbh&&this.abbh.eo_uy)_eofu_fh(document.body);}}else if(a==eo_bg){for(var c=0;c<this.bic;c++){var d=document.getElementById(this.c+"_f_"+c);if(d){if(this.abax){}else{var k=d.parentNode.clientWidth;if(k){d.style.width=_eofu_ac(k);if(_eofi_az()<7){var l=document.getElementById(this.c+"_i_"+c);if(l){var m=l.offsetHeight;var n=_eofu_j("TD",l,true).offsetHeight;if(m&&n){if(l.style.position!="absolute")l.style.position="absolute";l.style.top=_eofu_ac(Math.round((n-m)/2));}}}}}}}}else if(a==eo_bh){var b=new _eofi_bz("get_postedfiles");b.bd(this.c,new _eofi_bz(this.aazu));b.bd("s",new _eofi_bz(this.aazk));b.bd("ds",new _eofi_bz(this.abcb()));this.abbs(b);}else this.afb(a);}function _eofup_ac(){var a;var b;var c;if(this.abbg){var d=document.getElementById(this.c+"_d_0");var b=_eofu_ad(d);var c=_eofu_ad(this.abbg);if(!b||!c)return false;while(c<b){this.abbg.size=this.abbg.size+1;c=_eofu_ad(this.abbg);}while(c>b){this.abbg.size=this.abbg.size-1;c=_eofu_ad(this.abbg);}c=this.abbg.size;for(var a=0;a<this.bic;a++){var e=document.getElementById(this.c+"_f_"+a);e.size=c;}}return true;}function _eofup_ad(){_eofu_au(this,eo_az);_eofu_au(this,eo_bc);_eofu_au(this,eo_bd);this.agy=eo_ul;if(this.abaq)this.abaq.disabled=false;if(this.alq)this.alq.disabled=true;if(this.abar)this.abar.disabled=false;this.abba();this.abbl=null;this.abbm=null;this.abbn=null;this.abch=null;if(this.abbj){this.abbj.end();this.abbj=null;}this.abbw=null;this.abbx=null;this.abby=null;this.abbq();this.abci();try{var a=document.getElementById(this.c+"_frame");if(a&&a.contentWindow){var b=a.contentWindow.document;b.write("");b.close();}}catch(e){}}function _eofup_ae(){var a=this.agy!=eo_ul;if(this.abax){this.abax.abbf(!a&&this.abam);if(this.abal)this.abax.aadu(!a);}if(this.abaz){this.abaz.abbf(a&&this.abam);if(this.abal)this.abaz.aadu(a);}}function _eofup_af(){var a=this.abbo;var b=this.abbp;var c=b;if((a>0)&&(b>0)&&this.abbn&&this.abbn.length){var d=this.abbn[this.abbn.length-1];c=d.abcj(a);}if((a>0)&&(b>0)){if(c&&this.abbl&&(c<this.abbl))c=this.abbl;this.abbl=c;}else{a=null;c=null;}if(this.abbj){this.abck(a,b,c,this.abbj.abcl,this.abbj.abas,this.abbj.aazy,this.abbj.alq);}var e=eo_GetObject(this.c+"_ProgressBar");this.abck(a,b,c,e,this.abas,this.aazy,this.alq);if(this.aazv){var f=window[this.aazv];if(f&&(typeof(f)=="function")){try{if(c>0)f(this,a,c);}catch(e){}}}}function _eofup_ag(a,b,c,d,e,f,g){if(d){if(c>0){var h=d.getMaximum()-d.getMinimum();var i=Math.round(c/a*h+d.getMinimum());d.setValue(i)}else d.setValue(d.getMinimum());}if(e){if(c>0){var j=f;if(!j)j="Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";j=j.replace(/\{transferred\}/g,c);j=j.replace(/\{total\}/g,a);j=j.replace(/\{percentage\}/g,this.getPercentage());j=j.replace(/\{current_file_name\}/g,this.getCurrentFileName());j=j.replace(/\{total_file_count\}/g,this.getTotalFileCount());j=j.replace(/\{transferred_file_count\}/g,this.getTransferredFileCount());j=j.replace(/\{elapsed_seconds\}/g,this.getElapsedSeconds());j=j.replace(/\{estimated_remaining_seconds\}/g,this.getEstimiatedSecondsRemaining());e.innerHTML=j;}else{e.innerHTML="";}}if(g)g.disabled=!(c>0)||(b>=a);}function _eofup_ah(){_eofu_au(this,eo_bc);_eofu_au(this,eo_az);if(this.agy!=eo_ul){if(this.aazk){var a=new _eofi_bz("cancel");a.bd(this.c,new _eofi_bz(this.aazu));a.bd("s",new _eofi_bz(this.aazk));this.abbs(a);this.agy=eo_up;}}this.abbo=-1;this.abbp=-1;this.abbn=null;this.abbq();if(!this.aazk)this.aalv();this.aazk=null;this.abci();}function _eofup_ai(){if(this.abca){var a=this.abca==2?this.aazx:this.alv;this.abca=0;if(a){a=window[a];if(a)a(this);}}}function _eofup_aj(){if(this.abbl>0)return Math.round(this.abbl*100/this.abbo);else if(this.abbp>0)return Math.round(this.abbp*100/this.abbo);else return null;}function _eofup_ak(){if(this.abbo<0)return null;return this.abbo;}function _eofup_al(){if(this.abbp<0)return null;if(this.abbl>0)return this.abbl;return this.abbp;}function _eofup_am(){if(this.abbm!=null)return Math.round(this.abbm.w()/1000);else return null;}function _eofup_an(){if(!this.abbn)return 0;var a=this.abbn.length-3;if(a<0)a=0;var b=this.abbn.length-1;var c=this.abbn[a].abcm(this.abbn[b]);return c;}function _eofup_ao(){if(!this.abbn||!this.abbo)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_ap(){if(this.agy!=eo_ul)return;if(this.abar){for(var a=0;a<this.abae.length;a++){var b=document.getElementById(this.c+"_del_"+a);if(b)b.disabled=true;}this.abar.disabled=true;}var c=new _eofi_bz("delete_file");c.bd(this.c,new _eofi_bz(this.aazu));c.bd("ds",new _eofi_bz(this.abcb()));for(var a=0;a<this.abae.length;a++){var b=document.getElementById(this.c+"_del_"+a);if(b.checked)c.bd("f"+a,new _eofi_bz(this.abae[a].aazo));}this.agy=eo_uo;this.acl(eo_bf);this.abbs(c);}function _eofup_aq(){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.alq)continue;var e=d.type.toLowerCase();if((e=="submit")||(e=="image")){d.eo_uw=this;d.eo_uz=d.onclick;d.onclick=_eofup_as;_eofi_w(a,d);}}this.aazl=a;}function _eofup_ar(){if(this.aazl){for(var a=0;a<this.aazl.length;a++){var b=this.aazl[a];b.eo_uw=null;b.onclick=b.eo_uz;b.eo_uz=null;}this.aazl=null;}}function _eofup_as(a){var b=this.eo_uw;b.aazf(a);_eofi_en(a);return false;}function _eofup_at(a){var b=0;var c="";for(var d=0;d<this.bic;d++){var e=document.getElementById(this.c+"_f_"+d);if(e&&e.value){if(a&&this.abaf){var f=false;var g=e.value;g=g.toLowerCase();for(var h=0;h<this.abaf.length;h++){var i=this.abaf[h];if(i&&(g.length>=i.length)){var j=g.substring(g.length-i.length);if(j==i){f=true;break;}}}if(!f){this.aay("extension_not_allowed","File '"+g+"' has an extension that is not allowed.");return 0;}}c+=";"+e.value;b++;}}this.abcf=c;return b;}function _eofup_au(){var a=null;if(this.abaa){for(var b=0;b<this.abaa.length;b++){if(a==null)a=this.abaa[b];else a=a+"|"+this.abaa[b];}}return a;}function _eofup_av(){var a=this.abcb();var b=new _eofi_bz(a);if(this.abcn)b.bd("exts",new _eofi_bz(this.abcn));return b;}function _eofup_aw(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_w(b,new _eofup_a(c,d,e,g));}a=a.nextSibling;}this.abae=b;if(this.abat){var h="";for(var i=0;i<this.abae.length;i++){var j=this.abae[i];var k=j.asj(this.abac);k="<input type=\"checkbox\" id=\""+this.c+"_del_"+i+"\" />"+k+"<br />";h+=k;}this.abat.innerHTML=h;}if(this.abar){if(this.abae.length)this.abar.style.display="block";else this.abar.style.display="none";}if(this.aahc){var l=window[this.aahc];if(l)l(this);}}function _eofup_ax(){return this.abby;}function _eofup_ay(){return this.abbw;}function _eofup_az(){return this.abbx;}function _eofup_ba(){if(!this.abaf)return null;var a="";for(var b=0;b<this.abaf.length;b++){if(b>0)a+="|";a+=this.abaf[b];}return a;}function _eofup_bb(a){if(a){a=a.toLowerCase();this.abaf=a.split("|");this.abcn=a;}else{this.abaf=null;this.abcn=" ";}}function _eofup_bc(){return this.abae;}function _eofup_bd(){this.abca=1;if(eo_j)this.abco();if(this.abaq)this.abaq.disabled=true;this.abba();}function _eofup_be(a,b){this.abcg=true;this.aba(a,b);}function _eofup_bf(){if(this.abae&&this.abae.length)return this.abae.length.toString();return"";}function _eofup_bg(){var a=this.abbi(true);return a==0;}function _eofup_bh(){return this.agy!=eo_ul;}function _eofup_bi(a){this.abam=a;this.abba();}_eofup_f.prototype=new _eofu_ds();_eofup_f.prototype.aazs=_eofup_g;_eofup_f.prototype.aazt=_eofup_h;_eofup_f.prototype.aazf=_eofup_i;_eofup_f.prototype.an=_eofup_n;_eofup_f.prototype.abi=_eofup_m;_eofup_f.prototype.abcp=_eofup_m;_eofup_f.prototype.aad=_eofup_q;_eofup_f.prototype.abap=_eofup_r;_eofup_f.prototype.abco=_eofup_v;_eofup_f.prototype.acl=_eofup_ab;_eofup_f.prototype.abbt=_eofup_y;_eofup_f.prototype.abbs=_eofup_x;_eofup_f.prototype.abbu=_eofup_aa;_eofup_f.prototype.abbv=_eofup_z;_eofup_f.prototype.abcc=_eofup_ac;_eofup_f.prototype.aalv=_eofup_ad;_eofup_f.prototype.abci=_eofup_ai;_eofup_f.prototype.abbq=_eofup_af;_eofup_f.prototype.abck=_eofup_ag;_eofup_f.prototype.aban=_eofup_ah;_eofup_f.prototype.abao=_eofup_ap;_eofup_f.prototype.abcq=_eofup_aq;_eofup_f.prototype.aazh=_eofup_ar;_eofup_f.prototype.abbi=_eofup_at;_eofup_f.prototype.bg=_eofup_av;_eofup_f.prototype.bf=_eofi_cv;_eofup_f.prototype.abbz=_eofup_aw;_eofup_f.prototype.abcb=_eofup_au;_eofup_f.prototype.h=_eofup_p;_eofup_f.prototype.aay=_eofup_be;_eofup_f.prototype.ap=_eofup_bf;_eofup_f.prototype.abba=_eofup_ae;_eofup_f.prototype.abaw=_eofup_o;_eofup_f.prototype.abcr=_eofup_bi;_eofup_f.prototype.getPercentage=_eofup_aj;_eofup_f.prototype.getTotalBytes=_eofup_ak;_eofup_f.prototype.getTransferredBytes=_eofup_al;_eofup_f.prototype.getElapsedSeconds=_eofup_am;_eofup_f.prototype.getEstimiatedSecondsRemaining=_eofup_ao;_eofup_f.prototype.getSpeed=_eofup_an;_eofup_f.prototype.getCurrentFileName=_eofup_ax;_eofup_f.prototype.getTotalFileCount=_eofup_ay;_eofup_f.prototype.getTransferredFileCount=_eofup_az;_eofup_f.prototype.getAllowedExtension=_eofup_ba;_eofup_f.prototype.setAllowedExtension=_eofup_bb;_eofup_f.prototype.getPostedFiles=_eofup_bc;_eofup_f.prototype.cancel=_eofup_ah;_eofup_f.prototype.upload=_eofup_bd;_eofup_f.prototype.isEmpty=_eofup_bg;_eofup_f.prototype.isRunning=_eofup_bh;function _eofup_bj(a){this.abbm=new _eofi_fj();this.abcs=a?a:0;}function _eofup_bk(a){this.abct=new _eofi_fj();this.abcu=a;}function _eofup_bl(a){var b=a.abcu-this.abcs;var c=_eofi_fk(this.abbm.ap(),a.abct.ap());c=c/1000;var d=Math.round(b/c);return d;}function _eofup_bm(a){var b=this.abbm;var c=this.abct;var d=new _eofi_fj();var e=_eofi_fk(b.ap(),c.ap());var f=_eofi_fk(c.ap(),d.ap());if(e==0)return this.abcu;if(f>eo_ur)f=eo_ur;var g=(this.abcu-this.abcs)*(e+f)/e+this.abcs;g=Math.round(g);if(g>=a)g=a-1;return g;}_eofup_bj.prototype.aalv=_eofup_bk;_eofup_bj.prototype.abcm=_eofup_bl;_eofup_bj.prototype.abcj=_eofup_bm;function _eofup_bn(a){if(a)this.abcv(a);}function _eofup_bo(a){this.ako(a[0]);this.abcw(a[1],a[2]);}function _eofup_bp(a){this.aazy=a!=null?a:"Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";}function _eofup_bq(a,b){this.aox(a,b);this.abas=document.getElementById(this.c+"_pt");if(this.amg)this.abcl=EO.Web.getObject(this.amg+"_ProgressBar");if(!this.abcl&&this.amh)this.abcl=EO.Web.getObject(this.amh+"_ProgressBar");if(this.amg)this.alq=document.getElementById(this.amg+"_CancelButton");if(!this.alq&&this.amh)this.alq=document.getElementById(this.amh+"_CancelButton");if(this.alq){this.alq.eo_jw=this;this.alq.onclick=_eofup_bs;_eofi_fv(this.alq);}}function _eofup_br(){this.aoy();if(this.alq){this.alq.eo_jw=null;this.alq.onclick=null;}}function _eofup_bs(a){var b=this.eo_jw;if(b){b.end();b.abbk.aban();}_eofi_en(a);return false;}function fx_UploaderProgressDialog_OnVeilClick(a){if(this.abbk)this.abbk.aazf();}_eofup_bn.prototype=new _eofdg_a();_eofup_bn.prototype.abcv=_eofup_bo;_eofup_bn.prototype.abcw=_eofup_bp;_eofup_bn.prototype.abi=_eofup_bq;_eofup_bn.prototype.aad=_eofup_br;_eofup_bn.prototype.anw=fx_UploaderProgressDialog_OnVeilClick;eo_LoadModules();eo_ModuleLoaded('up');