 
 window.whatThings = (payForThingsY, payForThingsN, whatThings) ->
   if not checked(payForThingsY)
-    S("whatThingsWrap").slideUp(0).attr 'aria-hidden', 'true', -> val(whatThings,"")
-  S(payForThingsY).on "click", -> S("whatThingsWrap").slideDown(0).attr 'aria-hidden', 'false'
-
-  S(payForThingsN).on "click", -> S("whatThingsWrap").slideUp(0).attr 'aria-hidden', 'true', -> val(whatThings,"")
+    S("whatThingsWrap").slideUp 0, -> val(whatThings,"")
+  S(payForThingsY).on "click", -> S("whatThingsWrap").slideDown 0
+
+  S(payForThingsN).on "click", -> S("whatThingsWrap").slideUp 0, -> val(whatThings,"")
 
 
 #

  else if checked(ctx.beenPaidYetN)
    onBeenPaidYetN(ctx,false)()
  else
    S("beenPaidYetWrap").slideUp(0).attr 'aria-hidden', 'true', -> hideBeenPaidYetWrapOnN(ctx,false)
    S("usuallyPaidSameAmountWrap").slideUp(0).attr 'aria-hidden', 'true'
    S("monthlyPayDayWrap").slideUp(0).attr 'aria-hidden', 'true'

  S(ctx.beenPaidYetY).on "click", onBeenPaidYetY(ctx,true)
  S(ctx.beenPaidYetN).on "click", onBeenPaidYetN(ctx,true)

onHowOftenFrequency = (ctx,reset) -> #Double -> because it's a function returning a function, which the jQuqery .on function will receive.
  ->                           #The first function exists so the returned function has the "context" variable in scope
    if visible("usuallyPaidSameAmountWrap")
      S("usuallyPaidSameAmountWrap").slideUp 0, ->
        checked(ctx.usuallyPaidSameAmountY,false) if reset
        checked(ctx.usuallyPaidSameAmountN,false) if reset

    S("monthlyPayDayWrap").slideUp 0, -> val(ctx.monthlyPayDay,"") if visible("monthlyPayDayWrap") and reset

    if not (val(ctx.howOftenFrequency) is ctx.defaultValue or val(ctx.howOftenFrequency) is "")
      if checked(ctx.beenPaidYetN)
