	$(document).ready(function(){
		/* FAQ page */
		$('p.link a').click(function(event){
			event.preventDefault();			
			if($(this).hasClass('visible')) {
				// for sidebar:
				if ($(this).parent().parent().parent().parent().hasClass('sidebar'))
					$(this).css({backgroundPosition:'-9px 2px'});
				else
					//$(this).parent().css({backgroundPosition:'-9px 4px'});
					$(this).css({backgroundPosition:'-9px 4px'});
				$(this).parent().nextAll().hide();								
				
			}
			else {
				// for sidebar:
				if ($(this).parent().parent().parent().parent().hasClass('sidebar'))
					$(this).css({backgroundPosition:'0 -11px'});
				else
					//$(this).parent().css({backgroundPosition:'0 -9px'});
					$(this).css({backgroundPosition:'0 -9px'});
				$(this).parent().nextAll().show();					
			}
			$(this).toggleClass('visible');
		})
		
		$('a#openAll').click(function(event){
			event.preventDefault();
			if($(this).hasClass('visible')) {
				$(this).css({backgroundPosition:'-9px 2px'});
				$(this).text('Expand All');
				$(this).toggleClass('visible');
								
				$(this).parent().nextAll().children('p.link').children('a').css({backgroundPosition:'-9px 4px'});
				$(this).parent().nextAll().children('p:not(.link)').hide();
				//the following two lines were added 11/25/08 to closing all of the bullet points
				$(this).parent().nextAll().children('ol').hide();
				$(this).parent().nextAll().children('ul').hide();	
				
				$(this).parent().nextAll().children('table').hide();			
				
				
			}
			else
			{
				$(this).css({backgroundPosition:'0 -11px'});
				$(this).text('Close All');
				$(this).toggleClass('visible');
				
				$(this).parent().nextAll().children('p.link').children('a').css({backgroundPosition:'0 -9px'});
				$(this).parent().nextAll().children().show();
				
				$(this).parent().nextAll().children('ol').show();
				$(this).parent().nextAll().children('ul').show();	
				
				$(this).parent().nextAll().children('table').show();
			}
		})
		/* /FAQ page */
	});
	