// Use office2003 skin
FCKConfig.SkinPath = FCKConfig.BasePath + 'skins/office2003/';
FCKConfig.PreloadImages =
	FCKConfig.SkinPath + 'images/toolbar.start.gif' + ';' +
	FCKConfig.SkinPath + 'images/toolbar.end.gif' + ';' +
	FCKConfig.SkinPath + 'images/toolbar.bg.gif' + ';' +
	FCKConfig.SkinPath + 'images/toolbar.buttonarrow.gif';

FCKConfig.ToolbarSets["SiteManager"] = [
	['Source','-','Preview','-','Templates','Placeholder'],
	['Cut','Copy','Paste','PasteText','PasteWord','-'],
	['Undo','Redo','-','Find','Replace','-','SelectAll','RemoveFormat'],
	'/',
	['Bold','Italic','Underline','StrikeThrough','-','Subscript','Superscript'],
	['OrderedList','UnorderedList','-','Outdent','Indent','Blockquote'],
	['JustifyLeft','JustifyCenter','JustifyRight','JustifyFull'],
	['Link','Unlink','Anchor'],
	['Image','Flash','Table','Rule','SpecialChar','PageBreak'],
	'/',
	['Style','FontFormat','FontName','FontSize'],
	['TextColor','BGColor'],
	['FitWindow','ShowBlocks','-','About']
];

FCKConfig.LinkBrowserURL = FCKConfig.BasePath + '../../ckfinder/ckfinder.html';
FCKConfig.ImageBrowserURL = FCKConfig.BasePath + '../../ckfinder/ckfinder.html?type=Image';
FCKConfig.FlashBrowserURL = FCKConfig.BasePath + '../../ckfinder/ckfinder.html?type=Flash';
FCKConfig.LinkUploadURL = FCKConfig.BasePath + '../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=File';
FCKConfig.ImageUploadURL = FCKConfig.BasePath + '../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Image';
FCKConfig.FlashUploadURL = FCKConfig.BasePath + '../../ckfinder/core/connector/php/connector.php?command=QuickUpload&type=Flash';

FCKConfig.PluginsPath = FCKConfig.BasePath + 'plugins/';
FCKConfig.Plugins.Add('dragresizetable');
FCKConfig.Plugins.Add('placeholder');

// Our intention is force all formatting features to use CSS classes or
// semantic aware elements.

/**
 * Core styles.
 */
FCKConfig.CoreStyles.Bold			= { Element : 'span', Attributes : { 'class' : 'Bold' } };
FCKConfig.CoreStyles.Italic			= { Element : 'span', Attributes : { 'class' : 'Italic' } };
FCKConfig.CoreStyles.Underline		= { Element : 'span', Attributes : { 'class' : 'Underline' } };
FCKConfig.CoreStyles.StrikeThrough	= { Element : 'span', Attributes : { 'class' : 'StrikeThrough' } };

/**
 * Font face
 */
// List of fonts available in the toolbar combo. Each font definition is
// separated by a semi-colon (;). We are using class names here, so each font
// is defined by {Class Name}/{Combo Label}.
FCKConfig.FontNames = 'FontVerdana/Verdana;FontTahoma/Tahoma;FontTrebuchet/Trebuchet MS;FontSans/sans-serif;FontArial/Arial;FontHelvetica/Helvetica;FontComic/Comic Sans MS;FontCourier/Courier New;FontTimes/Times New Roman';

// Define the way font elements will be applied to the document. The "span"
// element will be used. When a font is selected, the font name defined in the
// above list is passed to this definition with the name "Font", being it
// injected in the "class" attribute.
// We must also instruct the editor to replace span elements that are used to
// set the font (Overrides).
FCKConfig.CoreStyles.FontFace =
	{
		Element		: 'span',
		Attributes	: { 'class' : '#("Font")' },
		Overrides	: [ { Element : 'span', Attributes : { 'class' : /^Font(?:Verdana|Tahoma|Trebuchet|Sans|Arial|Helvetica|Comic|Courier|Times)$/ } } ]
	};

