    	function open_acc(id, hei)
	{
		var obj = document.getElementById(id);
		if (obj.className=='closed')
		{
		      if  (parseInt(obj.style.height)<=hei)
		      {
			      var delt = parseInt(obj.clientHeight/hei*10)+1;
			      obj.style.height = parseInt(obj.style.height)  + delt + 'px';
			      obj.style.opacity = parseInt(obj.style.height)/hei;
			      obj.style.filter='alpha(opacity='+(parseInt(obj.style.height)/hei)*100+')';
			      setTimeout(function(){open_acc(id, hei)}, 1);
		      }
		      else
		      {
			      obj.style.height = 'auto';
			      obj.className='opened';
		      }
		}
	}

	function close_acc(id, hei)
	{
		var obj = document.getElementById(id);
		if (obj.className=='opened')
		{
		      if  (obj.clientHeight>0)
		      {
			      var delt = parseInt(obj.clientHeight/hei*10)+1;
			      obj.style.height = obj.clientHeight  - delt + 'px';
			      obj.style.opacity =obj.clientHeight/hei;
			      obj.style.filter='alpha(opacity='+(obj.clientHeight/hei)*100+')';
			      setTimeout(function(){close_acc(id, hei)}, 1);
		      }
		      else
		      {
			      obj.style.height = '0px';
			      obj.className='closed';
			      obj.style.display='none';
		      }
		}
	}

	function acc(id)
	{
		var obj = document.getElementById(id);
                if (obj)
		if (obj.className=='opened')
		{
			var hei = obj.clientHeight;
			close_acc(id, hei);
		}
		else
		{
			obj.className='opened';
			obj.style.height = 'auto';
			obj.style.display='block';
			var hei = obj.clientHeight;
			obj.style.display='none';
			obj.style.height = '0px';
			obj.style.display='block';
			obj.className='closed';
			open_acc(id, hei);
		}
	}



