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 http://www.w3schools.com/w3css…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?