if (document.body){var larg = (document.body.clientWidth);var haut = (document.body.clientHeight);}else{var larg = (window.innerWidth);var haut = (window.innerHeight);}function transformLayer() {  x = 0; y= -900; w= larg; h= 800; id= 'intro'; duration= 100; steps= 20;    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;     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;}
