jcrop not a function

jcrop not a function

I am trying to use jcrop

I have this at the top of my page

<script src="http://studiga.delta-xray.co.uk/sites/all/modules/add_property/js/jquery.min.js?o2190n"></script>
<script src="http://studiga.delta-xray.co.uk/sites/all/modules/add_property/js/jquery.Jcrop.min.js?o2190n"></script>
<script src="http://studiga.delta-xray.co.uk/sites/all/modules/add_property/js/crop.js?o2190n"></script>


I have this in my page

<input onchange="JavaScript: fileSelectHandler1();" type="file" id="browse_file1" name="browse_file1" size="60" class="form-file" />





<img name="image1" id="image1" src="" alt="">






  1. function fileSelectHandler1() {
  2. // get selected file
  3. var oFile = $('#browse_file1')[0].files[0];
  4. // hide all errors
  5. $('.error').hide();
  6. // check for image type (jpg and png are allowed)
  7. var rFilter = /^(image\/jpeg|image\/png)$/i;
  8. if (! rFilter.test(oFile.type)) {
  9. $('.error').html('Please select a valid image file (jpg and png are allowed)').show();
  10. return;
  11. }
  12. // check for file size
  13. if (oFile.size > 250 * 1024) {
  14. $('.error').html('You have selected too big file, please select a one smaller image file').show();
  15. return;
  16. }
  17. // preview element
  18. var oImage = document.getElementById('image1');
  19. // prepare HTML5 FileReader
  20. var oReader = new FileReader();
  21. oReader.onload = function(e) {

  22. // e.target.result contains the DataURL which we can use as a source of the image
  23. oImage.src = e.target.result;
  24. oImage.onload = function () { // onload event handler

  25. // display step 2
  26. $('.step2').fadeIn(500);

  27. // display some basic image info
  28. var sResultFileSize = bytesToSize(oFile.size);
  29. $('#filesize').val(sResultFileSize);
  30. $('#filetype').val(oFile.type);
  31. $('#filedim').val(oImage.naturalWidth + ' x ' + oImage.naturalHeight);

  32. // destroy Jcrop if it is existed
  33. if (typeof jcrop_api != 'undefined') {
  34. jcrop_api.destroy();
  35. jcrop_api = null;
  36. $('#image1').width(oImage.naturalWidth);
  37. $('#image1').height(oImage.naturalHeight);
  38. }
  39. setTimeout(function(){
  40. // initialize Jcrop
  41. $('#image1').Jcrop({
etc


But I am getting

Uncaught TypeError: $(...).Jcrop is not a function


when it gets to $('#image1').Jcrop({ and I have no idea why


Thanks