jQuery.fn.colorHex = function() {
	var c = jQuery(this).css("color");
	if (c != undefined && c.length != 7)
	{
		var re = /\d+/g;
		var matches = c.match(re);
		for (var i = 0; i < matches.length; i++)
		{
			matches[i] = parseInt(matches[i]).toString(16);
			if (matches[i].length < 2) matches[i] = '0' + matches[i];
		}
		c = "#" + matches[0] + matches[1] + matches[2];
	}
	return c;
};
