var _height;

function GetAddContentHeight()
{
	obj = document.getElementById("div_AdditionalContents");
	_height = obj.offsetHeight;
}
function _showAddContents()
{
	obj = document.getElementById("div_AdditionalContents");
	
	obj.style.height = "0px";
	obj.style.display = "block";
	document.getElementById("p_showAddCnt").style.display = "none";
	setTimeout("ShowAddContent()",200);		
}
	
function ShowAddContent()
{	
	obj = document.getElementById("div_AdditionalContents");
	var _cHeight = obj.offsetHeight;

	if(_cHeight < _height)
	{
		var _plus = (_height - _cHeight)/7;
		_cHeight += _plus;
		obj.style.height = (_cHeight + 1) + "px";
		
		setTimeout("ShowAddContent()",0);
	}else{
		
	}
}
function _hideAddContents()
{
	obj= document.getElementById("div_AdditionalContents");
	_height = obj.offsetHeight;
	setTimeout("HideAddContent()",200);		
}
function HideAddContent()
{
	obj=document.getElementById("div_AdditionalContents");
	var cHeight = obj.offsetHeight;

	var now = cHeight;
	if(cHeight >0 )
	{
		var curr = cHeight/7;
		now -= curr;
		obj.style.height = now +"px";
		if(now < 5){		
		obj.style.height = "0px";
		}else{
		setTimeout("HideAddContent()",0);
		document.getElementById("p_showAddCnt").style.display = "block";
		}
	}else{
		obj.style.height = "0px";
		obj.style.display = "none";
		}	
}

