stop joomla 1.5 loading jquery twice-Collection of common programming errors
Use this javascript code///
if (typeof jQuery == 'undefined') {
var head = document.getElementsByTagName("head")[0];
script = document.createElement('script');
script.id = 'jQuery';
script.type = 'text/javascript';
script.src = 'js/jquery.js';
head.appendChild(script);
} else {
// jQuery is loaded already need not include it...
}
typeOf operator checks if the jQuery object already exists if it does not exist then create a script element and append it to head of the html.