// JavaScript Document

$(function() {
		$('h3#emailed, h3#read, h3#commented').click(function() {
			$('h3#emailed, h3#read, h3#commented').removeClass('selected'); //this removes selection from all boxes
			$(this).addClass('selected'); //this selects the selected tab
			//$('.step1_features').hide(); //this hides step 1 features
			//$('a.proceed').show(); //this returns all proceed images
			//$('.selected').hide(); //this hides all previous "to step 2" images
			//$(this).hide(); //this hides the proceed image in the box that is clicked
			//$(this).children('.selected').show();
			//$(this.childNode).attr({src : "images/tostep2.jpg"});
			//$('.box').removeClass('boxSelected'); //this removes previous box selection
			//$(this.parentNode).addClass('boxSelected'); //this selects the chosen box
			//$('.step3').hide();
			//$('.step2').hide(); //this hides step 2 to avoid multiple step 2s showing
			return false; 
			
		});
	});
	
$(function() {
		$('h3#emailed').click(function() {
			$('#ReadBox, #CommentedBox').hide();
			$('#EmailedBox').show();			
			//$('#free a.proceed').hide();
			return false; 
		});
	});
	
$(function() {
		$('h3#read').click(function() {
			$('#EmailedBox, #CommentedBox').hide();
			$('#ReadBox').show();			
			//$('#free a.proceed').hide();
			return false; 
		});
	});
	
$(function() {
		$('h3#commented').click(function() {
			$('#ReadBox, #EmailedBox').hide();
			$('#CommentedBox').show();			
			//$('#free a.proceed').hide();
			return false; 
		});
	});
	
$(function () {
	$('#ReadBox li:last, #EmailedBox li:last, #CommentedBox li:last').addClass ( 'last');
	})
	
