$(document).ready(function() { 
	
	$('#service_content .tab_content').hide();
	addPlusSigns(false);
	
	$('#service_content h2').hover(
		function() { $(this).css({textDecoration: 'underline', cursor: 'pointer'}); },
		function() { $(this).css({textDecoration: 'none', cursor: 'default'}); }
	);
	
	$('#service_content h2').click(function() { 
		
		$content = $(this).next();
				
		if($content.hasClass('sliderOpen'))
		{
			addPlusSigns(true);
						
			$('#service_content .tab_content').slideUp().removeClass('sliderOpen');
		}
		else
		{
			addPlusSigns(true);
			
			var linkText = $(this).html().slice(0,-1);
	
			$(this).html(linkText+' -');
			
			$('#service_content .tab_content').slideUp().removeClass('sliderOpen');
			$content.slideDown().addClass('sliderOpen');
		}
		
	});
	
});

function addPlusSigns(removeEnd)
{
	$('#service_content h2').each(function() {
		if(removeEnd) {
			var linkText = $(this).html().slice(0,-1);
		}
		else {
			var linkText = $(this).html();
		}
		
		$(this).html(linkText+' +');
	});
}
