$(document).ready(function() {
	var $mainP = $('#main p');
	
	$mainP.hide();
	
	$('a.seeReply').click(function() {
			$(this).next('.reply').slideToggle('slow');
			
			var $link = $(this);
			if ($link.text() == "See reply"){
				$link.text('Hide reply');
			} else {
				$link.text('See reply');
			}
	});
	
	/*$('#main h2').toggle(
		function() {		
		$(this).next('.answer').fadeIn('slow');
		$(this).addClass('close');
		}, 
		function() {
			$(this).next('.answer').fadeOut('slow');
			$(this).removeClass('close');
		});  end of toggle */

//      $('#main .answer').toggleClass('close');

	$('#menu ul li').mouseover(function() {
	$('.submenu').show();
	});
	
	$('#menu ul li').mouseout(function() {
	$('.submenu').hide();
	});
	
	//$('table.striped tr:even').addClass('even');
	
	/*var rows = $('table.striped tbody tr');
	
	rows.mouseover(function() {
		$(this).addClass('highlight');
	});
	
	rows.mouseout(function() {
		$(this).removeClass('highlight');
	});*/
	
	$('table.striped tbody tr')
	.mouseover(function() {
		$(this).addClass('highlight');
		})
	.mouseout(function() {
		$(this).removeClass('highlight');
	});
	


}); // end of ready()