/**
 * Font sizes.
 */
FCKConfig.FontSizes		= 'Font8px/8px;Font9px/9px;Font10px/10px;Font11px/11px;Font12px/12px;Font14px/14px;Font16px/16px;Font18px/18px;Font20px/20px;Font22px/22px;Font24px/24px;Font8pt/8pt;Font9pt/9pt;Font10pt/10pt;Font11pt/11pt;Font12pt/12pt;Font14pt/14pt;Font16pt/16pt;Font18pt/18pt;Font20pt/20pt;Font22pt/22pt;Font24pt/24pt;Font50Percent/50%;Font75Percent/75%;Font100Percent/100%;Font125Percent/125%;Font150Percent/150%;Font175Percent/175%;Font200Percent/200%;';
FCKConfig.CoreStyles.Size =
	{
		Element		: 'span',
		Attributes	: { 'class' : '#("Size")' },
		Overrides	: [ { Element : 'span', Attributes : { 'class' : /^Font(?:8px|9px|10px|11px|12px|14px|16px|18px|20px|22px|24px|8pt|9pt|10pt|11pt|12pt|14pt|16pt|18pt|20pt|22pt|24pt|50Percent|75Percent|100Percent|125Percent|150Percent|175Percent|200Percent)$/ } } ]
	};

/**
 * Font colors.
 */
FCKConfig.EnableMoreFontColors = false ;
FCKConfig.FontColors = '000000/FC01,993300/FC02,333300/FC03,003300/FC04,003366/FC05,000080/FC06,333399/FC07,333333/FC08,800000/FC09,FF6600/FC10,808000/FC11,008000/FC12,008080/FC13,0000FF/FC14,666699/FC15,808080/FC16,FF0000/FC17,FF9900/FC18,99CC00/FC19,339966/FC20,33CCCC/FC21,3366FF/FC22,800080/FC23,999999/FC24,FF00FF/FC25,FFCC00/FC26,FFFF00/FC27,00FF00/FC28,00FFFF/FC29,00CCFF/FC30,993366/FC31,C0C0C0/FC32,FF99CC/FC33,FFCC99/FC34,FFFF99/FC35,CCFFCC/FC36,CCFFFF/FC37,99CCFF/FC38,CC99FF/FC39,FFFFFF/FC40';
FCKConfig.CoreStyles.Color =
	{
		Element		: 'span',
		Attributes	: { 'class' : '#("Color")' },
		Overrides	: [ { Element : 'span', Attributes : { 'class' : /^FC([0-9]+)$/ } } ]
	};

FCKConfig.CoreStyles.BackColor =
	{
		Element		: 'span',
		Attributes	: { 'class' : '#("Color")BG' },
		Overrides	: [ { Element : 'span', Attributes : { 'class' : /^FC([0-9]+)BG$/ } } ]
	};

/**
 * Indentation.
 */
FCKConfig.IndentClasses = [ 'Indent1', 'Indent2', 'Indent3', 'Indent4', 'Indent5' ];

/**
 * Paragraph justification.
 */
FCKConfig.JustifyClasses = [ 'JustifyLeft', 'JustifyCenter', 'JustifyRight', 'JustifyFull' ];

/**
 * Styles combo.
 */
FCKConfig.StylesXmlPath = '';
FCKConfig.CustomStyles =
	{
		'Strong Emphasis' : { Element : 'strong' },
		'Emphasis' : { Element : 'em' },

		'Computer Code' : { Element : 'code' },
		'Keyboard Phrase' : { Element : 'kbd' },
		'Sample Text' : { Element : 'samp' },
		'Variable' : { Element : 'var' },

		'Deleted Text' : { Element : 'del' },
		'Inserted Text' : { Element : 'ins' },

		'Cited Work' : { Element : 'cite' },
		'Inline Quotation' : { Element : 'q' }
	};
