﻿jQuery(function($) { jQuery('html, body').attr({ scrollTop: 0, scrollLeft: 0 }); jQuery.localScroll.hash({ axis: 'xy', queue: true, duration: 1000 }); var $last = jQuery([]); jQuery.localScroll({ axis: 'xy', queue: true, duration: 2000, hash: true, onBefore: function(e, anchor, $target) { $last.removeClass('scrolling'); $last = $(this).addClass('scrolling'); if (this.blur) this.blur() }, onAfter: function(anchor) { $last.removeClass('scrolling') } }) }); jQuery(document).ready(function() { jQuery(".CD_msg_body").hide(); jQuery(".CD_msg_head").click(function() { jQuery(this).next(".CD_msg_body").slideToggle(600) }) });