/**
 * 
 * This code, which must be included at the after all other closable events are bound,
 * stores in cookies when the left gutter closables are closed, allowing for them
 * to stay closed on page navigation.
 * 
 */
$(document).ready(function(){
		
	$(".notes.closable").bind("closable-close", function()
		{
		$.cookie('notes_closed_cookie', 'true', {expires: 1000, path: '/'});
		});
	
	$(".notes.closable").bind("closable-open", function()
		{
		$.cookie('notes_closed_cookie', null, {path: '/'});
		});
			
	$(".journeys.closable").bind("closable-close", function()
		{
		$.cookie('journeys_closed_cookie', 'true', {expires: 1000, path: '/'});
		});
	
	$(".journeys.closable").bind("closable-open", function()
		{
		$.cookie('journeys_closed_cookie', null, {path: '/'});
		});
	
});
