Shorten function, please

Shorten function, please

Help please to Shorten function, please:

Function 1:

  1. jQuery(function($) { // Shorthand for jQuery(document).ready(function($) {
  2.       init1('#buttonOne', 0);     
  3.       function init(selector, count) { //add indicator and hovers to submenu parents
  4.             $(selector).find('li').each(function() {
  5.                   if ($(this).find('ul').length > count) {
  6.                             
  7.       $(this).hover(function() { // show subnav on hover
  8.                               $('ul li:first', this).load('pageOne.html');
  9.                               $(this).find('ul').stop(true, true).slideDown();
  10.                         }, function() { // hide submenus on exit
  11.                               $(this).find('ul').stop(true, true).slideUp();
  12.                         });
  13.                   }
  14.             });
  15.       }
  16. });   


Function 2:


  1. jQuery(function($) { // Shorthand for jQuery(document).ready(function($) {
  2.       init2('#buttonTwo', 0);     
  3.       function init(selector, count) { //add indicator and hovers to submenu parents
  4.             $(selector).find('li').each(function() {
  5.                   if ($(this).find('ul').length > count) {
  6.                             
  7.       $(this).hover(function() { // show subnav on hover
  8.                               $('ul li:first', this).load('pageTwo.html');
  9.                               $(this).find('ul').stop(true, true).slideDown();
  10.                         }, function() { // hide submenus on exit
  11.                               $(this).find('ul').stop(true, true).slideUp();
  12.                         });
  13.                   }
  14.             });
  15.       }
  16. });   


Function 3:

  1. jQuery(function($) { // Shorthand for jQuery(document).ready(function($) {
  2.       init3('#buttonThree', 0);     
  3.       function init(selector, count) { //add indicator and hovers to submenu parents
  4.             $(selector).find('li').each(function() {
  5.                   if ($(this).find('ul').length > count) {
  6.                             
  7.       $(this).hover(function() { // show subnav on hover
  8.                               $('ul li:first', this).load('pageThree.html');
  9.                               $(this).find('ul').stop(true, true).slideDown();
  10.                         }, function() { // hide submenus on exit
  11.                               $(this).find('ul').stop(true, true).slideUp();
  12.                         });
  13.                   }
  14.             });
  15.       }
  16. });   


greetings friends-