$(document).ready(function(){$(window).load(function(){$('<span class="topics" />').load('f1-html .vm-jq',function(){$(this).appendTo('#jq-html')});$('<span class="topics1" />').load('f2-css .vm-jq',function(){$(this).appendTo('#jq-css')});$('<span class="topics2" />').load('f3-javascript .vm-jq',function(){$(this).appendTo('#jq-java')});$('<span class="topics3" />').load('f4-graphic .vm-jq',function(){$(this).appendTo('#jq-graphic')});$('<span class="topics4" />').load('f5-other .vm-jq',function(){$(this).appendTo('#jq-other')})});$(function(){$(".topics-nav li a").click(function(){var curList=$(".topics-nav li a.current").attr("rel");var $newList=$(this);var curListHeight=$("#vm-topics").height();$("#vm-topics").height(curListHeight);$(".topics-nav li a").removeClass("current");$newList.addClass("current");var listID=$newList.attr("rel");if(listID!=curList){$("#"+curList).fadeOut(300,function(){$("#"+listID).fadeIn();var newHeight=$("#"+listID).height();$("#vm-topics").animate({height:newHeight})})}return false})});$(".faq dt a").click(function(e){e.preventDefault();$(this).parent().next().toggleFade("normal")})});(function(jQuery){jQuery.fn.toggleFade=function(settings){if(settings==undefined){settings={speedIn:'slow'}}settings=jQuery.extend({speedIn:"normal",speedOut:settings.speedIn},settings);return this.each(function(){var isHidden=jQuery(this).is(":hidden");jQuery(this)[isHidden?"fadeIn":"fadeOut"](isHidden?settings.speedIn:settings.speedOut)})}})(jQuery);(function(jQuery){jQuery.fn.toggleSlide=function(settings){if(settings==undefined){settings={speedIn:'slow'}}settings=jQuery.extend({speedIn:"normal",speedOut:settings.speedIn},settings);return this.each(function(){var isHidden=jQuery(this).is(":hidden");jQuery(this)[isHidden?"slideDown":"slideUp"](isHidden?settings.speedIn:settings.speedOut)})}})(jQuery);
