title: fancybox jQuery doesn't function with any other javascript / jQuery scripts?
body: <p>I have been trying to use other jQuery or javascript scripts in the same page as I use fancybox on but every time I place any other codes in there, the fancybox modal popup stops working and it actually opens a new window instead of the modal!!!</p>
  
  <p>it doesn't matter what and how big or small the new javascript is... it will stop the fancybox functioning correctly but without any other codes in the page, the fancybox functions properly. and I am new to the world of javascript and jquery so I am well lost.</p>
  
  <p>here is my code for fancybox: </p>
  
  <pre><code>    &lt;script src="scripts/modernizr-2.6.1.min.js"&gt;&lt;/script&gt;
    &lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4/jquery.min.js"&gt;&lt;/script&gt;
      &lt;script&gt;
          !window.jQuery &amp;&amp; document.write('&lt;script src="jquery-1.4.3.min.js"&gt;&lt;\/script&gt;');
      &lt;/script&gt;
      &lt;script type="text/javascript" src="./fancybox/jquery.mousewheel-3.0.4.pack.js"&gt;&lt;/script&gt;
      &lt;script type="text/javascript" src="./fancybox/jquery.fancybox-1.3.4.pack.js"&gt;&lt;/script&gt;
      &lt;link rel="stylesheet" type="text/css" href="./fancybox/jquery.fancybox-1.3.4.css" media="screen" /&gt;
      &lt;link rel="stylesheet" href="modalstyle.css" /&gt;
      &lt;script type="text/javascript"&gt;
          $(document).ready(function() {
              /*
              *   Examples - images
              */
  
              $("a#example1").fancybox();
  
              $("a#example2").fancybox({
                  'overlayShow'   : false,
                  'transitionIn'  : 'elastic',
                  'transitionOut' : 'elastic'
              });
  
              $("a#example3").fancybox({
                  'transitionIn'  : 'none',
                  'transitionOut' : 'none'    
              });
  
              $("a#example4").fancybox({
                  'opacity'       : true,
                  'overlayShow'   : false,
                  'transitionIn'  : 'elastic',
                  'transitionOut' : 'none'
              });
  
              $("a#example5").fancybox();
  
              $("a#example6").fancybox({
                  'titlePosition'     : 'outside',
                  'overlayColor'      : '#000',
                  'overlayOpacity'    : 0.9
              });
  
              $("a#example7").fancybox({
                  'titlePosition' : 'inside'
              });
  
              $("a#example8").fancybox({
                  'titlePosition' : 'over'
              });
  
              $("a[rel=example_group]").fancybox({
                  'transitionIn'      : 'none',
                  'transitionOut'     : 'none',
                  'titlePosition'     : 'over',
                  'titleFormat'       : function(title, currentArray, currentIndex, currentOpts) {
                      return '&lt;span id="fancybox-title-over"&gt;Image ' + (currentIndex + 1) + ' / ' + currentArray.length + (title.length ? ' &amp;nbsp; ' + title : '') + '&lt;/span&gt;';
                  }
              });
  
              /*
              *   Examples - various
              */
  
              $("#various1").fancybox({
                  'titlePosition'     : 'inside',
                  'transitionIn'      : 'none',
                  'transitionOut'     : 'none'
              });
  
              $("#various2").fancybox();
  
              $("#various3").fancybox({
                  'width'             : '75%',
                  'height'            : '75%',
                  'autoScale'         : false,
                  'transitionIn'      : 'none',
                  'transitionOut'     : 'none',
                  'type'              : 'iframe'
              });
  
              $("#various4").fancybox({
                  'padding'           : 0,
                  'autoScale'         : false,
                  'transitionIn'      : 'none',
                  'transitionOut'     : 'none'
              });
          });
      &lt;/script&gt;
  
  &lt;script type='text/javascript'&gt;
      $(window).load(function(){
          $('#various3').addClass("external").attr({ target: "_blank", href: 'insert.php' })[0].click();
      });
  &lt;/script&gt;
  </code></pre>
  
  <p>could someone please let me know what i have to do?</p>
  
  <p>Thanks</p>