no conflict between two jquery versions and the jquery ui

no conflict between two jquery versions and the jquery ui

I have a problem to use 2 different version of jqueries.
At the tabed page i use :

  1. <script type="text/javascript" src="jquery-1.11.1.min.js"></script>     
        <script type="text/javascript">
        var s = $.noConflict();
        </script>
So in the sript i use like:
  1. s(document).ready()};
On the tabs page i use
  1. <script src="//code.jquery.com/jquery-1.10.2.js"></script>

The problem is i also include the UI library whic use $ insted of s
So i get error
TypeError: $.ui is undefined and
TypeError: s(...).slider is not a function

How to use correctly than the noconflict?

thanks for your reply