
$.fn.shrink = function(options)
{

  var defaults =
  {
    header: 'h4',
    firstopen : true,
    accessible : "#dynahidden1,#dynahidden2,#dynahidden3"
  };

  var holder = this;

  // Extend our default options with those provided.

  var opts = $.extend(defaults, options);
  var el = opts.accessible+" "+opts.header;
  // Our plugin implementation code goes here.
  $(el).css("cursor","pointer");
 
  $(opts.accessible).children(opts.header).click(function()
  {
      $(this).next('div').toggle();
      return false;
  }).next('div').hide();


  if (opts.firstopen)
  {
    

    $(opts.accessible).each
    (
        function()
        {
         //alert($(this).attr("id"));
         $(this).children(opts.header).next('div:first').show();
        }
    );
  }

};

