//**********************************************************************************************************
// 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.41.2
//**********************************************************************************************************
 var eo_vd=0;var eo_ve=1;var eo_vf=2;var eo_vg=3;var eo_vh=4;var eo_vi=5;var eo_vj=100000;function _eofup_a(a,b,c,d){this.abdn=a;this.abdo=b;this.abdp=c;this.abdq=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.abdo);b=b.replace(/\{posted_file_type\}/g,this.abdp);b=b.replace(/\{posted_file_size\}/g,this.abdq);var c=this.abdq/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.abdq/1024);if(d==0)d=1;b=b.replace(/\{posted_file_size_kb\}/g,d);return b;}function _eofup_c(){return this.abdo;}function _eofup_d(){return this.abdp;}function _eofup_e(){return this.abdq;}_eofup_a.prototype.avb=_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.abdr(a);}function _eofup_g(a){this.aen(a[0]);this.abds(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.bkw=a==null?1:a;this.abdt=b;this.ait=eo_vd;this.abdu=c;this.aof=e;this.abdv=d;this.abdw=f;this.abdx=g;this.abdy=h;this.abdz=l;this.abea=i;this.abeb=j;this.abec=o;this.abed=new Array();if(k){for(var v=0;v<k.length;v++){_eofldr_s(this.abed,new _eofup_a(k[v]));}}if(m){m=m.toLowerCase();this.abee=m.split("|");}this.abef=n;this.aakd=p;this.abeg=q;this.abeh=r;this.abei=s;this.abej=t;this.abek=u;if(r){this.bkw=1;this.abec=true;}this.abel=true;}function _eofup_i(){this.acj("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_j(){var a=this.eo_vk;a.upload();return false;}function _eofup_k(){var a=this.eo_vk;if(a)a.abem();return false;}function _eofup_l(){var a=this.eo_vk;if(a)a.aben();return false;}function _eofup_m(){this.afs();this.aaei=document.getElementById(this.ax);this.bqg=document.getElementById(this.ax+"_rt");this.afu([this.bqg,this.aaei],true);this.abeo();this.abep=document.getElementById(this.ax+"_UploadButton");if(this.abep){this.abep.eo_vk=this;this.abep.onclick=_eofup_j;_eofi_ep(this.abep);}this.aoa=document.getElementById(this.ax+"_CancelButton");if(this.aoa){this.aoa.eo_vk=this;this.aoa.onclick=_eofup_k;_eofi_ep(this.aoa);}for(var a=0;a<this.bkw;a++){var b=document.getElementById(this.ax+"_BrowseButton"+a);if(b){b.onclick=_eofu_ew;_eofi_ep(b);}}this.abeq=document.getElementById(this.ax+"_DeleteButton");if(this.abeq){this.abeq.eo_vk=this;this.abeq.onclick=_eofup_l;_eofi_ep(this.abeq);if(!this.abed.length)this.abeq.style.display="none";}this.aber=document.getElementById(this.ax+"_pt");this.abes=document.getElementById(this.ax+"_postedFiles");this.agb();this.afv();_eofu_ar(this,eo_bj,100,true);if(_eofldr_h()=="IE")_eofu_ar(this,eo_bk,100,true);}var eo_vl=null;var eo_vm=null;var eo_vn=null;function _eofup_n(a){eo_vl=a.createElement("form");eo_vl.name="_eo_upload_form";eo_vl.id="_eo_upload_form";eo_vl.method="post";eo_vl.enctype="multipart/form-data";eo_vl.encoding="multipart/form-data";a.body.appendChild(eo_vl);var b=a.createElement("DIV");b.id="_eo_upload_root";b.style.position="relative";b.style.left="-3000px";b.style.top="-3000px";eo_vl.appendChild(b);eo_vm=b;}function _eofup_o(){eo_vn.innerHTML="";var a=_eofu_db(document,true);eo_vn.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_vn&&!eo_vl){if(_eofldr_h()!="SA")_eofup_n(document);else{eo_vn=document.createElement("DIV");document.body.appendChild(eo_vn);}}if(this.abeg&&!this.abet){this.abet=eo_GetObject(this.abeg);if(!this.abet)this.abs("StartToolBarButton is invalid.");else{var a=this;this.abeu=this.abet.awe;this.abet.awe=function(tb,tbItem){return a.abev(tb,tbItem);};this.abew=this.abet.getItem(this.abeh);if(!this.abew)this.abs("ToolBarItem specified by StartToolBarButton does not exist.");else{if(this.abew.amf)this.abeo();else{var b=this.abet.acv;this.abet.acv=function(){if(b)b.apply(this);a.abeo();}}}}}if(this.abei&&!this.abex){this.abex=eo_GetObject(this.abei);if(!this.abex)this.abs("StopToolBarButton is invalid.");else{this.abey=this.abex.getItem(this.abej);if(!this.abey)this.abs("ToolBarItem specified by StopToolBarButton does not exist.");}}this.abeo();this.abez();}function _eofup_q(a,b){if(b==this.abew)return false;if(b==this.abey){this.cancel();return false;}var c=this.abeu;if(c){if(typeof(c)=="string")c=window[c];if(c)return c(a,b);}}function _eofup_r(){return this.aaei?this.aaei:this.bqg;}function _eofup_s(){this.abem();this.aaox();_eofu_as(this,eo_bd);_eofu_as(this,eo_be);_eofu_as(this,eo_bf);_eofu_as(this,eo_bg);_eofu_as(this,eo_bh);_eofu_as(this,eo_bi);_eofu_as(this,eo_bj);if(_eofldr_h()=="IE")_eofu_as(this,eo_bk);if(this.abep){this.abep.eo_vk=null;this.abep.onclick=null;}if(this.aoa){this.aoa.eo_vk=null;this.aoa.onclick=null;}for(var a=0;a<this.bkw;a++){var b=document.getElementById(this.ax+"_BrowseButton"+a);if(b)b.onclick=null;}this.abeq=document.getElementById(this.ax+"_DeleteButton");if(this.abeq){this.abeq.eo_vk=null;this.abeq.onclick=null;}this.aber=null;this.abes=null;if(this.ad){try{this.ad.onreadystatechange=null;}catch(e){}this.ad=null;}}function _eofup_t(){if(this.abeg&&(!this.abet||!this.abew||!this.abew.amf))return;this.abfa=null;if(this.abef){this.abfa=this.abef-this.abed.length;if(this.abfa<0)this.abfa=0;}this.abfb=new Array();for(var a=0;a<this.bkw;a++){var b=document.getElementById(this.ax+"_t_"+a);if(!b&&!this.abet)continue;var c=document.getElementById(this.ax+"_i_"+a);var d=document.getElementById(this.ax+"_d_"+a);var e=document.getElementById(this.ax+"_f_"+a);var f=document.getElementById(this.ax+"_BrowseButton"+a);if(this.abet){d=this.abfc;if(!this.abfc){d=document.createElement("DIV");this.abew.amf.appendChild(d);this.abfc=d;this.abew.abfd(d);}}if(e){e.ael=null;e.eo_vo=null;e.eo_vp=null;e.onkeyup=null;e.onmouseout=null;e.parentNode.removeChild(e);}var g=this.ax+"_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_s(this.abfb,e);if(this.abfa!=null){if(this.abfa>0){e.disabled=false;if(c)c.disabled=false;if(f)f.disabled=false;if(this.abew)this.abew.abfe(true);this.abfa--;}else{e.disabled=true;if(c)c.disabled=true;if(f)f.disabled=true;if(this.abew)this.abew.abfe(false);}}if(b){if(_eofldr_h()=="IE"){if(_eofldr_n(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.abff=h;d.appendChild(h);b.rows[0].cells[1].style.paddingLeft="8px";}else{e.style.width="100%";}e.eo_vo=c;c.value="";e.eo_vp=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_fc(e,1);}else{b.style.display="none";d.style.position="";}}else{_eofu_fc(e,1);this.abfg=e;e.onmouseup=function(){_eofi_i(function(){_eofu_fj(document.body);},10);};if(_eofldr_h()!="SA")d.appendChild(e);}_eofu_ar(this,eo_bf,100);}}function _eofup_u(){var a=this;var b=this.eo_vo;if(b.value!=a.value)b.value=a.value;if(this.eo_vp.abep)this.eo_vp.abep.disabled=!a.value;}function _eofup_v(){var a=this.parentElement;var b=_eofu_ac(a);if(!b){if(!_eofldr_n(this))return"100%";else return"auto";}else return _eofldr_ba(b);}function _eofup_w(a){return _eofi_eh("4EF2A06E-5171-4166-82A6-242BD1985E8A")+"&uploader_data="+a.aav();}function _eofup_x(){if(this.ait!=eo_vd){this.abde();return;}var a=this.abfh(true,-1);if(a<=0){this.abem();this.aaox();if(a<0)this.abeo();return;}this.abfi=null;if(this.abdy)this.abfi=EO.Web.getObject(this.abdy);if(!this.abfi){}else{this.abfi.abfj=this;this.abfi.show(true);}this.abfk=null;this.abfl=new _eofldr_be();this.abfm=new Array();this.abfn=this.abfo=null;this.abfp();this.abfq=new _eofup_bl(0);if(this.abeq)this.abeq.disabled=true;this.ait=eo_ve;var b=new _eofi_bc("new_session");b.aas(this.ax,new _eofi_bc(this.abdt));b.aas("fc",new _eofi_bc(this.abfh(false)));this.abfr(b);_eofu_ar(this,eo_bh,150,true);}function _eofup_y(a){this.abfj.acj("in_progress","An AJAX Uploading session is currently in progress.");}function _eofup_z(a){this.ad=_eofldr_aj();if(this.ad){var b=this;this.ad.onreadystatechange=function(){b.abfs()};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.be)return;var a=this.ad;if(a.readyState&&((a.readyState==4)||(a.readyState=="complete"))){if(a.responseXML){var b=this.abft(a.responseXML);if(!b&&(this.ait!=eo_vd)){var c=a.responseText;if(!c){_eofi_k("AJAXUploader '"+this.ax+"' has failed due to a "+"server or network problem.");}else{_eofi_k("AJAXUploader '"+this.ax+"' has failed due to a "+"server side exception. Click OK to see the exception message.");this.aago=c;_eofi_i("eo_Callback_UpdateDocument(\""+this.ax+"\");",100);}this.aaox();}}}}function _eofup_ab(a,b){var c=_eofldr_al(a,"Command");if(!c)return false;var d=_eofu_fe(c);return d==b;}function _eofup_ac(a){var b=a.documentElement;if(b&&b.firstChild){if(this.ait==eo_ve){if(!this.abfu(b,"NewSession"))return;var c=_eofldr_al(b,"Error");if(c){this.acj("server_error",c.firstChild.nodeValue);this.aaox();return true;}b=_eofldr_al(b,"SessionID");this.abdj=b.firstChild.nodeValue;_eofu_ar(this,eo_be,0);}else if(this.ait==eo_vf){if(!this.abfu(b,"GetProgress"))return;this.abfn=parseInt(_eofldr_al(b,"Total").firstChild.nodeValue);var d=parseInt(_eofldr_al(b,"Received").firstChild.nodeValue);this.abfv=parseInt(_eofu_fe(_eofldr_al(b,"TotalFiles")));this.abfw=parseInt(_eofu_fe(_eofldr_al(b,"TransferredFiles")));this.abfx=_eofu_fe(_eofldr_al(b,"CurrentFileName"));if((d>0)&&(d<this.abfo))d=this.abfo;if((this.abfn>=0)&&(d>this.abfn))d=this.abfn;this.abfo=d;if(this.abfq){this.abfq.aaox(d);_eofldr_s(this.abfm,this.abfq);this.abfq=null;}if((this.abfn>0)&&(this.abfo>=0)){this.abfp();this.abfq=new _eofup_bl(this.abfo);}if(this.abfn>=0){if(this.abfo<0){switch(this.abfo){case-1:this.acj("unknown_error","An unknown error has occurred.");break;case-2:this.acj("max_size_exceeded","The size of the submitted data exceeded the maximum allowed size.");break;case-3:break;case-4:this.acj("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.acj("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.aaox();this.abeo();return true;}else if(this.abfo>=this.abfn){this.ait=eo_vi;_eofu_ar(this,eo_bl,1);return true;}_eofu_ar(this,eo_bg,eo_vj);}var e=0;if(this.abfl!=null)e=this.abfl.p();if(e<200)_eofu_ar(this,eo_bd,20);else if(e<1000)_eofu_ar(this,eo_bd,100);else if(e<3000)_eofu_ar(this,eo_bd,300);else _eofu_ar(this,eo_bd,1000);}else if(this.ait==eo_vg){if(!this.abfu(b,"DeleteFile"))return;this.ait=eo_vd;this.abfy(_eofldr_al(b,"PostedFiles"));if(this.abef)this.abeo();this.adl(eo_bj);}else if(this.ait==eo_vh){this.aaox();this.abeo();}else if(this.ait==eo_vi){this.abfz=2;this.aaox();this.abfy(_eofldr_al(b,"PostedFiles"));this.abeo();_eofu_ar(this,eo_bi,0);}return true;}return false;}function _eofup_ad(a){if(a==eo_be){var b=new _eofi_bc("upload");b.aas(this.ax,new _eofi_bc(this.abdt));b.aas("s",new _eofi_bc(this.abdj));if(eo_vn){var c=_eofup_o();_eofup_n(c);}eo_vm.innerHTML="";for(var d=0;d<this.abfb.length;d++){var e=this.abfb[d];e.parentNode.removeChild(e);eo_vm.appendChild(e);e.eo_vq=true;}if(!eo_vn)eo_vl.target=this.ax+"_frame";eo_vl.action=_eofup_w(b);try{eo_vl.submit();this.ait=eo_vf;_eofu_ar(this,eo_bd,10);_eofu_ar(this,eo_bg,eo_vj);}catch(e){this.aaox();}var f=this.abdv;if(f){if(typeof(f)=="string")f=window[this.abdv];if(f)f(this);}}else if(a==eo_bd){if(this.abdj){var b=new _eofi_bc("get_progress");b.aas(this.ax,new _eofi_bc(this.abdt));b.aas("s",new _eofi_bc(this.abdj));b.aas("ds",new _eofi_bc(this.abga()));this.abfr(b);}}else if(a==eo_bf){if(!this.abgb())_eofu_ar(this,eo_bf,100);}else if(a==eo_bg){if(this.ait==eo_vf){this.aaox();this.acj("timeout","AJAX call to the server times out.");}}else if(a==eo_bh){this.abfp();}else if(a==eo_bi){if(this.abdz==null)this.abdz=new Array();this.abfn=this.abfo=null;this.abfp();_eofldr_s(this.abdz,"N"+this.abdj);if(this.abea){if(this.bpq){_eofc_aq(this.bpq,this.ax,null,this.abgc);}this.acq();if(this.bpq)_eofc_ar();}}else if(a==eo_bj){var g=this.abfh(false);if(g&&this.abec&&(this.ait==eo_vd)){if(this.abgd!=this.abge)this.abgf=false;if(!this.abgf){this.abgd=this.abge;this.upload();}}if(this.abep)this.abep.disabled=!g||(this.ait!=eo_vd);if(this.abeq){var h=false;for(var d=0;d<this.abed.length;d++){var i=document.getElementById(this.ax+"_del_"+d);if(i&&i.checked){h=true;break;}}this.abeq.disabled=!h||(this.ait!=eo_vd);}if(this.abew&&this.abfc){var j=_eofu_ac(this.abew.amf);var k=_eofu_ac(this.abfc);if(j&&k&&(k>j)){if(_eofldr_h()=="SA")this.abfc.style.clip=_eofu_cw(null,j,null,null);else this.abfc.style.clip=_eofu_cw(null,null,null,k-j);}if(this.abfg&&this.abfg.eo_vr)_eofu_fj(document.body);}}else if(a==eo_bk){for(var d=0;d<this.bkw;d++){var e=document.getElementById(this.ax+"_f_"+d);if(e){if(this.abew){}else{var l=e.parentNode.clientWidth;if(l){e.style.width=_eofldr_ba(l);if(_eofldr_i()<7){var m=document.getElementById(this.ax+"_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=_eofldr_ba(Math.round((o-n)/2));}}}}}}}}else if(a==eo_bl){var b=new _eofi_bc("get_postedfiles");b.aas(this.ax,new _eofi_bc(this.abdt));b.aas("s",new _eofi_bc(this.abdj));b.aas("ds",new _eofi_bc(this.abga()));this.abfr(b);}else this.aga(a);}function _eofup_ae(){var a;var b;var c;if(this.abff){var d=document.getElementById(this.ax+"_d_0");var b=_eofu_ac(d);var c=_eofu_ac(this.abff);if(!b||!c)return false;while(c<b){this.abff.size=this.abff.size+1;c=_eofu_ac(this.abff);}while(c>b){this.abff.size=this.abff.size-1;c=_eofu_ac(this.abff);}c=this.abff.size;for(var a=0;a<this.bkw;a++){var e=document.getElementById(this.ax+"_f_"+a);e.size=c;}}return true;}function _eofup_af(){_eofu_as(this,eo_bd);_eofu_as(this,eo_bg);_eofu_as(this,eo_bh);this.ait=eo_vd;if(this.abep)this.abep.disabled=false;if(this.aoa)this.aoa.disabled=true;if(this.abeq)this.abeq.disabled=false;this.abez();this.abfk=null;this.abfl=null;this.abfm=null;this.abgg=null;if(this.abfi){this.abfi.end();this.abfi=null;}this.abfv=null;this.abfw=null;this.abfx=null;this.abfp();this.abgh();try{var a=document.getElementById(this.ax+"_frame");if(a&&a.contentWindow){var b=a.contentWindow.document;b.write("");b.close();}}catch(e){}}function _eofup_ag(){var a=this.ait!=eo_vd;if(this.abew){this.abew.abfe(!a&&this.abel);if(this.abek)this.abew.amq(!a);}if(this.abey){this.abey.abfe(a&&this.abel);if(this.abek)this.abey.amq(a);}}function _eofup_ah(){var a=this.abfn;var b=this.abfo;var c=b;if((a>0)&&(b>0)&&this.abfm&&this.abfm.length){var d=this.abfm[this.abfm.length-1];c=d.abgi(a);}if((a>0)&&(b>0)){if(c&&this.abfk&&(c<this.abfk))c=this.abfk;this.abfk=c;}else{a=null;c=null;}if(this.abfi){this.abgj(a,b,c,this.abfi.abgk,this.abfi.aber,this.abfi.abdx,this.abfi.aoa);}var e=eo_GetObject(this.ax+"_ProgressBar");this.abgj(a,b,c,e,this.aber,this.abdx,this.aoa);if(this.abdu){var f=window[this.abdu];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_as(this,eo_bg);_eofu_as(this,eo_bd);if(this.ait!=eo_vd){if(this.abdj){var a=new _eofi_bc("cancel");a.aas(this.ax,new _eofi_bc(this.abdt));a.aas("s",new _eofi_bc(this.abdj));this.abfr(a);this.ait=eo_vh;}}this.abfn=-1;this.abfo=-1;this.abfm=null;this.abfp();if(!this.abdj)this.aaox();this.abdj=null;this.abgh();}function _eofup_ak(){if(this.abfz){var a=this.abfz==2?this.abdw:this.aof;this.abfz=0;if(a){a=window[a];if(a)a(this);}}}function _eofup_al(){if(this.abfk>0)return Math.round(this.abfk*100/this.abfn);else if(this.abfo>0)return Math.round(this.abfo*100/this.abfn);else return null;}function _eofup_am(){if(this.abfn<0)return null;return this.abfn;}function _eofup_an(){if(this.abfo<0)return null;if(this.abfk>0)return this.abfk;return this.abfo;}function _eofup_ao(){if(this.abfl!=null)return Math.round(this.abfl.p()/1000);else return null;}function _eofup_ap(){if(!this.abfm)return 0;var a=this.abfm.length-3;if(a<0)a=0;var b=this.abfm.length-1;var c=this.abfm[a].abgl(this.abfm[b]);return c;}function _eofup_aq(){if(!this.abfm||!this.abfn)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.ait!=eo_vd)return;if(this.abeq){for(var a=0;a<this.abed.length;a++){var b=document.getElementById(this.ax+"_del_"+a);if(b)b.disabled=true;}this.abeq.disabled=true;}var c=new _eofi_bc("delete_file");c.aas(this.ax,new _eofi_bc(this.abdt));c.aas("ds",new _eofi_bc(this.abga()));for(var a=0;a<this.abed.length;a++){var b=document.getElementById(this.ax+"_del_"+a);if(b.checked)c.aas("f"+a,new _eofi_bc(this.abed[a].abdn));}this.ait=eo_vg;this.adl(eo_bj);this.abfr(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.aoa)continue;var e=d.type.toLowerCase();if((e=="submit")||(e=="image")){d.eo_vp=this;d.eo_vs=d.onclick;d.onclick=_eofup_au;_eofldr_s(a,d);}}this.abdk=a;}function _eofup_at(){if(this.abdk){for(var a=0;a<this.abdk.length;a++){var b=this.abdk[a];b.eo_vp=null;b.onclick=b.eo_vs;b.eo_vs=null;}this.abdk=null;}}function _eofup_au(a){var b=this.eo_vp;b.abde(a);_eofi_du(a);return false;}function _eofup_av(a,b){var c=0;var d="";for(var e=0;e<this.bkw;e++){var f=document.getElementById(this.ax+"_f_"+e);if(f&&f.value){if(a&&this.abee){var g=false;var h=f.value;h=h.toLowerCase();for(var i=0;i<this.abee.length;i++){var j=this.abee[i];if(j&&(h.length>=j.length)){var k=h.substring(h.length-j.length);if(k==j){g=true;break;}}}if(!g){var l=h;var m=l.lastIndexOf('/');if(m<0)m=l.lastIndexOf('\\');if(m>0)l=l.substr(m+1);this.acj("extension_not_allowed","File '"+l+"' has an extension that is not allowed.");if(typeof(b)=="number")return b;return 0;}}d+=";"+f.value;c++;}}this.abge=d;return c;}function _eofup_aw(){var a=null;if(this.abdz){for(var b=0;b<this.abdz.length;b++){if(a==null)a=this.abdz[b];else a=a+"|"+this.abdz[b];}}return a;}function _eofup_ax(){var a=this.abga();var b=new _eofi_bc(a);if(this.abgm)b.aas("exts",new _eofi_bc(this.abgm));return b;}function _eofup_ay(a){var b=new Array();a=a.firstChild;while(a){if(a.tagName=="File"){var c=_eofldr_al(a,"TempFileName").firstChild.nodeValue;var d=_eofldr_al(a,"ClientFileName").firstChild.nodeValue;var e="";var f=_eofldr_al(a,"ContentType").firstChild;if(f)e=f.nodeValue;var g=parseInt(_eofldr_al(a,"FileSize").firstChild.nodeValue);_eofldr_s(b,new _eofup_a(c,d,e,g));}a=a.nextSibling;}this.abed=b;if(this.abes){var h="";for(var i=0;i<this.abed.length;i++){var j=this.abed[i];var k=j.avb(this.abeb);k="<input type=\"checkbox\" id=\""+this.ax+"_del_"+i+"\" />"+k+"<br />";h+=k;}this.abes.innerHTML=h;}if(this.abeq){if(this.abed.length)this.abeq.style.display="block";else this.abeq.style.display="none";}if(this.aakd){var l=window[this.aakd];if(l)l(this);}}function _eofup_az(){return this.abfx;}function _eofup_ba(){return this.abfv;}function _eofup_bb(){return this.abfw;}function _eofup_bc(){if(!this.abee)return null;var a="";for(var b=0;b<this.abee.length;b++){if(b>0)a+="|";a+=this.abee[b];}return a;}function _eofup_bd(a){if(a){a=a.toLowerCase();this.abee=a.split("|");this.abgm=a;}else{this.abee=null;this.abgm=" ";}}function _eofup_be(){return this.abed;}function _eofup_bf(){this.abfz=1;if(eo_n)this.abgn();if(this.abep)this.abep.disabled=true;this.abez();}function _eofup_bg(a,b){this.abgf=true;this.acl(a,b);}function _eofup_bh(){if(this.abed&&this.abed.length)return this.abed.length.toString();return"";}function _eofup_bi(){var a=this.abfh(true);return a==0;}function _eofup_bj(){return this.ait!=eo_vd;}function _eofup_bk(a){this.abel=a;this.abez();}_eofup_f.prototype=new _eofu_du();_eofup_f.prototype.abdr=_eofup_g;_eofup_f.prototype.abds=_eofup_h;_eofup_f.prototype.abde=_eofup_i;_eofup_f.prototype.aad=_eofup_p;_eofup_f.prototype.acu=_eofup_m;_eofup_f.prototype.abgo=_eofup_m;_eofup_f.prototype.abo=_eofup_s;_eofup_f.prototype.abeo=_eofup_t;_eofup_f.prototype.abgn=_eofup_x;_eofup_f.prototype.adl=_eofup_ad;_eofup_f.prototype.abfs=_eofup_aa;_eofup_f.prototype.abfr=_eofup_z;_eofup_f.prototype.abft=_eofup_ac;_eofup_f.prototype.abfu=_eofup_ab;_eofup_f.prototype.abgb=_eofup_ae;_eofup_f.prototype.aaox=_eofup_af;_eofup_f.prototype.abgh=_eofup_ak;_eofup_f.prototype.abfp=_eofup_ah;_eofup_f.prototype.abgj=_eofup_ai;_eofup_f.prototype.abem=_eofup_aj;_eofup_f.prototype.aben=_eofup_ar;_eofup_f.prototype.abgp=_eofup_as;_eofup_f.prototype.abdg=_eofup_at;_eofup_f.prototype.abfh=_eofup_av;_eofup_f.prototype.aax=_eofup_ax;_eofup_f.prototype.aaw=_eofi_ca;_eofup_f.prototype.abfy=_eofup_ay;_eofup_f.prototype.abga=_eofup_aw;_eofup_f.prototype.bb=_eofup_r;_eofup_f.prototype.acj=_eofup_bg;_eofup_f.prototype.ak=_eofup_bh;_eofup_f.prototype.abez=_eofup_ag;_eofup_f.prototype.abev=_eofup_q;_eofup_f.prototype.abgq=_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.abfl=new _eofldr_be();this.abgr=a?a:0;}function _eofup_bm(a){this.abgs=new _eofldr_be();this.abgt=a;}function _eofup_bn(a){var b=a.abgt-this.abgr;var c=_eofldr_bf(this.abfl.ak(),a.abgs.ak());c=c/1000;var d=Math.round(b/c);return d;}function _eofup_bo(a){var b=this.abfl;var c=this.abgs;var d=new _eofldr_be();var e=_eofldr_bf(b.ak(),c.ak());var f=_eofldr_bf(c.ak(),d.ak());if(e==0)return this.abgt;if(f>eo_vj)f=eo_vj;var g=(this.abgt-this.abgr)*(e+f)/e+this.abgr;g=Math.round(g);if(g>=a)g=a-1;return g;}_eofup_bl.prototype.aaox=_eofup_bm;_eofup_bl.prototype.abgl=_eofup_bn;_eofup_bl.prototype.abgi=_eofup_bo;function _eofup_bp(a){if(a)this.abgu(a);}function _eofup_bq(a){this.amy(a[0]);this.abgv(a[1],a[2]);}function _eofup_br(a){this.abdx=a!=null?a:"Uploading...{transferred} bytes of {total} bytes ({percentage}%) done.";}function _eofup_bs(a,b){this.ari(a,b);this.aber=document.getElementById(this.ax+"_pt");if(this.aoq)this.abgk=EO.Web.getObject(this.aoq+"_ProgressBar");if(!this.abgk&&this.aor)this.abgk=EO.Web.getObject(this.aor+"_ProgressBar");if(this.aoq)this.aoa=document.getElementById(this.aoq+"_CancelButton");if(!this.aoa&&this.aor)this.aoa=document.getElementById(this.aor+"_CancelButton");if(this.aoa){this.aoa.eo_kn=this;this.aoa.onclick=_eofup_bu;_eofi_ep(this.aoa);}}function _eofup_bt(){this.arj();if(this.aoa){this.aoa.eo_kn=null;this.aoa.onclick=null;}}function _eofup_bu(a){var b=this.eo_kn;if(b){b.end();b.abfj.abem();}_eofi_du(a);return false;}function fx_UploaderProgressDialog_OnVeilClick(a){if(this.abfj)this.abfj.abde();}_eofup_bp.prototype=new _eofdg_n();_eofup_bp.prototype.abgu=_eofup_bq;_eofup_bp.prototype.abgv=_eofup_br;_eofup_bp.prototype.acu=_eofup_bs;_eofup_bp.prototype.abo=_eofup_bt;_eofup_bp.prototype.aqf=fx_UploaderProgressDialog_OnVeilClick;eo_LoadModules();eo_ModuleLoaded('up');