Having problem with magicpreview

Having problem with magicpreview

Hi Guys, 

I'm still pretty new to using Jquery and I'm trying to use Rik Lomas's Magic Preview plugin found here:  http://rikrikrik.com/jquery/magicpreview/ to help me create a form but for some reason I just can't seem to get it to work. I'm really only interested in changing a picture based on what is chosen in a <select> tab, but I just can't seem to get it right. If anyone could help me out I would really appreciate it. My current code is as follows:

  1. <script type="text/javascript" src="jquery.js"></script> 
  2. <script type="text/javascript" src="global.js"></script> 
  3. <script src="jquery.magicpreview.js" type="text/javascript"></script> 
  4. <script type="text/javascript">
  5. $(function () {
  6. $('form.photopreview select').magicpreview('p_');
  7.  
  8. $('form.photopreview :radio').magicpreview('p_', {
  9. 'formatValue': function (value) {
  10. return value + '/5';
  11. }
  12. });
  13. $('form.photopreview select').magicpreview('img_', {
  14. 'child': 'img',
  15. 'change': 'src',
  16. 'formatValue': function (value) { 
  17. return '/magicpreview/images/' + value + '.jpg'
  18. }
  19. });
  20. });
  21. </script> 
  22. </head>

  23. <body>
  24. <div id="container">
  25. <form action="requestquote.php" method="post">
  26. <div id="material">Material: </div><div id="p_materialform"><select name="materials" class="mp_form photopreview">
  27.              <option value="#1">Absolute Black Jet</option>
  28.              <option value="#2">Angola Black</option>
  29.            <option value="#3">Bon Accord/Impala</option>
  30.            <option value="4">Galaxy Star</option>
  31.            <option value="5">Madura Gold</option>
  32.              <option value="6">Tan Brown</option>
  33.            </select>
  34.                                     </div>
  35. <div id="img_materialimage">

  36. <img src="images/1.png" height="100" width="100"/>

  37. <p>Photo <span id="p_select">1</span> chosen</p> 

  38. </div>

I would really love some help.

Thanks again!