I would be looking at using a CSS class instead of changing the colour through the css function
$(document).ready(function(){
$(".acc-title").click(function () {
$("#cufonid").addClass('cufonCSSClass');
});
});
Although, if you are looking to show/hide:
$("#cufonid").show();
$("#cufonid").hide();
If acc-title is the thing you are operating on, then the following will suffice:
$(".acc-title").click(function () {
$(this).addClass('cufonCSSClass');
//or
$(this).hide();
//etc, etc
});
You could also speed the above acc-title selector by combining it with the ID of a parent element.
$("#somparentid .acc-title").click(function () {
Or give the item an ID itslef:
$("#acc-title").click(function () {
Or, your h2 (this is a little slower, though):
$("h2.acc-title").click(function () {
So, to summarise, your answer might look something like:
$(document).ready(function(){
$("h2.acc-title").click(function () {
$(this).addClass('cufonCSSClass');
});
});
But I'm guessing a bit as I'm not entirely sure what you're after