$(function() {
	
	var instructions = $('#instructions').html();
	
	$('#name, #position, #reason').bind('blur', function() {
		$('#instructions').html(instructions);
	});
	
	$('#name').bind('focus', function() {
		$('#instructions').html(
			"<h2>Stakeholder</h2>"+
			"<p>In agile terms this is the person who stands to benefit from the card.</p>"+
			"<p>For our purposes we need your full name.</p>"
		);
	});
	
	$('#position').bind('focus', function() {
		$('#instructions').html(
			"<h2>Expectation</h2>"+
			"<p>This would normally be where you would record the outcome that was hoped for.</p>"+
			"<p>We've already completed the first half for you, all you need to do is tell us what you'd like to do for us.</p>"+
			"<p><em>(Please say 'Developer', pretty please)</em></p>"
		);
	});
	
	$('#reason').bind('focus', function() {
		$('#instructions').html(
			"<h2>Business Value</h2>"+
			"<p>Here you would normally justify the business value of completing this task.</p>"+
			"<p>Go ahead and summerize your business value, tell us in a couple of words.</p>"+
			"<p>Some examples; \"I can be Ruby Jedi\" or \"I can beat everyone at pool\".</p>"+
			"<p><strong>The last thing we need you to do is upload your CV as our acceptance criteria, then we're all done.</strong></p>"
		);
	});
	
	$('#history').val($.cookie('history'));
	
});