how can i link object between each other

how can i link object between each other

Can onyone tell me what i'm doing wrong?? In the line 42 I get an error " t.slider is undefined".
  1. $(window).load(function()
  2. {
  3.     var s = $('#GallerySlider');
  4.     if( s.length != 0 )
  5.     {
  6.         var mu = $('img.mu', s); // move up button;
  7.         var md = $('img.md', s); // move down button;
  8.         var sc = $('div.sc', s); // slider content;

  9.         if( mu.lenght == 0 || sc.lenght == 0 || md.lenght == 0 )
  10.             jQuery.error( "ERROR" );

  11.         // slider definition;
  12.         s.content = sc;
  13.         s.items = $('img', sc);
  14.         s.position = 0;
  15.         s.isinmove = false;
  16.         s.step = 98;
  17.         s.sead = 10;
  18.         s.spead = 50;

  19.         s.move = function( direction )
  20.        {
  21.             direction = direction > 0 ? 1 : -1;
  22.             var p = this.position + direction;
  23.             if( p >= 0 - this.items.length + 4 && p <= 0 )
  24.             {
  25.                 this.position += direction;
  26.                 var margin = this.position * this.step;
  27.                 this.content.css( 'margin-top', margin +'px' );
  28.             }
  29.         };

  30.         mu.slider = s;
  31.         md.slider = s;

  32.         mu.slider.move( -1 ); // here it works;

  33.         // move up;
  34.         mu.click( function() {
  35.             var t = $(this);
  36.             t.slider.move( -1 ); // but here it doesn't, i get an error "t.slider is undefined"
  37.         } );

  38.         // move down;
  39.         md.click( function() {
  40.             var t = $(this);
  41.             t.slider.move( 1 );
  42.         } );
  43.     }
  44. });