AdfDhtmlCommonFlashPeer.prototype.hl=function(a,b){var c=A_Nb(this,this.getComponent(),a);if("HTML5"==this.L()){if(this.c&&this.c.hl)return this.c.hl(c.x,c.y,b)}else{var d=this.oa();if(d&&d.isDragAvailable)return d.isDragAvailable(c.x,c.y,b)}return null};AdfDhtmlCommonFlashPeer.prototype.initiateDrag=function(a,b){AdfDhtmlCommonFlashPeer.superclass.initiateDrag.call(this,a,b);"HTML5"==this.L()&&this.c&&this.c.initiateDrag&&this.c.initiateDrag()};
AdfDhtmlCommonFlashPeer.prototype.getDragTransferable=function(a,b){var c=A_Nb(this,a,b);if("HTML5"==this.L()){if(this.c&&this.c.getDragTransferable)return this.c.getDragTransferable(c.x,c.y)}else{var d=this.oa();if(d&&d.getDragTransferable)return d.getDragTransferable(c.x,c.y)}return null};AdfDhtmlCommonFlashPeer.prototype.getDragTransferable=AdfDhtmlCommonFlashPeer.prototype.getDragTransferable;AdfDhtmlCommonFlashPeer.prototype.rf=function(){};
AdfDhtmlCommonFlashPeer.prototype.getDragOverFeedback=function(a,b){var c=A_Nb(this,a,b);if("HTML5"==this.L()){if(this.c&&this.c.getDragOverFeedback){var c=this.c.getDragOverFeedback(c.x,c.y),d=dvt.KR.OK(c,this.c.ii().getStage());this.c.fs&&this.c.fs(c);return d}}else if((d=this.oa())&&d.getDragOverFeedback){d.disableEvents&&d.disableEvents;var e=AdfDhtmlCommonFlashPeer.Np();return d.getDragOverFeedback(c.x,c.y,e)}return null};AdfDhtmlCommonFlashPeer.prototype.getDragOverFeedback=AdfDhtmlCommonFlashPeer.prototype.getDragOverFeedback;
AdfDhtmlCommonFlashPeer.prototype.Yn=function(a,b){var c=A_Nb(this,a,b);if("HTML5"==this.L()){if(this.c&&this.c.Yn)return this.c.Yn(c.x,c.y)}else{var d=this.oa();if(d&&d.getDragOffset)return d.getDragOffset(c.x,c.y)}return null};AdfDhtmlCommonFlashPeer.prototype.getDragOffset=AdfDhtmlCommonFlashPeer.prototype.Yn;A_=AdfDhtmlCommonFlashPeer.prototype;
A_.Ls=function(a,b){if("HTML5"==this.L()){if(this.c&&this.c.Ls)return this.c.Ls(a,b)}else{var c=this.oa();if(c&&c.getPointerOffset)return c.getPointerOffset(a,b)}return{x:a,y:b}};A_.dragDropEnd=function(){if("HTML5"==this.L())this.c&&this.c.dragDropEnd&&this.c.dragDropEnd();else{var a=this.oa();a&&a.dragDropEnd&&(a.enableEvents&&a.enableEvents(),a.dragDropEnd())}};
A_.Yh=function(a,b,c){if("HTML5"==this.L()){if(this.c&&this.c.Yh)return this.c.Yh(a,b,c)}else{var d=this.oa();if(d&&d.acceptDrag)return(a=d.acceptDrag(a,b,c))&&d.disableEvents&&d.disableEvents(),a}return null};A_.dragEnter=function(){if("HTML5"==this.L())this.c&&this.c.dragEnter&&this.c.dragEnter();else{var a=this.oa();a&&a.dragEnter&&a.dragEnter()}};
A_.dragExit=function(){if("HTML5"==this.L())this.c&&this.c.dragExit&&this.c.dragExit();else{var a=this.oa();a&&a.dragExit&&(a.enableEvents&&a.enableEvents(),a.dragExit())}};A_.Zn=function(a,b){if("HTML5"==this.L()){if(this.c&&this.c.Zn)return this.c.Zn(a,b)}else{var c=this.oa();if(c&&c.getDropSite)return c.getDropSite(a,b)}this.dragExit();return null};
A_.prepDrag=function(a,b){if("HTML5"==this.L())this.c&&this.c.prepDrag&&this.c.prepDrag();else{var c=this.oa();c&&c.prepDrag&&c.prepDrag()}this.EG=b.getDefaultAction();this.Am=!0};A_.abortPrep=function(){if("HTML5"==this.L())this.c&&this.c.abortPrep&&this.c.abortPrep();else{var a=this.oa();a&&a.abortPrep&&a.abortPrep()}};
A_.recognizeDrag=function(){if(!this.Am)return!1;if("HTML5"==this.L())this.c&&this.c.recognizeDrag&&(this.Am=this.c.recognizeDrag());else{var a=this.oa();a&&a.recognizeDrag&&(this.Am=a.recognizeDrag())}return this.Am};A_.Ty=function(){};A_.gh=function(a,b){var c=this.getComponent();a&&(c.getDragSource()||c.setDragSource(new A_z(AdfDnDContext.ACTION_COPY,AdfDnDContext.ACTION_COPY)),A_Ob(c.getDragSource(),a));b&&(c.getDropTarget()||c.setDropTarget(new A_A),A_Pb(c.getDropTarget(),b))};
function A_Nb(a,b,c){c=AdfAgent.getAgent().getMousePosition(c.getNativeEvent());a=a.getPagePosition(b);return{x:c.x-a.x,y:c.y-a.y}}AdfDhtmlCommonFlashPeer.fC=function(a){a=AdfPage.PAGE.findComponent(a);if(null!=a){a=a.getPeer();var b=a.Sw;a.Sw=null;return b}};A_a("AdfDhtmlCommonFlashPeer.GetFlashFeedback",AdfDhtmlCommonFlashPeer.fC);AdfDhtmlCommonFlashPeer.OD=function(a,b){null!=a&&(a.getPeer().Sw=b)};
AdfDhtmlCommonFlashPeer.Np=function(){return AdfAgent.getAgent().getPlatform()==AdfAgent.IE_PLATFORM&&8>AdfDhtmlCommonFlashPeer.iH()?!1:!0};AdfDhtmlCommonFlashPeer.iH=function(){var a=-1;"Microsoft Internet Explorer"==navigator.appName&&null!=/MSIE ([0-9]+)/.exec(navigator.userAgent)&&(a=parseFloat(RegExp.$1));return a};
AdfDhtmlCommonFlashPeer.PD=function(a){a=AdfPage.PAGE.findComponent(a);if(null!=a){a=a.getPeer();var b=a.EG;if(b){var c=null;switch(b){case AdfDnDContext.ACTION_COPY:c="copy";break;case AdfDnDContext.ACTION_MOVE:c="move";break;case AdfDnDContext.ACTION_LINK:c="link"}null!=c&&(b=AdfAgent.AGENT.getCursor(c),AdfAgent.AGENT.setCursor(a.getDomElement(),b))}}};A_a("AdfDhtmlCommonFlashPeer.ShowDragCursor",AdfDhtmlCommonFlashPeer.PD);AdfDhtmlCommonFlashPeer.prototype.gA=function(){return!0};