Hi,

There is a little bit of javascript in a template form that is no longer working and I'm thinking that someone who knows what they are doing will be able to see the error and help me out.

Here's the code snippet:


/////////////////* Go to top link */////////////////////////

$("#main").find('#top').on("click", function () {
"use strict";
var bdy = $('#main');
bdy.animate({ scrollTop: 0 }, 'slow');
});

You can see it *not* working here - http://theautospakingston.ca/index.html.

Where you see the word '#main', the original author had '#right', b/c there use to be a div called 'right'. That div is now gone, so I thought that changing 'right' to 'main' (which is the name of the div that is there) would work.

Any help with this would be appreciated. Thx.