
Animation = function(element,width,height)
 
{
  
   for(i=1;i<=3;i++)
	{
	   document.getElementById("tab"+i).style.display='none'
	}
   this.steps=50;
   //this.actualWidth=parseInt(element.style.width,10);
   this.actualHeight=parseInt(element.style.height,0);
   //this.destinationWidth=width;
   this.destinationHeight=height;
   //this.increaseWidth=(this.destinationWidth-this.actualWidth)/this.steps;
   this.increaseHeight=(this.destinationHeight-this.actualHeight)/this.steps;
   this.element=element;
   this.animate();
}
 
Animation.prototype.animate = function()
{
   this.steps--;
   //this.actualWidth+=this.increaseWidth;
   this.actualHeight+=this.increaseHeight;
   //this.element.style.width=this.actualWidth;
   this.element.style.height=this.actualHeight;
   var self=this;
   if (this.steps>0) {
	   this.element.style.display='block';
	   setTimeout(function () {self.animate.call(self)},30);
	   
	   
   }
}
 
