jQuery scrolltop if/else/and from a different page?
<p>I am using the following jquery script on my site to scroll down on blog entry pages from a comments link at the top to the actual comments at the bottom:</p>

<pre><code>   jQuery(document).ready(function(){      
       var TopPosition = jQuery('#comments').offset().top;     
       jQuery('.comments-link').click(function(){        
           jQuery('html, body').animate({scrollTop:TopPosition}, 2000, 'swing');
           return false;
       });   
   });
</code></pre>

<p>I'd also like the page to scroll down to "#respond' when '#comments' does not exist. Is this possible somehow in jquery with an if/else/and?</p>

<p>Also, is it possible to link from a different page with a comments link (i.e. my blog's index page) to the individual blog entry's comments and also have the animated scroll down?</p>

<p>Hope that makes sense.</p>
