(function(w){
w.$={};
w.$.drag = function(testNode,callBack){
var elementPoint = {x:0,y:0};
var startPoint = {x:0,y:0};
testNode.onmousedown = function(ev){
debugger
ev = ev || event;
elementPoint.x=this.offsetLeft;
elementPoint.y=this.offsetTop;
startPoint.x=ev.clientX;
startPoint.y=ev.clientY;
if(testNode.setCapture){
testNode.setCapture();
}
document.onmousemove = function(ev){
ev = ev || event;
var nowPint = {x:0,y:0};
nowPint.x=ev.clientX;
nowPint.y=ev.clientY;