$(document).ready(function(){
	var rebindEvents_show_guide = function() {
	
	$(".notepad_open").click(function(event){
		
		var thepad = $(this).parents("span").next(".notepad_subbox");
		
		if (thepad.is(":hidden")) {
			$(this).text("[Close Comments]");
			rebind_events();
			$(thepad).slideDown(500);
		} else {
			$(this).text("[Open Comments]");
			$(thepad).slideUp(500);
		}
		event.preventDefault();
	});
	
	$(".resource_open").click(function(event){
		
		var thepad = $(this).parents("span").next(".resource_subbox");
		
		if (thepad.is(":hidden")) {
			$(thepad).slideDown(500);
		} else {
			$(thepad).slideUp(500);
		}
		event.preventDefault();
	});
	
	$(".resource_close a").click(function(event){
		var thepad = $(this).parents(".resource_subbox");
		$(thepad).slideUp(500);
		event.preventDefault();
	});
	
	$(".guide_slides img").click(function(event){
		$(this).toggleClass("guide_slides_small");
		if ($(this).hasClass("guide_slides_small")) $(this).attr("title","Enlarge");
		else $(this).attr("title","Shrink");
	});
	/*$(".note_submit_button").unbind("click").bind("click",function(event){
		var _obj = $(this);

		getLoginStatus(function(){
			_obj.siblings(".note_text_container").slideDown();
		},function(){
			messageStack("Please briefly make an account to submit. Thanks!","neutral");
			$(".LOGIN").click();
			return false;
		});
		event.preventDefault();
	});*/
	}
	
	rebindEvents_show_guide();
});
