
animatedcollapse.addDiv('gift-address', 'fade=0,speed=400,persist=0,hide=1');

animatedcollapse.ontoggle = function($, divobj, state){ //fires each time a DIV is expanded/contracted
	//$: Access to jQuery
	//divobj: DOM reference to DIV being expanded/ collapsed. Use "divobj.id" to get its ID
	//state: "block" or "none", depending on state
	}

animatedcollapse.init()


function getGiftToggle() {
  for (var g=0; g < document.frmMbrPymt.mbrType.length; g++) {
    if (document.frmMbrPymt.mbrType[g].checked) {
      var rad_val = document.frmMbrPymt.mbrType[g].value;
      if (rad_val=='N') {
        animatedcollapse.hide('gift-address');
      }
      if (rad_val=='R') {
        animatedcollapse.hide('gift-address');
      }
      if (rad_val=='G') {
        animatedcollapse.toggle('gift-address');
      }      
    }
  }
}






