title: Calling jQuery function by var reference
body: <p>I'm trying to change the jQuery function called using the value of the switch. In this particular case It will grab the selector then use whatever the value of 'direction to call on jQuery function. </p>
  
  <pre><code>$('#'+the_name).value_of_switch(options.speed_up);
  </code></pre>
  
  <p>How can I accomplish this?</p>
  
  <pre><code>switch(direction){
      case 'up':   direction = 'slideDown';
      break;
  
      case 'down':  direction = 'slideUp';
      break;
  }
  
  $('#'+the_name).slideDown(options.speed_up);
  </code></pre>