// JavaScript Document
var   beginMoving=false;   
  var   sourceObj=null;   
  var   objectObj=null;   
  var   objectObj2=null;   
  function   MouseDownToMove(obj){   
  obj.style.zIndex=1;   
  obj.mouseDownY=event.clientY;   
  obj.mouseDownX=event.clientX;   
  beginMoving=true;   
  obj.setCapture();   
  sourceObj=obj;   
  objectObj=null;   
  }   
    
  function   MouseMoveToMove(obj){   
          if(!beginMoving)   return   false;   
  obj.style.top   =   (event.clientY-obj.mouseDownY);   
  obj.style.left   =   (event.clientX-obj.mouseDownX);   
  }   
  function   MouseUpToMove(obj){   
  if(!beginMoving)   return   false;   
  obj.releaseCapture();   
  obj.style.top=0;   
  obj.style.left=0;   
  obj.style.zIndex=0;   
  beginMoving=false;   
  window.setTimeout("swapFun()",20);   
  }   
    
  function   MouseOverFun(obj)   
  {   
  if(obj==sourceObj)   return   false;   
  objectObj=obj;   
  }   
    
  function   MouseOverFun2(obj)   
  {   
  objectObj2=obj;   
  }   
    
  function   swapFun()   
  {   
  if(sourceObj!=null   &&   objectObj!=null)   objectObj.insertAdjacentElement("beforeBegin",sourceObj);   
  else   if(sourceObj!=null   &&   objectObj2!=null)   objectObj2.insertAdjacentElement("beforeEnd",sourceObj);   
  sourceObj=null;   
  objectObj=null;   
  objectObj2=null;   
  }  