function Panner(objImg)
{
   this.x = 0;
   this.y = 0;
   this.img = objImg;
   this.on = false;

   this.start = function (x, y)
   {
      this.x = x;
      this.y = y;
      this.on = true;
   };


   this.drag = function (x, y)
   {
      with (this.img.style)
      {
   		left = (x - this.x) + "px";
		   top =  (y - this.y) + "px";
		}
   };
   
   this.reset = function ()
   {
      this.on = false;
      this.x = 0;
      this.y = 0;
   };
}
