在我的html里,同时调用了jQuery.js Prototype.js共存 ,
但用 jQuery.fn.extend 扩展jQuery时,却调用了Prototype ,冲突了!求救!

下面是我的代码:<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7"/>
<title></title>
<link href="style/index.css" rel="stylesheet" type="text/css" media="all" />
<script type="text/javascript" src="Prototype.js"></script></head>
<body>
<!--头部内容开始--><div id="wrap">
  <div id="main_nav">
    <ul>
      <li><a href="/">新闻资讯1</a></li>
      <li><a href="">新闻资讯</a>
        <ul>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
        </ul>
      </li>
      <li><a href="">新闻资讯</a>
        <ul>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
        </ul>
      </li>
      <li><a href="">新闻资讯</a>
        <ul>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
        </ul>
      </li>
      <li><a href="">新闻资讯</a>
        <ul>
          <li><a href="">新闻资讯</a></li>
          <li><a href="">新闻资讯</a></li>
        </ul>
      </li>
      <li><a href="">新闻资讯</a></li>
      <li><a href="http://www.xcot.com/bbs/">新闻资讯</a>
        <ul>
          <li><a href="http://www.xcot.com/bbs/">新闻资讯</a></li>
          <li><a href="http://www.xcot.com/old_bbs/">新闻资讯</a></li>
        </ul>
      </li>
      <li><a href="">新闻资讯</a></li>
      <li><a href="">新闻资讯</a></li>
    </ul>
  </div>
  <div class="clear"></div>
</div>
<!--头部内容结束-->
</body>
<!--导航JS切换-->
<script type="text/javascript" src="javascript/jquery.js"></script>
<script>
jQuery.noConflict();  
  
jQuery.fn.extend({
allenMenu: function() {
jQuery(this).children('ul').children('li').hover(
function() {
if(!jQuery(this).children('ul').hasClass('focus')) {
jQuery(this).addClass('focus');
jQuery(this).children('ul:first').stop(true, true).animate({ height:'show' }, 'fast');
}
},
function() {
jQuery(this).removeClass('focus');
jQuery(this).children('ul:first').stop(true, true).animate({ height:'hide', opacity:'hide' }, 'slow');
}
);
jQuery(this).children('ul').children('li').children('ul').hover(
function() {
jQuery(this).addClass('focus');
},
function() {
jQuery(this).removeClass('focus');
}
);
}
});jQuery.fn.extend({
allenSlide: function() {
var ads = jQuery(this).find('ul:first li');
var name = jQuery(this).attr('id');
var n = ads.length;
var w = ads.width();
var h = ads.height();
var clicked = false;
var t = 4000;
var lt = 5000;
var speed = 'slow';
var curPage = 0;

jQuery(this).width(w).height(h);
jQuery(this).css('overflow', 'hidden');
jQuery(this).css('position', 'relative');
jQuery(this).children('ul:first').width(w * (n + 1));
var pages = jQuery('<div class="slide-page"></div>');
for(var i = 1; i <= n; i++) {
var el = jQuery('<a href="#" id="' + name + '-page-' + i + '">' + i + '</a>');
eval('el.click(function(){ clicked = true; slideTo(' + i + '); return false; });');
pages.append(el);
}
jQuery(this).append(pages);
jQuery('#' + name + '-page-1').parent().addClass('on');
autoSlide();

/* Fade Version
*/
function slideTo(page) {
curPage = page;
var ml = -1 * w * (page - 1);
jQuery('#' + name).find('li:eq('+(curPage-1)+')').stop();
if(page > n) {
page = 1;
curPage = 1;
}
jQuery('#' + name).find('li').each(function() {
if(jQuery(this).css("display") != "none") {
//jQuery(this).css('z-index', '2');
jQuery(this).fadeOut(speed);
}
});
jQuery('#' + name).find('li:eq('+(page-1)+')').fadeIn(speed);
jQuery('#' + name).find('.slide-page > a').removeClass('on');
jQuery('#' + name + '-page-' + curPage).addClass('on');
}

function autoSlide() {
var tp = curPage;
if(!clicked) {
slideTo(tp + 1);
eval('setTimeout(function() { autoSlide(); }, ' + t + ');');
} else {
clicked = false;
eval('setTimeout(function() { autoSlide(); }, ' + lt + ');');
}
} }
}); jQuery(document).ready(function(jQuery) { jQuery('#main_nav').allenMenu();
jQuery('#slide').allenSlide();
});

</script></html>