  $(document).ready(function() {

  // simple example, using all default options
  // $('div.expandable article').expander();
  
  // *** OR ***
  
  // override some default options
  $('span.expandable').expander({
    slicePoint:       4000,  // the number of characters at which the contents will be sliced into two parts. 
                            // Note: any tag names in the HTML that appear inside the sliced element before 
                            // the slicePoint will be counted along with the text characters.
    expandText:         '<br><img src=/immagini/BTN_CliccaInfo.gif style=margin-top:20px><br><hr>', // text displayed in a link instead of the hidden part of the element. 
                                      // clicking this will expand/show the hidden/collapsed text
    collapseTimer:    30000, // re-collapses after 5 seconds; default is 0, so no re-collapsing
    userCollapseText: '<b> --> [Chiudi]</b>',  // default is '[collapse expanded text]'
    widow:            4,  // a threshold of sorts for whether to initially hide/collapse part of the element's contents. 
                          // If after slicing the contents in two there are fewer words in the second part than 
                          // the value set by widow, we won't bother hiding/collapsing anything.
    expandPrefix:     '&hellip; ',  
    expandEffect:     'fadeIn',
    expandSpeed:      'slow',   // speed in milliseconds of the animation effect for expanding the text
    userCollapse:     true, // allow the user to re-collapse the expanded text.
  
    userCollapsePrefix: ''
  });
  
});

