jQuery.fn.fadeToggle = function(speed, easing, callback) { 
   return this.animate({opacity: 'toggle'}, speed, easing, callback); 
}; 


jQuery.fn.fadeFontColor = function(color) { 
	if(!this.attr('oldcolor')) this.attr('oldcolor', this.css('color'));
	
	
	if(this.css('color')==this.attr('oldcolor'))
	return this.css('color', color);
	else
	return this.css('color', this.attr('oldcolor'));
	
}; 


jQuery.fn.backgroundToggle = function() { 

	if(this.css('backgroundPosition')=='0px 100%')
	return this.css('backgroundPosition','0px 0px');
	else
	return this.css('backgroundPosition','0px 100%');
	
}; 

jQuery.fn.htmlToggle = function(arg1, arg2) { 

	if(this.html()==arg1)
	{
		this.html(arg2);
		return '1';
	}
	else
	{
		this.html(arg1);
		return '2';
	}
	
}; 

jQuery.fn.fadeColor = function(color, speed, easing, callback) { 
   return this.animate({backgroundColor: color}); 
}; 
