function transformLayer (x,y,w,h,id,duration,steps) 
{
	  stepDuration = Math.round(duration/steps);
	
	  obj = dd.elements[id]; 
	  
	  x1 = obj.x;  
	  y1 = obj.y;  
	  w1 = obj.w;  
	  h1 = obj.h;  
	
	  x = (x)?x:x1;
	  y = (y)?y:y1;
	  w = (w)?w:w1;
	  h = (h)?h:h1;
	
	  difX = (x - x1)/steps;  
	  difY = (y - y1)/steps;  
	  difW = (w - w1)/steps;  
	  difH = (h - h1)/steps;  
	     
	  obj.moveBy(difX,difY);
	  obj.resizeBy(difW,difH);
	
	  duration = (duration - stepDuration);
	  steps --;
	
		if(steps>=0)
		{
			setTimeout('transformLayer('+x+','+y+','+w+','+h+',"'+id+'",'+duration+','+steps+')',stepDuration);
		}
	
	  return;

}

