title: If you include 2 version of jQuery in a page how do you restrict a plugin to just one of them?
body: <p>So this question isn't as crazy as it might sound at first.  I'm developing a piece of javascript code to drop into my client's pages.  What I'm worried about is if they are using another version of jQuery on their site.</p>
  
  <p>I know from the <a href="http://api.jquery.com/jQuery.noConflict/" rel="nofollow">Jquery docs</a> that something like this should work.</p>
  
  <pre><code>var dom = {};
  dom.query = jQuery.noConflict(true);
  </code></pre>
  
  <p>The problem is I am also using some jquery plugins, namely <a href="http://fancybox.net/" rel="nofollow">fancybox</a> and <a href="http://brandonaaron.net/code/mousewheel/docs" rel="nofollow">mousewheel</a>.  So how can I make sure my version of jQuery is the only one that can use those plugins.  I don't want a conflict to happen if one of our clients happens to use the same ones in their pages but different versions.</p>
  
  <p>The only definite way I can think of right now is to modify the plugins so they only call dom.query</p>