jQuery(document).ready(function($) {
 	$('.showhide').hide();
 	
 	$.each(document.cookie.split(';'), function(i, cookie) {
    	var c = $.trim(cookie), name = c.split('=')[0], value = c.split('=')[1];
    	if (value == 1) {
        	$('#' + name + '_t').show();
        	
    	}
	});
 	
 	$('h3[id^=jq_]').css("cursor","pointer");

 	$('h3[id^=jq_]').toggle(function(i) {
 		var id = $(i.target).attr('id');
 		$.cookie(id, 1, { expires: 31 });
 		$('#' + id + '_t').slideDown('slow');
 	}, function(i) {
 		var id = $(i.target).attr('id');
 		$.cookie(id, null);
 		$('#' + id + '_t').slideUp('slow');
 	});
 	
});