//**********************************************************************************************************
// 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.26.2
//**********************************************************************************************************
 var eo_ge=null;function _eofdd_a(a,b,c,d,e){if(b&&!b.eo_gf)b.eo_gf=new _eofdd_g(a,b,c,d,e);}function _eofdd_b(a){if(a&&a.eo_gf){a.eo_gf.afo();a.eo_gf=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_al(a);var g=_eofu_al(b);e.layerX+=g.abs-f.abs;e.layerY+=g.abt-f.abt;a.eo_gf.afp=d;a.eo_gf.aaq(c);a.eo_gf.afp=null;_eofi_ed(this,c);}function _eofdd_d(a){if(this.eo_gf){this.eo_gf.aaq(a);_eofi_ed(this,a);}}function _eofdd_e(a){if(this.eo_gf){this.eo_gf.afq(a);_eofi_ed(this,a);}}function _eofdd_f(a){if(this.eo_gf){this.eo_gf.acm(a);_eofi_ed(this,a);}}function _eofdd_g(a,b,c,d,e){this.afr=a;this.t=b;this.afs=c;this.aft=d;this.afu=b.onmousedown;this.afv=b.onmousemove;this.afw=b.onmouseup;b.onmousedown=_eofdd_d;b.onmousemove=_eofdd_e;if(e)b.eo_gg=b.onmouseup;b.onmouseup=_eofdd_f;}function _eofdd_h(a,b,c){a.eo_gh=b;a.eo_gh(c);a.eo_gh=null;}function _eofdd_i(a){if(this.afu&&!this.afp)_eofdd_h(this.t,this.afu,a);if(_eofu_aq(a))return;if(!a)a=window.event;this.abs=a.layerX?a.layerX:a.offsetX;this.abt=a.layerY?a.layerY:a.offsetY;this.afx=a.pageX?a.pageX:a.clientX;this.afy=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_gf=this;}eo_ge=this;}function _eofdd_j(a){if(eo_ge)eo_ge.afz(a);else if(this.aga)_eofdd_h(this.t,this.aga,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.afx;var e=c-this.afy;if((!this.aft)||((Math.abs(d)>this.aft.abs)||(Math.abs(e)>this.aft.abt))){if(this.abs!=null){this.afr.agb(this.afs,this.abs,this.abt);this.abs=null;this.abt=null;}else{this.afr.agc(this.afs,d,e);}}}function _eofdd_l(a){if(eo_ge)eo_ge.agd(a);else if(this.age)_eofdd_h(this.t,this.agf,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_gf=null;}if(!a)a=window.event;var b=a.pageX?a.pageX:a.clientX;var c=a.pageY?a.pageY:a.clientY;if(this.abs==null)this.afr.agg(this.afs,b-this.afx,c-this.afy,a);else{if(this.t.onmouseclick)this.t.onmouseclick(a);else if(this.t.eo_gg)this.t.eo_gg(a);}eo_ge=null;}function _eofdd_n(){if(!this.t)return;this.afr=null;this.t.onmousedown=this.afu;this.t.onmousemove=this.afv;this.t.onmouseup=this.afw;this.t.eo_gg=null;this.afs=null;}_eofdd_g.prototype.aaq=_eofdd_i;_eofdd_g.prototype.afq=_eofdd_j;_eofdd_g.prototype.afz=_eofdd_k;_eofdd_g.prototype.acm=_eofdd_l;_eofdd_g.prototype.agd=_eofdd_m;_eofdd_g.prototype.afo=_eofdd_n;eo_LoadModules();eo_ModuleLoaded('dd');