// JavaScript Document
function heigthChange(StartHight,EndHight,ChangeObj,changeBG)
{
	this.StartHight=StartHight;
	this.EndHight=EndHight;
	this.ChangeObj=ChangeObj;
	this.changeBG=changeBG;
}
heigthChange.prototype.down=function()
{
	var obj=this.ChangeObj;
	obj.style.background=this.changeBG;
	obj.style.height=this.StartHight;
	var tempNum=0;
	var endHeight=this.EndHight;
	if(temptt==undefined)
    {
    var temptt=setInterval(function(){
									if(tempNum<parseInt(endHeight))
									{
										tempNum+=60;
										if(tempNum>parseInt(endHeight))
										{
											obj.style.height=endHeight;
										}
										else
										{
											obj.style.height=tempNum;
										}
									}
									else
									{
										tempNum=endHeight;
										obj.style.height=tempNum;
										clearInterval(temptt);
									}                
							
									},1);
	}
}