Linking to jQuery in block breaks Gallery formatter At the top of my block, is this line:

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"&gt;&lt;/script&gt;


This is the reason why the Gallery formatter does not display correctly.

The entire block contains the following:

&lt;script type="text/javascript" src="http://ajax.googleapis.com/ajax/libs/jquery/1.4.4/jquery.min.js"&gt;&lt;/script&gt;
&lt;script type="text/javascript" src="http://connect.facebook.net/en_US/all.js#xfbml=1"&gt;&lt;/script&gt;    
&lt;script type="text/javascript" src="http://localhost/nes/sites/all/themes/nesvesti/js/facebook/fb-traffic-pop.min.js"&gt;&lt;/script&gt;

&lt;script type="text/javascript"&gt;

$(document).ready(function(){                       
    $().facebookTrafficPop({
        timeout: 10,
        delay: 0,
        title: "Support Us...",
        message: 'Like the page...',
        url: "http://google.com",
        closeable: false,
        opacity: 90
    });

});

&lt;/script&gt;


My question is, is there any way to resolve this conflict?
There's a few issues there. Drupal ships with jQuery so no need to include it twice. If you need a later version, use the jquery_update module. Also, JavaScript in D7 should be wrapped in a jQuery namespace as per the documentation here https://drupal.org/node/756722