jQuery(function( $ ){
jQuery('html, body').attr({ scrollTop: 0, scrollLeft: 0 });
jQuery.localScroll.hash({
		axis:'xy',//the default is 'y'
		queue:true,
		duration:1000
	});
	var $last = jQuery([]); //save the last link
	jQuery.localScroll({
		axis:'xy', //the default is 'y'
		queue:true,
		duration:2000,
		hash:true,
		onBefore:function( e, anchor, $target ){//'this' is the clicked link
			$last.removeClass('scrolling');
			$last = $(this).addClass('scrolling');
			if( this.blur )
				this.blur();//remove the awful outline
		},
		onAfter:function( anchor ){
			$last.removeClass('scrolling');
		}
	});
});

jQuery(document).ready(function() {
    //hide the all of the element with class msg_body
    jQuery(".CD_msg_body").hide();
    //toggle the componenet with class msg_body
    jQuery(".CD_msg_head").click(function() {
        jQuery(this).next(".CD_msg_body").slideToggle(600);
    });
});