Slider on the Drupal 6.16 content

Slider on the Drupal 6.16 content

Hi,

I'm trying to have JQUERY slider on one of my contents (story). I installed jquery_ui (replaced with jquery ui 1.7), jquery update and all the things neede (no red warnings about things to do with jquery - everything working fine). I made new story, set input format to "PHP code" and pasted following short code:
"
...
Testing jQUERY slider

<?php
drupal_add_js('sites/all/modules/jquery_ui/jquery.ui/ui/ui.slider.js');
drupal_add_js(
'$(document).ready(function(){
   $("#click1").click(function() {
   $("#slider").slider();
   });

});',
'inline'
);
?>

<div id="click1">
<b>Click here to show slider</b>
</div>

<div class="demo">

<div id="slider"></div>

</div><!-- End demo -->

<div style="display: none;" class="demo-description">

<p>The basic slider is horizontal and has a single handle that can be moved with the mouse or by using the arrow keys.</p>

</div><!-- End demo-description -->
...
"
In error console of Firefox I get this 2 errors:
1.$ui is undefined
2.$("#slider").slider is not a function

I'm trying to solve in in the past 24 hours. It drives me mad...
Here is page URL http://test.evision.rs/borko/.
What am I doing wrong here with JQUERY?
Please help!

Best regards