$(document).ready(function() {

	$('#copy blockquote').hide();

	$('#copy h4').click(function() {
		var currentBox = $(this).next('blockquote');
		$('#copy blockquote').slideUp();
		if( $(currentBox).is(":visible") ) {
  		
		}
		else {
		$(currentBox).slideDown();
		}
		return false;
	});
	
	
	$('#copy .tabContent').hide();
	$('#copy .tabContent:first').show();
	$('#copy .tabLabel:first').addClass('here');
	

	$('#copy .tabLabel').click(function() {
		var currentId = $(this).attr('ref');
		$('#copy .tabLabel').removeClass('here');
		$(this).addClass('here');
		$('#copy .tabContent').hide();
		$('#copy .'+currentId).show();

	});
	

	$('#copy .tabContent2').hide();
	$('#copy .tabContent2:first').show();
	$('#copy .tabLabel2:first').addClass('here');
	

	$('#copy .tabLabel2').click(function() {
		var currentId = $(this).attr('ref');
		$('#copy .tabLabel2').removeClass('here');
		$(this).addClass('here');
		$('#copy .tabContent2').hide();
		$('#copy .'+currentId).show();

	});
	
	
		$("div.q1").show();
		$("p.again").hide();
		

	$('div.question li a').click(function() {
		var currentClass = $(this).parent().attr('class'); 
		$("div.question").hide();
		$("div.outcome").hide();
		$('div.'+currentClass).show();
		if( $("div.outcome").is(":visible") ) {
  		$("p.again").show();
		}
		else {
		$("p.again").hide();
		}
		return false;
	});
	
	$('div.question li:nth-child(3) a').each(function () {
        $(this).addClass("second");
	});


	$('p.again a').click(function() {
		$("div.question").hide();
		$("div.outcome").hide();
		$("div.q1").show();
		$("p.again").hide();
		return false;
	});	
	
	
});

