Cycle Plugin - join two options

Cycle Plugin - join two options

maybe here will be goot to ask i have:

Copy code
  1. $(document).ready(function() {
  2.    
  3.         $('.slideshow').cycle({
  4.     fx:     'fade',
  5.     speed:  'fast',
  6.     timeout: 0,
  7.     next:   '#next2',
  8.     prev:   '#prev2'
  9. });
  10. $('.slideshow')
  11. .before('<div id="nav_up">')
  12. .cycle({
  13.     fx:     'fade',
  14.     speed:  'fast',
  15.     timeout: 0,
  16.     pager:  '#nav_up'
  17. });
  18.     $('.slideshow').cycle({
  19.         fx: 'fade' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
  20.     });
  21.    
  22. });
and html
Copy code
  1. <div id="nav_up" class="nav">
  2. </div>
  3.     <div class="slideshow">
  4. <div style="width:200px;height:200px;background:red">a</div>
  5. <div style="width:200px;height:200px;background:blue">b</div>
  6. <div style="width:200px;height:200px;background:yellow">c</div>
  7. <div style="width:200px;height:200px;background:pink">d</div>
  8.     </div>
  9.         <div class="nav">
  10. <a id="prev2" href="#">Prev</a>
  11. <a id="next2" href="#">Next</a>
  12. </div>
and if i press pager button $('.slideshow').cycle dont work any more.
when slider change div pager dont chage to active..
how can i join this tree element ?? :<

somebody can help??