type = type || ($type(color) == 'array' ? 'rgb' : 'hex'); var rgb, hsb; 
if (arguments.length >= 3){ type = "rgb"; color = Array.slice(arguments, 0, 3); } else if ($type(color) == 'string'){ if (color.match(/rgb/)) color = color.rgbToHex().hexToRgb(true); else if (color.match(/hsb/)) color = color.hsbToRgb(); else color = color.hexToRgb(true); } type = type || 'rgb'; 
  initialize: function(color, type){		type = type || ($type(color) == 'array' ? 'rgb' : 'hex');		var rgb, hsb;		switch (type){			case 'rgb':				rgb = color;				hsb = rgb.rgbToHsb();				break;			case 'hsb':				rgb = color.hsbToRgb();				hsb = color;				break;			default:				rgb = color.hexToRgb(true);				hsb = rgb.rgbToHsb();		}		rgb.hsb = hsb;		rgb.hex = rgb.rgbToHex();		return $extend(rgb, this);	}
6991	/local1/tlutelli/issta_data/temp/all_js/javascript/2007_temp/2007/6991/0f0912f3dee724dae2c663f656cdd52ebd7b0f60/Color.js/buggy/Source/Utilities/Color.js