
	//==============================================================
	//	TextArea Rich 3.0 Configuration Page
	//==============================================================
	//	To make changes below, please first read the manual
	//	located in docs/configuration.htm
	//
	//	Any incorrect changes here may cause the editor to
	//	load incorrectly, and fail to work.
	//
	//	If you have any problems, please use the support forums
	//
	//	Copyright 2004-2006 Recaf Internet Solutions Ltd
	//
	//==============================================================
	
	var path = "/editor/incs/";	//full path where the editor is located (with end slash)
    var styleSheet = "/examples/style.css"; 		//style sheet for the editor to load in the main window (relative to editor file.htm)
	
	//===============================
	// 	EDITOR SAVE OPTIONS
	//
	//	How should the editor save the document? The options are:
	//
	//	HTML_1  = all HTML code including HEAD and BODY tags
	//	HTML_2 	= only HTML code inside BODY tags (doesnt including header info)
	//  ALERT	= Output the contents of the editor to a Javascript alert box (good for debugging code etc)
	//
	//===============================
	
	var saveMethod		= 	"HTML_1";
	var saveField		=	"content";	//name of the field in your form to handle the editor contents
	var formName 		= 	"frm";		//name of the form where the editor is being used
	
	//===============================
	// 	BROWSER DETECTION OPTIONS
	//
	//	What should the editor do if it detects that internet explorer has not been found?
	//	You can either display a message, or redirect the user to another page
	//
	//===============================
	
	var noIEdetected   	=	"message";	//("redirect" or "message")
	var noIEmessage		=	"Sorry, you must have Internet Explorer 5.5 or higher to use the WYSIWYG editor";
	var noIEredirect	=	"/editor/incs/noie.htm";
	
	//===============================
	//	CONTEXT MENU OPTIONS
	//===============================
	
	var menu_bg_col		=   "#EEEEEE";	//menu background colour
	var menu_seperator  =   "#BBBBBB";	//seperator colour
	var menu_over_col	=	"#C6C6FF";	//mouse over colour
	var menu_border_col	=	"#7171FF";	//border colour
	var menu_first_col  =	"#999999";	//first column in menu (right click)
	var menu_shadowSize =   5;			//set to 0 to hide shadow. (10 is max shadow)
	var menu_shadowCol	=	"#A4A4A4";  //menu shadow colour

	//===============================
	//	GENERAL OPTIONS
	//===============================
	
	var textDirection   =   "RTL";		//change the text direction from LTR (left to right) or RTL (right to left)
	var iFrameHeight	= 	"400px";	//height of the editor window (iFrame) NOTE: this must be in px measurements. % doesnt work.
	var useBR			= 	false;		//replace <P> tags with <BR> (true or false)
	var useCMDundo		=	false;		//use the standard commandExec undo (true) or custom undo (false) - also applies to redo
	var colorsWide		=	"8";		//how many colours wide should the color popup menu be?
	var table_borders	= 	"on";		//should the editor highlight table borders onload? (on or off)
	var form_borders	=	"on";		//should the editor highlight form borders onload? (on or off)
	var doubleClickImg 	=	true;		//if the user double clicks an image, should it open the properties for that image?
	var errDesc			=	"\n\nThe editor may not function correctly. Please visit the website for more info on this error";

	var undoListSize	=	8			//the number of undo levels you want to show on the drop down list (not currently supported)
	
	//when buttons are disabled, the CTRL+key is also disabled. 
	var showDisabledMsg =   false;		//set to false to not have a message popping up telling the user that they key is disabled.
	var disabledMsg		=	"This operation has been disabled"; //this is the mesage which pops up when the user tries to perform a disabled function, eg: CTRL+B
	
	//===============================
	//	HTML (code) MODE OPTIONS
	//===============================
	var editorFont		=	"courier";	//font face used in code mode
	var editorFontSize	=	"10pt";		//size of font used in code mode
	var editorTextColor	=	"#333366";	//color of font in code mode
	var editorBgColor	=	"#ffffff";	//background color of the code mode (defult white)
	
	//===============================
	//	EDITOR STATUS BAR OPTIONS
	//===============================
	var statusCodeMode 	= 	"HTML code mode";	//text shown when in HTML code mode on the status bar
	var statusWysiwyg	=	"WYSIWYG mode";		//text shown when in WYSIWYG mode on the status bar
	var showHTMLpath	=	true;				//show(true) or hide(false) the path of the HTML in the status bar
	
	//===============================
	//	GENERAL EDITING OPTIONS
	//===============================
	var allowTableEdit	=	true;		//does the user have access to the table properties (context menu and drop down are effected)
	var allowFormEdit	=	true;		//allow form editing features? (true or false)
	var allowSaveButton	=	true;		//show the save button?
	var allowHTMLedit	=	true;		//can the user edit the HTML? (set to false to hide the code view mode button)
	var allowImageReset = 	true;		//allow the user to reset the image size?
	var allowPreview	=   true;		//allow the user to preview the page in a popup? (set size options in context_menus.js)

	//===============================
	//	FONT & STYLE OPTIONS
	//===============================
	var allowFonts		=	true;		//allow the font drop down list?
	var allowFontSize	=	true;		//allow font size list?
	var allowFormat		=	true;		//font format, eg: Heading 1 etc
	var allowStyles		=	true;		//font styles (Specify below)
	
	//===============================
	//	INSERT MENU OPTION
	//===============================
	var allowInserts	=	true;		//allow the insert drop down menu
	var allowInsScroll	=	true;		//allow scrolling text to be inserted
	var allowInsDate	=	true;		//allow insert date
	var allowInsTime	=	true;		//allow insert time
	var allowSpecialChar=	true;		//allow special characters to be inserted
	
	//===============================
	//	TIME/DATE FORMATTING OPTIONS
	//===============================
	var showAM_PM		=	true;			//show the AM or PM? (true shows and false hides)
	var timeFormat		=	"HH MM";		//if you want to include seconds, add " SS" on the end - do not use seperators here
	var timeSeperator	=	":";			//seperator used between numbers eg: 12:34 or 12.34
	var dateFormat		=	"DD MM YYYY";	//used for the format. can also change to MM DD YYYY
	var dateDivider		=	"/";			//used to divide the date elements

	//===================================================================================
	//		HELP FILE OPTIONS
	//		Here you can specify (if allowed) what file is called when the user clicks
	//		on the help option when right clicking an element. We have defaulted to the W3C
	//		information pages, but you could easily change this to you own help files. The path
	//		to your files must be relative to the editor. eg: "editor/files/help_tables.html"
	//		
	//		If you do not want to use the help files, set allowContextHelp to false. 
	//		If you do not want a particular help file to show, simply delete the path. Do not delete
	//		the variable or you will see an error. (see help text for an example)
	//===================================================================================
	
	var allowContextHelp= 	true;				//set to false to stop the help option appearing on context menu
	var helpText		=	"";					//disabled help menus (DO NOT CHANGE!)
	var helpTextLabel 	= 	"";
	
	var helpTables		=	"http://www.w3.org/TR/REC-html40/struct/tables.html";
	var helpTablesLabel	=	"Help with tables";
	
	var helpImages		= 	"http://www.w3.org/TR/REC-html40/struct/objects.html";
	var helpImagesLabel	=	"Help with images";
	
	var helpLinks		=	"http://www.w3.org/TR/REC-html40/struct/links.html";
	var helpLinksLabel	=	"Help with Hyperlinks";
	
	var helpForms		=	"http://www.w3.org/TR/REC-html40/interact/forms.html";
	var helpFormsLabel	=	"Help with Forms";
	
	var helpRule		=	"http://www.w3.org/TR/REC-html40/present/graphics.html#h-15.3";
	var helpRuleLabel	=	"Help with &lt;HR&gt;";
	
	
	//====================================================================================
	//  SINGLE BUTTONS
	//  
	//  new Array ("Alt Text	,	"filename")
	//
	//  NOTE: These buttons cannot be commented out like the arrays above.
	//  To disable these, please use the config options above to set the button to FALSE.
	//====================================================================================
	
	var tlb_save = new Array (
		new Array ("Save"		,	"save.gif")
	)
	
	var tbl_specialChars = new Array(
	 	new Array ("Insert Special Characters"	,	"specialchar.gif")
	)
	
	var tbl_table = new Array(
	 	new Array ("Table Elements"		,	"table.gif")
	)
	
	var tbl_form = new Array(
	 	new Array ("Form Elements"		,	"form_insert.gif")
	)
	
	var tbl_code = new Array(
		new Array ("Switch to Code Mode",	"code.gif"	,	"desc_code")
	)
	
	var tbl_insert_drop = new Array(
		new Array ("Insert Elements", "insertSpecial_drop.gif" , "desc_insert")
	)
	
	//====================================================================================================
	//	INSERT MENU OPTION
	//	
	//	new Array ("Alt Text	,	"filename")
	//	
	//	NOTE: To disable these buttons, simply comment out
	//====================================================================================================
	
	var tlb_basic = new Array()
		tlb_basic.unshift(new Array ("Undo (CTRL+Z)"		,	"undo()"			,	"undo.gif"		,	"desc_undo"));	//basic undo button
		//tlb_basic.unshift(new Array ("Undo List",	"undoDrop()"		,	"undo_drop.gif"	,	"desc_undo"));	
		tlb_basic.unshift(new Array ("Redo (CTRL+SHIFT+Z)"		,	"redo()"			,	"redo.gif"		,	"desc_redo"));  //basic redo button
		//tlb_basic.unshift(new Array ("Redo List",	"redoDrop()"		,	"redo_drop.gif"	,	"desc_redo"));
		tlb_basic.unshift(new Array ("Cut"		,	"cmdExec('cut')"	,	"cut.gif"		,	"desc_cut"));
		tlb_basic.unshift(new Array ("Copy"		,	"cmdExec('copy')"	,	"copy.gif"		,	"desc_copy"));
		tlb_basic.unshift(new Array ("Paste"	,	"cmdExec('paste')"	,	"paste.gif"		,	"desc_paste"));
		tlb_basic.reverse();
		
		//example of a disabled button
		//tlb_basic.unshift(new Array ("Foo"	,	"foo"	,	"foo.gif"	,	"desc_foo"));

	

	//=====================================================================================================
	//	FONT FORMAT BUTTON TOOLBAR
	//
	// 	new Array ("Image Alt Text" , 	"function()" 			, 	"filename" 			, 	"button_name")
	//  comment out any button you do not want appearing on the toolbar
	//=====================================================================================================
	
	var tlb_style_buttons = new Array()
		
		tlb_style_buttons.unshift(new Array("Bold"			,	"bold"					,	"bold.gif"			,	"desc_bold"));
		tlb_style_buttons.unshift(new Array("Italic"		,	"italic"				,	"italic.gif"		,	"desc_italic"));
		tlb_style_buttons.unshift(new Array("Underline"		,	"underline"				,	"under.gif"			,	"desc_underline"));
		tlb_style_buttons.unshift(new Array("Strikethrough"	,	"strikethrough"			,	"strikethrough.gif"	,	"desc_strike"));
		tlb_style_buttons.unshift(new Array("Super Script"	,	"superscript"			, 	"superscript.gif"	,	"desc_superscript"));
		tlb_style_buttons.unshift(new Array("Sub Script"	,	"subscript"				, 	"subscript.gif"		,	"desc_subscript"));
		tlb_style_buttons.unshift(new Array("Left Align"	,	"justifyleft"			, 	"aleft.gif"			,	"desc_leftAlign"));
		tlb_style_buttons.unshift(new Array("Center Align"	,	"justifycenter"			, 	"center.gif"		,	"desc_centerAlign"));
		tlb_style_buttons.unshift(new Array("Right Align"	,	"justifyright"			, 	"aright.gif"		,	"desc_rightAlign"));
		tlb_style_buttons.unshift(new Array("Bullet List"	,	"insertunorderedlist"	,	"bullist.gif"		,	"desc_bullet"));
		tlb_style_buttons.unshift(new Array("Numbered List"	,	"insertorderedlist"		,	"nlist.gif"			,	"desc_nlist"));
		tlb_style_buttons.unshift(new Array("Indent Text"	,	"indent"				,	"iright.gif"		,	"desc_indent"));
		tlb_style_buttons.unshift(new Array("Outdent Text"	,	"outdent"				,	"ileft.gif"			,	"desc_outdent"));
		//reverse the buttons as they are in the wrong order
		tlb_style_buttons.reverse();
	
	//colour buttons on the toolbar
	var tbl_fontcolors = new Array()
		
		tbl_fontcolors.unshift(new Array ("Font Foreground Colour"	,	"doColor('forecolor')"		,	"forecol.gif"		,	"desc_forecol"));
		tbl_fontcolors.unshift(new Array ("Font Background Colour"	,	"doColor('backcolor')"		,	"bgcol.gif"			,	"desc_backcol"));
		tbl_fontcolors.reverse();
	
	//============================================================================================================
	//	EXTRA BUTTONS
	//
	// 	new Array ("Image Alt Text" , 	"command" 			, 	"filename" 			, 	"button_name")
	//============================================================================================================
	
	var tbl_extraButtons = new Array()
	
		tbl_extraButtons.unshift(new Array ("Insert Hyperlink"	,	"doLink()"					,	"link.gif"				,	"desc_link"));
		//tbl_extraButtons.unshift(new Array ("Remove Hyperlink"	,	"cmdExec('unlink')"			,	"unlink.gif"			,	"desc_unlink"));
		tbl_extraButtons.unshift(new Array ("Insert Email Link"	,	"doEmail()"					,	"email.gif"				,	"desc_email"));
		tbl_extraButtons.unshift(new Array ("SEPERATOR"			,	""							,	""						,	""));
		tbl_extraButtons.unshift(new Array ("Insert Image"		,	"doImage()"					,	"image.gif"				,	"desc_image")); 
		tbl_extraButtons.unshift(new Array ("Image Properties"	,	"doImage()"					,	"image_properties.gif"	,	"desc_imageProperties"));
		tbl_extraButtons.unshift(new Array ("Insert Horizontal Rule", "doRule()"					,"rule.gif"			,	"desc_rule"));
		tbl_extraButtons.unshift(new Array ("SEPERATOR"			,	""							,	""						,	""));
		tbl_extraButtons.unshift(new Array ("Remove MS Word HTML",	"cleanCode()"				,	"removeformat.gif"		,	"desc_cleanhtml"));
		tbl_extraButtons.unshift(new Array ("SEPERATOR"			,	""							,	""						,	""));
		tbl_extraButtons.unshift(new Array ("Find & Replace Text",	"findAndReplace()"			,	"ab.gif"				,	"desc_ab"));
		tbl_extraButtons.unshift(new Array ("Page Properties"	,	"doProperties()"			,	"properties.gif"		,	"desc_properties"));
		tbl_extraButtons.reverse();
	
	//============================================================================================================
	//	FONT FORMAT FONT LIST TOOLBAR
	//
	// new Array ("font name" , "Display Name")
	//============================================================================================================

	var tbl_style_fonts = new Array();
		
	 	tbl_style_fonts.unshift(new Array ("arial"				,	"Arial"));
		tbl_style_fonts.unshift(new Array ("times new roman"	,	"Times New Roman"));
		tbl_style_fonts.unshift(new Array ("courier"			,	"Courier"));
		tbl_style_fonts.unshift(new Array ("verdana"			,	"Verdana"));
		tbl_style_fonts.unshift(new Array ("helvetica"			,	"Helvetica"));
		tbl_style_fonts.unshift(new Array ("sans serif"			,	"Sans Serif"));
		tbl_style_fonts.unshift(new Array ("wingdings"			,	"Wingdings"));
		tbl_style_fonts.reverse();
	
	//============================================================================================================
	//	STYLE DROP DOWN LIST
	//	Simply enter the name of the class found in the style sheet (specified in config above)
	//
	// new Array ("stylename" , "Display Name")
	//============================================================================================================
	
	var tbl_style_styles = new Array()
	
	 	tbl_style_styles.unshift(new Array ("bigBlue"		,	"Large blue"));
		tbl_style_styles.unshift(new Array ("littleOrange"	,	"Small orange"));
		tbl_style_styles.unshift(new Array ("redUnderline"	,	"Underlined red"));
		tbl_style_styles.reverse();

	//============================================================================================================
	//	FONT SIZE LIST TOOLBAR
	//
	// new Array ("font size" , "Display Name")
	//============================================================================================================
	
	var tbl_style_fontsize = new Array()
	
	 	tbl_style_fontsize.unshift(new Array ("1"	,	"Size 1"));
		tbl_style_fontsize.unshift(new Array ("2"	,	"Size 2"));
		tbl_style_fontsize.unshift(new Array ("3"	,	"Size 3"));
		tbl_style_fontsize.unshift(new Array ("4"	,	"Size 4"));
		tbl_style_fontsize.unshift(new Array ("5"	,	"Size 5"));
		tbl_style_fontsize.unshift(new Array ("6"	,	"Size 6"));
		tbl_style_fontsize.reverse();
	
	
	//============================================================================================================
	//	FONT FORMAT
	//
	// new Array ("format" , "Display Name")
	//============================================================================================================
	
	var tbl_style_fontformat = new Array()

		tbl_style_fontformat.unshift(new Array ("Normal"	,	"Normal"));
		tbl_style_fontformat.unshift(new Array ("Heading 1"	,	"Heading 1"));
		tbl_style_fontformat.unshift(new Array ("Heading 2"	,	"Heading 2"));
		tbl_style_fontformat.unshift(new Array ("Heading 3"	,	"Heading 3"));
		tbl_style_fontformat.unshift(new Array ("Heading 4"	,	"Heading 4"));
		tbl_style_fontformat.unshift(new Array ("Heading 5"	,	"Heading 5"));
		tbl_style_fontformat.unshift(new Array ("Heading 6"	,	"Heading 6"));
		tbl_style_fontformat.unshift(new Array ("Formatted"	,	"Formatted"));
		tbl_style_fontformat.reverse();
		
	
	//============================================================================================================
	//  COLORS FOR DROP DOWN MENU
	//
	// new Array ("#999999")
	//============================================================================================================
	
	var menu_colors = new Array
	(
	 	"#FF0000","#400000","#800000","#C00000","#FF4040","#FF8080","#FFC0C0","#000000",
		"#FFFF00","#404000","#808000","#C0C000","#FFFF40","#FFFF80","#FFFFC0","#202020",
		"#00FF00","#004000","#008000","#00C000","#40FF40","#80FF80","#C0FFC0","#404040",
		"#00FFFF","#004040","#008080","#00C0C0","#40FFFF","#80FFFF","#C0FFFF","#808080",
		"#0000FF","#000040","#000080","#0000C0","#4040FF","#8080FF","#C0C0FF","#C0C0C0",
		"#FF00FF","#400040","#800080","#C000C0","#FF40FF","#FF80FF","#FFC0FF","#FFFFFF"
		
	)

	//============================================================================================================
	//	List of buttons which the state is checked (eg the button shouldnt be checked for undo)
	//	
	//	IMPORTANT: This must be the same as the commandExec command
	//
	//	Remember to add any new buttons you have added to here if you want their state to be checked
	//============================================================================================================
	
	var check_buttons = new Array
	(
	 
	 	"bold","italic","underline","superscript","subscript","strikethrough",
		"indent","outdent","justifyleft","justifyright","justifycenter",
		"insertunorderedlist","insertorderedlist","desc_forecol","desc_backcol"
	 
	)
	
	//make a list of the buttons and elements to disable when in code mode.
	var disableElements = new Array()
	
	//for each element in the allowed buttons array, add it to the disabled list
	for (x=0;x<tlb_style_buttons.length;x++) {
		disableElements.unshift(tlb_style_buttons[x][3]);
	}
	
	//for each element in the other buttons array, add to disabled list
	for (x=0;x<tbl_extraButtons.length;x++) {
		if (tbl_extraButtons[x][3] != "") {
			disableElements.unshift(tbl_extraButtons[x][3]);
		}
	}
	
	//and now for the color drop downs
	for (x=0;x<tbl_fontcolors.length;x++) {
		disableElements.unshift(tbl_fontcolors[x][3]);
	}

	//based on the true or false of each drop down, add it to the disabled elements list!
	if (allowFonts) 		{ disableElements.unshift("fontname"); 			}
	if (allowFontSize) 		{ disableElements.unshift("fontsize"); 			}
	if (allowFormat)		{ disableElements.unshift("fontFormat"); 		}
	if (allowStyles)		{ disableElements.unshift("fontClass"); 		}
	if (allowTableEdit)		{ disableElements.unshift("Table Elements"); 	}
	if (allowFormEdit)		{ disableElements.unshift("Form Elements"); 	}
	if (allowInserts)		{ disableElements.unshift("desc_insert"); 		}

	//end config