How to make the Jquery only activate on certain anchor points?

How to make the Jquery only activate on certain anchor points?

I have some Jquery that loads with every page of a PHP based shopping cart. However, I don't want this code to effect the anchor links on certain pages.

For example, I don't want this effect to apply to the following anchor links:

#read_review
#write_review

How do I stop this code applying itself to those Anchor links?

Here is the code:

  1. <!-- Tabs scripts: Start -->
  2. <script type="text/javascript" src="js/jquery-ui-1.7.2.custom.min.js"></script>
  3. <script type="text/javascript" charset="utf-8" src="js/jquery.scrollTo.js"></script>
  4. <script type="text/javascript" charset="utf-8" src="js/jquery.localscroll.js"></script>
  5. <script type="text/javascript">
  6.     $(document).ready(function(){
  7.       $(".tab-set").tabs();
  8.       if($(".tab-set") && document.location.hash){
  9.             $.scrollTo(".tab-set");
  10.         }
  11.       $(".tab-set ul").localScroll({
  12.         target:".tab-set",
  13.         duration:0,
  14.             hash:true
  15.         });
  16.     });
  17.   </script> 
  18. <!-- Tabs scripts END -->
Hopefully one of the many Jquery gurus on here can help this beginner out...?