//Individual Top link in FAQ template's answers. function initGotoTop() { var change_speed = 800; jQuery('.go_to_top').click(function () { if (!jQuery.browser.opera) { jQuery('body').animate({ scrollTop: 0 }, { queue: false, duration: change_speed }) } jQuery('html').animate({ scrollTop: 0 }, { queue: false, duration: change_speed }); return false }) } //Mod by Denzel in version 1.0.6 //This function allows user to click on Question and scroll to answer. //The FAQ template output will dynamically generate the answer no and answer text no to this function, //so no limitation to numbers of FAQ! function scroll_to_answer(answer_no,answer_text){ var ano = answer_no; var at = answer_text jQuery.scrollTo(ano, {duration: 800, onAfter:function(){ jQuery(at).highlightFade({color:'rgb(255, 255, 209)', speed: 800}); } }); } jQuery(document).ready(function() { // Go to Top initGotoTop(); //Mod by Denzel in version 1.0.6 //Removed all repeating jQuery click question scroll to answer codes and replaced with function scroll_to_answer(); see above! /** # * Copyleft (c) 2008 Pasyuk Sergey (www.codeasily.com) # * Licensed under the MIT License: # * http://www.opensource.org/licenses/mit-license.php # * # * Splits a