Javascript causing errors with style

  • I'm trying to add an image slider to a style and I'm getting an error when I try to add the Javasript. This is what I'm trying to do…tryw3css_slideshow_fading . I have added the script below to the footer template, under <!-- JAVASCRIPT_RELOCATE_POSITION -->:

    The error I'm getting is:

    What can I do to get around receiving the error?