//**********************************************************************************************************
// 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_fu=null;function _eofdd_a(a,b,c,d,e){if(b&&!b.eo_fv)b.eo_fv=new _eofdd_g(a,b,c,d,e);}function _eofdd_b(a){if(a&&a.eo_fv){a.eo_fv.afc();a.eo_fv=null;}}function _eofdd_c(a,b,c,d){if(!c)c=window.event;var e=new Object();e.layerX=c.layerX?c.layerX:c.offsetX;e.layerY=c.layerY?c.layerY:c.offsetY;e.pageX=c.pageX?c.pageX:c.clientX;e.pageY=c.pageY?c.pageY:c.clientY;var f=_eofu_ak(a);var g=_eofu_ak(b);e.layerX+=g.abq-f.abq;e.layerY+=g.abr-f.abr;a.eo_fv.afd=d;a.eo_fv.aap(c);a.eo_fv.afd=null;_eofi_dz(this,c);}function _eofdd_d(a){if(this.eo_fv){this.eo_fv.aap(a);_eofi_dz(this,a);}}function _eofdd_e(a){if(this.eo_fv){this.eo_fv.afe(a);_eofi_dz(this,a);}}function _eofdd_f(a){if(this.eo_fv){this.eo_fv.ack(a);_eofi_dz(this,a);}}function _eofdd_g(a,b,c,d,e){this.aff=a;this.t=b;this.afg=c;this.afh=d;this.afi=b.onmousedown;this.afj=b.onmousemove;this.afk=b.onmouseup;b.onmousedown=_eofdd_d;b.onmousemove=_eofdd_e;if(e)b.eo_fw=b.onmouseup;b.onmouseup=_eofdd_f;}function _eofdd_h(a,b,c){a.eo_fx=b;a.eo_fx(c);a.eo_fx=null;}function _eofdd_i(a){if(this.afi&&!this.afd)_eofdd_h(this.t,this.afi,a);if(_eofu_ap(a))return;if(!a)a=window.event;this.abq=a.layerX?a.layerX:a.offsetX;this.abr=a.layerY?a.layerY:a.offsetY;this.afl=a.pageX?a.pageX:a.clientX;this.afm=a.pageY?a.pageY:a.clientY;if(this.t.setCapture)this.t.setCapture();else if(window.captureEvents){window.captureEvents(Event.MOUSEMOVE|Event.MOUSEUP);window.onmousemove=_eofdd_e;window.onmouseup=_eofdd_f;window.eo_fv=this;}eo_fu=this;}function _eofdd_j(a){if(eo_fu)eo_fu.afn(a);else if(this.afo)_eofdd_h(this.t,this.afo,a);}function _eofdd_k(a){if(!a)a=window.event;var b=a.pageX?a.pageX:a.clientX;var c=a.pageY?a.pageY:a.clientY;var d=b-this.afl;var e=c-this.afm;if((!this.afh)||((Math.abs(d)>this.afh.abq)||(Math.abs(e)>this.afh.abr))){if(this.abq!=null){this.aff.afp(this.afg,this.abq,this.abr);this.abq=null;this.abr=null;}else{this.aff.afq(this.afg,d,e);}}}function _eofdd_l(a){if(eo_fu)eo_fu.afr(a);else if(this.afs)_eofdd_h(this.t,this.aft,a);}function _eofdd_m(a){if(this.t.releaseCapture)this.t.releaseCapture();else if(window.releaseEvents){window.releaseEvents(Event.MOUSEMOVE|Event.MOUSEUP);window.onmousemove=null;window.onmouseup=null;window.eo_fv=null;}if(!a)a=window.event;var b=a.pageX?a.pageX:a.clientX;var c=a.pageY?a.pageY:a.clientY;if(this.abq==null)this.aff.afu(this.afg,b-this.afl,c-this.afm,a);else{if(this.t.onmouseclick)this.t.onmouseclick(a);else if(this.t.eo_fw)this.t.eo_fw(a);}eo_fu=null;}function _eofdd_n(){if(!this.t)return;this.aff=null;this.t.onmousedown=this.afi;this.t.onmousemove=this.afj;this.t.onmouseup=this.afk;this.t.eo_fw=null;this.afg=null;}_eofdd_g.prototype.aap=_eofdd_i;_eofdd_g.prototype.afe=_eofdd_j;_eofdd_g.prototype.afn=_eofdd_k;_eofdd_g.prototype.ack=_eofdd_l;_eofdd_g.prototype.afr=_eofdd_m;_eofdd_g.prototype.afc=_eofdd_n;eo_LoadModules();eo_ModuleLoaded('dd');