var d = YAHOO.util.Dom;

function toggleView(ele, actionEle, height){  
	if(d.get(ele).className == "tabOpen"){
	  easingOut(actionEle, height)
	  d.get(ele).className ="tabClose";
	}else{
	  easingIn(actionEle)
	  d.get(ele).className ="tabOpen";
	}
}

  function easingIn(obj_id){
	  var attributes = { height: { to: 0 } };
	  var anim = new YAHOO.util.Anim(obj_id, attributes, .5);
	  anim.animate();
  }

  function easingOut(obj_id, height){
	   var theHeight = height
	  var attributes = { height: { to: theHeight } };
	  var anim = new YAHOO.util.Anim(obj_id, attributes, .5);
	  anim.animate();
  }
