//**********************************************************************************************************
// EO.Web Script Library. Copyright (C) 2006-2008 Essential Objects, Inc. All rights reserved.
// Visit Us on the Web: http://www.essentialobjects.com
// Version: 7.0.27.2
//**********************************************************************************************************
 var eo_uy=0;var eo_uz=1;var eo_va=2;var eo_vb=3;var eo_vc=4;var eo_vd=5;var eo_ve=100000;function _eofup_a(a,b,c,d){this.abcr=a;this.abcs=b;this.abct=c;this.abcu=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.abcs);b=b.replace(/\{posted_file_type\}/g,this.abct);b=b.replace(/\{posted_file_size\}/g,this.abcu);var c=this.abcu/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.abcu/1024);if(d==0)d=1;b=b.replace(/\{posted_file_size_kb\}/g,d);return b;}function _eofup_c(){return this.abcs;}function _eofup_d(){return this.abct;}function _eofup_e(){return this.abcu;}_eofup_a.prototype.auj=_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.abcv(a);}function _eofup_g(a){this.aec(a[0]);this.abcw(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.bke=a==null?1:a;this.abcx=b;this.aip=eo_uy;this.abcy=c;this.ant=e;this.abcz=d;this.abda=f;this.abdb=g;this.abdc=h;this.abdd=l;this.abde=i;this.abdf=j;this.abdg=o;this.abdh=new Array();if(k){for(var v=0;v<k.length;v++){_eofldr_q(this.abdh,new _eofup_a(k[v]));}}if(m){m=m.toLowerCase();this.abdi=m.split("|");}this.abdj=n;this.aajk=p;this.abdk=q;this.abdl=r;this.abdm=s;this.abdn=t;this.abdo=u;if(r){this.bke=1;this.abdg=true;}this.abdp=true;}function _eofup_i(){this.abx("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_j(){var a=this.eo_vf;a.upload();return false;}function _eofup_k(){var a=this.eo_vf;if(a)a.abdq();return false;}function _eofup_l(){var a=this.eo_vf;if(a)a.abdr();return false;}function _eofup_m(){this.afh();this.aado=document.getElementById(this.aj);this.bpo=document.getElementById(this.aj+"_rt");this.afj([this.bpo,this.aado],true);this.abds();this.abdt=document.getElementById(this.aj+"_UploadButton");if(this.abdt){this.abdt.eo_vf=this;this.abdt.onclick=_eofup_j;_eofi_ex(this.abdt);}this.ano=document.getElementById(this.aj+"_CancelButton");if(this.ano){this.ano.eo_vf=this;this.ano.onclick=_eofup_k;_eofi_ex(this.ano);}for(var a=0;a<this.bke;a++){var b=document.getElementById(this.aj+"_BrowseButton"+a);if(b){b.onclick=_eofu_fd;_eofi_ex(b);}}this.abdu=document.getElementById(this.aj+"_DeleteButton");if(this.abdu){this.abdu.eo_vf=this;this.abdu.onclick=_eofup_l;_eofi_ex(this.abdu);if(!this.abdh.length)this.abdu.style.display="none";}this.abdv=document.getElementById(this.aj+"_pt");this.abdw=document.getElementById(this.aj+"_postedFiles");this.afq();this.afk();_eofu_au(this,eo_bg,100,true);if(_eofldr_h()=="IE")_eofu_au(this,eo_bh,100,true);}var eo_vg=null;var eo_vh=null;var eo_vi=null;function _eofup_n(a){eo_vg=a.createElement("form");eo_vg.name="_eo_upload_form";eo_vg.id="_eo_upload_form";eo_vg.method="post";eo_vg.enctype="multipart/form-data";eo_vg.encoding="multipart/form-data";a.body.appendChild(eo_vg);var b=a.createElement("DIV");b.id="_eo_upload_root";b.style.position="relative";b.style.left="-3000px";b.style.top="-3000px";eo_vg.appendChild(b);eo_vh=b;}function _eofup_o(){eo_vi.innerHTML="";var a=_eofu_df(document,true);eo_vi.appendChild(a);var b=a.contentWindow;var c=b.document;c.open();var d="<!DOCTYPE HTML PUBLIC \"-//W3C//DTD HTML 4.01 Transitional//EN\">"+"<html><head xmlns=\"http://www.w3.org/1999/xhtml\">"+"</head><body></body></html>";c.write(d);c.close();return c;}function _eofup_p(){if(!eo_vi&&!eo_vg){if(_eofldr_h()!="SA")_eofup_n(document);else{eo_vi=document.createElement("DIV");document.body.appendChild(eo_vi);}}if(this.abdk&&!this.abdx){this.abdx=eo_GetObject(this.abdk);if(!this.abdx)this.abg("StartToolBarButton is invalid.");else{var a=this;this.abdy=this.abdx.avm;this.abdx.avm=function(tb,tbItem){return a.abdz(tb,tbItem);};this.abea=this.abdx.getItem(this.abdl);if(!this.abea)this.abg("ToolBarItem specified by StartToolBarButton does not exist.");else{if(this.abea.ama)this.abds();else{var b=this.abdx.acj;this.abdx.acj=function(){if(b)b.apply(this);a.abds();}}}}}if(this.abdm&&!this.abeb){this.abeb=eo_GetObject(this.abdm);if(!this.abeb)this.abg("StopToolBarButton is invalid.");else{this.abec=this.abeb.getItem(this.abdn);if(!this.abec)this.abg("ToolBarItem specified by StopToolBarButton does not exist.");}}this.abds();this.abed();}function _eofup_q(a,b){if(b==this.abea)return false;if(b==this.abec){this.cancel();return false;}var c=this.abdy;if(c){if(typeof(c)=="string")c=window[c];if(c)return c(a,b);}}function _eofup_r(){return this.aado?this.aado:this.bpo;}function _eofup_s(){this.abdq();this.aaod();_eofu_av(this,eo_ba);_eofu_av(this,eo_bb);_eofu_av(this,eo_bc);_eofu_av(this,eo_bd);_eofu_av(this,eo_be);_eofu_av(this,eo_bf);_eofu_av(this,eo_bg);if(_eofldr_h()=="IE")_eofu_av(this,eo_bh);if(this.abdt){this.abdt.eo_vf=null;this.abdt.onclick=null;}if(this.ano){this.ano.eo_vf=null;this.ano.onclick=null;}for(var a=0;a<this.bke;a++){var b=document.getElementById(this.aj+"_BrowseButton"+a);if(b)b.onclick=null;}this.abdu=document.getElementById(this.aj+"_DeleteButton");if(this.abdu){this.abdu.eo_vf=null;this.abdu.onclick=null;}this.abdv=null;this.abdw=null;if(this.ad){try{this.ad.onreadystatechange=null;}catch(e){}this.ad=null;}}function _eofup_t(){if(this.abdk&&(!this.abdx||!this.abea||!this.abea.ama))return;this.abee=null;if(this.abdj){this.abee=this.abdj-this.abdh.length;if(this.abee<0)this.abee=0;}this.abef=new Array();for(var a=0;a<this.bke;a++){var b=document.getElementById(this.aj+"_t_"+a);if(!b&&!this.abdx)continue;var c=document.getElementById(this.aj+"_i_"+a);var d=document.getElementById(this.aj+"_d_"+a);var e=document.getElementById(this.aj+"_f_"+a);var f=document.getElementById(this.aj+"_BrowseButton"+a);if(this.abdx){d=this.abeg;if(!this.abeg){d=document.createElement("DIV");this.abea.ama.appendChild(d);this.abeg=d;this.abea.abeh(d);}}if(e){e.aea=null;e.eo_vj=null;e.eo_vk=null;e.onkeyup=null;e.onmouseout=null;e.parentNode.removeChild(e);}var g=this.aj+"_f_"+a;if(_eofldr_h()=="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;}_eofldr_q(this.abef,e);if(this.abee!=null){if(this.abee>0){e.disabled=false;if(c)c.disabled=false;if(f)f.disabled=false;if(this.abea)this.abea.abei(true);this.abee--;}else{e.disabled=true;if(c)c.disabled=true;if(f)f.disabled=true;if(this.abea)this.abea.abei(false);}}if(b){if(_eofldr_h()=="IE"){if(_eofu_fa(document))b.rows[0].cells[1].style.paddingLeft="8px";}else if(_eofldr_h()=="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.abej=h;d.appendChild(h);b.rows[0].cells[1].style.paddingLeft="8px";}else{e.style.width="100%";}e.eo_vj=c;c.value="";e.eo_vk=this;if(_eofldr_h()!="SA"){e.onkeyup=_eofup_u;e.onmouseout=_eofup_u;d.appendChild(e);c.style.width="100%";}e.style.display="block";if((_eofldr_h()=="IE")||(_eofldr_h()=="MZ")){b.style.display="block";_eofu_fj(e,1);}else{b.style.display="none";d.style.position="";}}else{_eofu_fj(e,1);this.abek=e;e.onmouseup=function(){_eofi_i(function(){_eofu_fq(document.body);},10);};if(_eofldr_h()!="SA")d.appendChild(e);}_eofu_au(this,eo_bc,100);}}function _eofup_u(){var a=this;var b=this.eo_vj;if(b.value!=a.value)b.value=a.value;if(this.eo_vk.abdt)this.eo_vk.abdt.disabled=!a.value;}function _eofup_v(){var a=this.parentElement;var b=_eofu_af(a);if(!b){if(!_eofu_fa(this))return"100%";else return"auto";}else return _eofu_ae(b);}function _eofup_w(a){return _eofi_ep("4EF2A06E-5171-4166-82A6-242BD1985E8A")+"&uploader_data="+a.aaj();}function _eofup_x(){if(this.aip!=eo_uy){this.abci();return;}var a=this.abel(true,-1);if(a<=0){this.abdq();this.aaod();if(a<0)this.abds();return;}this.abem=null;if(this.abdc)this.abem=EO.Web.getObject(this.abdc);if(!this.abem){}else{this.abem.aben=this;this.abem.show(true);}this.abeo=null;this.abep=new _eofi_el();this.abeq=new Array();this.aber=this.abes=null;this.abet();this.abeu=new _eofup_bl(0);if(this.abdu)this.abdu.disabled=true;this.aip=eo_uz;var b=new _eofi_bf("new_session");b.aag(this.aj,new _eofi_bf(this.abcx));b.aag("fc",new _eofi_bf(this.abel(false)));this.abev(b);_eofu_au(this,eo_be,150,true);}function _eofup_y(a){this.aben.abx("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_z(a){this.ad=_eofldr_ah();if(this.ad){var b=this;this.ad.onreadystatechange=function(){b.abew()};var c=_eofup_w(a);this.ad.open("POST",c,true);this.ad.setRequestHeader("Content-Type","application/x-www-form-urlencoded");this.ad.setRequestHeader("delta","true");this.ad.setRequestHeader("Cache-Control","no-cache");this.ad.send("");}}function _eofup_aa(){if(this.ar)return;var a=this.ad;if(a.readyState&&((a.readyState==4)||(a.readyState=="complete"))){if(a.responseXML){var b=this.abex(a.responseXML);if(!b&&(this.aip!=eo_uy)){var c=a.responseText;if(!c){_eofi_k("AJAXUploader '"+this.aj+"' has failed due to a "+"server or network problem.");}else{_eofi_k("AJAXUploader '"+this.aj+"' has failed due to a "+"server side exception. Click OK to see the exception message.");this.aafu=c;_eofi_i("eo_Callback_UpdateDocument(\""+this.aj+"\");",100);}this.aaod();}}}}function _eofup_ab(a,b){var c=_eofldr_aj(a,"Command");if(!c)return false;var d=_eofu_fl(c);return d==b;}function _eofup_ac(a){var b=a.documentElement;if(b&&b.firstChild){if(this.aip==eo_uz){if(!this.abey(b,"NewSession"))return;var c=_eofldr_aj(b,"Error");if(c){this.abx("server_error",c.firstChild.nodeValue);this.aaod();return true;}b=_eofldr_aj(b,"SessionID");this.abcn=b.firstChild.nodeValue;_eofu_au(this,eo_bb,0);}else if(this.aip==eo_va){if(!this.abey(b,"GetProgress"))return;this.aber=parseInt(_eofldr_aj(b,"Total").firstChild.nodeValue);var d=parseInt(_eofldr_aj(b,"Received").firstChild.nodeValue);this.abez=parseInt(_eofu_fl(_eofldr_aj(b,"TotalFiles")));this.abfa=parseInt(_eofu_fl(_eofldr_aj(b,"TransferredFiles")));this.abfb=_eofu_fl(_eofldr_aj(b,"CurrentFileName"));if((d>0)&&(d<this.abes))d=this.abes;if((this.aber>=0)&&(d>this.aber))d=this.aber;this.abes=d;if(this.abeu){this.abeu.aaod(d);_eofldr_q(this.abeq,this.abeu);this.abeu=null;}if((this.aber>0)&&(this.abes>=0)){this.abet();this.abeu=new _eofup_bl(this.abes);}if(this.aber>=0){if(this.abes<0){switch(this.abes){case-1:this.abx("unknown_error","An unknown error has occurred.");break;case-2:this.abx("max_size_exceeded","The size of the submitted data exceeded MaxDataSize.");break;case-3:break;case-4:this.abx("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.abx("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.aaod();this.abds();return true;}else if(this.abes>=this.aber){this.aip=eo_vd;_eofu_au(this,eo_bi,1);return true;}_eofu_au(this,eo_bd,eo_ve);}var e=0;if(this.abep!=null)e=this.abep.p();if(e<200)_eofu_au(this,eo_ba,20);else if(e<1000)_eofu_au(this,eo_ba,100);else if(e<3000)_eofu_au(this,eo_ba,300);else _eofu_au(this,eo_ba,1000);}else if(this.aip==eo_vb){if(!this.abey(b,"DeleteFile"))return;this.aip=eo_uy;this.abfc(_eofldr_aj(b,"PostedFiles"));if(this.abdj)this.abds();this.ada(eo_bg);}else if(this.aip==eo_vc){this.aaod();this.abds();}else if(this.aip==eo_vd){this.abfd=2;this.aaod();this.abfc(_eofldr_aj(b,"PostedFiles"));this.abds();_eofu_au(this,eo_bf,0);}return true;}return false;}function _eofup_ad(a){if(a==eo_bb){var b=new _eofi_bf("upload");b.aag(this.aj,new _eofi_bf(this.abcx));b.aag("s",new _eofi_bf(this.abcn));if(eo_vi){var c=_eofup_o();_eofup_n(c);}eo_vh.innerHTML="";for(var d=0;d<this.abef.length;d++){var e=this.abef[d];e.parentNode.removeChild(e);eo_vh.appendChild(e);e.eo_vl=true;}if(!eo_vi)eo_vg.target=this.aj+"_frame";eo_vg.action=_eofup_w(b);try{eo_vg.submit();this.aip=eo_va;_eofu_au(this,eo_ba,10);_eofu_au(this,eo_bd,eo_ve);}catch(e){this.aaod();}var f=this.abcz;if(f){if(typeof(f)=="string")f=window[this.abcz];if(f)f(this);}}else if(a==eo_ba){if(this.abcn){var b=new _eofi_bf("get_progress");b.aag(this.aj,new _eofi_bf(this.abcx));b.aag("s",new _eofi_bf(this.abcn));b.aag("ds",new _eofi_bf(this.abfe()));this.abev(b);}}else if(a==eo_bc){if(!this.abff())_eofu_au(this,eo_bc,100);}else if(a==eo_bd){if(this.aip==eo_va){this.aaod();this.abx("timeout","AJAX call to the server times out.");}}else if(a==eo_be){this.abet();}else if(a==eo_bf){if(this.abdd==null)this.abdd=new Array();this.aber=this.abes=null;this.abet();_eofldr_q(this.abdd,"N"+this.abcn);if(this.abde){if(this.boy){_eofc_aq(this.boy,this.aj,null,this.abfg);}this.ace();if(this.boy)_eofc_ar();}}else if(a==eo_bg){var g=this.abel(false);if(g&&this.abdg&&(this.aip==eo_uy)){if(this.abfh!=this.abfi)this.abfj=false;if(!this.abfj){this.abfh=this.abfi;this.upload();}}if(this.abdt)this.abdt.disabled=!g||(this.aip!=eo_uy);if(this.abdu){var h=false;for(var d=0;d<this.abdh.length;d++){var i=document.getElementById(this.aj+"_del_"+d);if(i&&i.checked){h=true;break;}}this.abdu.disabled=!h||(this.aip!=eo_uy);}if(this.abea&&this.abeg){var j=_eofu_af(this.abea.ama);var k=_eofu_af(this.abeg);if(j&&k&&(k>j)){if(_eofldr_h()=="SA")this.abeg.style.clip=_eofu_da(null,j,null,null);else this.abeg.style.clip=_eofu_da(null,null,null,k-j);}if(this.abek&&this.abek.eo_vm)_eofu_fq(document.body);}}else if(a==eo_bh){for(var d=0;d<this.bke;d++){var e=document.getElementById(this.aj+"_f_"+d);if(e){if(this.abea){}else{var l=e.parentNode.clientWidth;if(l){e.style.width=_eofu_ae(l);if(_eofldr_i()<7){var m=document.getElementById(this.aj+"_i_"+d);if(m){var n=m.offsetHeight;var o=_eofu_l("TD",m,true).offsetHeight;if(n&&o){if(m.style.position!="absolute")m.style.position="absolute";m.style.top=_eofu_ae(Math.round((o-n)/2));}}}}}}}}else if(a==eo_bi){var b=new _eofi_bf("get_postedfiles");b.aag(this.aj,new _eofi_bf(this.abcx));b.aag("s",new _eofi_bf(this.abcn));b.aag("ds",new _eofi_bf(this.abfe()));this.abev(b);}else this.afp(a);}function _eofup_ae(){var a;var b;var c;if(this.abej){var d=document.getElementById(this.aj+"_d_0");var b=_eofu_af(d);var c=_eofu_af(this.abej);if(!b||!c)return false;while(c<b){this.abej.size=this.abej.size+1;c=_eofu_af(this.abej);}while(c>b){this.abej.size=this.abej.size-1;c=_eofu_af(this.abej);}c=this.abej.size;for(var a=0;a<this.bke;a++){var e=document.getElementById(this.aj+"_f_"+a);e.size=c;}}return true;}function _eofup_af(){_eofu_av(this,eo_ba);_eofu_av(this,eo_bd);_eofu_av(this,eo_be);this.aip=eo_uy;if(this.abdt)this.abdt.disabled=false;if(this.ano)this.ano.disabled=true;if(this.abdu)this.abdu.disabled=false;this.abed();this.abeo=null;this.abep=null;this.abeq=null;this.abfk=null;if(this.abem){this.abem.end();this.abem=null;}this.abez=null;this.abfa=null;this.abfb=null;this.abet();this.abfl();try{var a=document.getElementById(this.aj+"_frame");if(a&&a.contentWindow){var b=a.contentWindow.document;b.write("");b.close();}}catch(e){}}function _eofup_ag(){var a=this.aip!=eo_uy;if(this.abea){this.abea.abei(!a&&this.abdp);if(this.abdo)this.abea.aagc(!a);}if(this.abec){this.abec.abei(a&&this.abdp);if(this.abdo)this.abec.aagc(a);}}function _eofup_ah(){var a=this.aber;var b=this.abes;var c=b;if((a>0)&&(b>0)&&this.abeq&&this.abeq.length){var d=this.abeq[this.abeq.length-1];c=d.abfm(a);}if((a>0)&&(b>0)){if(c&&this.abeo&&(c<this.abeo))c=this.abeo;this.abeo=c;}else{a=null;c=null;}if(this.abem){this.abfn(a,b,c,this.abem.abfo,this.abem.abdv,this.abem.abdb,this.abem.ano);}var e=eo_GetObject(this.aj+"_ProgressBar");this.abfn(a,b,c,e,this.abdv,this.abdb,this.ano);if(this.abcy){var f=window[this.abcy];if(f&&(typeof(f)=="function")){try{if(c>0)f(this,a,c);}catch(e){}}}}function _eofup_ai(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_aj(){_eofu_av(this,eo_bd);_eofu_av(this,eo_ba);if(this.aip!=eo_uy){if(this.abcn){var a=new _eofi_bf("cancel");a.aag(this.aj,new _eofi_bf(this.abcx));a.aag("s",new _eofi_bf(this.abcn));this.abev(a);this.aip=eo_vc;}}this.aber=-1;this.abes=-1;this.abeq=null;this.abet();if(!this.abcn)this.aaod();this.abcn=null;this.abfl();}function _eofup_ak(){if(this.abfd){var a=this.abfd==2?this.abda:this.ant;this.abfd=0;if(a){a=window[a];if(a)a(this);}}}function _eofup_al(){if(this.abeo>0)return Math.round(this.abeo*100/this.aber);else if(this.abes>0)return Math.round(this.abes*100/this.aber);else return null;}function _eofup_am(){if(this.aber<0)return null;return this.aber;}function _eofup_an(){if(this.abes<0)return null;if(this.abeo>0)return this.abeo;return this.abes;}function _eofup_ao(){if(this.abep!=null)return Math.round(this.abep.p()/1000);else return null;}function _eofup_ap(){if(!this.abeq)return 0;var a=this.abeq.length-3;if(a<0)a=0;var b=this.abeq.length-1;var c=this.abeq[a].abfp(this.abeq[b]);return c;}function _eofup_aq(){if(!this.abeq||!this.aber)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_ar(){if(this.aip!=eo_uy)return;if(this.abdu){for(var a=0;a<this.abdh.length;a++){var b=document.getElementById(this.aj+"_del_"+a);if(b)b.disabled=true;}this.abdu.disabled=true;}var c=new _eofi_bf("delete_file");c.aag(this.aj,new _eofi_bf(this.abcx));c.aag("ds",new _eofi_bf(this.abfe()));for(var a=0;a<this.abdh.length;a++){var b=document.getElementById(this.aj+"_del_"+a);if(b.checked)c.aag("f"+a,new _eofi_bf(this.abdh[a].abcr));}this.aip=eo_vb;this.ada(eo_bg);this.abev(c);}function _eofup_as(){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.ano)continue;var e=d.type.toLowerCase();if((e=="submit")||(e=="image")){d.eo_vk=this;d.eo_vn=d.onclick;d.onclick=_eofup_au;_eofldr_q(a,d);}}this.abco=a;}function _eofup_at(){if(this.abco){for(var a=0;a<this.abco.length;a++){var b=this.abco[a];b.eo_vk=null;b.onclick=b.eo_vn;b.eo_vn=null;}this.abco=null;}}function _eofup_au(a){var b=this.eo_vk;b.abci(a);_eofi_dx(a);return false;}function _eofup_av(a,b){var c=0;var d="";for(var e=0;e<this.bke;e++){var f=document.getElementById(this.aj+"_f_"+e);if(f&&f.value){if(a&&this.abdi){var g=false;var h=f.value;h=h.toLowerCase();for(var i=0;i<this.abdi.length;i++){var j=this.abdi[i];if(j&&(h.length>=j.length)){var k=h.substring(h.length-j.length);if(k==j){g=true;break;}}}if(!g){this.abx("extension_not_allowed","File '"+h+"' has an extension that is not allowed.");if(typeof(b)=="number")return b;return 0;}}d+=";"+f.value;c++;}}this.abfi=d;return c;}function _eofup_aw(){var a=null;if(this.abdd){for(var b=0;b<this.abdd.length;b++){if(a==null)a=this.abdd[b];else a=a+"|"+this.abdd[b];}}return a;}function _eofup_ax(){var a=this.abfe();var b=new _eofi_bf(a);if(this.abfq)b.aag("exts",new _eofi_bf(this.abfq));return b;}function _eofup_ay(a){var b=new Array();a=a.firstChild;while(a){if(a.tagName=="File"){var c=_eofldr_aj(a,"TempFileName").firstChild.nodeValue;var d=_eofldr_aj(a,"ClientFileName").firstChild.nodeValue;var e="";var f=_eofldr_aj(a,"ContentType").firstChild;if(f)e=f.nodeValue;var g=parseInt(_eofldr_aj(a,"FileSize").firstChild.nodeValue);_eofldr_q(b,new _eofup_a(c,d,e,g));}a=a.nextSibling;}this.abdh=b;if(this.abdw){var h="";for(var i=0;i<this.abdh.length;i++){var j=this.abdh[i];var k=j.auj(this.abdf);k="<input type=\"checkbox\" id=\""+this.aj+"_del_"+i+"\" />"+k+"<br />";h+=k;}this.abdw.innerHTML=h;}if(this.abdu){if(this.abdh.length)this.abdu.style.display="block";else this.abdu.style.display="none";}if(this.aajk){var l=window[this.aajk];if(l)l(this);}}function _eofup_az(){return this.abfb;}function _eofup_ba(){return this.abez;}function _eofup_bb(){return this.abfa;}function _eofup_bc(){if(!this.abdi)return null;var a="";for(var b=0;b<this.abdi.length;b++){if(b>0)a+="|";a+=this.abdi[b];}return a;}function _eofup_bd(a){if(a){a=a.toLowerCase();this.abdi=a.split("|");this.abfq=a;}else{this.abdi=null;this.abfq=" ";}}function _eofup_be(){return this.abdh;}function _eofup_bf(){this.abfd=1;if(eo_k)this.abfr();if(this.abdt)this.abdt.disabled=true;this.abed();}function _eofup_bg(a,b){this.abfj=true;this.abz(a,b);}function _eofup_bh(){if(this.abdh&&this.abdh.length)return this.abdh.length.toString();return"";}function _eofup_bi(){var a=this.abel(true);return a==0;}function _eofup_bj(){return this.aip!=eo_uy;}function _eofup_bk(a){this.abdp=a;this.abed();}_eofup_f.prototype=new _eofu_ea();_eofup_f.prototype.abcv=_eofup_g;_eofup_f.prototype.abcw=_eofup_h;_eofup_f.prototype.abci=_eofup_i;_eofup_f.prototype.bh=_eofup_p;_eofup_f.prototype.aci=_eofup_m;_eofup_f.prototype.abfs=_eofup_m;_eofup_f.prototype.abc=_eofup_s;_eofup_f.prototype.abds=_eofup_t;_eofup_f.prototype.abfr=_eofup_x;_eofup_f.prototype.ada=_eofup_ad;_eofup_f.prototype.abew=_eofup_aa;_eofup_f.prototype.abev=_eofup_z;_eofup_f.prototype.abex=_eofup_ac;_eofup_f.prototype.abey=_eofup_ab;_eofup_f.prototype.abff=_eofup_ae;_eofup_f.prototype.aaod=_eofup_af;_eofup_f.prototype.abfl=_eofup_ak;_eofup_f.prototype.abet=_eofup_ah;_eofup_f.prototype.abfn=_eofup_ai;_eofup_f.prototype.abdq=_eofup_aj;_eofup_f.prototype.abdr=_eofup_ar;_eofup_f.prototype.abft=_eofup_as;_eofup_f.prototype.abck=_eofup_at;_eofup_f.prototype.abel=_eofup_av;_eofup_f.prototype.aal=_eofup_ax;_eofup_f.prototype.aak=_eofi_cd;_eofup_f.prototype.abfc=_eofup_ay;_eofup_f.prototype.abfe=_eofup_aw;_eofup_f.prototype.ao=_eofup_r;_eofup_f.prototype.abx=_eofup_bg;_eofup_f.prototype.bj=_eofup_bh;_eofup_f.prototype.abed=_eofup_ag;_eofup_f.prototype.abdz=_eofup_q;_eofup_f.prototype.abfu=_eofup_bk;_eofup_f.prototype.getPercentage=_eofup_al;_eofup_f.prototype.getTotalBytes=_eofup_am;_eofup_f.prototype.getTransferredBytes=_eofup_an;_eofup_f.prototype.getElapsedSeconds=_eofup_ao;_eofup_f.prototype.getEstimiatedSecondsRemaining=_eofup_aq;_eofup_f.prototype.getSpeed=_eofup_ap;_eofup_f.prototype.getCurrentFileName=_eofup_az;_eofup_f.prototype.getTotalFileCount=_eofup_ba;_eofup_f.prototype.getTransferredFileCount=_eofup_bb;_eofup_f.prototype.getAllowedExtension=_eofup_bc;_eofup_f.prototype.setAllowedExtension=_eofup_bd;_eofup_f.prototype.getPostedFiles=_eofup_be;_eofup_f.prototype.cancel=_eofup_aj;_eofup_f.prototype.upload=_eofup_bf;_eofup_f.prototype.isEmpty=_eofup_bi;_eofup_f.prototype.isRunning=_eofup_bj;function _eofup_bl(a){this.abep=new _eofi_el();this.abfv=a?a:0;}function _eofup_bm(a){this.abfw=new _eofi_el();this.abfx=a;}function _eofup_bn(a){var b=a.abfx-this.abfv;var c=_eofi_em(this.abep.bj(),a.abfw.bj());c=c/1000;var d=Math.round(b/c);return d;}function _eofup_bo(a){var b=this.abep;var c=this.abfw;var d=new _eofi_el();var e=_eofi_em(b.bj(),c.bj());var f=_eofi_em(c.bj(),d.bj());if(e==0)return this.abfx;if(f>eo_ve)f=eo_ve;var g=(this.abfx-this.abfv)*(e+f)/e+this.abfv;g=Math.round(g);if(g>=a)g=a-1;return g;}_eofup_bl.prototype.aaod=_eofup_bm;_eofup_bl.prototype.abfp=_eofup_bn;_eofup_bl.prototype.abfm=_eofup_bo;function _eofup_bp(a){if(a)this.abfy(a);}function _eofup_bq(a){this.amm(a[0]);this.abfz(a[1],a[2]);}function _eofup_br(a){this.abdb=a!=null?a:"Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";}function _eofup_bs(a,b){this.aqu(a,b);this.abdv=document.getElementById(this.aj+"_pt");if(this.aoe)this.abfo=EO.Web.getObject(this.aoe+"_ProgressBar");if(!this.abfo&&this.aof)this.abfo=EO.Web.getObject(this.aof+"_ProgressBar");if(this.aoe)this.ano=document.getElementById(this.aoe+"_CancelButton");if(!this.ano&&this.aof)this.ano=document.getElementById(this.aof+"_CancelButton");if(this.ano){this.ano.eo_ki=this;this.ano.onclick=_eofup_bu;_eofi_ex(this.ano);}}function _eofup_bt(){this.aqv();if(this.ano){this.ano.eo_ki=null;this.ano.onclick=null;}}function _eofup_bu(a){var b=this.eo_ki;if(b){b.end();b.aben.abdq();}_eofi_dx(a);return false;}function fx_UploaderProgressDialog_OnVeilClick(a){if(this.aben)this.aben.abci();}_eofup_bp.prototype=new _eofdg_l();_eofup_bp.prototype.abfy=_eofup_bq;_eofup_bp.prototype.abfz=_eofup_br;_eofup_bp.prototype.aci=_eofup_bs;_eofup_bp.prototype.abc=_eofup_bt;_eofup_bp.prototype.apt=fx_UploaderProgressDialog_OnVeilClick;eo_LoadModules();eo_ModuleLoaded('up');