function transformLayer (x,y,w,h,id,duration,steps) {    stepDuration = Math.round(duration/steps) ; // Value is in miliseconds.  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;        if(top.debug==true)  window.alert('x1:'+x1+', y1:'+y1+', w1:'+w1+', h1:'+h1+',<br>x:'+x+', y:'+y+', w:'+w+', h:'+h+', <br>difX:'+difX+', difY:'+difY+', difW:'+difW+', difH:'+difH+',<br>duration:'+duration+', <br>steps:'+steps+',<br>stepDuration:'+stepDuration+'');   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;}