	jQuery(document).ready(function(){
			$('.accordion .head').click(function() {
				$(this).next().toggle('normal');
				return false;
			}).next().hide();
			
	/*	This script is for the accordion menu for List of Beers
		*/
		});
        
	// Copies message and date/time from Inbox
	$(document).ready(function(){
		$(function() { // wait for the DOM to be ready
		    $('a.copy_link').click(function() { // whenever a copy link is clicked...
		        var id = this.id.split('-').pop(); // get the id of the post
		        var str = $('#msg-' + id).text(); // span not required, since it is an ID lookup
		        $('#note').val(str); // empty not required, and val() is the proper way to change the value of an input element (even textareas)
		        var strdt = $('#msgdate-' + id).text();
				$('#datetime').val(strdt);
		        return false;
		    });
		});
});