﻿function SF_DragDropMgr()
{
SF_MoveMgr.call( this );var self = this;this.DragType =
{
FreeStyle : 0,
Horizontal: 1,
Vertical : 2,
None : 3
};this.UpdateCoordinates = function( entity, oEventXY, oEventOffsetEl, oDragEl )
{
var oDragElSt = oDragEl.style;if( ( entity.DragType == self.DragType.FreeStyle ) || 
( entity.DragType == self.DragType.Horizontal ) )
{
oDragEl.style.left = oEventXY.x - oEventOffsetEl.x + "px";}
if( ( entity.DragType == self.DragType.FreeStyle ) || 
( entity.DragType == self.DragType.Vertical ) )
{
oDragEl.style.top = oEventXY.y - oEventOffsetEl.y + "px";} 
}
this.Register = function( oEl, oDoDragEl, nDragStyle, nDragType, fnOnDragStart, fnOnDrag, fnOnDragEnd, oDragStartEvent, fnBreakDragging )
{
oDoDragEl.m_nDragType = nDragType;this.RegisterToMove( oEl, oDoDragEl, nDragStyle, fnOnDragStart, fnOnDrag, fnOnDragEnd, oDragStartEvent, fnBreakDragging );}
this.OnEntityCreate = function( entity, oDoDragEl )
{ 
entity.DragType = oDoDragEl.m_nDragType;}
}
var _sfDragDropMgr = new SF_DragDropMgr();
Common={
};

if(typeof(Sys)!=='undefined')Sys.Application.notifyScriptLoaded();