[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Phpgroupware-cvs] phpgwapi/js/fckeditor/editor _source/classes/fc...
From: |
Dave Hall |
Subject: |
[Phpgroupware-cvs] phpgwapi/js/fckeditor/editor _source/classes/fc... |
Date: |
Mon, 25 Sep 2006 09:30:40 +0000 |
CVSROOT: /cvsroot/phpgwapi
Module name: phpgwapi
Changes by: Dave Hall <skwashd> 06/09/25 09:30:40
Added files:
js/fckeditor/editor/_source/classes: fckcontextmenu.js
fckeditingarea.js
fckicon.js fckiecleanup.js
fckmenublock.js
fckmenublockpanel.js
fckmenuitem.js fckpanel.js
fcktoolbarbuttonui.js
js/fckeditor/editor/_source/commandclasses: fckfitwindow.js
js/fckeditor/editor/_source/internals: fck_contextmenu.js
fckdocumentprocessor.js
js/fckeditor/editor/images: arrow_ltr.gif arrow_rtl.gif
js/fckeditor/editor/js: fckeditorcode_gecko.js
fckeditorcode_ie.js
js/fckeditor/editor/lang: bn.js en-ca.js km.js
js/fckeditor/editor/plugins/autogrow: fckplugin.js
js/fckeditor/editor/skins/default: fck_strip.gif
js/fckeditor/editor/skins/office2003: fck_strip.gif
js/fckeditor/editor/skins/silver: fck_strip.gif
Log message:
sync with upstream - adding missing files from previous sync
CVSWeb URLs:
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckcontextmenu.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckeditingarea.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckicon.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckiecleanup.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckmenublock.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckmenublockpanel.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckmenuitem.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fckpanel.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/classes/fcktoolbarbuttonui.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/commandclasses/fckfitwindow.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/internals/fck_contextmenu.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/_source/internals/fckdocumentprocessor.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/images/arrow_ltr.gif?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/images/arrow_rtl.gif?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/js/fckeditorcode_gecko.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/js/fckeditorcode_ie.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/lang/bn.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/lang/en-ca.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/lang/km.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/plugins/autogrow/fckplugin.js?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/skins/default/fck_strip.gif?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/skins/office2003/fck_strip.gif?cvsroot=phpgwapi&rev=1.1
http://cvs.savannah.gnu.org/viewcvs/phpgwapi/js/fckeditor/editor/skins/silver/fck_strip.gif?cvsroot=phpgwapi&rev=1.1
Patches:
Index: _source/classes/fckcontextmenu.js
===================================================================
RCS file: _source/classes/fckcontextmenu.js
diff -N _source/classes/fckcontextmenu.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckcontextmenu.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,120 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckcontextmenu.js
+ * FCKContextMenu Class: renders an control a context menu.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+var FCKContextMenu = function( parentWindow, mouseClickWindow, langDir )
+{
+ var oPanel = this._Panel = new FCKPanel( parentWindow, true ) ;
+ oPanel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+ oPanel.IsContextMenu = true ;
+
+ var oMenuBlock = this._MenuBlock = new FCKMenuBlock() ;
+ oMenuBlock.Panel = oPanel ;
+ oMenuBlock.OnClick = FCKTools.CreateEventListener(
FCKContextMenu_MenuBlock_OnClick, this ) ;
+
+ this._Redraw = true ;
+
+ this.SetMouseClickWindow( mouseClickWindow || parentWindow ) ;
+}
+
+
+FCKContextMenu.prototype.SetMouseClickWindow = function( mouseClickWindow )
+{
+ if ( !FCKBrowserInfo.IsIE )
+ {
+ this._Document = mouseClickWindow.document ;
+ this._Document.addEventListener( 'contextmenu',
FCKContextMenu_Document_OnContextMenu, false ) ;
+ }
+}
+
+FCKContextMenu.prototype.AddItem = function( name, label,
iconPathOrStripInfoArrayOrIndex, isDisabled )
+{
+ var oItem = this._MenuBlock.AddItem( name, label,
iconPathOrStripInfoArrayOrIndex, isDisabled) ;
+ this._Redraw = true ;
+ return oItem ;
+}
+
+FCKContextMenu.prototype.AddSeparator = function()
+{
+ this._MenuBlock.AddSeparator() ;
+ this._Redraw = true ;
+}
+
+FCKContextMenu.prototype.RemoveAllItems = function()
+{
+ this._MenuBlock.RemoveAllItems() ;
+ this._Redraw = true ;
+}
+
+FCKContextMenu.prototype.AttachToElement = function( element )
+{
+ if ( FCKBrowserInfo.IsIE )
+ FCKTools.AddEventListenerEx( element, 'contextmenu',
FCKContextMenu_AttachedElement_OnContextMenu, this ) ;
+ else
+ element._FCKContextMenu = this ;
+
+// element.onmouseup =
FCKContextMenu_AttachedElement_OnMouseUp ;
+}
+
+function FCKContextMenu_Document_OnContextMenu( e )
+{
+ var el = e.target ;
+
+ while ( el )
+ {
+ if ( el._FCKContextMenu )
+ {
+ FCKTools.CancelEvent( e ) ;
+ FCKContextMenu_AttachedElement_OnContextMenu( e,
el._FCKContextMenu, el ) ;
+ }
+ el = el.parentNode ;
+ }
+}
+
+function FCKContextMenu_AttachedElement_OnContextMenu( ev, fckContextMenu, el )
+{
+// var iButton = e ? e.which - 1 : event.button ;
+
+// if ( iButton != 2 )
+// return ;
+
+ var eTarget = el || this ;
+
+ if ( fckContextMenu.OnBeforeOpen )
+ fckContextMenu.OnBeforeOpen.call( fckContextMenu, eTarget ) ;
+
+ if ( fckContextMenu._Redraw )
+ {
+ fckContextMenu._MenuBlock.Create(
fckContextMenu._Panel.MainNode ) ;
+ fckContextMenu._Redraw = false ;
+ }
+
+ fckContextMenu._Panel.Show(
+ ev.pageX || ev.screenX,
+ ev.pageY || ev.screenY,
+ ev.currentTarget || null
+ ) ;
+
+ return false ;
+}
+
+function FCKContextMenu_MenuBlock_OnClick( menuItem, contextMenu )
+{
+ contextMenu._Panel.Hide() ;
+ FCKTools.RunFunction( contextMenu.OnItemClick, contextMenu, menuItem ) ;
+}
\ No newline at end of file
Index: _source/classes/fckeditingarea.js
===================================================================
RCS file: _source/classes/fckeditingarea.js
diff -N _source/classes/fckeditingarea.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckeditingarea.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,190 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckeditingarea.js
+ * FCKEditingArea Class: renders an editable area.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+/**
+ * @constructor
+ * @param {String} targetElement The element that will hold the editing area.
Any child element present in the target will be deleted.
+ */
+var FCKEditingArea = function( targetElement )
+{
+ this.TargetElement = targetElement ;
+ this.Mode = FCK_EDITMODE_WYSIWYG ;
+
+ if ( FCK.IECleanup )
+ FCK.IECleanup.AddItem( this, FCKEditingArea_Cleanup ) ;
+}
+
+
+/**
+ * @param {String} html The complete HTML for the page, including DOCTYPE and
the <html> tag.
+ */
+FCKEditingArea.prototype.Start = function( html, secondCall )
+{
+ var eTargetElement = this.TargetElement ;
+ var oTargetDocument = FCKTools.GetElementDocument( eTargetElement )
;
+
+ // Remove all child nodes from the target.
+ while( eTargetElement.childNodes.length > 0 )
+ eTargetElement.removeChild( eTargetElement.childNodes[0] ) ;
+
+ if ( this.Mode == FCK_EDITMODE_WYSIWYG )
+ {
+ if ( FCKBrowserInfo.IsGecko )
+ html = html.replace( /(<body[^>]*>)\s*(<\/body>)/i,
'$1' + GECKO_BOGUS + '$2' ) ;
+
+ // Create the editing area IFRAME.
+ var oIFrame = this.IFrame = oTargetDocument.createElement(
'iframe' ) ;
+ oIFrame.src = 'javascript:void(0)' ;
+ oIFrame.frameBorder = 0 ;
+ oIFrame.width = oIFrame.height = '100%' ;
+
+ // Append the new IFRAME to the target.
+ eTargetElement.appendChild( oIFrame ) ;
+
+ // IE has a bug with the <base> tag... it must have a </base>
closer,
+ // otherwise the all sucessive tags will be set as children
nodes of the <base>.
+ if ( FCKBrowserInfo.IsIE )
+ html = html.replace(
/(<base[^>]*?)\s*\/?>(?!\s*<\/base>)/gi, '$1></base>' ) ;
+
+ // Get the window and document objects used to interact with
the newly created IFRAME.
+ this.Window = oIFrame.contentWindow ;
+
+ // IE: Avoid JavaScript errors thrown by the editing are source
(like tags events).
+ // TODO: This error handler is not being fired.
+ // this.Window.onerror = function() { alert( 'Error!' ) ;
return true ; }
+
+ var oDoc = this.Document = this.Window.document ;
+
+ oDoc.open() ;
+ oDoc.write( html ) ;
+ oDoc.close() ;
+
+ // Firefox 1.0.x is buggy... ohh yes... so let's do it two
times and it
+ // will magicaly work.
+ if ( FCKBrowserInfo.IsGecko10 && !secondCall )
+ {
+ this.Start( html, true ) ;
+ return ;
+ }
+
+ this.Window._FCKEditingArea = this ;
+
+ // FF 1.0.x is buggy... we must wait a lot to enable editing
because
+ // sometimes the content simply disappears, for example when
pasting
+ // "bla1!<img src='some_url'>!bla2" in the source and then
switching
+ // back to design.
+ if ( FCKBrowserInfo.IsGecko10 )
+ this.Window.setTimeout( FCKEditingArea_CompleteStart,
500 ) ;
+ else
+ FCKEditingArea_CompleteStart.call( this.Window ) ;
+ }
+ else
+ {
+ var eTextarea = this.Textarea = oTargetDocument.createElement(
'textarea' ) ;
+ eTextarea.className = 'SourceField' ;
+ eTextarea.dir = 'ltr' ;
+ eTextarea.style.width = eTextarea.style.height = '100%' ;
+ eTextarea.style.border = 'none' ;
+ eTargetElement.appendChild( eTextarea ) ;
+
+ eTextarea.value = html ;
+
+ // Fire the "OnLoad" event.
+ FCKTools.RunFunction( this.OnLoad ) ;
+ }
+}
+
+// "this" here is FCKEditingArea.Window
+function FCKEditingArea_CompleteStart()
+{
+ // Of Firefox, the DOM takes a little to become available. So we must
wait for it in a loop.
+ if ( !this.document.body )
+ {
+ this.setTimeout( FCKEditingArea_CompleteStart, 50 ) ;
+ return ;
+ }
+
+ var oEditorArea = this._FCKEditingArea ;
+ oEditorArea.MakeEditable() ;
+
+ // Fire the "OnLoad" event.
+ FCKTools.RunFunction( oEditorArea.OnLoad ) ;
+}
+
+FCKEditingArea.prototype.MakeEditable = function()
+{
+ var oDoc = this.Document ;
+
+ if ( FCKBrowserInfo.IsIE )
+ oDoc.body.contentEditable = true ;
+ else
+ {
+ try
+ {
+ oDoc.designMode = 'on' ;
+
+ // Tell Gecko to use or not the <SPAN> tag for the
bold, italic and underline.
+ oDoc.execCommand( 'useCSS', false,
!FCKConfig.GeckoUseSPAN ) ;
+
+ // Analysing Firefox 1.5 source code, it seams that
there is support for a
+ // "insertBrOnReturn" command. Applying it gives no
error, but it doesn't
+ // gives the same behavior that you have with IE. It
works only if you are
+ // already inside a paragraph and it doesn't render
correctly in the first enter.
+ // oDoc.execCommand( 'insertBrOnReturn', false, false )
;
+
+ // Tell Gecko (Firefox 1.5+) to enable or not live
resizing of objects (by Alfonso Martinez)
+ oDoc.execCommand( 'enableObjectResizing', false,
!FCKConfig.DisableObjectResizing ) ;
+
+ // Disable the standard table editing features of
Firefox.
+ oDoc.execCommand( 'enableInlineTableEditing', false,
!FCKConfig.DisableFFTableHandles ) ;
+ }
+ catch (e) {}
+ }
+}
+
+FCKEditingArea.prototype.Focus = function()
+{
+ try
+ {
+ if ( this.Mode == FCK_EDITMODE_WYSIWYG )
+ {
+ if ( FCKBrowserInfo.IsSafari )
+ this.IFrame.focus() ;
+ else
+ this.Window.focus() ;
+ }
+ else
+ this.Textarea.focus() ;
+ }
+ catch(e) {}
+}
+
+function FCKEditingArea_Cleanup()
+{
+ this.TargetElement = null ;
+ this.IFrame = null ;
+ this.Document = null ;
+ this.Textarea = null ;
+
+ if ( this.Window )
+ {
+ this.Window._FCKEditingArea = null ;
+ this.Window = null ;
+ }
+}
\ No newline at end of file
Index: _source/classes/fckicon.js
===================================================================
RCS file: _source/classes/fckicon.js
diff -N _source/classes/fckicon.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckicon.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,86 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckicon.js
+ * FCKIcon Class: renders an icon from a single image, a strip or even a
+ * spacer.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+var FCKIcon = function( iconPathOrStripInfoArray )
+{
+ var sTypeOf = iconPathOrStripInfoArray ? typeof(
iconPathOrStripInfoArray ) : 'undefined' ;
+ switch ( sTypeOf )
+ {
+ case 'number' :
+ this.Path = FCKConfig.SkinPath + 'fck_strip.gif' ;
+ this.Size = 16 ;
+ this.Position = iconPathOrStripInfoArray ;
+ break ;
+
+ case 'undefined' :
+ this.Path = FCK_SPACER_PATH ;
+ break ;
+
+ case 'string' :
+ this.Path = iconPathOrStripInfoArray ;
+ break ;
+
+ default :
+ // It is an array in the format [ StripFilePath,
IconSize, IconPosition ]
+ this.Path = iconPathOrStripInfoArray[0] ;
+ this.Size = iconPathOrStripInfoArray[1] ;
+ this.Position = iconPathOrStripInfoArray[2] ;
+ }
+}
+
+FCKIcon.prototype.CreateIconElement = function( document )
+{
+ var eIcon ;
+
+ if ( this.Position ) // It is using an icons strip image.
+ {
+ var sPos = '-' + ( ( this.Position - 1 ) * this.Size ) + 'px' ;
+
+ if ( FCKBrowserInfo.IsIE )
+ {
+ // <div class="TB_Button_Image"><img src="strip.gif"
style="top:-16px"></div>
+
+ eIcon = document.createElement( 'DIV' ) ;
+
+ var eIconImage = eIcon.appendChild(
document.createElement( 'IMG' ) ) ;
+ eIconImage.src = this.Path ;
+ eIconImage.style.top = sPos ;
+ }
+ else
+ {
+ // <img class="TB_Button_Image" src="spacer.gif"
style="background-position: 0px -16px;background-image: url(strip.gif);">
+
+ eIcon = document.createElement( 'IMG' ) ;
+ eIcon.src = FCK_SPACER_PATH ;
+ eIcon.style.backgroundPosition = '0px ' + sPos ;
+ eIcon.style.backgroundImage = 'url(' +
this.Path + ')' ;
+ }
+ }
+ else // It is using a single icon
image.
+ {
+ // <img class="TB_Button_Image" src="smiley.gif">
+ eIcon = document.createElement( 'IMG' ) ;
+ eIcon.src = this.Path ? this.Path : FCK_SPACER_PATH ;
+ }
+
+ eIcon.className = 'TB_Button_Image' ;
+
+ return eIcon ;
+}
\ No newline at end of file
Index: _source/classes/fckiecleanup.js
===================================================================
RCS file: _source/classes/fckiecleanup.js
diff -N _source/classes/fckiecleanup.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckiecleanup.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,51 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckiecleanup.js
+ * FCKIECleanup Class: a generic class used as a tool to remove IE leaks.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+
+var FCKIECleanup = function( attachWindow )
+{
+
+ this.Items = new Array() ;
+
+ attachWindow._FCKCleanupObj = this ;
+ attachWindow.attachEvent( 'onunload', FCKIECleanup_Cleanup ) ;
+}
+
+FCKIECleanup.prototype.AddItem = function( dirtyItem, cleanupFunction )
+{
+ this.Items.push( [ dirtyItem, cleanupFunction ] ) ;
+}
+
+function FCKIECleanup_Cleanup()
+{
+ var aItems = this._FCKCleanupObj.Items ;
+ var iLenght = aItems.length ;
+
+ for ( var i = 0 ; i < iLenght ; i++ )
+ {
+ var oItem = aItems[i] ;
+ oItem[1].call( oItem[0] ) ;
+ aItems[i] = null ;
+ }
+
+ this._FCKCleanupObj = null ;
+
+ if ( CollectGarbage )
+ CollectGarbage() ;
+}
\ No newline at end of file
Index: _source/classes/fckmenublock.js
===================================================================
RCS file: _source/classes/fckmenublock.js
diff -N _source/classes/fckmenublock.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckmenublock.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,135 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckmenublock.js
+ * Renders a list of menu items.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+
+var FCKMenuBlock = function()
+{
+ this._Items = new Array() ;
+}
+
+
+FCKMenuBlock.prototype.AddItem = function( name, label,
iconPathOrStripInfoArrayOrIndex, isDisabled )
+{
+ var oItem = new FCKMenuItem( this, name, label,
iconPathOrStripInfoArrayOrIndex, isDisabled ) ;
+
+ oItem.OnClick = FCKTools.CreateEventListener(
FCKMenuBlock_Item_OnClick, this ) ;
+ oItem.OnActivate = FCKTools.CreateEventListener(
FCKMenuBlock_Item_OnActivate, this ) ;
+
+ this._Items.push( oItem ) ;
+
+ return oItem ;
+}
+
+FCKMenuBlock.prototype.AddSeparator = function()
+{
+ this._Items.push( new FCKMenuSeparator() ) ;
+}
+
+FCKMenuBlock.prototype.RemoveAllItems = function()
+{
+ this._Items = new Array() ;
+
+ var eItemsTable = this._ItemsTable ;
+ if ( eItemsTable )
+ {
+ while ( eItemsTable.rows.length > 0 )
+ eItemsTable.deleteRow( 0 ) ;
+ }
+}
+
+FCKMenuBlock.prototype.Create = function( parentElement )
+{
+ if ( !this._ItemsTable )
+ {
+ if ( FCK.IECleanup )
+ FCK.IECleanup.AddItem( this, FCKMenuBlock_Cleanup ) ;
+
+ this._Window = FCKTools.GetElementWindow( parentElement ) ;
+
+ var oDoc = FCKTools.GetElementDocument( parentElement ) ;
+
+ var eTable = parentElement.appendChild( oDoc.createElement(
'table' ) ) ;
+ eTable.cellPadding = 0 ;
+ eTable.cellSpacing = 0 ;
+
+ FCKTools.DisableSelection( eTable ) ;
+
+ var oMainElement = eTable.insertRow(-1).insertCell(-1) ;
+ oMainElement.className = 'MN_Menu' ;
+
+ var eItemsTable = this._ItemsTable = oMainElement.appendChild(
oDoc.createElement( 'table' ) ) ;
+ eItemsTable.cellPadding = 0 ;
+ eItemsTable.cellSpacing = 0 ;
+ }
+
+ for ( var i = 0 ; i < this._Items.length ; i++ )
+ this._Items[i].Create( this._ItemsTable ) ;
+}
+
+/* Events */
+
+function FCKMenuBlock_Item_OnClick( clickedItem, menuBlock )
+{
+ FCKTools.RunFunction( menuBlock.OnClick, menuBlock, [ clickedItem ] ) ;
+}
+
+function FCKMenuBlock_Item_OnActivate( menuBlock )
+{
+ var oActiveItem = menuBlock._ActiveItem ;
+
+ if ( oActiveItem && oActiveItem != this )
+ {
+ // Set the focus to this menu block window (to fire OnBlur on
opened panels).
+ if ( !FCKBrowserInfo.IsIE && oActiveItem.HasSubMenu &&
!this.HasSubMenu )
+ menuBlock._Window.focus() ;
+
+ oActiveItem.Deactivate() ;
+ }
+
+ menuBlock._ActiveItem = this ;
+}
+
+function FCKMenuBlock_Cleanup()
+{
+ this._Window = null ;
+ this._ItemsTable = null ;
+}
+
+// ################# //
+
+var FCKMenuSeparator = function()
+{}
+
+FCKMenuSeparator.prototype.Create = function( parentTable )
+{
+ var oDoc = FCKTools.GetElementDocument( parentTable ) ;
+
+ var r = parentTable.insertRow(-1) ;
+
+ var eCell = r.insertCell(-1) ;
+ eCell.className = 'MN_Separator MN_Icon' ;
+
+ eCell = r.insertCell(-1) ;
+ eCell.className = 'MN_Separator' ;
+ eCell.appendChild( oDoc.createElement( 'DIV' ) ).className =
'MN_Separator_Line' ;
+
+ eCell = r.insertCell(-1) ;
+ eCell.className = 'MN_Separator' ;
+ eCell.appendChild( oDoc.createElement( 'DIV' ) ).className =
'MN_Separator_Line' ;
+}
\ No newline at end of file
Index: _source/classes/fckmenublockpanel.js
===================================================================
RCS file: _source/classes/fckmenublockpanel.js
diff -N _source/classes/fckmenublockpanel.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckmenublockpanel.js 25 Sep 2006 09:30:39 -0000
1.1
@@ -0,0 +1,51 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckmenublockpanel.js
+ * This class is a menu block that behaves like a panel. It's a mix of the
+ * FCKMenuBlock and FCKPanel classes.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+
+var FCKMenuBlockPanel = function()
+{
+ // Call the "base" constructor.
+ FCKMenuBlock.call( this ) ;
+}
+
+FCKMenuBlockPanel.prototype = new FCKMenuBlock() ;
+
+
+// Override the create method.
+FCKMenuBlockPanel.prototype.Create = function()
+{
+ var oPanel = this.Panel = ( this.Parent && this.Parent.Panel ?
this.Parent.Panel.CreateChildPanel() : new FCKPanel() ) ;
+ oPanel.AppendStyleSheet( FCKConfig.SkinPath + 'fck_editor.css' ) ;
+
+ // Call the "base" implementation.
+ FCKMenuBlock.prototype.Create.call( this, oPanel.MainNode ) ;
+}
+
+FCKMenuBlockPanel.prototype.Show = function( x, y, relElement )
+{
+ if ( !this.Panel.CheckIsOpened() )
+ this.Panel.Show( x, y, relElement ) ;
+}
+
+FCKMenuBlockPanel.prototype.Hide = function()
+{
+ if ( this.Panel.CheckIsOpened() )
+ this.Panel.Hide() ;
+}
\ No newline at end of file
Index: _source/classes/fckmenuitem.js
===================================================================
RCS file: _source/classes/fckmenuitem.js
diff -N _source/classes/fckmenuitem.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckmenuitem.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,157 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckmenuitem.js
+ * Defines and renders a menu items in a menu block.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+
+var FCKMenuItem = function( parentMenuBlock, name, label,
iconPathOrStripInfoArray, isDisabled )
+{
+ this.Name = name ;
+ this.Label = label || name ;
+ this.IsDisabled = isDisabled ;
+
+ this.Icon = new FCKIcon( iconPathOrStripInfoArray ) ;
+
+ this.SubMenu = new FCKMenuBlockPanel() ;
+ this.SubMenu.Parent = parentMenuBlock ;
+ this.SubMenu.OnClick = FCKTools.CreateEventListener(
FCKMenuItem_SubMenu_OnClick, this ) ;
+
+ if ( FCK.IECleanup )
+ FCK.IECleanup.AddItem( this, FCKMenuItem_Cleanup ) ;
+}
+
+
+FCKMenuItem.prototype.AddItem = function( name, label,
iconPathOrStripInfoArrayOrIndex, isDisabled )
+{
+ this.HasSubMenu = true ;
+ return this.SubMenu.AddItem( name, label,
iconPathOrStripInfoArrayOrIndex, isDisabled ) ;
+}
+
+FCKMenuItem.prototype.AddSeparator = function()
+{
+ this.SubMenu.AddSeparator() ;
+}
+
+FCKMenuItem.prototype.Create = function( parentTable )
+{
+ var bHasSubMenu = this.HasSubMenu ;
+
+ var oDoc = FCKTools.GetElementDocument( parentTable ) ;
+
+ // Add a row in the table to hold the menu item.
+ var r = this.MainElement = parentTable.insertRow(-1) ;
+ r.className = this.IsDisabled ? 'MN_Item_Disabled' : 'MN_Item' ;
+
+ // Set the row behavior.
+ if ( !this.IsDisabled )
+ {
+ FCKTools.AddEventListenerEx( r, 'mouseover',
FCKMenuItem_OnMouseOver, [ this ] ) ;
+ FCKTools.AddEventListenerEx( r, 'click', FCKMenuItem_OnClick, [
this ] ) ;
+
+ if ( !bHasSubMenu )
+ FCKTools.AddEventListenerEx( r, 'mouseout',
FCKMenuItem_OnMouseOut, [ this ] ) ;
+ }
+
+ // Create the icon cell.
+ var eCell = r.insertCell(-1) ;
+ eCell.className = 'MN_Icon' ;
+ eCell.appendChild( this.Icon.CreateIconElement( oDoc ) ) ;
+
+ // Create the label cell.
+ eCell = r.insertCell(-1) ;
+ eCell.className = 'MN_Label' ;
+ eCell.noWrap = true ;
+ eCell.appendChild( oDoc.createTextNode( this.Label ) ) ;
+
+ // Create the arrow cell and setup the sub menu panel (if needed).
+ eCell = r.insertCell(-1) ;
+ if ( bHasSubMenu )
+ {
+ eCell.className = 'MN_Arrow' ;
+
+ // The arrow is a fixed size image.
+ var eArrowImg = eCell.appendChild( oDoc.createElement( 'IMG' )
) ;
+ eArrowImg.src = FCK_IMAGES_PATH + 'arrow_' + FCKLang.Dir +
'.gif' ;
+ eArrowImg.width = 4 ;
+ eArrowImg.height = 7 ;
+
+ this.SubMenu.Create() ;
+ this.SubMenu.Panel.OnHide = FCKTools.CreateEventListener(
FCKMenuItem_SubMenu_OnHide, this ) ;
+ }
+}
+
+FCKMenuItem.prototype.Activate = function()
+{
+ this.MainElement.className = 'MN_Item_Over' ;
+
+ if ( this.HasSubMenu )
+ {
+ // Show the child menu block. The ( +2, -2 ) correction is done
because
+ // of the padding in the skin. It is not a good solution
because one
+ // could change the skin and so the final result would not be
accurate.
+ // For now it is ok because we are controlling the skin.
+ this.SubMenu.Show( this.MainElement.offsetWidth + 2, -2,
this.MainElement ) ;
+ }
+
+ FCKTools.RunFunction( this.OnActivate, this ) ;
+}
+
+FCKMenuItem.prototype.Deactivate = function()
+{
+ this.MainElement.className = 'MN_Item' ;
+
+ if ( this.HasSubMenu )
+ this.SubMenu.Hide() ;
+}
+
+/* Events */
+
+function FCKMenuItem_SubMenu_OnClick( clickedItem, listeningItem )
+{
+ FCKTools.RunFunction( listeningItem.OnClick, listeningItem, [
clickedItem ] ) ;
+}
+
+function FCKMenuItem_SubMenu_OnHide( menuItem )
+{
+ menuItem.Deactivate() ;
+}
+
+function FCKMenuItem_OnClick( ev, menuItem )
+{
+ if ( menuItem.HasSubMenu )
+ menuItem.Activate() ;
+ else
+ {
+ menuItem.Deactivate() ;
+ FCKTools.RunFunction( menuItem.OnClick, menuItem, [ menuItem ]
) ;
+ }
+}
+
+function FCKMenuItem_OnMouseOver( ev, menuItem )
+{
+ menuItem.Activate() ;
+}
+
+function FCKMenuItem_OnMouseOut( ev, menuItem )
+{
+ menuItem.Deactivate() ;
+}
+
+function FCKMenuItem_Cleanup()
+{
+ this.MainElement = null ;
+}
\ No newline at end of file
Index: _source/classes/fckpanel.js
===================================================================
RCS file: _source/classes/fckpanel.js
diff -N _source/classes/fckpanel.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fckpanel.js 25 Sep 2006 09:30:39 -0000 1.1
@@ -0,0 +1,293 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckpanel.js
+ * Component that creates floating panels. It is used by many
+ * other components, like the toolbar items, context menu, etc...
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+
+var FCKPanel = function( parentWindow )
+{
+ this.IsRTL = ( FCKLang.Dir == 'rtl' ) ;
+ this.IsContextMenu = false ;
+ this._LockCounter = 0 ;
+
+ this._Window = parentWindow || window ;
+
+ var oDocument ;
+
+ if ( FCKBrowserInfo.IsIE )
+ {
+ // Create the Popup that will hold the panel.
+ this._Popup = this._Window.createPopup() ;
+ oDocument = this.Document = this._Popup.document ;
+ }
+ else
+ {
+ var oIFrame = this._IFrame =
this._Window.document.createElement('iframe') ;
+ oIFrame.src =
'javascript:void(0)' ;
+ oIFrame.allowTransparency = true ;
+ oIFrame.frameBorder = '0' ;
+ oIFrame.scrolling = 'no' ;
+ oIFrame.style.position = 'absolute';
+ oIFrame.style.zIndex =
FCKConfig.FloatingPanelsZIndex ;
+ oIFrame.width = oIFrame.height = 0 ;
+
+ if ( this._Window == window.parent )
+ window.frameElement.parentNode.insertBefore( oIFrame,
window.frameElement ) ;
+ else
+ this._Window.document.body.appendChild( oIFrame ) ;
+
+ var oIFrameWindow = oIFrame.contentWindow ;
+
+ oDocument = this.Document = oIFrameWindow.document ;
+
+ // Initialize the IFRAME document body.
+ oDocument.open() ;
+ oDocument.write( '<html><head></head><body
style="margin:0px;padding:0px;"><\/body><\/html>' ) ;
+ oDocument.close() ;
+
+ FCKTools.AddEventListenerEx( oIFrameWindow, 'focus',
FCKPanel_Window_OnFocus, this ) ;
+ FCKTools.AddEventListenerEx( oIFrameWindow, 'blur',
FCKPanel_Window_OnBlur, this ) ;
+ }
+
+ oDocument.dir = FCKLang.Dir ;
+
+ oDocument.oncontextmenu = FCKTools.CancelEvent ;
+
+
+ // Create the main DIV that is used as the panel base.
+ this.MainNode = oDocument.body.appendChild(
oDocument.createElement('DIV') ) ;
+
+ // The "float" property must be set so Firefox calculates the size
correcly.
+ this.MainNode.style.cssFloat = this.IsRTL ? 'right' : 'left' ;
+
+ if ( FCK.IECleanup )
+ FCK.IECleanup.AddItem( this, FCKPanel_Cleanup ) ;
+}
+
+
+FCKPanel.prototype.AppendStyleSheet = function( styleSheet )
+{
+ FCKTools.AppendStyleSheet( this.Document, styleSheet ) ;
+}
+
+FCKPanel.prototype.Preload = function( x, y, relElement )
+{
+ // The offsetWidth and offsetHeight properties are not available if the
+ // element is not visible. So we must "show" the popup with no size to
+ // be able to use that values in the second call (IE only).
+ if ( this._Popup )
+ this._Popup.show( x, y, 0, 0, relElement ) ;
+}
+
+FCKPanel.prototype.Show = function( x, y, relElement, width, height )
+{
+ if ( this._Popup )
+ {
+ // The offsetWidth and offsetHeight properties are not
available if the
+ // element is not visible. So we must "show" the popup with no
size to
+ // be able to use that values in the second call.
+ this._Popup.show( x, y, 0, 0, relElement ) ;
+
+ // The following lines must be place after the above "show",
otherwise it
+ // doesn't has the desired effect.
+ this.MainNode.style.width = width ? width + 'px' : '' ;
+ this.MainNode.style.height = height ? height + 'px' : '' ;
+
+ var iMainWidth = this.MainNode.offsetWidth ;
+
+ if ( this.IsRTL )
+ {
+ if ( this.IsContextMenu )
+ x = x - iMainWidth + 1 ;
+ else if ( relElement )
+ x = ( x * -1 ) + relElement.offsetWidth -
iMainWidth ;
+ }
+
+ // Second call: Show the Popup at the specified location, with
the correct size.
+ this._Popup.show( x, y, iMainWidth, this.MainNode.offsetHeight,
relElement ) ;
+
+ if ( this.OnHide )
+ {
+ if ( this._Timer )
+ CheckPopupOnHide.call( this, true ) ;
+
+ this._Timer = FCKTools.SetInterval( CheckPopupOnHide,
100, this ) ;
+ }
+ }
+ else
+ {
+ // Do not fire OnBlur while the panel is opened.
+ FCKFocusManager.Lock() ;
+
+ if ( this.ParentPanel )
+ this.ParentPanel.Lock() ;
+
+ this.MainNode.style.width = width ? width + 'px' : '' ;
+ this.MainNode.style.height = height ? height + 'px' : '' ;
+
+ var iMainWidth = this.MainNode.offsetWidth ;
+
+ if ( !width ) this._IFrame.width = 1 ;
+ if ( !height ) this._IFrame.height = 1 ;
+
+ // This is weird... but with Firefox, we must get the
offsetWidth before
+ // setting the _IFrame size (which returns "0"), and then after
that,
+ // to return the correct width. Remove the first step and it
will not
+ // work when the editor is in RTL.
+ iMainWidth = this.MainNode.offsetWidth ;
+
+ var oPos = FCKTools.GetElementPosition( ( relElement.nodeType
== 9 ? relElement.body : relElement), this._Window ) ;
+
+ if ( this.IsRTL && !this.IsContextMenu )
+ x = ( x * -1 ) ;
+
+ x += oPos.X ;
+ y += oPos.Y ;
+
+ if ( this.IsRTL )
+ {
+ if ( this.IsContextMenu )
+ x = x - iMainWidth + 1 ;
+ else if ( relElement )
+ x = x + relElement.offsetWidth - iMainWidth ;
+ }
+ else
+ {
+ var oViewPaneSize = FCKTools.GetViewPaneSize(
this._Window ) ;
+ var oScrollPosition = FCKTools.GetScrollPosition(
this._Window ) ;
+
+ var iViewPaneHeight = oViewPaneSize.Height +
oScrollPosition.Y ;
+ var iViewPaneWidth = oViewPaneSize.Width +
oScrollPosition.X ;
+
+ if ( ( x + iMainWidth ) > iViewPaneWidth )
+ x -= x + iMainWidth - iViewPaneWidth ;
+
+ if ( ( y + this.MainNode.offsetHeight ) >
iViewPaneHeight )
+ y -= y + this.MainNode.offsetHeight -
iViewPaneHeight ;
+ }
+
+ if ( x < 0 )
+ x = 0 ;
+
+ // Set the context menu DIV in the specified location.
+ this._IFrame.style.left = x + 'px' ;
+ this._IFrame.style.top = y + 'px' ;
+
+ var iWidth = iMainWidth ;
+ var iHeight = this.MainNode.offsetHeight ;
+
+ this._IFrame.width = iWidth ;
+ this._IFrame.height = iHeight ;
+
+ // Move the focus to the IFRAME so we catch the "onblur".
+ this._IFrame.contentWindow.focus() ;
+ }
+
+ this._IsOpened = true ;
+
+ FCKTools.RunFunction( this.OnShow, this ) ;
+}
+
+FCKPanel.prototype.Hide = function( ignoreOnHide )
+{
+ if ( this._Popup )
+ this._Popup.hide() ;
+ else
+ {
+ if ( !this._IsOpened )
+ return ;
+
+ // Enable the editor to fire the "OnBlur".
+ FCKFocusManager.Unlock() ;
+
+ // It is better to set the sizes to 0, otherwise Firefox would
have
+ // rendering problems.
+ this._IFrame.width = this._IFrame.height = 0 ;
+
+ this._IsOpened = false ;
+
+ if ( this.ParentPanel )
+ this.ParentPanel.Unlock() ;
+
+ if ( !ignoreOnHide )
+ FCKTools.RunFunction( this.OnHide, this ) ;
+ }
+}
+
+FCKPanel.prototype.CheckIsOpened = function()
+{
+ if ( this._Popup )
+ return this._Popup.isOpen ;
+ else
+ return this._IsOpened ;
+}
+
+FCKPanel.prototype.CreateChildPanel = function()
+{
+ var oWindow = this._Popup ? FCKTools.GetParentWindow( this.Document ) :
this._Window ;
+
+ var oChildPanel = new FCKPanel( oWindow, true ) ;
+ oChildPanel.ParentPanel = this ;
+
+ return oChildPanel ;
+}
+
+FCKPanel.prototype.Lock = function()
+{
+ this._LockCounter++ ;
+}
+
+FCKPanel.prototype.Unlock = function()
+{
+ if ( --this._LockCounter == 0 && !this.HasFocus )
+ this.Hide() ;
+}
+
+/* Events */
+
+function FCKPanel_Window_OnFocus( e, panel )
+{
+ panel.HasFocus = true ;
+}
+
+function FCKPanel_Window_OnBlur( e, panel )
+{
+ panel.HasFocus = false ;
+
+ if ( panel._LockCounter == 0 )
+ FCKTools.RunFunction( panel.Hide, panel ) ;
+}
+
+function CheckPopupOnHide( forceHide )
+{
+ if ( forceHide || !this._Popup.isOpen )
+ {
+ window.clearInterval( this._Timer ) ;
+ this._Timer = null ;
+
+ FCKTools.RunFunction( this.OnHide, this ) ;
+ }
+}
+
+function FCKPanel_Cleanup()
+{
+ this._Popup = null ;
+ this._Window = null ;
+ this.Document = null ;
+ this.MainNode = null ;
+}
\ No newline at end of file
Index: _source/classes/fcktoolbarbuttonui.js
===================================================================
RCS file: _source/classes/fcktoolbarbuttonui.js
diff -N _source/classes/fcktoolbarbuttonui.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/classes/fcktoolbarbuttonui.js 25 Sep 2006 09:30:39 -0000
1.1
@@ -0,0 +1,218 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fcktoolbarbuttonui.js
+ * FCKToolbarButtonUI Class: interface representation of a toolbar button.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+var FCKToolbarButtonUI = function( name, label, tooltip,
iconPathOrStripInfoArray, style, state )
+{
+ this.Name = name ;
+ this.Label = label || name ;
+ this.Tooltip = tooltip || this.Label ;
+ this.Style = style || FCK_TOOLBARITEM_ONLYICON ;
+ this.State = state || FCK_TRISTATE_OFF ;
+
+ this.Icon = new FCKIcon( iconPathOrStripInfoArray ) ;
+
+ if ( FCK.IECleanup )
+ FCK.IECleanup.AddItem( this, FCKToolbarButtonUI_Cleanup ) ;
+}
+
+
+FCKToolbarButtonUI.prototype._CreatePaddingElement = function( document )
+{
+ var oImg = document.createElement( 'IMG' ) ;
+ oImg.className = 'TB_Button_Padding' ;
+ oImg.src = FCK_SPACER_PATH ;
+ return oImg ;
+}
+
+FCKToolbarButtonUI.prototype.Create = function( parentElement )
+{
+ var oMainElement = this.MainElement ;
+
+ if ( oMainElement )
+ {
+ FCKToolbarButtonUI_Cleanup.call(this) ;
+
+ if ( oMainElement.parentNode )
+ oMainElement.parentNode.removeChild( oMainElement ) ;
+ oMainElement = this.MainElement = null ;
+ }
+
+ var oDoc = FCKTools.GetElementDocument( parentElement ) ;
+
+ // Create the Main Element.
+ oMainElement = this.MainElement = oDoc.createElement( 'DIV' ) ;
+ oMainElement._FCKButton = this ; // IE Memory Leak
(Circular reference).
+ oMainElement.title = this.Tooltip ;
+
+ // The following will prevent the button from catching the focus.
+ if ( FCKBrowserInfo.IsGecko )
+ oMainElement.onmousedown = FCKTools.CancelEvent ;
+
+ this.ChangeState( this.State, true ) ;
+
+ if ( this.Style == FCK_TOOLBARITEM_ONLYICON && !this.ShowArrow )
+ {
+ // <td><div class="TB_Button_On"
title="Smiley">{Image}</div></td>
+
+ oMainElement.appendChild( this.Icon.CreateIconElement( oDoc ) )
;
+ }
+ else
+ {
+ // <td><div class="TB_Button_On" title="Smiley"><table
cellpadding="0" cellspacing="0"><tr><td>{Image}</td><td nowrap>Toolbar
Button</td><td><img class="TB_Button_Padding"></td></tr></table></div></td>
+ // <td><div class="TB_Button_On" title="Smiley"><table
cellpadding="0" cellspacing="0"><tr><td><img class="TB_Button_Padding"></td><td
nowrap>Toolbar Button</td><td><img
class="TB_Button_Padding"></td></tr></table></div></td>
+
+ var oTable = oMainElement.appendChild( oDoc.createElement(
'TABLE' ) ) ;
+ oTable.cellPadding = 0 ;
+ oTable.cellSpacing = 0 ;
+
+ var oRow = oTable.insertRow(-1) ;
+
+ // The Image cell (icon or padding).
+ var oCell = oRow.insertCell(-1) ;
+
+ if ( this.Style == FCK_TOOLBARITEM_ONLYICON || this.Style ==
FCK_TOOLBARITEM_ICONTEXT )
+ oCell.appendChild( this.Icon.CreateIconElement( oDoc )
) ;
+ else
+ oCell.appendChild( this._CreatePaddingElement( oDoc ) )
;
+
+ if ( this.Style == FCK_TOOLBARITEM_ONLYTEXT || this.Style ==
FCK_TOOLBARITEM_ICONTEXT )
+ {
+ // The Text cell.
+ oCell = oRow.insertCell(-1) ;
+ oCell.className = 'TB_Button_Text' ;
+ oCell.noWrap = true ;
+ oCell.appendChild( oDoc.createTextNode( this.Label ) ) ;
+ }
+
+ if ( this.ShowArrow )
+ {
+ if ( this.Style != FCK_TOOLBARITEM_ONLYICON )
+ {
+ // A padding cell.
+ oRow.insertCell(-1).appendChild(
this._CreatePaddingElement( oDoc ) ) ;
+ }
+
+ oCell = oRow.insertCell(-1) ;
+ var eImg = oCell.appendChild( oDoc.createElement( 'IMG'
) ) ;
+ eImg.src = FCKConfig.SkinPath +
'images/toolbar.buttonarrow.gif' ;
+ eImg.width = 5 ;
+ eImg.height = 3 ;
+ }
+
+ // The last padding cell.
+ oCell = oRow.insertCell(-1) ;
+ oCell.appendChild( this._CreatePaddingElement( oDoc ) ) ;
+ }
+
+ parentElement.appendChild( oMainElement ) ;
+}
+
+FCKToolbarButtonUI.prototype.ChangeState = function( newState, force )
+{
+ if ( !force && this.State == newState )
+ return ;
+
+ var e = this.MainElement ;
+
+ switch ( parseInt( newState ) )
+ {
+ case FCK_TRISTATE_OFF :
+ e.className = 'TB_Button_Off' ;
+ e.onmouseover = FCKToolbarButton_OnMouseOverOff ;
+ e.onmouseout = FCKToolbarButton_OnMouseOutOff ;
+ e.onclick = FCKToolbarButton_OnClick ;
+
+ break ;
+
+ case FCK_TRISTATE_ON :
+ e.className = 'TB_Button_On' ;
+ e.onmouseover = FCKToolbarButton_OnMouseOverOn ;
+ e.onmouseout = FCKToolbarButton_OnMouseOutOn ;
+ e.onclick = FCKToolbarButton_OnClick ;
+
+ break ;
+
+ case FCK_TRISTATE_DISABLED :
+ e.className = 'TB_Button_Disabled' ;
+ e.onmouseover = null ;
+ e.onmouseout = null ;
+ e.onclick = null ;
+ bEnableEvents = false ;
+ break ;
+ }
+
+ this.State = newState ;
+}
+
+function FCKToolbarButtonUI_Cleanup()
+{
+ if ( this.MainElement )
+ {
+ this.MainElement._FCKButton = null ;
+ this.MainElement = null ;
+ }
+}
+
+// Event Handlers.
+
+function FCKToolbarButton_OnMouseOverOn()
+{
+ this.className = 'TB_Button_On_Over' ;
+}
+
+function FCKToolbarButton_OnMouseOutOn()
+{
+ this.className = 'TB_Button_On' ;
+}
+
+function FCKToolbarButton_OnMouseOverOff()
+{
+ this.className = 'TB_Button_Off_Over' ;
+}
+
+function FCKToolbarButton_OnMouseOutOff()
+{
+ this.className = 'TB_Button_Off' ;
+}
+
+function FCKToolbarButton_OnClick( e )
+{
+ if ( this._FCKButton.OnClick )
+ this._FCKButton.OnClick( this._FCKButton ) ;
+}
+
+/*
+ Sample outputs:
+
+ This is the base structure. The variation is the image that is marked
as {Image}:
+ <td><div class="TB_Button_On" title="Smiley">{Image}</div></td>
+ <td><div class="TB_Button_On" title="Smiley"><table
cellpadding="0" cellspacing="0"><tr><td>{Image}</td><td nowrap>Toolbar
Button</td><td><img class="TB_Button_Padding"></td></tr></table></div></td>
+ <td><div class="TB_Button_On" title="Smiley"><table
cellpadding="0" cellspacing="0"><tr><td><img class="TB_Button_Padding"></td><td
nowrap>Toolbar Button</td><td><img
class="TB_Button_Padding"></td></tr></table></div></td>
+
+ These are samples of possible {Image} values:
+
+ Strip - IE version:
+ <div class="TB_Button_Image"><img src="strip.gif"
style="top:-16px"></div>
+
+ Strip : Firefox, Safari and Opera version
+ <img class="TB_Button_Image"
style="background-position: 0px -16px;background-image: url(strip.gif);">
+
+ No-Strip : Browser independent:
+ <img class="TB_Button_Image" src="smiley.gif">
+*/
\ No newline at end of file
Index: _source/commandclasses/fckfitwindow.js
===================================================================
RCS file: _source/commandclasses/fckfitwindow.js
diff -N _source/commandclasses/fckfitwindow.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/commandclasses/fckfitwindow.js 25 Sep 2006 09:30:40 -0000
1.1
@@ -0,0 +1,164 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckfitwindow.js
+ * Stretch the editor to full window size and back.
+ *
+ * File Authors:
+ * Paul Moers (address@hidden)
+ * Thanks to Christian Fecteau (address@hidden)
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+var FCKFitWindow = function()
+{
+ this.Name = 'FitWindow' ;
+}
+
+FCKFitWindow.prototype.Execute = function()
+{
+ var eEditorFrame = window.frameElement ;
+ var eEditorFrameStyle = eEditorFrame.style ;
+
+ var eMainWindow = parent ;
+ var eDocEl =
eMainWindow.document.documentElement ;
+ var eBody = eMainWindow.document.body ;
+ var eBodyStyle = eBody.style ;
+
+ // No original style properties known? Go fullscreen.
+ if ( !this.IsMaximized )
+ {
+ // Registering an event handler when the window gets resized.
+ if( FCKBrowserInfo.IsIE )
+ eMainWindow.attachEvent( 'onresize',
FCKFitWindow_Resize ) ;
+ else
+ eMainWindow.addEventListener( 'resize',
FCKFitWindow_Resize, true ) ;
+
+ // Save the scrollbars position.
+ this._ScrollPos = FCKTools.GetScrollPosition( eMainWindow ) ;
+
+ // Save and reset the styles for the entire node tree. They
could interfere in the result.
+ var eParent = eEditorFrame ;
+ while( eParent = eParent.parentNode )
+ {
+ if ( eParent.nodeType == 1 )
+ eParent._fckSavedStyles = FCKTools.SaveStyles(
eParent ) ;
+ }
+
+ // Hide IE scrollbars (in strict mode).
+ if ( FCKBrowserInfo.IsIE )
+ {
+ this.documentElementOverflow = eDocEl.style.overflow ;
+ eDocEl.style.overflow = 'hidden' ;
+ eBodyStyle.overflow = 'hidden' ;
+ }
+ else
+ {
+ // Hide the scroolbars in Firefox.
+ eBodyStyle.overflow = 'hidden' ;
+ eBodyStyle.width = '0px' ;
+ eBodyStyle.height = '0px' ;
+ }
+
+ // Save the IFRAME styles.
+ this._EditorFrameStyles = FCKTools.SaveStyles( eEditorFrame ) ;
+
+ // Resize.
+ var oViewPaneSize = FCKTools.GetViewPaneSize( eMainWindow ) ;
+
+ eEditorFrameStyle.position = "absolute";
+ eEditorFrameStyle.zIndex =
FCKConfig.FloatingPanelsZIndex - 1;
+ eEditorFrameStyle.left = "0px";
+ eEditorFrameStyle.top = "0px";
+ eEditorFrameStyle.width = oViewPaneSize.Width + "px";
+ eEditorFrameStyle.height = oViewPaneSize.Height + "px";
+
+ // Giving the frame some (huge) borders on his right and bottom
+ // side to hide the background that would otherwise show when
the
+ // editor is in fullsize mode and the window is increased in
size
+ // not for IE, because IE immediately adapts the editor on
resize,
+ // without showing any of the background oddly in firefox, the
+ // editor seems not to fill the whole frame, so just setting the
+ // background of it to white to cover the page laying behind it
anyway.
+ if ( !FCKBrowserInfo.IsIE )
+ {
+ eEditorFrameStyle.borderRight =
eEditorFrameStyle.borderBottom = "9999px solid white" ;
+ eEditorFrameStyle.backgroundColor =
"white";
+ }
+
+ // Scroll to top left.
+ eMainWindow.scrollTo(0, 0);
+
+ this.IsMaximized = true ;
+ }
+ else // Resize to original size.
+ {
+ // Remove the event handler of window resizing.
+ if( FCKBrowserInfo.IsIE )
+ eMainWindow.detachEvent( "onresize",
FCKFitWindow_Resize ) ;
+ else
+ eMainWindow.removeEventListener( "resize",
FCKFitWindow_Resize, true ) ;
+
+ // Restore the CSS position for the entire node tree.
+ var eParent = eEditorFrame ;
+ while( eParent = eParent.parentNode )
+ {
+ if ( eParent._fckSavedStyles )
+ {
+ FCKTools.RestoreStyles( eParent,
eParent._fckSavedStyles ) ;
+ eParent._fckSavedStyles = null ;
+ }
+ }
+
+ // Restore IE scrollbars
+ if ( FCKBrowserInfo.IsIE )
+ eDocEl.style.overflow = this.documentElementOverflow ;
+
+ // Restore original size
+ FCKTools.RestoreStyles( eEditorFrame, this._EditorFrameStyles )
;
+
+ // Restore the window scroll position.
+ eMainWindow.scrollTo( this._ScrollPos.X, this._ScrollPos.Y ) ;
+
+ this.IsMaximized = false ;
+ }
+
+ FCKToolbarItems.GetItem('FitWindow').RefreshState() ;
+
+ // It seams that Firefox restarts the editing area when making this
changes.
+ // On FF 1.0.x, the area is not anymore editable. On FF 1.5+, the
special
+ //configuration, like DisableFFTableHandles and DisableObjectResizing
get
+ //lost, so we must reset it. Also, the cursor position and selection
are
+ //also lost, even if you comment the following line (MakeEditable).
+ // if ( FCKBrowserInfo.IsGecko10 ) // Initially I thought it was a
FF 1.0 only problem.
+ FCK.EditingArea.MakeEditable() ;
+
+ FCK.Focus() ;
+}
+
+FCKFitWindow.prototype.GetState = function()
+{
+ if ( FCKConfig.ToolbarLocation != 'In' )
+ return FCK_TRISTATE_DISABLED ;
+ else
+ return ( this.IsMaximized ? FCK_TRISTATE_ON : FCK_TRISTATE_OFF
);
+}
+
+function FCKFitWindow_Resize()
+{
+ var oViewPaneSize = FCKTools.GetViewPaneSize( parent ) ;
+
+ var eEditorFrameStyle = window.frameElement.style ;
+
+ eEditorFrameStyle.width = oViewPaneSize.Width + 'px' ;
+ eEditorFrameStyle.height = oViewPaneSize.Height + 'px' ;
+}
Index: _source/internals/fck_contextmenu.js
===================================================================
RCS file: _source/internals/fck_contextmenu.js
diff -N _source/internals/fck_contextmenu.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/internals/fck_contextmenu.js 25 Sep 2006 09:30:40 -0000
1.1
@@ -0,0 +1,287 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fck_contextmenu.js
+ * Defines the FCK.ContextMenu object that is responsible for all
+ * Context Menu operations in the editing area.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+FCK.ContextMenu = new Object() ;
+FCK.ContextMenu.Listeners = new Array() ;
+
+FCK.ContextMenu.RegisterListener = function( listener )
+{
+ if ( listener )
+ this.Listeners.push( listener ) ;
+}
+
+function FCK_ContextMenu_Init()
+{
+ var oInnerContextMenu = FCK.ContextMenu._InnerContextMenu = new
FCKContextMenu( FCKBrowserInfo.IsIE ? window : window.parent, FCK.EditorWindow,
FCKLang.Dir ) ;
+ oInnerContextMenu.OnBeforeOpen = FCK_ContextMenu_OnBeforeOpen ;
+ oInnerContextMenu.OnItemClick = FCK_ContextMenu_OnItemClick ;
+
+ // Get the registering function.
+ var oMenu = FCK.ContextMenu ;
+
+ // Register all configured context menu listeners.
+ for ( var i = 0 ; i < FCKConfig.ContextMenu.length ; i++ )
+ oMenu.RegisterListener( FCK_ContextMenu_GetListener(
FCKConfig.ContextMenu[i] ) ) ;
+}
+
+function FCK_ContextMenu_GetListener( listenerName )
+{
+ switch ( listenerName )
+ {
+ case 'Generic' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ menu.AddItem( 'Cut' , FCKLang.Cut
, 7, FCKCommands.GetCommand( 'Cut' ).GetState() == FCK_TRISTATE_DISABLED ) ;
+ menu.AddItem( 'Copy' , FCKLang.Copy , 8,
FCKCommands.GetCommand( 'Copy' ).GetState() == FCK_TRISTATE_DISABLED ) ;
+ menu.AddItem( 'Paste' , FCKLang.Paste , 9,
FCKCommands.GetCommand( 'Paste' ).GetState() == FCK_TRISTATE_DISABLED ) ;
+ }} ;
+
+ case 'Table' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ var bIsTable = ( tagName == 'TABLE' ) ;
+ var bIsCell = ( !bIsTable &&
FCKSelection.HasAncestorNode( 'TABLE' ) ) ;
+
+ if ( bIsCell )
+ {
+ menu.AddSeparator() ;
+ var oItem = menu.AddItem( 'Cell'
, FCKLang.CellCM ) ;
+ oItem.AddItem( 'TableInsertCell'
, FCKLang.InsertCell, 58 ) ;
+ oItem.AddItem( 'TableDeleteCells'
, FCKLang.DeleteCells, 59 ) ;
+ oItem.AddItem( 'TableMergeCells'
, FCKLang.MergeCells, 60 ) ;
+ oItem.AddItem( 'TableSplitCell'
, FCKLang.SplitCell, 61 ) ;
+ oItem.AddSeparator() ;
+ oItem.AddItem( 'TableCellProp'
, FCKLang.CellProperties, 57 ) ;
+
+ menu.AddSeparator() ;
+ oItem = menu.AddItem( 'Row'
, FCKLang.RowCM ) ;
+ oItem.AddItem( 'TableInsertRow'
, FCKLang.InsertRow, 62 ) ;
+ oItem.AddItem( 'TableDeleteRows'
, FCKLang.DeleteRows, 63 ) ;
+
+ menu.AddSeparator() ;
+ oItem = menu.AddItem( 'Column'
, FCKLang.ColumnCM ) ;
+ oItem.AddItem( 'TableInsertColumn'
, FCKLang.InsertColumn, 64 ) ;
+ oItem.AddItem( 'TableDeleteColumns'
, FCKLang.DeleteColumns, 65 ) ;
+ }
+
+ if ( bIsTable || bIsCell )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'TableDelete'
, FCKLang.TableDelete ) ;
+ menu.AddItem( 'TableProp'
, FCKLang.TableProperties, 39 ) ;
+ }
+ }} ;
+
+ case 'Link' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( FCK.GetNamedCommandState( 'Unlink' ) !=
FCK_TRISTATE_DISABLED )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Link' ,
FCKLang.EditLink , 34 ) ;
+ menu.AddItem( 'Unlink' ,
FCKLang.RemoveLink , 35 ) ;
+ }
+ }} ;
+
+ case 'Image' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'IMG' && !tag.getAttribute(
'_fckfakelement' ) )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Image',
FCKLang.ImageProperties, 37 ) ;
+ }
+ }} ;
+
+ case 'Anchor' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'IMG' && tag.getAttribute(
'_fckanchor' ) )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Anchor',
FCKLang.AnchorProp, 36 ) ;
+ }
+ }} ;
+
+ case 'Flash' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'IMG' && tag.getAttribute(
'_fckflash' ) )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Flash',
FCKLang.FlashProperties, 38 ) ;
+ }
+ }} ;
+
+ case 'Form' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( FCKSelection.HasAncestorNode('FORM') )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Form', FCKLang.FormProp,
48 ) ;
+ }
+ }} ;
+
+ case 'Checkbox' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'INPUT' && tag.type ==
'checkbox' )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Checkbox',
FCKLang.CheckboxProp, 49 ) ;
+ }
+ }} ;
+
+ case 'Radio' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'INPUT' && tag.type == 'radio' )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Radio',
FCKLang.RadioButtonProp, 50 ) ;
+ }
+ }} ;
+
+ case 'TextField' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'INPUT' && ( tag.type == 'text'
|| tag.type == 'password' ) )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'TextField',
FCKLang.TextFieldProp, 51 ) ;
+ }
+ }} ;
+
+ case 'HiddenField' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'INPUT' && tag.type == 'hidden'
)
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'HiddenField',
FCKLang.HiddenFieldProp, 56 ) ;
+ }
+ }} ;
+
+ case 'ImageButton' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'INPUT' && tag.type == 'image' )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'ImageButton',
FCKLang.ImageButtonProp, 55 ) ;
+ }
+ }} ;
+
+ case 'Button' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'INPUT' && ( tag.type ==
'button' || tag.type == 'submit' || tag.type == 'reset' ) )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Button',
FCKLang.ButtonProp, 54 ) ;
+ }
+ }} ;
+
+ case 'Select' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'SELECT' )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Select',
FCKLang.SelectionFieldProp, 53 ) ;
+ }
+ }} ;
+
+ case 'Textarea' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( tagName == 'TEXTAREA' )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'Textarea',
FCKLang.TextareaProp, 52 ) ;
+ }
+ }} ;
+
+ case 'BulletedList' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( FCKSelection.HasAncestorNode('UL') )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'BulletedList',
FCKLang.BulletedListProp, 27 ) ;
+ }
+ }} ;
+
+ case 'NumberedList' :
+ return {
+ AddItems : function( menu, tag, tagName )
+ {
+ if ( FCKSelection.HasAncestorNode('OL') )
+ {
+ menu.AddSeparator() ;
+ menu.AddItem( 'NumberedList',
FCKLang.NumberedListProp, 26 ) ;
+ }
+ }} ;
+ }
+}
+
+function FCK_ContextMenu_OnBeforeOpen()
+{
+ // Update the UI.
+ FCK.Events.FireEvent( "OnSelectionChange" ) ;
+
+ // Get the actual selected tag (if any).
+ var oTag, sTagName ;
+
+ if ( oTag = FCKSelection.GetSelectedElement() )
+ sTagName = oTag.tagName ;
+
+ // Cleanup the current menu items.
+ var oMenu = FCK.ContextMenu._InnerContextMenu ;
+ oMenu.RemoveAllItems() ;
+
+ // Loop through the listeners.
+ var aListeners = FCK.ContextMenu.Listeners ;
+ for ( var i = 0 ; i < aListeners.length ; i++ )
+ aListeners[i].AddItems( oMenu, oTag, sTagName ) ;
+}
+
+function FCK_ContextMenu_OnItemClick( item )
+{
+ FCK.Focus() ;
+ FCKCommands.GetCommand( item.Name ).Execute() ;
+}
\ No newline at end of file
Index: _source/internals/fckdocumentprocessor.js
===================================================================
RCS file: _source/internals/fckdocumentprocessor.js
diff -N _source/internals/fckdocumentprocessor.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ _source/internals/fckdocumentprocessor.js 25 Sep 2006 09:30:40 -0000
1.1
@@ -0,0 +1,230 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckdocumentprocessor.js
+ * Advanced document processors.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+var FCKDocumentProcessor = new Object() ;
+FCKDocumentProcessor._Items = new Array() ;
+
+FCKDocumentProcessor.AppendNew = function()
+{
+ var oNewItem = new Object() ;
+ this._Items.AddItem( oNewItem ) ;
+ return oNewItem ;
+}
+
+FCKDocumentProcessor.Process = function( document )
+{
+ var oProcessor, i = 0 ;
+ while( ( oProcessor = this._Items[i++] ) )
+ oProcessor.ProcessDocument( document ) ;
+}
+
+var FCKDocumentProcessor_CreateFakeImage = function( fakeClass, realElement )
+{
+ var oImg = FCK.EditorDocument.createElement( 'IMG' ) ;
+ oImg.className = fakeClass ;
+ oImg.src = FCKConfig.FullBasePath + 'images/spacer.gif' ;
+ oImg.setAttribute( '_fckfakelement', 'true', 0 ) ;
+ oImg.setAttribute( '_fckrealelement', FCKTempBin.AddElement(
realElement ), 0 ) ;
+ return oImg ;
+}
+
+// Link Anchors
+var FCKAnchorsProcessor = FCKDocumentProcessor.AppendNew() ;
+FCKAnchorsProcessor.ProcessDocument = function( document )
+{
+ var aLinks = document.getElementsByTagName( 'A' ) ;
+
+ var oLink ;
+ var i = aLinks.length - 1 ;
+ while ( i >= 0 && ( oLink = aLinks[i--] ) )
+ {
+ // If it is anchor.
+ if ( oLink.name.length > 0 && ( !oLink.getAttribute('href') ||
oLink.getAttribute('href').length == 0 ) )
+ {
+ var oImg = FCKDocumentProcessor_CreateFakeImage(
'FCK__Anchor', oLink.cloneNode(true) ) ;
+ oImg.setAttribute( '_fckanchor', 'true', 0 ) ;
+
+ oLink.parentNode.insertBefore( oImg, oLink ) ;
+ oLink.parentNode.removeChild( oLink ) ;
+ }
+ }
+}
+
+// Page Breaks
+var FCKPageBreaksProcessor = FCKDocumentProcessor.AppendNew() ;
+FCKPageBreaksProcessor.ProcessDocument = function( document )
+{
+ var aDIVs = document.getElementsByTagName( 'DIV' ) ;
+
+ var eDIV ;
+ var i = aDIVs.length - 1 ;
+ while ( i >= 0 && ( eDIV = aDIVs[i--] ) )
+ {
+ if ( eDIV.style.pageBreakAfter == 'always' &&
eDIV.childNodes.length == 1 && eDIV.childNodes[0].style &&
eDIV.childNodes[0].style.display == 'none' )
+ {
+ var oFakeImage = FCKDocumentProcessor_CreateFakeImage(
'FCK__PageBreak', eDIV.cloneNode(true) ) ;
+
+ eDIV.parentNode.insertBefore( oFakeImage, eDIV ) ;
+ eDIV.parentNode.removeChild( eDIV ) ;
+ }
+ }
+/*
+ var aCenters = document.getElementsByTagName( 'CENTER' ) ;
+
+ var oCenter ;
+ var i = aCenters.length - 1 ;
+ while ( i >= 0 && ( oCenter = aCenters[i--] ) )
+ {
+ if ( oCenter.style.pageBreakAfter == 'always' &&
oCenter.innerHTML.trim().length == 0 )
+ {
+ var oFakeImage = FCKDocumentProcessor_CreateFakeImage(
'FCK__PageBreak', oCenter.cloneNode(true) ) ;
+
+ oCenter.parentNode.insertBefore( oFakeImage, oCenter ) ;
+ oCenter.parentNode.removeChild( oCenter ) ;
+ }
+ }
+*/
+}
+
+// Flash Embeds.
+var FCKFlashProcessor = FCKDocumentProcessor.AppendNew() ;
+FCKFlashProcessor.ProcessDocument = function( document )
+{
+ /*
+ Sample code:
+ This is some <embed
src="/UserFiles/Flash/Yellow_Runners.swf"></embed><strong>sample text</strong>.
You are <a name="fred"></a> using <a
href="http://www.fckeditor.net/">FCKeditor</a>.
+ */
+
+ var aEmbeds = document.getElementsByTagName( 'EMBED' ) ;
+
+ var oEmbed ;
+ var i = aEmbeds.length - 1 ;
+ while ( i >= 0 && ( oEmbed = aEmbeds[i--] ) )
+ {
+ if ( oEmbed.src.endsWith( '.swf', true ) )
+ {
+ var oCloned = oEmbed.cloneNode( true ) ;
+
+ // On IE, some properties are not getting clonned
properly, so we
+ // must fix it. Thanks to Alfonso Martinez.
+ if ( FCKBrowserInfo.IsIE )
+ {
+ var oAtt ;
+ if ( oAtt = oEmbed.getAttribute( 'scale' ) )
oCloned.setAttribute( 'scale', oAtt ) ;
+ if ( oAtt = oEmbed.getAttribute( 'play' ) )
oCloned.setAttribute( 'play', oAtt ) ;
+ if ( oAtt = oEmbed.getAttribute( 'loop' ) )
oCloned.setAttribute( 'loop', oAtt ) ;
+ if ( oAtt = oEmbed.getAttribute( 'menu' ) )
oCloned.setAttribute( 'menu', oAtt ) ;
+ if ( oAtt = oEmbed.getAttribute( 'wmode' ) )
oCloned.setAttribute( 'wmode', oAtt ) ;
+ if ( oAtt = oEmbed.getAttribute( 'quality' ) )
oCloned.setAttribute( 'quality', oAtt ) ;
+ }
+
+ var oImg = FCKDocumentProcessor_CreateFakeImage(
'FCK__Flash', oCloned ) ;
+ oImg.setAttribute( '_fckflash', 'true', 0 ) ;
+
+ FCKFlashProcessor.RefreshView( oImg, oEmbed ) ;
+
+ oEmbed.parentNode.insertBefore( oImg, oEmbed ) ;
+ oEmbed.parentNode.removeChild( oEmbed ) ;
+
+// oEmbed.setAttribute( '_fcktemp', 'true', 0) ;
+// oEmbed.style.display = 'none' ;
+// oEmbed.hidden = true ;
+ }
+ }
+}
+
+FCKFlashProcessor.RefreshView = function( placholderImage, originalEmbed )
+{
+ if ( originalEmbed.width > 0 )
+ placholderImage.style.width = FCKTools.ConvertHtmlSizeToStyle(
originalEmbed.width ) ;
+
+ if ( originalEmbed.height > 0 )
+ placholderImage.style.height = FCKTools.ConvertHtmlSizeToStyle(
originalEmbed.height ) ;
+}
+
+FCK.GetRealElement = function( fakeElement )
+{
+ var e = FCKTempBin.Elements[
fakeElement.getAttribute('_fckrealelement') ] ;
+
+ if ( fakeElement.getAttribute('_fckflash') )
+ {
+ if ( fakeElement.style.width.length > 0 )
+ e.width = FCKTools.ConvertStyleSizeToHtml(
fakeElement.style.width ) ;
+
+ if ( fakeElement.style.height.length > 0 )
+ e.height = FCKTools.ConvertStyleSizeToHtml(
fakeElement.style.height ) ;
+ }
+
+ return e ;
+}
+
+// START iCM MODIFICATIONS
+/*
+var FCKTablesProcessor = FCKDocumentProcessor.AppendNew() ;
+FCKTablesProcessor.ProcessDocument = function( document )
+{
+ FCKTablesProcessor.CheckTablesNesting( document ) ;
+}
+
+// Ensure that tables are not incorrectly nested within P, H1, H2, etc tags
+FCKTablesProcessor.CheckTablesNesting = function( document )
+{
+ var aTables = document.getElementsByTagName( "TABLE" ) ;
+ var oParentNode ;
+
+ for ( var i=0; i<aTables.length; i++ )
+ {
+ FCKTablesProcessor.CheckTableNesting( aTables[i] ) ;
+ }
+}
+
+// Corrects nesting of the supplied table as necessary.
+// Also called by fck_table.html to check that a newly inserted table is
correctly nested.
+FCKTablesProcessor.CheckTableNesting = function( oTableNode )
+{
+ var oParentBlockNode = FCKTools.GetParentBlockNode(
oTableNode.parentNode ) ;
+
+ if ( oParentBlockNode && !FCKRegexLib.TableBlockElements.test(
oParentBlockNode.nodeName ) )
+ {
+ // Create a new tag which holds the content of the child nodes
located before the table
+ var oNode1 = FCK.EditorDocument.createElement(
oParentBlockNode.tagName ) ;
+ var oFragment1 = FCKTools.GetDocumentFragment(
oParentBlockNode, oParentBlockNode.firstChild, oTableNode, true, false, true ) ;
+ oNode1.appendChild( oFragment1 ) ;
+ FCKTools.SetElementAttributes( oNode1,
oParentBlockNode.attributes ) ; // Transfer across any class attributes, etc
+
+ // Create a new tag which holds the content of the child nodes
located after the table
+ var oNode2 = FCK.EditorDocument.createElement(
oParentBlockNode.tagName );
+ var oFragment2 = FCKTools.GetDocumentFragment(
oParentBlockNode, oTableNode, oParentBlockNode.lastChild, false, true, true ) ;
+ oNode2.appendChild( oFragment2 ) ;
+ FCKTools.SetElementAttributes( oNode2,
oParentBlockNode.attributes ) ; // Transfer across any class attributes, etc
+
+ // Create a document fragment that contains the two new
elements with the table element inbetween
+ var oNewNode = FCK.EditorDocument.createDocumentFragment() ;
+ if ( !FCKTools.NodeIsEmpty( oNode1 ) )
+ oNewNode.appendChild( oNode1 ) ;
+ oNewNode.appendChild( oTableNode ) ;
+ if ( !FCKTools.NodeIsEmpty( oNode2 ) )
+ oNewNode.appendChild( oNode2 ) ;
+
+ // Replace the existing parent node with the nodes in the
fragment
+ oParentBlockNode.parentNode.replaceChild( oNewNode,
oParentBlockNode ) ;
+ }
+}
+*/
+// END iCM MODIFICATIONS
Index: images/arrow_ltr.gif
===================================================================
RCS file: images/arrow_ltr.gif
diff -N images/arrow_ltr.gif
Binary files /dev/null and /tmp/cvsnZjtZX differ
Index: images/arrow_rtl.gif
===================================================================
RCS file: images/arrow_rtl.gif
diff -N images/arrow_rtl.gif
Binary files /dev/null and /tmp/cvsITh5R0 differ
Index: js/fckeditorcode_gecko.js
===================================================================
RCS file: js/fckeditorcode_gecko.js
diff -N js/fckeditorcode_gecko.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ js/fckeditorcode_gecko.js 25 Sep 2006 09:30:40 -0000 1.1
@@ -0,0 +1,80 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * This file has been compacted for best loading performance.
+ */
+var FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;var
FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;var
FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;var
FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;var
FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;var
FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;var
FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-9;var
FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYICON=0;var
FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;var
FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ICONTEXT=2;var
FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;var
FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1;var
FCK_IMAGES_PATH='images/';var FCK_SPACER_PATH='images/spacer.gif';
+String.prototype.Contains=function(A){return
(this.indexOf(A)>-1);};String.prototype.Equals=function(){for (var
i=0;i<arguments.length;i++) if (this==arguments[i]) return true;return
false;};Array.prototype.AddItem=function(A){var i=this.length;this[i]=A;return
i;};Array.prototype.indexOf=function(A){for (var i=0;i<this.length;i++){if
(this[i]==A) return
i;};return-1;};String.prototype.startsWith=function(A){return
(this.substr(0,A.length)==A);};String.prototype.endsWith=function(A,B){var
C=this.length;var D=A.length;if (D>C) return false;if (B){var E=new
RegExp(A+'$','i');return E.test(this);}else return
(D==0||this.substr(C-D,D)==A);};String.prototype.remove=function(A,B){var
s='';if (A>0) s=this.substring(0,A);if (A+B<this.length)
s+=this.substring(A+B,this.length);return
s;};String.prototype.trim=function(){return
this.replace(/(^\s*)|(\s*$)/g,'');};String.prototype.ltrim=function(){return
this.replace(/^\s*/g,'');};String.prototype.rtrim=function(){return
this.replace(/\s*$/g,'');};String.prototype.replaceNewLineChars=function(A){return
this.replace(/\n/g,A);}
+var s=navigator.userAgent.toLowerCase();var
FCKBrowserInfo={IsIE:s.Contains('msie'),IsIE7:s.Contains('msie
7'),IsGecko:s.Contains('gecko/'),IsSafari:s.Contains('safari'),IsOpera:s.Contains('opera')};FCKBrowserInfo.IsGeckoLike=FCKBrowserInfo.IsGecko||FCKBrowserInfo.IsSafari||FCKBrowserInfo.IsOpera;if
(FCKBrowserInfo.IsGecko){var
sGeckoVersion=s.match(/gecko\/(\d+)/)[1];FCKBrowserInfo.IsGecko10=sGeckoVersion<20051111;}
+var FCKURLParams=new Object();var
aParams=document.location.search.substr(1).split('&');for (var
i=0;i<aParams.length;i++){var aParam=aParams[i].split('=');var
sParamName=aParam[0];var
sParamValue=aParam[1];FCKURLParams[sParamName]=sParamValue;}
+var FCK=new
Object();FCK.Name=FCKURLParams['InstanceName'];FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;FCK.LoadLinkedFile=function(){var
A=window.parent.document;var B=A.getElementById(FCK.Name);var
C=A.getElementsByName(FCK.Name);var i=0;while (B||i==0){if
(B&&(B.tagName=='INPUT'||B.tagName=='TEXTAREA')){FCK.LinkedField=B;break;};B=C[i++];}};FCK.LoadLinkedFile();var
FCKTempBin=new Object();FCKTempBin.Elements=new
Array();FCKTempBin.AddElement=function(A){var
B=this.Elements.length;this.Elements[B]=A;return
B;};FCKTempBin.RemoveElement=function(A){var
e=this.Elements[A];this.Elements[A]=null;return
e;};FCKTempBin.Reset=function(){var i=0;while (i<this.Elements.length)
this.Elements[i++]==null;this.Elements.length=0;}
+var FCKConfig=FCK.Config=new Object();if
(document.location.protocol=='file:'){FCKConfig.BasePath=unescape(document.location.pathname.substr(1));FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi,
'/');FCKConfig.BasePath='file://'+FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);FCKConfig.FullBasePath=FCKConfig.BasePath;}else{FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.FullBasePath=document.location.protocol+'//'+document.location.host+FCKConfig.BasePath;};FCKConfig.EditorPath=FCKConfig.BasePath.replace(/editor\/$/,'');try{FCKConfig.ScreenWidth=screen.width;FCKConfig.ScreenHeight=screen.height;}catch
(e){FCKConfig.ScreenWidth=800;FCKConfig.ScreenHeight=600;};FCKConfig.ProcessHiddenField=function(){this.PageConfig=new
Object();var A=window.parent.document.getElementById(FCK.Name+'___Config');if
(!A) return;var B=A.value.split('&');for (var i=0;i<B.length;i++){if
(B[i].length==0) continue;var C=B[i].split('=');var D=unescape(C[0]);var
E=unescape(C[1]);if (D=='CustomConfigurationsPath') FCKConfig[D]=E;else if
(E.toLowerCase()=="true") this.PageConfig[D]=true;else if
(E.toLowerCase()=="false") this.PageConfig[D]=false;else if (!isNaN(E))
this.PageConfig[D]=parseInt(E);else this.PageConfig[D]=E;}};function
FCKConfig_LoadPageConfig(){var oPageConfig=FCKConfig.PageConfig;for (var sKey
in oPageConfig) FCKConfig[sKey]=oPageConfig[sKey];};function
FCKConfig_PreProcess(){var oConfig=FCKConfig;if
(oConfig.AllowQueryStringDebug&&(/fckdebug=true/i).test(window.top.location.search))
oConfig.Debug=true;if (!oConfig.PluginsPath.endsWith('/'))
oConfig.PluginsPath+='/';if (typeof(oConfig.EditorAreaCSS)=='string')
oConfig.EditorAreaCSS=[oConfig.EditorAreaCSS];};FCKConfig.ToolbarSets=new
Object();FCKConfig.Plugins=new Object();FCKConfig.Plugins.Items=new
Array();FCKConfig.Plugins.Add=function(A,B,C){FCKConfig.Plugins.Items.AddItem([A,B,C]);};FCKConfig.ProtectedSource=new
Object();FCKConfig.ProtectedSource.RegexEntries=new
Array();FCKConfig.ProtectedSource.Add=function(A){this.RegexEntries.AddItem(A);};FCKConfig.ProtectedSource.Protect=function(A){function
_Replace(protectedSource){var B=FCKTempBin.AddElement(protectedSource);return
'<!--{PS..'+B+'}-->';};for (var
i=0;i<this.RegexEntries.length;i++){A=A.replace(this.RegexEntries[i],_Replace);};return
A;};FCKConfig.ProtectedSource.Revert=function(A,B){function
_Replace(m,opener,index){var
C=B?FCKTempBin.RemoveElement(index):FCKTempBin.Elements[index];return
FCKConfig.ProtectedSource.Revert(C,B);};return
A.replace(/(<|<)!--\{PS..(\d+)\}--(>|>)/g,_Replace);};FCKConfig.ProtectedSource.Add(/<!--[\s\S]*?-->/g);
+var FCKDebug=new Object();FCKDebug.Output=function(A,B,C){if
(!FCKConfig.Debug) return;if (!C&&A!=null&&isNaN(A))
A=A.replace(/</g,"<");if (!this.DebugWindow||this.DebugWindow.closed)
this.DebugWindow=window.open(FCKConfig.BasePath+'fckdebug.html','FCKeditorDebug','menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500',true);if
(this.DebugWindow&&this.DebugWindow.Output){try{this.DebugWindow.Output(A,B);}catch
(e) {}}};FCKDebug.OutputObject=function(A,B){if (!FCKConfig.Debug) return;var
C;if (A!=null){C='Properties of: '+A+'</b><blockquote>';for (var D in
A){try{var E=A[D]?A[D]+'':'[null]';C+='<b>'+D+'</b> :
'+E.replace(/</g,'<')+'<br>';}catch (e){try{C+='<b>'+D+'</b> :
['+typeof(A[D])+']<br>';}catch (e){C+='<b>'+D+'</b> :
[-error-]<br>';}}};C+='</blockquote><b>';} else C='OutputObject : Object is
"null".';FCKDebug.Output(C,B,true);}
+var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return
FCK.LinkedField.value;};FCKTools.AttachToLinkedFieldFormSubmit=function(A){var
B=FCK.LinkedField.form;if (!B) return;if (FCKBrowserInfo.IsIE)
B.attachEvent("onsubmit",A);else B.addEventListener('submit',A,false);if
(!B.updateFCKeditor) B.updateFCKeditor=new
Array();B.updateFCKeditor[B.updateFCKeditor.length]=A;if
(!B.originalSubmit&&(typeof(B.submit)=='function'||(!B.submit.tagName&&!B.submit.length))){B.originalSubmit=B.submit;B.submit=FCKTools_SubmitReplacer;}};function
FCKTools_SubmitReplacer(){if (this.updateFCKeditor){for (var
i=0;i<this.updateFCKeditor.length;i++)
this.updateFCKeditor[i]();};this.originalSubmit();};FCKTools.GetElementWindow=function(A){return
this.GetDocumentWindow(this.GetElementDocument(A));};FCKTools.GetDocumentWindow=function(A){if
(FCKBrowserInfo.IsSafari&&!A.parentWindow)
this.FixDocumentParentWindow(window.top);return
A.parentWindow||A.defaultView;};FCKTools.GetElementPosition=function(A,B){var
c={ X:0,Y:0 };var C=B||window;while
(A){c.X+=A.offsetLeft-A.scrollLeft;c.Y+=A.offsetTop-A.scrollTop;if
(A.offsetParent==null){var D=FCKTools.GetElementWindow(A);if (D!=C)
A=D.frameElement;else{c.X+=A.scrollLeft;c.Y+=A.scrollTop;break;}}else
A=A.offsetParent;};return
c;};FCKTools.FixDocumentParentWindow=function(A){A.document.parentWindow=A;for
(var i=0;i<A.frames.length;i++)
FCKTools.FixDocumentParentWindow(A.frames[i]);};FCKTools.GetParentWindow=function(A){return
A.contentWindow?A.contentWindow:A.parentWindow;};FCKTools.HTMLEncode=function(A){if
(!A) return
'';A=A.replace(/&/g,'&');A=A.replace(/</g,'<');A=A.replace(/>/g,'>');return
A;};FCKTools.AddSelectOption=function(A,B,C){var
D=FCKTools.GetElementDocument(A).createElement("OPTION");D.text=B;D.value=C;A.options.add(D);return
D;};FCKTools.RunFunction=function(A,B,C,D){if (A)
this.SetTimeout(A,0,B,C,D);};FCKTools.SetTimeout=function(A,B,C,D,E){return
(E||window).setTimeout(function(){if (D) A.apply(C,[].concat(D));else
A.apply(C);},B);};FCKTools.SetInterval=function(A,B,C,D,E){return
(E||window).setInterval(function(){A.apply(C,D||[]);},B);};FCKTools.ConvertStyleSizeToHtml=function(A){return
A.endsWith('%')?A:parseInt(A);};FCKTools.ConvertHtmlSizeToStyle=function(A){return
A.endsWith('%')?A:(A+'px');};FCKTools.GetElementAscensor=function(A,B){var
e=A;var C=","+B.toUpperCase()+",";while (e){if
(C.indexOf(","+e.nodeName.toUpperCase()+",")!=-1) return
e;e=e.parentNode;};return null;};FCKTools.CreateEventListener=function(A,B){var
f=function(){var C=[];for (var i=0;i<arguments.length;i++)
C.push(arguments[i]);A.apply(this,C.concat(B));};return
f;};FCKTools.GetElementDocument=function (A){return
A.ownerDocument||A.document;}
+var GECKO_BOGUS=FCKBrowserInfo.IsGecko?'<br
_moz_editor_bogus_node="TRUE">':'';FCKTools.CancelEvent=function(e){if (e)
e.preventDefault();};FCKTools.DisableSelection=function(A){if
(FCKBrowserInfo.IsGecko) A.style.MozUserSelect='none';else
A.style.userSelect='none';};FCKTools.AppendStyleSheet=function(A,B){var
e=A.createElement('LINK');e.rel='stylesheet';e.type='text/css';e.href=B;A.getElementsByTagName("HEAD")[0].appendChild(e);return
e;};FCKTools.ClearElementAttributes=function(A){for (var
i=0;i<A.attributes.length;i++){A.removeAttribute(A.attributes[i].name,0);}};FCKTools.GetAllChildrenIds=function(A){var
B=new Array();var C=function(parent){for (var
i=0;i<parent.childNodes.length;i++){var D=parent.childNodes[i].id;if
(D&&D.length>0) B[B.length]=D;C(parent.childNodes[i]);}};C(A);return
B;};FCKTools.RemoveOuterTags=function(e){var
A=e.ownerDocument.createDocumentFragment();for (var
i=0;i<e.childNodes.length;i++)
A.appendChild(e.childNodes[i]);e.parentNode.replaceChild(A,e);};FCKTools.CreateXmlObject=function(A){switch
(A){case 'XmlHttp':return new XMLHttpRequest();case 'DOMDocument':return
document.implementation.createDocument('','',null);};return
null;};FCKTools.GetScrollPosition=function(A){return {
X:A.pageXOffset,Y:A.pageYOffset
};};FCKTools.AddEventListener=function(A,B,C){A.addEventListener(B,C,false);};FCKTools.RemoveEventListener=function(A,B,C){A.removeEventListener(B,C,false);};FCKTools.AddEventListenerEx=function(A,B,C,D){A.addEventListener(B,function(e){C.apply(A,[e].concat(D||[]));},false);};FCKTools.GetViewPaneSize=function(A){return
{ Width:A.innerWidth,Height:A.innerHeight
};};FCKTools.SaveStyles=function(A){var B=new Object();if
(A.className.length>0){B.Class=A.className;A.className='';};var
C=A.getAttribute('style');if
(C&&C.length>0){B.Inline=C;A.setAttribute('style','',0);};return
B;};FCKTools.RestoreStyles=function(A,B){A.className=B.Class||'';if (B.Inline)
A.setAttribute('style',B.Inline,0);else
A.removeAttribute('style',0);};FCKTools.RegisterDollarFunction=function(A){A.$=function(id){return
this.document.getElementById(id);};};FCKTools.AppendElement=function(A,B){return
A.appendChild(A.ownerDocument.createElement(B));};
+var FCKeditorAPI;function InitializeAPI(){if
(!(FCKeditorAPI=window.parent.FCKeditorAPI)){var sScript='\ var FCKeditorAPI={\
Version:\'2.3.1\',\ VersionBuild:\'1062\',\ __Instances:new Object(),\
GetInstance:function(instanceName)\{\ return
this.__Instances[instanceName];\},\ _FunctionQueue:{\ Functions:new Array(),\
IsRunning:false,\ Add:function(functionToAdd)\{\
this.Functions.push(functionToAdd);\ if (!this.IsRunning)\
this.StartNext();\},\ StartNext:function()\{\ var aQueue=this.Functions;\ if
(aQueue.length>0)\{\ this.IsRunning=true;\ aQueue[0].call();\}\ else\
this.IsRunning=false;\},\ Remove:function(func)\{\ var aQueue=this.Functions;\
var i=0,fFunc;\ while(fFunc=aQueue[i])\{\ if (fFunc==func)\
aQueue.splice(i,1);\ i++;\}\ this.StartNext();\}\}\}';if
(window.parent.execScript) window.parent.execScript(sScript,'JavaScript');else
window.parent.eval(sScript);FCKeditorAPI=window.parent.FCKeditorAPI;};FCKeditorAPI.__Instances[FCK.Name]=FCK;};function
FCKeditorAPI_Cleanup(){FCKeditorAPI.__Instances[FCK.Name]=null;};FCKTools.AddEventListener(window,'unload',FCKeditorAPI_Cleanup);
+var FCKRegexLib=new
Object();FCKRegexLib.AposEntity=/'/gi;FCKRegexLib.ObjectElements=/^(?:IMG|TABLE|TR|TD|TH|INPUT|SELECT|TEXTAREA|HR|OBJECT|A|UL|OL|LI)$/i;FCKRegexLib.BlockElements=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD|TH)$/i;FCKRegexLib.EmptyElements=/^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i;FCKRegexLib.NamedCommands=/^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i;FCKRegexLib.BodyContents=/([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i;FCKRegexLib.ToReplace=/___fcktoreplace:([\w]+)/ig;FCKRegexLib.MetaHttpEquiv=/http-equiv\s*=\s*["']?([^"'
]+)/i;FCKRegexLib.HasBaseTag=/<base
/i;FCKRegexLib.HeadOpener=/<head\s?[^>]*>/i;FCKRegexLib.HeadCloser=/<\/head\s*>/i;FCKRegexLib.TableBorderClass=/\s*FCK__ShowTableBorders\s*/;FCKRegexLib.ElementName=/(^[A-Za-z_:][\w.\-:]*\w$)|(^[A-Za-z_]$)/;FCKRegexLib.ForceSimpleAmpersand=/___FCKAmp___/g;FCKRegexLib.SpaceNoClose=/\/>/g;FCKRegexLib.EmptyParagraph=/^<(p|div)>\s*<\/\1>$/i;FCKRegexLib.TagBody=/></;FCKRegexLib.StrongOpener=/<STRONG([
\>])/gi;FCKRegexLib.StrongCloser=/<\/STRONG>/gi;FCKRegexLib.EmOpener=/<EM([
\>])/gi;FCKRegexLib.EmCloser=/<\/EM>/gi;FCKRegexLib.GeckoEntitiesMarker=/#\?-\:/g;FCKRegexLib.ProtectUrlsAApo=/(<a\s.*?href=)("|')(.+?)\2/gi;FCKRegexLib.ProtectUrlsANoApo=/(<a\s.*?href=)([^"'][^
>]+)/gi;FCKRegexLib.ProtectUrlsImgApo=/(<img\s.*?src=)("|')(.+?)\2/gi;FCKRegexLib.ProtectUrlsImgNoApo=/(<img\s.*?src=)([^"'][^
>]+)/gi;FCKRegexLib.Html4DocType=/HTML 4\.0 Transitional/i;
+var FCKLanguageManager=FCK.Language=new
Object();FCKLanguageManager.AvailableLanguages={'ar':'Arabic','bg':'Bulgarian','bn':'Bengali/Bangla','bs':'Bosnian','ca':'Catalan','cs':'Czech','da':'Danish','de':'German','el':'Greek','en':'English','en-au':'English
(Australia)','en-ca':'English (Canadian)','en-uk':'English (United
Kingdom)','eo':'Esperanto','es':'Spanish','et':'Estonian','eu':'Basque','fa':'Persian','fi':'Finnish','fo':'Faroese','fr':'French','gl':'Galician','he':'Hebrew','hi':'Hindi','hr':'Croatian','hu':'Hungarian','it':'Italian','ja':'Japanese','km':'Khmer','ko':'Korean','lt':'Lithuanian','lv':'Latvian','mn':'Mongolian','ms':'Malay','nl':'Dutch','no':'Norwegian','pl':'Polish','pt':'Portuguese
(Portugal)','pt-br':'Portuguese
(Brazil)','ro':'Romanian','ru':'Russian','sk':'Slovak','sl':'Slovenian','sr':'Serbian
(Cyrillic)','sr-latn':'Serbian
(Latin)','sv':'Swedish','th':'Thai','tr':'Turkish','uk':'Ukrainian','vi':'Vietnamese','zh':'Chinese
Traditional','zh-cn':'Chinese
Simplified'};FCKLanguageManager.GetActiveLanguage=function(){if
(FCKConfig.AutoDetectLanguage){var A;if (navigator.userLanguage)
A=navigator.userLanguage.toLowerCase();else if (navigator.language)
A=navigator.language.toLowerCase();else{return FCKConfig.DefaultLanguage;};if
(A.length>=5){A=A.substr(0,5);if (this.AvailableLanguages[A]) return A;};if
(A.length>=2){A=A.substr(0,2);if (this.AvailableLanguages[A]) return
A;}};return
this.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(A,B,C,D){var
e=A.getElementsByTagName(B);var E,s;for (var i=0;i<e.length;i++){if
(E=e[i].getAttribute('fckLang')){if (s=FCKLang[E]){if (D)
s=FCKTools.HTMLEncode(s);eval('e[i].'+C+' =
s');}}}};FCKLanguageManager.TranslatePage=function(A){this.TranslateElements(A,'INPUT','value');this.TranslateElements(A,'SPAN','innerHTML');this.TranslateElements(A,'LABEL','innerHTML');this.TranslateElements(A,'OPTION','innerHTML',true);};FCKLanguageManager.Initialize=function(){if
(this.AvailableLanguages[FCKConfig.DefaultLanguage])
this.DefaultLanguage=FCKConfig.DefaultLanguage;else
this.DefaultLanguage='en';this.ActiveLanguage=new
Object();this.ActiveLanguage.Code=this.GetActiveLanguage();this.ActiveLanguage.Name=this.AvailableLanguages[this.ActiveLanguage.Code];}
+var FCKEvents;FCKEvents=function(A){this.Owner=A;this.RegisteredEvents=new
Object();};FCKEvents.prototype.AttachEvent=function(A,B){var C;if
(!(C=this.RegisteredEvents[A])) this.RegisteredEvents[A]=[B];else
C.push(B);};FCKEvents.prototype.FireEvent=function(A,B){var C=true;var
D=this.RegisteredEvents[A];if (D){for (var i=0;i<D.length;i++)
C=(D[i](this.Owner,B)&&C);};return C;}
+var FCKXHtmlEntities=new Object();FCKXHtmlEntities.Initialize=function(){if
(FCKXHtmlEntities.Entities) return;if
(FCKConfig.ProcessHTMLEntities){FCKXHtmlEntities.Entities={'Â
':'nbsp','¡':'iexcl','¢':'cent','£':'pound','¤':'curren','Â¥':'yen','¦':'brvbar','§':'sect','¨':'uml','©':'copy','ª':'ordf','«':'laquo','¬':'not','Â':'shy','®':'reg','¯':'macr','°':'deg','±':'plusmn','²':'sup2','³':'sup3','´':'acute','µ':'micro','¶':'para','·':'middot','¸':'cedil','¹':'sup1','º':'ordm','»':'raquo','¼':'frac14','½':'frac12','¾':'frac34','¿':'iquest','Ã':'times','÷':'divide','Æ':'fnof','â¢':'bull','â¦':'hellip','â²':'prime','â³':'Prime','â¾':'oline','â':'frasl','â':'weierp','â':'image','â':'real','â¢':'trade','âµ':'alefsym','â':'larr','â':'uarr','â':'rarr','â':'darr','â':'harr','âµ':'crarr','â':'lArr','â':'uArr','â':'rArr','â':'dArr','â':'hArr','â':'forall','â':'part','â':'exist','â
':'empty','â':'nabla','â':'isin','â':'notin','â':'ni','â':'prod','â':'sum','â':'minus','â':'lowast','â':'radic','â':'prop','â':'infin','â
':'ang','â§':'and','â¨':'or','â©':'cap','âª':'cup','â«':'int','â´':'there4','â¼':'sim','â
':'cong','â':'asymp','â
':'ne','â¡':'equiv','â¤':'le','â¥':'ge','â':'sub','â':'sup','â':'nsub','â':'sube','â':'supe','â':'oplus','â':'otimes','â¥':'perp','â
':'sdot','â':'loz','â
':'spades','â£':'clubs','â¥':'hearts','â¦':'diams','"':'quot','Ë':'circ','Ë':'tilde','â':'ensp','â':'emsp','â':'thinsp','â':'zwnj','â':'zwj','â':'lrm','â':'rlm','â':'ndash','â':'mdash','â':'lsquo','â':'rsquo','â':'sbquo','â':'ldquo','â':'rdquo','â':'bdquo','â
':'dagger','â¡':'Dagger','â°':'permil','â¹':'lsaquo','âº':'rsaquo','â¬':'euro'};FCKXHtmlEntities.Chars='';for
(var e in FCKXHtmlEntities.Entities) FCKXHtmlEntities.Chars+=e;if
(FCKConfig.IncludeLatinEntities){var
A={'Ã':'Agrave','Ã':'Aacute','Ã':'Acirc','Ã':'Atilde','Ã':'Auml','Ã
':'Aring','Ã':'AElig','Ã':'Ccedil','Ã':'Egrave','Ã':'Eacute','Ã':'Ecirc','Ã':'Euml','Ã':'Igrave','Ã':'Iacute','Ã':'Icirc','Ã':'Iuml','Ã':'ETH','Ã':'Ntilde','Ã':'Ograve','Ã':'Oacute','Ã':'Ocirc','Ã':'Otilde','Ã':'Ouml','Ã':'Oslash','Ã':'Ugrave','Ã':'Uacute','Ã':'Ucirc','Ã':'Uuml','Ã':'Yacute','Ã':'THORN','Ã':'szlig','Ã
':'agrave','á':'aacute','â':'acirc','ã':'atilde','ä':'auml','Ã¥':'aring','æ':'aelig','ç':'ccedil','è':'egrave','é':'eacute','ê':'ecirc','ë':'euml','ì':'igrave','Ã':'iacute','î':'icirc','ï':'iuml','ð':'eth','ñ':'ntilde','ò':'ograve','ó':'oacute','ô':'ocirc','õ':'otilde','ö':'ouml','ø':'oslash','ù':'ugrave','ú':'uacute','û':'ucirc','ü':'uuml','ý':'yacute','þ':'thorn','ÿ':'yuml','Å':'OElig','Å':'oelig','Å
':'Scaron','š':'scaron','Ÿ':'Yuml'};for (var e in
A){FCKXHtmlEntities.Entities[e]=A[e];FCKXHtmlEntities.Chars+=e;};A=null;};if
(FCKConfig.IncludeGreekEntities){var
A={'Î':'Alpha','Î':'Beta','Î':'Gamma','Î':'Delta','Î':'Epsilon','Î':'Zeta','Î':'Eta','Î':'Theta','Î':'Iota','Î':'Kappa','Î':'Lambda','Î':'Mu','Î':'Nu','Î':'Xi','Î':'Omicron','Î
':'Pi','Ρ':'Rho','Σ':'Sigma','Τ':'Tau','Î¥':'Upsilon','Φ':'Phi','Χ':'Chi','Ψ':'Psi','Ω':'Omega','α':'alpha','β':'beta','γ':'gamma','δ':'delta','ε':'epsilon','ζ':'zeta','η':'eta','θ':'theta','ι':'iota','κ':'kappa','λ':'lambda','μ':'mu','ν':'nu','ξ':'xi','ο':'omicron','Ï':'pi','Ï':'rho','Ï':'sigmaf','Ï':'sigma','Ï':'tau','Ï
':'upsilon','Ï':'phi','Ï':'chi','Ï':'psi','Ï':'omega'};for (var e in
A){FCKXHtmlEntities.Entities[e]=A[e];FCKXHtmlEntities.Chars+=e;};A=null;};FCKXHtmlEntities.EntitiesRegex=new
RegExp('['+FCKXHtmlEntities.Chars+']|[^'+FCKXHtmlEntities.Chars+']+','g');}else{FCKXHtmlEntities.Entities={
'Â ':'nbsp' };FCKXHtmlEntities.EntitiesRegex=/[Â ]|[^Â ]+/g;}}
+var FCKXHtml=new
Object();FCKXHtml.CurrentJobNum=0;FCKXHtml.GetXHTML=function(A,B,C){FCKXHtmlEntities.Initialize();this._CreateNode=FCKConfig.ForceStrongEm?FCKXHtml_CreateNode_StrongEm:FCKXHtml_CreateNode_Normal;FCKXHtml.SpecialBlocks=new
Array();this.XML=FCKTools.CreateXmlObject('DOMDocument');this.MainNode=this.XML.appendChild(this.XML.createElement('xhtml'));FCKXHtml.CurrentJobNum++;if
(B) this._AppendNode(this.MainNode,A);else
this._AppendChildNodes(this.MainNode,A,false);var
D=this._GetMainXmlString();D=D.substr(7,D.length-15).trim();if
(FCKBrowserInfo.IsGecko)
D=D.replace(/<br\/>$/,'');D=D.replace(FCKRegexLib.SpaceNoClose,' />');if
(FCKConfig.ForceSimpleAmpersand)
D=D.replace(FCKRegexLib.ForceSimpleAmpersand,'&');if (C)
D=FCKCodeFormatter.Format(D);for (var
i=0;i<FCKXHtml.SpecialBlocks.length;i++){var E=new
RegExp('___FCKsi___'+i);D=D.replace(E,FCKXHtml.SpecialBlocks[i]);};this.XML=null;return
D};FCKXHtml._AppendAttribute=function(A,B,C){try{var
D=this.XML.createAttribute(B);D.value=C?C:'';A.attributes.setNamedItem(D);}catch
(e){}};FCKXHtml._AppendChildNodes=function(A,B,C){var D=0;var
E=B.firstChild;while (E){if (this._AppendNode(A,E)) D++;E=E.nextSibling;};if
(D==0){if
(C&&FCKConfig.FillEmptyBlocks){this._AppendEntity(A,'nbsp');return;};if
(!FCKRegexLib.EmptyElements.test(B.nodeName))
A.appendChild(this.XML.createTextNode(''));}};FCKXHtml._AppendNode=function(A,B){if
(!B) return;switch (B.nodeType){case 1:if (B.getAttribute('_fckfakelement'))
return FCKXHtml._AppendNode(A,FCK.GetRealElement(B));if
(FCKBrowserInfo.IsGecko&&B.hasAttribute('_moz_editor_bogus_node')) return
false;if (B.getAttribute('_fcktemp')) return false;var C=B.nodeName;if
(FCKBrowserInfo.IsIE&&B.scopeName&&B.scopeName!='HTML') C=B.scopeName+':'+C;if
(!FCKRegexLib.ElementName.test(C)) return false;C=C.toLowerCase();if
(FCKBrowserInfo.IsGecko&&C=='br'&&B.hasAttribute('type')&&B.getAttribute('type',2)=='_moz')
return false;if (B._fckxhtmljob&&B._fckxhtmljob==FCKXHtml.CurrentJobNum)
return false;var
D=this._CreateNode(C);FCKXHtml._AppendAttributes(A,B,D,C);B._fckxhtmljob=FCKXHtml.CurrentJobNum;var
E=FCKXHtml.TagProcessors[C];if (E){D=E(D,B,A);if (!D) break;}else
this._AppendChildNodes(D,B,FCKRegexLib.BlockElements.test(C));A.appendChild(D);break;case
3:this._AppendTextNode(A,B.nodeValue.replaceNewLineChars(' '));break;case
8:try { A.appendChild(this.XML.createComment(B.nodeValue));}catch (e) { /* Do
nothing... probably this is a wrong format comment.
*/};break;default:A.appendChild(this.XML.createComment("Element not supported -
Type: "+B.nodeType+" Name: "+B.nodeName));break;};return true;};function
FCKXHtml_CreateNode_StrongEm(nodeName){switch (nodeName){case
'b':nodeName='strong';break;case 'i':nodeName='em';break;};return
this.XML.createElement(nodeName);};function
FCKXHtml_CreateNode_Normal(nodeName){return
this.XML.createElement(nodeName);};FCKXHtml._AppendSpecialItem=function(A){return
'___FCKsi___'+FCKXHtml.SpecialBlocks.AddItem(A);};FCKXHtml._AppendTextNode=function(A,B){var
C=B.match(FCKXHtmlEntities.EntitiesRegex);if (C){for (var
i=0;i<C.length;i++){if (C[i].length==1){var
D=FCKXHtmlEntities.Entities[C[i]];if
(D!=null){this._AppendEntity(A,D);continue;}};A.appendChild(this.XML.createTextNode(C[i]));}}};FCKXHtml.TagProcessors=new
Object();FCKXHtml.TagProcessors['img']=function(A,B){if
(!A.attributes.getNamedItem('alt')) FCKXHtml._AppendAttribute(A,'alt','');var
C=B.getAttribute('_fcksavedurl');if (C&&C.length>0)
FCKXHtml._AppendAttribute(A,'src',C);return
A;};FCKXHtml.TagProcessors['a']=function(A,B){var
C=B.getAttribute('_fcksavedurl');if (C&&C.length>0)
FCKXHtml._AppendAttribute(A,'href',C);FCKXHtml._AppendChildNodes(A,B,false);return
A;};FCKXHtml.TagProcessors['script']=function(A,B){if
(!A.attributes.getNamedItem('type'))
FCKXHtml._AppendAttribute(A,'type','text/javascript');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.text)));return
A;};FCKXHtml.TagProcessors['style']=function(A,B){if
(!A.attributes.getNamedItem('type'))
FCKXHtml._AppendAttribute(A,'type','text/css');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.innerHTML)));return
A;};FCKXHtml.TagProcessors['title']=function(A,B){A.appendChild(FCKXHtml.XML.createTextNode(FCK.EditorDocument.title));return
A;};FCKXHtml.TagProcessors['table']=function(A,B){var
C=A.attributes.getNamedItem('class');if
(C&&FCKRegexLib.TableBorderClass.test(C.nodeValue)){var
D=C.nodeValue.replace(FCKRegexLib.TableBorderClass,'');if (D.length==0)
A.attributes.removeNamedItem('class');else
FCKXHtml._AppendAttribute(A,'class',D);};FCKXHtml._AppendChildNodes(A,B,false);return
A;};FCKXHtml.TagProcessors['ol']=FCKXHtml.TagProcessors['ul']=function(A,B,C){if
(B.innerHTML.trim().length==0) return;var D=C.lastChild;if (D&&D.nodeType==3)
D=D.previousSibling;if
(D&&D.nodeName.toUpperCase()=='LI'){B._fckxhtmljob=null;FCKXHtml._AppendNode(D,B);return;};FCKXHtml._AppendChildNodes(A,B);return
A;}
+FCKXHtml._GetMainXmlString=function(){var A=new XMLSerializer();return
A.serializeToString(this.MainNode).replace(FCKRegexLib.GeckoEntitiesMarker,'&');};FCKXHtml._AppendEntity=function(A,B){A.appendChild(this.XML.createTextNode('#?-:'+B+';'));};FCKXHtml._AppendAttributes=function(A,B,C){var
D=B.attributes;for (var n=0;n<D.length;n++){var E=D[n];if (E.specified){var
F=E.nodeName.toLowerCase();var G;if (F.startsWith('_fck')) continue;else if
(F.indexOf('_moz')==0) continue;else if (F=='class') G=E.nodeValue;else if
(E.nodeValue===true) G=F;else G=B.getAttribute(F,2);if
(FCKConfig.ForceSimpleAmpersand&&G.replace)
G=G.replace(/&/g,'___FCKAmp___');this._AppendAttribute(C,F,G);}}}
+var FCKCodeFormatter=new Object();FCKCodeFormatter.Init=function(){var
A=this.Regex=new
Object();A.BlocksOpener=/\<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|TH|AREA|OPTION)[^\>]*\>/gi;A.BlocksCloser=/\<\/(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|TH|AREA|OPTION)[^\>]*\>/gi;A.NewLineTags=/\<(BR|HR)[^\>]*\>/gi;A.MainTags=/\<\/?(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR)[^\>]*\>/gi;A.LineSplitter=/\s*\n+\s*/g;A.IncreaseIndent=/^\<(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[
\/\>]/i;A.DecreaseIndent=/^\<\/(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[
\>]/i;A.FormatIndentatorRemove=new
RegExp('^'+FCKConfig.FormatIndentator);A.ProtectedTags=/(<PRE[^>]*>)([\s\S]*?)(<\/PRE>)/gi;};FCKCodeFormatter._ProtectData=function(A,B,C,D){return
B+'___FCKpd___'+FCKCodeFormatter.ProtectedData.AddItem(C)+D;};FCKCodeFormatter.Format=function(A){if
(!this.Regex) this.Init();FCKCodeFormatter.ProtectedData=new Array();var
B=A.replace(this.Regex.ProtectedTags,FCKCodeFormatter._ProtectData);B=B.replace(this.Regex.BlocksOpener,'\n$&');;B=B.replace(this.Regex.BlocksCloser,'$&\n');B=B.replace(this.Regex.NewLineTags,'$&\n');B=B.replace(this.Regex.MainTags,'\n$&\n');var
C='';var D=B.split(this.Regex.LineSplitter);B='';for (var
i=0;i<D.length;i++){var E=D[i];if (E.length==0) continue;if
(this.Regex.DecreaseIndent.test(E))
C=C.replace(this.Regex.FormatIndentatorRemove,'');B+=C+E+'\n';if
(this.Regex.IncreaseIndent.test(E)) C+=FCKConfig.FormatIndentator;};for (var
i=0;i<FCKCodeFormatter.ProtectedData.length;i++){var F=new
RegExp('___FCKpd___'+i);B=B.replace(F,FCKCodeFormatter.ProtectedData[i].replace(/\$/g,'$$$$'));};return
B.trim();}
+var FCKUndo=new Object();FCKUndo.SaveUndoStep=function(){}
+var
FCKEditingArea=function(A){this.TargetElement=A;this.Mode=FCK_EDITMODE_WYSIWYG;if
(FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKEditingArea_Cleanup);};FCKEditingArea.prototype.Start=function(A,B){var
C=this.TargetElement;var
D=FCKTools.GetElementDocument(C);while(C.childNodes.length>0)
C.removeChild(C.childNodes[0]);if (this.Mode==FCK_EDITMODE_WYSIWYG){if
(FCKBrowserInfo.IsGecko)
A=A.replace(/(<body[^>]*>)\s*(<\/body>)/i,'$1'+GECKO_BOGUS+'$2');var
E=this.IFrame=D.createElement('iframe');E.src='javascript:void(0)';E.frameBorder=0;E.width=E.height='100%';C.appendChild(E);if
(FCKBrowserInfo.IsIE)
A=A.replace(/(<base[^>]*?)\s*\/?>(?!\s*<\/base>)/gi,'$1></base>');this.Window=E.contentWindow;var
F=this.Document=this.Window.document;F.open();F.write(A);F.close();if
(FCKBrowserInfo.IsGecko10&&!B){this.Start(A,true);return;};this.Window._FCKEditingArea=this;if
(FCKBrowserInfo.IsGecko10)
this.Window.setTimeout(FCKEditingArea_CompleteStart,500);else
FCKEditingArea_CompleteStart.call(this.Window);}else{var
G=this.Textarea=D.createElement('textarea');G.className='SourceField';G.dir='ltr';G.style.width=G.style.height='100%';G.style.border='none';C.appendChild(G);G.value=A;FCKTools.RunFunction(this.OnLoad);}};function
FCKEditingArea_CompleteStart(){if
(!this.document.body){this.setTimeout(FCKEditingArea_CompleteStart,50);return;};var
oEditorArea=this._FCKEditingArea;oEditorArea.MakeEditable();FCKTools.RunFunction(oEditorArea.OnLoad);};FCKEditingArea.prototype.MakeEditable=function(){var
A=this.Document;if (FCKBrowserInfo.IsIE)
A.body.contentEditable=true;else{try{A.designMode='on';A.execCommand('useCSS',false,!FCKConfig.GeckoUseSPAN);A.execCommand('enableObjectResizing',false,!FCKConfig.DisableObjectResizing);A.execCommand('enableInlineTableEditing',false,!FCKConfig.DisableFFTableHandles);}catch
(e) {}}};FCKEditingArea.prototype.Focus=function(){try{if
(this.Mode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsSafari)
this.IFrame.focus();else this.Window.focus();}else
this.Textarea.focus();}catch(e) {}};function
FCKEditingArea_Cleanup(){this.TargetElement=null;this.IFrame=null;this.Document=null;this.Textarea=null;if
(this.Window){this.Window._FCKEditingArea=null;this.Window=null;}}
+var FCKDocumentProcessor=new Object();FCKDocumentProcessor._Items=new
Array();FCKDocumentProcessor.AppendNew=function(){var A=new
Object();this._Items.AddItem(A);return
A;};FCKDocumentProcessor.Process=function(A){var
B,i=0;while((B=this._Items[i++])) B.ProcessDocument(A);};var
FCKDocumentProcessor_CreateFakeImage=function(A,B){var
C=FCK.EditorDocument.createElement('IMG');C.className=A;C.src=FCKConfig.FullBasePath+'images/spacer.gif';C.setAttribute('_fckfakelement','true',0);C.setAttribute('_fckrealelement',FCKTempBin.AddElement(B),0);return
C;};var
FCKAnchorsProcessor=FCKDocumentProcessor.AppendNew();FCKAnchorsProcessor.ProcessDocument=function(A){var
B=A.getElementsByTagName('A');var C;var i=B.length-1;while
(i>=0&&(C=B[i--])){if
(C.name.length>0&&(!C.getAttribute('href')||C.getAttribute('href').length==0)){var
D=FCKDocumentProcessor_CreateFakeImage('FCK__Anchor',C.cloneNode(true));D.setAttribute('_fckanchor','true',0);C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);}}};var
FCKPageBreaksProcessor=FCKDocumentProcessor.AppendNew();FCKPageBreaksProcessor.ProcessDocument=function(A){var
B=A.getElementsByTagName('DIV');var C;var i=B.length-1;while
(i>=0&&(C=B[i--])){if
(C.style.pageBreakAfter=='always'&&C.childNodes.length==1&&C.childNodes[0].style&&C.childNodes[0].style.display=='none'){var
D=FCKDocumentProcessor_CreateFakeImage('FCK__PageBreak',C.cloneNode(true));C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);}}};var
FCKFlashProcessor=FCKDocumentProcessor.AppendNew();FCKFlashProcessor.ProcessDocument=function(A){var
B=A.getElementsByTagName('EMBED');var C;var i=B.length-1;while
(i>=0&&(C=B[i--])){if (C.src.endsWith('.swf',true)){var D=C.cloneNode(true);if
(FCKBrowserInfo.IsIE){var E;if (E=C.getAttribute('scale'))
D.setAttribute('scale',E);if (E=C.getAttribute('play'))
D.setAttribute('play',E);if (E=C.getAttribute('loop'))
D.setAttribute('loop',E);if (E=C.getAttribute('menu'))
D.setAttribute('menu',E);if (E=C.getAttribute('wmode'))
D.setAttribute('wmode',E);if (E=C.getAttribute('quality'))
D.setAttribute('quality',E);};var
F=FCKDocumentProcessor_CreateFakeImage('FCK__Flash',D);F.setAttribute('_fckflash','true',0);FCKFlashProcessor.RefreshView(F,C);C.parentNode.insertBefore(F,C);C.parentNode.removeChild(C);}}};FCKFlashProcessor.RefreshView=function(A,B){if
(B.width>0) A.style.width=FCKTools.ConvertHtmlSizeToStyle(B.width);if
(B.height>0)
A.style.height=FCKTools.ConvertHtmlSizeToStyle(B.height);};FCK.GetRealElement=function(A){var
e=FCKTempBin.Elements[A.getAttribute('_fckrealelement')];if
(A.getAttribute('_fckflash')){if (A.style.width.length>0)
e.width=FCKTools.ConvertStyleSizeToHtml(A.style.width);if
(A.style.height.length>0)
e.height=FCKTools.ConvertStyleSizeToHtml(A.style.height);};return e;};
+var FCK_StartupValue;FCK.Events=new
FCKEvents(FCK);FCK.Toolbar=null;FCK.HasFocus=false;FCK.StartEditor=function(){FCK.TempBaseTag=FCKConfig.BaseHref.length>0?'<base
href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';FCK.EditingArea=new
FCKEditingArea(document.getElementById('xEditingArea'));this.SetHTML(FCKTools.GetLinkedFieldValue());};FCK.Focus=function(){FCK.EditingArea.Focus();};FCK.SetStatus=function(A){this.Status=A;if
(A==FCK_STATUS_ACTIVE){FCKFocusManager.AddWindow(window,true);if
(FCKBrowserInfo.IsIE) FCKFocusManager.AddWindow(window.frameElement,true);if
(FCKConfig.StartupFocus)
FCK.Focus();};this.Events.FireEvent('OnStatusChange',A);};FCK.GetHTML=FCK.GetXHTML=function(A){if
(FCK.EditMode==FCK_EDITMODE_SOURCE) return FCK.EditingArea.Textarea.value;var
B;if (FCKConfig.FullPage)
B=FCKXHtml.GetXHTML(this.EditorDocument.getElementsByTagName('html')[0],true,A);else{if
(FCKConfig.IgnoreEmptyParagraphValue&&this.EditorDocument.body.innerHTML=='<P> </P>')
B='';else B=FCKXHtml.GetXHTML(this.EditorDocument.body,false,A);};if
(FCKBrowserInfo.IsIE) B=B.replace(FCKRegexLib.ToReplace,'$1');if
(FCK.DocTypeDeclaration&&FCK.DocTypeDeclaration.length>0)
B=FCK.DocTypeDeclaration+'\n'+B;if
(FCK.XmlDeclaration&&FCK.XmlDeclaration.length>0)
B=FCK.XmlDeclaration+'\n'+B;return
FCKConfig.ProtectedSource.Revert(B);};FCK.UpdateLinkedField=function(){FCK.LinkedField.value=FCK.GetXHTML(FCKConfig.FormatOutput);FCK.Events.FireEvent('OnAfterLinkedFieldUpdate');};FCK.RegisteredDoubleClickHandlers=new
Object();FCK.OnDoubleClick=function(A){var
B=FCK.RegisteredDoubleClickHandlers[A.tagName];if (B)
B(A);};FCK.RegisterDoubleClickHandler=function(A,B){FCK.RegisteredDoubleClickHandlers[B.toUpperCase()]=A;};FCK.OnAfterSetHTML=function(){FCKDocumentProcessor.Process(FCK.EditorDocument);FCK.Events.FireEvent('OnAfterSetHTML');};FCK.ProtectUrls=function(A){A=A.replace(FCKRegexLib.ProtectUrlsAApo,'$1$2$3$2
_fcksavedurl=$2$3$2');A=A.replace(FCKRegexLib.ProtectUrlsANoApo,'$1$2
_fcksavedurl="$2"');A=A.replace(FCKRegexLib.ProtectUrlsImgApo,'$1$2$3$2
_fcksavedurl=$2$3$2');A=A.replace(FCKRegexLib.ProtectUrlsImgNoApo,'$1$2
_fcksavedurl="$2"');return A;};FCK.IsDirty=function(){return
(FCK_StartupValue!=FCK.EditorDocument.body.innerHTML);};FCK.ResetIsDirty=function(){if
(FCK.EditorDocument.body)
FCK_StartupValue=FCK.EditorDocument.body.innerHTML;};FCK.SetHTML=function(A){this.EditingArea.Mode=FCK.EditMode;if
(FCK.EditMode==FCK_EDITMODE_WYSIWYG){if
(FCKBrowserInfo.IsGecko){A=A.replace(FCKRegexLib.StrongOpener,'<b$1');A=A.replace(FCKRegexLib.StrongCloser,'<\/b>');A=A.replace(FCKRegexLib.EmOpener,'<i$1');A=A.replace(FCKRegexLib.EmCloser,'<\/i>');};A=FCKConfig.ProtectedSource.Protect(A);A=FCK.ProtectUrls(A);var
B;if (FCKConfig.FullPage){var B;if (FCKBrowserInfo.IsIE)
B=FCK._GetBehaviorsStyle();else if (FCKConfig.ShowBorders) B='<link
href="'+FCKConfig.FullBasePath+'css/fck_showtableborders_gecko.css"
rel="stylesheet" type="text/css" _fcktemp="true" />';B+='<link
href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet"
type="text/css" _fcktemp="true"
/>';B=A.replace(FCKRegexLib.HeadCloser,B+'$&');if
(FCK.TempBaseTag.length>0&&!FCKRegexLib.HasBaseTag.test(A))
B=B.replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);}else{B=FCKConfig.DocType+'<html
dir="'+FCKConfig.ContentLangDirection+'"';if
(FCKBrowserInfo.IsIE&&!FCKRegexLib.Html4DocType.test(FCKConfig.DocType)) B+='
style="overflow-y:
scroll"';B+='><head><title></title>'+this._GetEditorAreaStyleTags()+'<link
href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet"
type="text/css" _fcktemp="true" />';if (FCKBrowserInfo.IsIE)
B+=FCK._GetBehaviorsStyle();else if (FCKConfig.ShowBorders) B+='<link
href="'+FCKConfig.FullBasePath+'css/fck_showtableborders_gecko.css"
rel="stylesheet" type="text/css" _fcktemp="true"
/>';B+=FCK.TempBaseTag;B+='</head><body>';if
(FCKBrowserInfo.IsGecko&&(A.length==0||FCKRegexLib.EmptyParagraph.test(A)))
B+=GECKO_BOGUS;else
B+=A;B+='</body></html>';};this.EditingArea.OnLoad=FCK_EditingArea_OnLoad;this.EditingArea.Start(B);}else{this.EditingArea.OnLoad=null;this.EditingArea.Start(A);this.EditingArea.Textarea._FCKShowContextMenu=true;}};function
FCK_EditingArea_OnLoad(){FCK.EditorWindow=FCK.EditingArea.Window;FCK.EditorDocument=FCK.EditingArea.Document;FCK.InitializeBehaviors();FCK.OnAfterSetHTML();if
(FCK.Status!=FCK_STATUS_NOTLOADED)
return;FCK.ResetIsDirty();FCKTools.AttachToLinkedFieldFormSubmit(FCK.UpdateLinkedField);FCKUndo.SaveUndoStep();FCK.SetStatus(FCK_STATUS_ACTIVE);};FCK._GetEditorAreaStyleTags=function(){var
A='';var B=FCKConfig.EditorAreaCSS;for (var i=0;i<B.length;i++) A+='<link
href="'+B[i]+'" rel="stylesheet" type="text/css" />';return A;};var
FCKFocusManager=FCK.FocusManager=new
Object();FCKFocusManager.IsLocked=false;FCK.HasFocus=false;FCKFocusManager.AddWindow=function(A,B){var
C;if (FCKBrowserInfo.IsIE)
C=A.nodeType==1?A:A.frameElement?A.frameElement:A.document;else
C=A.document;FCKTools.AddEventListener(C,'blur',FCKFocusManager_Win_OnBlur);FCKTools.AddEventListener(C,'focus',B?FCKFocusManager_Win_OnFocus_Area:FCKFocusManager_Win_OnFocus);};FCKFocusManager.RemoveWindow=function(A){if
(FCKBrowserInfo.IsIE)
oTarget=A.nodeType==1?A:A.frameElement?A.frameElement:A.document;else
oTarget=A.document;FCKTools.RemoveEventListener(oTarget,'blur',FCKFocusManager_Win_OnBlur);FCKTools.RemoveEventListener(oTarget,'focus',FCKFocusManager_Win_OnFocus_Area);FCKTools.RemoveEventListener(oTarget,'focus',FCKFocusManager_Win_OnFocus);};FCKFocusManager.Lock=function(){this.IsLocked=true;};FCKFocusManager.Unlock=function(){if
(this._HasPendingBlur)
FCKFocusManager._Timer=window.setTimeout(FCKFocusManager_FireOnBlur,100);this.IsLocked=false;};FCKFocusManager._ResetTimer=function(){this._HasPendingBlur=false;if
(this._Timer){window.clearTimeout(this._Timer);delete this._Timer;}};function
FCKFocusManager_Win_OnBlur(){if
(FCK&&FCK.HasFocus){FCKFocusManager._ResetTimer();FCKFocusManager._Timer=window.setTimeout(FCKFocusManager_FireOnBlur,100);}};function
FCKFocusManager_FireOnBlur(){if (FCKFocusManager.IsLocked)
FCKFocusManager._HasPendingBlur=true;else{FCK.HasFocus=false;FCK.Events.FireEvent("OnBlur");}};function
FCKFocusManager_Win_OnFocus_Area(){FCKFocusManager_Win_OnFocus();FCK.Focus();};function
FCKFocusManager_Win_OnFocus(){FCKFocusManager._ResetTimer();if
(!FCK.HasFocus&&!FCKFocusManager.IsLocked){FCK.HasFocus=true;FCK.Events.FireEvent("OnFocus");}}
+FCK.Description="FCKeditor for Gecko
Browsers";FCK.InitializeBehaviors=function(){Window_OnResize();FCKFocusManager.AddWindow(this.EditorWindow);var
A=function(e){var B;if (e.ctrlKey&&!e.shiftKey&&!e.altKey){switch
(e.which){case 66:case 98:FCK.ExecuteNamedCommand('bold');B=true;break;case
105:case 73:FCK.ExecuteNamedCommand('italic');B=true;break;case 117:case
85:FCK.ExecuteNamedCommand('underline');B=true;break;case 86:case
118:B=(FCK.Status!=FCK_STATUS_COMPLETE||!FCK.Events.FireEvent("OnPaste"));break;}}else
if (e.shiftKey&&!e.ctrlKey&&!e.altKey&&e.keyCode==45)
B=(FCK.Status!=FCK_STATUS_COMPLETE||!FCK.Events.FireEvent("OnPaste"));if
(B){e.preventDefault();e.stopPropagation();}};this.EditorDocument.addEventListener('keypress',A,true);this.ExecOnSelectionChange=function(){FCK.Events.FireEvent("OnSelectionChange");};this.ExecOnSelectionChangeTimer=function(){if
(FCK.LastOnChangeTimer)
window.clearTimeout(FCK.LastOnChangeTimer);FCK.LastOnChangeTimer=window.setTimeout(FCK.ExecOnSelectionChange,100);};this.EditorDocument.addEventListener('mouseup',this.ExecOnSelectionChange,false);this.EditorDocument.addEventListener('keyup',this.ExecOnSelectionChangeTimer,false);this._DblClickListener=function(e){FCK.OnDoubleClick(e.target);e.stopPropagation();};this.EditorDocument.addEventListener('dblclick',this._DblClickListener,true);FCK.ContextMenu._InnerContextMenu.SetMouseClickWindow(FCK.EditorWindow);FCK.ContextMenu._InnerContextMenu.AttachToElement(FCK.EditorDocument);};FCK.MakeEditable=function(){this.EditingArea.MakeEditable();};function
Document_OnContextMenu(e){if (!e.target._FCKShowContextMenu)
e.preventDefault();};document.oncontextmenu=Document_OnContextMenu;
+FCK.RedirectNamedCommands=new
Object();FCK.ExecuteNamedCommand=function(A,B,C){FCKUndo.SaveUndoStep();if
(!C&&FCK.RedirectNamedCommands[A]!=null)
FCK.ExecuteRedirectedNamedCommand(A,B);else{FCK.Focus();FCK.EditorDocument.execCommand(A,false,B);FCK.Events.FireEvent('OnSelectionChange');};FCKUndo.SaveUndoStep();};FCK.GetNamedCommandState=function(A){try{if
(!FCK.EditorDocument.queryCommandEnabled(A)) return FCK_TRISTATE_DISABLED;else
return
FCK.EditorDocument.queryCommandState(A)?FCK_TRISTATE_ON:FCK_TRISTATE_OFF;}catch
(e){return FCK_TRISTATE_OFF;}};FCK.GetNamedCommandValue=function(A){var
B='';var C=FCK.GetNamedCommandState(A);if (C==FCK_TRISTATE_DISABLED) return
null;try{B=this.EditorDocument.queryCommandValue(A);}catch(e) {};return
B?B:'';};FCK.PasteFromWord=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteFromWord,'dialog/fck_paste.html',400,330,'Word');};FCK.Preview=function(){var
A=FCKConfig.ScreenWidth*0.8;var B=FCKConfig.ScreenHeight*0.7;var
C=(FCKConfig.ScreenWidth-A)/2;var
D=window.open('',null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+A+',height='+B+',left='+C);var
E;if (FCKConfig.FullPage){if (FCK.TempBaseTag.length>0)
E=FCK.GetXHTML().replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);else
E=FCK.GetXHTML();}else{E=FCKConfig.DocType+'<html
dir="'+FCKConfig.ContentLangDirection+'">'+'<head>'+FCK.TempBaseTag+'<title>'+FCKLang.Preview+'</title>'+FCK._GetEditorAreaStyleTags()+'</head><body>'+FCK.GetXHTML()+'</body></html>';};D.document.write(E);D.document.close();};FCK.SwitchEditMode=function(A){var
B=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);var C;if (B){if
(!A&&FCKBrowserInfo.IsIE)
FCKUndo.SaveUndoStep();C=FCK.GetXHTML(FCKConfig.FormatSource);}else
C=this.EditingArea.Textarea.value;FCK.EditMode=B?FCK_EDITMODE_SOURCE:FCK_EDITMODE_WYSIWYG;FCK.SetHTML(C);if
(FCKBrowserInfo.IsGecko)
window.onresize();FCK.Focus();FCKTools.RunFunction(FCK.ToolbarSet.RefreshModeState,FCK.ToolbarSet);};FCK.CreateElement=function(A){var
e=FCK.EditorDocument.createElement(A);return
FCK.InsertElementAndGetIt(e);};FCK.InsertElementAndGetIt=function(e){e.setAttribute('FCKTempLabel','true');this.InsertElement(e);var
A=FCK.EditorDocument.getElementsByTagName(e.tagName);for (var
i=0;i<A.length;i++){if
(A[i].getAttribute('FCKTempLabel')){A[i].removeAttribute('FCKTempLabel');return
A[i];}};return null;};
+FCK._BaseGetNamedCommandState=FCK.GetNamedCommandState;FCK.GetNamedCommandState=function(A){switch
(A){case 'Unlink':return
FCKSelection.HasAncestorNode('A')?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;default:return
FCK._BaseGetNamedCommandState(A);}};FCK.RedirectNamedCommands={Print:true,Paste:true,Cut:true,Copy:true};FCK.ExecuteRedirectedNamedCommand=function(A,B){switch
(A){case 'Print':FCK.EditorWindow.print();break;case 'Paste':try
{ if (FCK.Paste()) FCK.ExecuteNamedCommand('Paste',null,true);}catch (e)
{ alert(FCKLang.PasteErrorPaste);};break;case 'Cut':try {
FCK.ExecuteNamedCommand('Cut',null,true);}catch (e) {
alert(FCKLang.PasteErrorCut);};break;case 'Copy':try {
FCK.ExecuteNamedCommand('Copy',null,true);}catch (e) {
alert(FCKLang.PasteErrorCopy);};break;default:FCK.ExecuteNamedCommand(A,B);}};FCK.AttachToOnSelectionChange=function(A){this.Events.AttachEvent('OnSelectionChange',A);};FCK.Paste=function(){if
(FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return false;}else
return
true;};FCK.InsertHtml=function(A){A=FCKConfig.ProtectedSource.Protect(A);A=FCK.ProtectUrls(A);var
B=FCKSelection.Delete();var C=B.getRangeAt(0);var
D=C.createContextualFragment(A);var
E=D.lastChild;C.insertNode(D);FCKSelection.SelectNode(E);FCKSelection.Collapse(false);this.Focus();};FCK.InsertElement=function(A){var
B=FCKSelection.Delete();var
C=B.getRangeAt(0);C.insertNode(A);FCKSelection.SelectNode(A);FCKSelection.Collapse(false);this.Focus();};FCK.PasteAsPlainText=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteAsText,'dialog/fck_paste.html',400,330,'PlainText');};FCK.GetClipboardHTML=function(){return
'';};FCK.CreateLink=function(A){FCK.ExecuteNamedCommand('Unlink');if
(A.length>0){var B='javascript:void(0);/*'+(new
Date().getTime())+'*/';FCK.ExecuteNamedCommand('CreateLink',B);var
C=document.evaluate("//address@hidden'"+B+"']",this.EditorDocument.body,null,9,null).singleNodeValue;if
(C){C.href=A;return C;}}};
+var FCKSelection=FCK.Selection=new Object();
+FCKSelection.GetType=function(){this._Type='Text';var A;try {
A=FCK.EditorWindow.getSelection();}catch (e) {};if (A&&A.rangeCount==1){var
B=A.getRangeAt(0);if
(B.startContainer==B.endContainer&&(B.endOffset-B.startOffset)==1&&B.startContainer.nodeType!=Node.TEXT_NODE)
this._Type='Control';};return
this._Type;};FCKSelection.GetSelectedElement=function(){if
(this.GetType()=='Control'){var A=FCK.EditorWindow.getSelection();return
A.anchorNode.childNodes[A.anchorOffset];}};FCKSelection.GetParentElement=function(){if
(this.GetType()=='Control') return
FCKSelection.GetSelectedElement().parentNode;else{var
A=FCK.EditorWindow.getSelection();if (A){var B=A.anchorNode;while
(B&&B.nodeType!=1) B=B.parentNode;return
B;}}};FCKSelection.SelectNode=function(A){var
B=FCK.EditorDocument.createRange();B.selectNode(A);var
C=FCK.EditorWindow.getSelection();C.removeAllRanges();C.addRange(B);};FCKSelection.Collapse=function(A){var
B=FCK.EditorWindow.getSelection();if (A==null||A===true)
B.collapseToStart();else
B.collapseToEnd();};FCKSelection.HasAncestorNode=function(A){var
B=this.GetSelectedElement();if (!B&&FCK.EditorWindow){try {
B=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;}catch(e){}};while
(B){if (B.nodeType==1&&B.tagName==A) return true;B=B.parentNode;};return
false;};FCKSelection.MoveToAncestorNode=function(A){var B;var
C=this.GetSelectedElement();if (!C)
C=FCK.EditorWindow.getSelection().getRangeAt(0).startContainer;while (C){if
(C.tagName==A) return C;C=C.parentNode;};return
null;};FCKSelection.Delete=function(){var A=FCK.EditorWindow.getSelection();for
(var i=0;i<A.rangeCount;i++){A.getRangeAt(i).deleteContents();};return A;};
+var FCKTableHandler=new Object();FCKTableHandler.InsertRow=function(){var
A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var
B=A.cloneNode(true);A.parentNode.insertBefore(B,A);FCKTableHandler.ClearRow(A);};FCKTableHandler.DeleteRows=function(A){if
(!A) A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var
B=FCKTools.GetElementAscensor(A,'TABLE');if
(B.rows.length==1){FCKTableHandler.DeleteTable(B);return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteTable=function(A){if
(!A){var A=FCKSelection.GetSelectedElement();if (!A||A.tagName!='TABLE')
A=FCKSelection.MoveToAncestorNode("TABLE");};if (!A)
return;FCKSelection.SelectNode(A);FCKSelection.Collapse();A.parentNode.removeChild(A);};FCKTableHandler.InsertColumn=function(){var
A=FCKSelection.MoveToAncestorNode("TD");if (!A)
A=FCKSelection.MoveToAncestorNode("TH");if (!A) return;var
B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex+1;for (var
i=0;i<B.rows.length;i++){var D=B.rows[i];if (D.cells.length<C)
continue;A=D.cells[C-1].cloneNode(false);if (FCKBrowserInfo.IsGecko)
A.innerHTML=GECKO_BOGUS;var E=D.cells[C];if (E) D.insertBefore(A,E);else
D.appendChild(A);}};FCKTableHandler.DeleteColumns=function(){var
A=FCKSelection.MoveToAncestorNode('TD')||FCKSelection.MoveToAncestorNode('TH');if
(!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex;for
(var i=B.rows.length-1;i>=0;i--){var D=B.rows[i];if
(C==0&&D.cells.length==1){FCKTableHandler.DeleteRows(D);continue;};if
(D.cells[C])
D.removeChild(D.cells[C]);}};FCKTableHandler.InsertCell=function(A){var
B=A?A:FCKSelection.MoveToAncestorNode("TD");if (!B) return;var
C=FCK.EditorDocument.createElement("TD");if (FCKBrowserInfo.IsGecko)
C.innerHTML=GECKO_BOGUS;if
(B.cellIndex==B.parentNode.cells.length-1){B.parentNode.appendChild(C);}else{B.parentNode.insertBefore(C,B.nextSibling);};return
C;};FCKTableHandler.DeleteCell=function(A){if
(A.parentNode.cells.length==1){FCKTableHandler.DeleteRows(FCKTools.GetElementAscensor(A,'TR'));return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteCells=function(){var
A=FCKTableHandler.GetSelectedCells();for (var
i=A.length-1;i>=0;i--){FCKTableHandler.DeleteCell(A[i]);}};FCKTableHandler.MergeCells=function(){var
A=FCKTableHandler.GetSelectedCells();if (A.length<2) return;if
(A[0].parentNode!=A[A.length-1].parentNode) return;var
B=isNaN(A[0].colSpan)?1:A[0].colSpan;var C='';var
D=FCK.EditorDocument.createDocumentFragment();for (var
i=A.length-1;i>=0;i--){var E=A[i];for (var
c=E.childNodes.length-1;c>=0;c--){var F=E.removeChild(E.childNodes[c]);if
((F.hasAttribute&&F.hasAttribute('_moz_editor_bogus_node'))||(F.getAttribute&&F.getAttribute('type',2)=='_moz'))
continue;D.insertBefore(F,D.firstChild);};if
(i>0){B+=isNaN(E.colSpan)?1:E.colSpan;FCKTableHandler.DeleteCell(E);}};A[0].colSpan=B;if
(FCKBrowserInfo.IsGecko&&D.childNodes.length==0)
A[0].innerHTML=GECKO_BOGUS;else
A[0].appendChild(D);};FCKTableHandler.SplitCell=function(){var
A=FCKTableHandler.GetSelectedCells();if (A.length!=1) return;var
B=this._CreateTableMap(A[0].parentNode.parentNode);var
C=FCKTableHandler._GetCellIndexSpan(B,A[0].parentNode.rowIndex,A[0]);var
D=this._GetCollumnCells(B,C);for (var i=0;i<D.length;i++){if (D[i]==A[0]){var
E=this.InsertCell(A[0]);if (!isNaN(A[0].rowSpan)&&A[0].rowSpan>1)
E.rowSpan=A[0].rowSpan;}else{if (isNaN(D[i].colSpan)) D[i].colSpan=2;else
D[i].colSpan+=1;}}};FCKTableHandler._GetCellIndexSpan=function(A,B,C){if
(A.length<B+1) return null;var D=A[B];for (var c=0;c<D.length;c++){if (D[c]==C)
return c;};return null;};FCKTableHandler._GetCollumnCells=function(A,B){var
C=new Array();for (var r=0;r<A.length;r++){var D=A[r][B];if
(D&&(C.length==0||C[C.length-1]!=D)) C[C.length]=D;};return
C;};FCKTableHandler._CreateTableMap=function(A){var B=A.rows;var r=-1;var C=new
Array();for (var i=0;i<B.length;i++){r++;if (!C[r]) C[r]=new Array();var
c=-1;for (var j=0;j<B[i].cells.length;j++){var D=B[i].cells[j];c++;while
(C[r][c]) c++;var E=isNaN(D.colSpan)?1:D.colSpan;var
F=isNaN(D.rowSpan)?1:D.rowSpan;for (var G=0;G<F;G++){if (!C[r+G]) C[r+G]=new
Array();for (var H=0;H<E;H++){C[r+G][c+H]=B[i].cells[j];}};c+=E-1;}};return
C;};FCKTableHandler.ClearRow=function(A){var B=A.cells;for (var
i=0;i<B.length;i++){if (FCKBrowserInfo.IsGecko) B[i].innerHTML=GECKO_BOGUS;else
B[i].innerHTML='';}};
+FCKTableHandler.GetSelectedCells=function(){var A=new Array();var
B=FCK.EditorWindow.getSelection();if
(B.rangeCount==1&&B.anchorNode.nodeType==3){var
C=FCKTools.GetElementAscensor(B.anchorNode,'TD,TH');if (C){A[0]=C;return
A;}};for (var i=0;i<B.rangeCount;i++){var D=B.getRangeAt(i);var E;if
(D.startContainer.tagName.Equals('TD','TH')) E=D.startContainer;else
E=D.startContainer.childNodes[D.startOffset];if (E.tagName.Equals('TD','TH'))
A[A.length]=E;};return A;};
+var FCKXml=function(){};FCKXml.prototype.LoadUrl=function(A){var B=this;var
C=FCKTools.CreateXmlObject('XmlHttp');C.open("GET",A,false);C.send(null);if
(C.status==200||C.status==304) this.DOMDocument=C.responseXML;else if
(C.status==0&&C.readyState==4) this.DOMDocument=C.responseXML;else alert('Error
loading "'+A+'"');};FCKXml.prototype.SelectNodes=function(A,B){var C=new
Array();var
D=this.DOMDocument.evaluate(A,B?B:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),XPathResult.ORDERED_NODE_ITERATOR_TYPE,null);if
(D){var E=D.iterateNext();while(E){C[C.length]=E;E=D.iterateNext();}};return
C;};FCKXml.prototype.SelectSingleNode=function(A,B){var
C=this.DOMDocument.evaluate(A,B?B:this.DOMDocument,this.DOMDocument.createNSResolver(this.DOMDocument.documentElement),9,null);if
(C&&C.singleNodeValue) return C.singleNodeValue;else return null;}
+var
FCKStyleDef=function(A,B){this.Name=A;this.Element=B.toUpperCase();this.IsObjectElement=FCKRegexLib.ObjectElements.test(this.Element);this.Attributes=new
Object();};FCKStyleDef.prototype.AddAttribute=function(A,B){this.Attributes[A]=B;};FCKStyleDef.prototype.GetOpenerTag=function(){var
s='<'+this.Element;for (var a in this.Attributes) s+='
'+a+'="'+this.Attributes[a]+'"';return
s+'>';};FCKStyleDef.prototype.GetCloserTag=function(){return
'</'+this.Element+'>';};FCKStyleDef.prototype.RemoveFromSelection=function(){if
(FCKSelection.GetType()=='Control')
this._RemoveMe(FCK.ToolbarSet.CurrentInstance.Selection.GetSelectedElement());else
this._RemoveMe(FCK.ToolbarSet.CurrentInstance.Selection.GetParentElement());}
+FCKStyleDef.prototype.ApplyToSelection=function(){if
(FCKSelection.GetType()=='Text'&&!this.IsObjectElement){var
A=FCK.ToolbarSet.CurrentInstance.EditorWindow.getSelection();var
e=FCK.ToolbarSet.CurrentInstance.EditorDocument.createElement(this.Element);for
(var
i=0;i<A.rangeCount;i++){e.appendChild(A.getRangeAt(i).extractContents());};this._AddAttributes(e);this._RemoveDuplicates(e);var
B=A.getRangeAt(0);B.insertNode(e);}else{var
C=FCK.ToolbarSet.CurrentInstance.Selection.GetSelectedElement();if
(C.tagName==this.Element)
this._AddAttributes(C);}};FCKStyleDef.prototype._AddAttributes=function(A){for
(var a in this.Attributes){switch (a.toLowerCase()){case
'src':A.setAttribute('_fcksavedurl',this.Attributes[a],0);default:A.setAttribute(a,this.Attributes[a],0);}}};FCKStyleDef.prototype._RemoveDuplicates=function(A){for
(var i=0;i<A.childNodes.length;i++){var B=A.childNodes[i];if (B.nodeType!=1)
continue;this._RemoveDuplicates(B);if (this.IsEqual(B))
FCKTools.RemoveOuterTags(B);}};FCKStyleDef.prototype.IsEqual=function(e){if
(e.tagName!=this.Element) return false;for (var a in this.Attributes){if
(e.getAttribute(a)!=this.Attributes[a]) return false;};return
true;};FCKStyleDef.prototype._RemoveMe=function(A){if (!A) return;var
B=A.parentNode;if (A.nodeType==1&&this.IsEqual(A)){if
(this.IsObjectElement){for (var a in this.Attributes)
A.removeAttribute(a,0);return;}else
FCKTools.RemoveOuterTags(A);};this._RemoveMe(B);}
+var FCKStylesLoader=function(){this.Styles=new Object();this.StyleGroups=new
Object();this.Loaded=false;this.HasObjectElements=false;};FCKStylesLoader.prototype.Load=function(A){var
B=new FCKXml();B.LoadUrl(A);var C=B.SelectNodes('Styles/Style');for (var
i=0;i<C.length;i++){var
D=C[i].attributes.getNamedItem('element').value.toUpperCase();var E=new
FCKStyleDef(C[i].attributes.getNamedItem('name').value,D);if
(E.IsObjectElement) this.HasObjectElements=true;var
F=B.SelectNodes('Attribute',C[i]);for (var j=0;j<F.length;j++){var
G=F[j].attributes.getNamedItem('name').value;var
H=F[j].attributes.getNamedItem('value').value;if (G.toLowerCase()=='style'){var
I=document.createElement('SPAN');I.style.cssText=H;H=I.style.cssText;};E.AddAttribute(G,H);};this.Styles[E.Name]=E;var
J=this.StyleGroups[D];if (J==null){this.StyleGroups[D]=new
Array();J=this.StyleGroups[D];};J[J.length]=E;};this.Loaded=true;}
+var
FCKNamedCommand=function(A){this.Name=A;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return
FCK.GetNamedCommandState(this.Name);};
+var
FCKDialogCommand=function(A,B,C,D,E,F,G){this.Name=A;this.Title=B;this.Url=C;this.Width=D;this.Height=E;this.GetStateFunction=F;this.GetStateParam=G;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_'+this.Name,this.Title,this.Url,this.Width,this.Height);};FCKDialogCommand.prototype.GetState=function(){if
(this.GetStateFunction) return this.GetStateFunction(this.GetStateParam);else
return FCK_TRISTATE_OFF;};var
FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert(FCKLang.NotImplemented);};FCKUndefinedCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(A){if
(A==null||A==""){}else
FCK.ExecuteNamedCommand('FontName',A);};FCKFontNameCommand.prototype.GetState=function(){return
FCK.GetNamedCommandValue('FontName');};var
FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(A){if
(typeof(A)=='string') A=parseInt(A);if
(A==null||A==''){FCK.ExecuteNamedCommand('FontSize',3);}else
FCK.ExecuteNamedCommand('FontSize',A);};FCKFontSizeCommand.prototype.GetState=function(){return
FCK.GetNamedCommandValue('FontSize');};var
FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(A){if
(A==null||A=='') FCK.ExecuteNamedCommand('FormatBlock','<P>');else if
(A=='div'&&FCKBrowserInfo.IsGecko)
FCK.ExecuteNamedCommand('FormatBlock','div');else
FCK.ExecuteNamedCommand('FormatBlock','<'+A+'>');};FCKFormatBlockCommand.prototype.GetState=function(){return
FCK.GetNamedCommandValue('FormatBlock');};var
FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var
A=FCK.LinkedField.form;if (typeof(A.onsubmit)=='function'){var
B=A.onsubmit();if (B!=null&&B===false)
return;};A.submit();};FCKSaveCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();FCK.SetHTML('');FCKUndo.Typing=true;};FCKNewPageCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKSourceCommand=function(){this.Name='Source';};FCKSourceCommand.prototype.Execute=function(){if
(FCKConfig.SourcePopup){var A=FCKConfig.ScreenWidth*0.65;var
B=FCKConfig.ScreenHeight*0.65;FCKDialog.OpenDialog('FCKDialog_Source',FCKLang.Source,'dialog/fck_source.html',A,B,null,null,true);}else
FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return
(FCK.EditMode==FCK_EDITMODE_WYSIWYG?FCK_TRISTATE_OFF:FCK_TRISTATE_ON);};var
FCKUndoCommand=function(){this.Name='Undo';};FCKUndoCommand.prototype.Execute=function(){if
(FCKBrowserInfo.IsIE) FCKUndo.Undo();else
FCK.ExecuteNamedCommand('Undo');};FCKUndoCommand.prototype.GetState=function(){if
(FCKBrowserInfo.IsIE) return
(FCKUndo.CheckUndoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return
FCK.GetNamedCommandState('Undo');};var
FCKRedoCommand=function(){this.Name='Redo';};FCKRedoCommand.prototype.Execute=function(){if
(FCKBrowserInfo.IsIE) FCKUndo.Redo();else
FCK.ExecuteNamedCommand('Redo');};FCKRedoCommand.prototype.GetState=function(){if
(FCKBrowserInfo.IsIE) return
(FCKUndo.CheckRedoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return
FCK.GetNamedCommandState('Redo');};var
FCKPageBreakCommand=function(){this.Name='PageBreak';};FCKPageBreakCommand.prototype.Execute=function(){var
e=FCK.EditorDocument.createElement('DIV');e.style.pageBreakAfter='always';e.innerHTML='<span
style="DISPLAY:none"> </span>';var
A=FCKDocumentProcessor_CreateFakeImage('FCK__PageBreak',e);A=FCK.InsertElement(A);};FCKPageBreakCommand.prototype.GetState=function(){return
0;};var
FCKUnlinkCommand=function(){this.Name='Unlink';};FCKUnlinkCommand.prototype.Execute=function(){if
(FCKBrowserInfo.IsGecko){var A=FCK.Selection.MoveToAncestorNode('A');if (A)
FCK.Selection.SelectNode(A);};FCK.ExecuteNamedCommand(this.Name);if
(FCKBrowserInfo.IsGecko)
FCK.Selection.Collapse(true);};FCKUnlinkCommand.prototype.GetState=function(){return
FCK.GetNamedCommandState(this.Name);}
+var
FCKSpellCheckCommand=function(){this.Name='SpellCheck';this.IsEnabled=(FCKConfig.SpellChecker=='SpellerPages');};FCKSpellCheckCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_SpellCheck','Spell
Check','dialog/fck_spellerpages.html',440,480);};FCKSpellCheckCommand.prototype.GetState=function(){return
this.IsEnabled?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;}
+var
FCKTextColorCommand=function(A){this.Name=A=='ForeColor'?'TextColor':'BGColor';this.Type=A;var
B;if (FCKBrowserInfo.IsIE) B=window;else if (FCK.ToolbarSet._IFrame)
B=FCKTools.GetElementWindow(FCK.ToolbarSet._IFrame);else
B=window.parent;this._Panel=new
FCKPanel(B,true);this._Panel.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');this._Panel.MainNode.className='FCK_Panel';this._CreatePanelBody(this._Panel.Document,this._Panel.MainNode);FCKTools.DisableSelection(this._Panel.Document.body);};FCKTextColorCommand.prototype.Execute=function(A,B,C){FCK._ActiveColorPanelType=this.Type;this._Panel.Show(A,B,C);};FCKTextColorCommand.prototype.SetColor=function(A){if
(FCK._ActiveColorPanelType=='ForeColor')
FCK.ExecuteNamedCommand('ForeColor',A);else if (FCKBrowserInfo.IsGeckoLike){if
(FCKBrowserInfo.IsGecko&&!FCKConfig.GeckoUseSPAN)
FCK.EditorDocument.execCommand('useCSS',false,false);FCK.ExecuteNamedCommand('hilitecolor',A);if
(FCKBrowserInfo.IsGecko&&!FCKConfig.GeckoUseSPAN)
FCK.EditorDocument.execCommand('useCSS',false,true);}else
FCK.ExecuteNamedCommand('BackColor',A);delete
FCK._ActiveColorPanelType;};FCKTextColorCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};function FCKTextColorCommand_OnMouseOver() {
this.className='ColorSelected';};function FCKTextColorCommand_OnMouseOut() {
this.className='ColorDeselected';};function
FCKTextColorCommand_OnClick(){this.className='ColorDeselected';this.Command.SetColor('#'+this.Color);this.Command._Panel.Hide();};function
FCKTextColorCommand_AutoOnClick(){this.className='ColorDeselected';this.Command.SetColor('');this.Command._Panel.Hide();};function
FCKTextColorCommand_MoreOnClick(){this.className='ColorDeselected';this.Command._Panel.Hide();FCKDialog.OpenDialog('FCKDialog_Color',FCKLang.DlgColorTitle,'dialog/fck_colorselector.html',400,330,this.Command.SetColor);};FCKTextColorCommand.prototype._CreatePanelBody=function(A,B){function
CreateSelectionDiv(){var
C=A.createElement("DIV");C.className='ColorDeselected';C.onmouseover=FCKTextColorCommand_OnMouseOver;C.onmouseout=FCKTextColorCommand_OnMouseOut;return
C;};var
D=B.appendChild(A.createElement("TABLE"));D.className='ForceBaseFont';D.style.tableLayout='fixed';D.cellPadding=0;D.cellSpacing=0;D.border=0;D.width=150;var
E=D.insertRow(-1).insertCell(-1);E.colSpan=8;var
C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table cellspacing="0"
cellpadding="0" width="100%" border="0">\<tr>\<td><div
class="ColorBoxBorder"><div class="ColorBox" style="background-color:
#000000"></div></div></td>\<td nowrap width="100%" align="center">' +
FCKLang.ColorAutomatic +
'</td>\</tr>\</table>';C.Command=this;C.onclick=FCKTextColorCommand_AutoOnClick;var
G=FCKConfig.FontColors.toString().split(',');var H=0;while (H<G.length){var
I=D.insertRow(-1);for (var
i=0;i<8&&H<G.length;i++,H++){C=I.insertCell(-1).appendChild(CreateSelectionDiv());C.Color=G[H];C.innerHTML='<div
class="ColorBoxBorder"><div class="ColorBox" style="background-color:
#'+G[H]+'"></div></div>';C.Command=this;C.onclick=FCKTextColorCommand_OnClick;}};E=D.insertRow(-1).insertCell(-1);E.colSpan=8;C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table
width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap
align="center">'+FCKLang.ColorMoreColors+'</td></tr></table>';C.Command=this;C.onclick=FCKTextColorCommand_MoreOnClick;}
+var
FCKPastePlainTextCommand=function(){this.Name='PasteText';};FCKPastePlainTextCommand.prototype.Execute=function(){FCK.PasteAsPlainText();};FCKPastePlainTextCommand.prototype.GetState=function(){return
FCK.GetNamedCommandState('Paste');};
+var
FCKPasteWordCommand=function(){this.Name='PasteWord';};FCKPasteWordCommand.prototype.Execute=function(){FCK.PasteFromWord();};FCKPasteWordCommand.prototype.GetState=function(){if
(FCKConfig.ForcePasteAsPlainText) return FCK_TRISTATE_DISABLED;else return
FCK.GetNamedCommandState('Paste');};
+var
FCKTableCommand=function(A){this.Name=A;};FCKTableCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();switch
(this.Name){case 'TableInsertRow':FCKTableHandler.InsertRow();break;case
'TableDeleteRows':FCKTableHandler.DeleteRows();break;case
'TableInsertColumn':FCKTableHandler.InsertColumn();break;case
'TableDeleteColumns':FCKTableHandler.DeleteColumns();break;case
'TableInsertCell':FCKTableHandler.InsertCell();break;case
'TableDeleteCells':FCKTableHandler.DeleteCells();break;case
'TableMergeCells':FCKTableHandler.MergeCells();break;case
'TableSplitCell':FCKTableHandler.SplitCell();break;case
'TableDelete':FCKTableHandler.DeleteTable();break;default:alert(FCKLang.UnknownCommand.replace(/%1/g,this.Name));}};FCKTableCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;}
+var FCKStyleCommand=function(){this.Name='Style';this.StylesLoader=new
FCKStylesLoader();this.StylesLoader.Load(FCKConfig.StylesXmlPath);this.Styles=this.StylesLoader.Styles;};FCKStyleCommand.prototype.Execute=function(A,B){FCKUndo.SaveUndoStep();if
(B.Selected) B.Style.RemoveFromSelection();else
B.Style.ApplyToSelection();FCKUndo.SaveUndoStep();FCK.Focus();FCK.Events.FireEvent("OnSelectionChange");};FCKStyleCommand.prototype.GetState=function(){if
(!FCK.EditorDocument) return FCK_TRISTATE_DISABLED;var
A=FCK.EditorDocument.selection;if (FCKSelection.GetType()=='Control'){var
e=FCKSelection.GetSelectedElement();if (e) return
this.StylesLoader.StyleGroups[e.tagName]?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;};return
FCK_TRISTATE_OFF;};FCKStyleCommand.prototype.GetActiveStyles=function(){var
A=new Array();if (FCKSelection.GetType()=='Control')
this._CheckStyle(FCKSelection.GetSelectedElement(),A,false);else
this._CheckStyle(FCKSelection.GetParentElement(),A,true);return
A;};FCKStyleCommand.prototype._CheckStyle=function(A,B,C){if (!A) return;if
(A.nodeType==1){var D=this.StylesLoader.StyleGroups[A.tagName];if (D){for (var
i=0;i<D.length;i++){if (D[i].IsEqual(A)) B[B.length]=D[i];}}};if (C)
this._CheckStyle(A.parentNode,B,C);}
+var
FCKFitWindow=function(){this.Name='FitWindow';};FCKFitWindow.prototype.Execute=function(){var
A=window.frameElement;var B=A.style;var C=parent;var
D=C.document.documentElement;var E=C.document.body;var F=E.style;if
(!this.IsMaximized){if(FCKBrowserInfo.IsIE)
C.attachEvent('onresize',FCKFitWindow_Resize);else
C.addEventListener('resize',FCKFitWindow_Resize,true);this._ScrollPos=FCKTools.GetScrollPosition(C);var
G=A;while(G=G.parentNode){if (G.nodeType==1)
G._fckSavedStyles=FCKTools.SaveStyles(G);};if
(FCKBrowserInfo.IsIE){this.documentElementOverflow=D.style.overflow;D.style.overflow='hidden';F.overflow='hidden';}else{F.overflow='hidden';F.width='0px';F.height='0px';};this._EditorFrameStyles=FCKTools.SaveStyles(A);var
H=FCKTools.GetViewPaneSize(C);B.position="absolute";B.zIndex=FCKConfig.FloatingPanelsZIndex-1;B.left="0px";B.top="0px";B.width=H.Width+"px";B.height=H.Height+"px";if
(!FCKBrowserInfo.IsIE){B.borderRight=B.borderBottom="9999px solid
white";B.backgroundColor="white";};C.scrollTo(0,0);this.IsMaximized=true;}else{if(FCKBrowserInfo.IsIE)
C.detachEvent("onresize",FCKFitWindow_Resize);else
C.removeEventListener("resize",FCKFitWindow_Resize,true);var
G=A;while(G=G.parentNode){if
(G._fckSavedStyles){FCKTools.RestoreStyles(G,G._fckSavedStyles);G._fckSavedStyles=null;}};if
(FCKBrowserInfo.IsIE)
D.style.overflow=this.documentElementOverflow;FCKTools.RestoreStyles(A,this._EditorFrameStyles);C.scrollTo(this._ScrollPos.X,this._ScrollPos.Y);this.IsMaximized=false;};FCKToolbarItems.GetItem('FitWindow').RefreshState();FCK.EditingArea.MakeEditable();FCK.Focus();};FCKFitWindow.prototype.GetState=function(){if
(FCKConfig.ToolbarLocation!='In') return FCK_TRISTATE_DISABLED;else return
(this.IsMaximized?FCK_TRISTATE_ON:FCK_TRISTATE_OFF);};function
FCKFitWindow_Resize(){var oViewPaneSize=FCKTools.GetViewPaneSize(parent);var
eEditorFrameStyle=window.frameElement.style;eEditorFrameStyle.width=oViewPaneSize.Width+'px';eEditorFrameStyle.height=oViewPaneSize.Height+'px';};
+var FCKCommands=FCK.Commands=new Object();FCKCommands.LoadedCommands=new
Object();FCKCommands.RegisterCommand=function(A,B){this.LoadedCommands[A]=B;};FCKCommands.GetCommand=function(A){var
B=FCKCommands.LoadedCommands[A];if (B) return B;switch (A){case
'DocProps':B=new
FCKDialogCommand('DocProps',FCKLang.DocProps,'dialog/fck_docprops.html',400,390,FCKCommands.GetFullPageState);break;case
'Templates':B=new
FCKDialogCommand('Templates',FCKLang.DlgTemplatesTitle,'dialog/fck_template.html',380,450);break;case
'Link':B=new
FCKDialogCommand('Link',FCKLang.DlgLnkWindowTitle,'dialog/fck_link.html',400,330,FCK.GetNamedCommandState,'CreateLink');break;case
'Unlink':B=new FCKUnlinkCommand();break;case 'Anchor':B=new
FCKDialogCommand('Anchor',FCKLang.DlgAnchorTitle,'dialog/fck_anchor.html',370,170);break;case
'BulletedList':B=new
FCKDialogCommand('BulletedList',FCKLang.BulletedListProp,'dialog/fck_listprop.html',370,170);break;case
'NumberedList':B=new
FCKDialogCommand('NumberedList',FCKLang.NumberedListProp,'dialog/fck_listprop.html',370,170);break;case
'About':B=new
FCKDialogCommand('About',FCKLang.About,'dialog/fck_about.html',400,330);break;case
'Find':B=new
FCKDialogCommand('Find',FCKLang.DlgFindTitle,'dialog/fck_find.html',340,170);break;case
'Replace':B=new
FCKDialogCommand('Replace',FCKLang.DlgReplaceTitle,'dialog/fck_replace.html',340,200);break;case
'Image':B=new
FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);break;case
'Flash':B=new
FCKDialogCommand('Flash',FCKLang.DlgFlashTitle,'dialog/fck_flash.html',450,400);break;case
'SpecialChar':B=new
FCKDialogCommand('SpecialChar',FCKLang.DlgSpecialCharTitle,'dialog/fck_specialchar.html',400,320);break;case
'Smiley':B=new
FCKDialogCommand('Smiley',FCKLang.DlgSmileyTitle,'dialog/fck_smiley.html',FCKConfig.SmileyWindowWidth,FCKConfig.SmileyWindowHeight);break;case
'Table':B=new
FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html',450,250);break;case
'TableProp':B=new
FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html?Parent',400,250);break;case
'TableCellProp':B=new
FCKDialogCommand('TableCell',FCKLang.DlgCellTitle,'dialog/fck_tablecell.html',500,250);break;case
'UniversalKey':B=new
FCKDialogCommand('UniversalKey',FCKLang.UniversalKeyboard,'dialog/fck_universalkey.html',415,300);break;case
'Style':B=new FCKStyleCommand();break;case 'FontName':B=new
FCKFontNameCommand();break;case 'FontSize':B=new
FCKFontSizeCommand();break;case 'FontFormat':B=new
FCKFormatBlockCommand();break;case 'Source':B=new FCKSourceCommand();break;case
'Preview':B=new FCKPreviewCommand();break;case 'Save':B=new
FCKSaveCommand();break;case 'NewPage':B=new FCKNewPageCommand();break;case
'PageBreak':B=new FCKPageBreakCommand();break;case 'TextColor':B=new
FCKTextColorCommand('ForeColor');break;case 'BGColor':B=new
FCKTextColorCommand('BackColor');break;case 'PasteText':B=new
FCKPastePlainTextCommand();break;case 'PasteWord':B=new
FCKPasteWordCommand();break;case 'TableInsertRow':B=new
FCKTableCommand('TableInsertRow');break;case 'TableDeleteRows':B=new
FCKTableCommand('TableDeleteRows');break;case 'TableInsertColumn':B=new
FCKTableCommand('TableInsertColumn');break;case 'TableDeleteColumns':B=new
FCKTableCommand('TableDeleteColumns');break;case 'TableInsertCell':B=new
FCKTableCommand('TableInsertCell');break;case 'TableDeleteCells':B=new
FCKTableCommand('TableDeleteCells');break;case 'TableMergeCells':B=new
FCKTableCommand('TableMergeCells');break;case 'TableSplitCell':B=new
FCKTableCommand('TableSplitCell');break;case 'TableDelete':B=new
FCKTableCommand('TableDelete');break;case 'Form':B=new
FCKDialogCommand('Form',FCKLang.Form,'dialog/fck_form.html',380,230);break;case
'Checkbox':B=new
FCKDialogCommand('Checkbox',FCKLang.Checkbox,'dialog/fck_checkbox.html',380,230);break;case
'Radio':B=new
FCKDialogCommand('Radio',FCKLang.RadioButton,'dialog/fck_radiobutton.html',380,230);break;case
'TextField':B=new
FCKDialogCommand('TextField',FCKLang.TextField,'dialog/fck_textfield.html',380,230);break;case
'Textarea':B=new
FCKDialogCommand('Textarea',FCKLang.Textarea,'dialog/fck_textarea.html',380,230);break;case
'HiddenField':B=new
FCKDialogCommand('HiddenField',FCKLang.HiddenField,'dialog/fck_hiddenfield.html',380,230);break;case
'Button':B=new
FCKDialogCommand('Button',FCKLang.Button,'dialog/fck_button.html',380,230);break;case
'Select':B=new
FCKDialogCommand('Select',FCKLang.SelectionField,'dialog/fck_select.html',400,380);break;case
'ImageButton':B=new
FCKDialogCommand('ImageButton',FCKLang.ImageButton,'dialog/fck_image.html?ImageButton',450,400);break;case
'SpellCheck':B=new FCKSpellCheckCommand();break;case 'FitWindow':B=new
FCKFitWindow();break;case 'Undo':B=new FCKUndoCommand();break;case 'Redo':B=new
FCKRedoCommand();break;case 'Undefined':B=new
FCKUndefinedCommand();break;default:if (FCKRegexLib.NamedCommands.test(A))
B=new
FCKNamedCommand(A);else{alert(FCKLang.UnknownCommand.replace(/%1/g,A));return
null;}};FCKCommands.LoadedCommands[A]=B;return
B;};FCKCommands.GetFullPageState=function(){return
FCKConfig.FullPage?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;};
+var
FCKPanel=function(A){this.IsRTL=(FCKLang.Dir=='rtl');this.IsContextMenu=false;this._LockCounter=0;this._Window=A||window;var
B;if
(FCKBrowserInfo.IsIE){this._Popup=this._Window.createPopup();B=this.Document=this._Popup.document;}else{var
C=this._IFrame=this._Window.document.createElement('iframe');C.src='javascript:void(0)';C.allowTransparency=true;C.frameBorder='0';C.scrolling='no';C.style.position='absolute';C.style.zIndex=FCKConfig.FloatingPanelsZIndex;C.width=C.height=0;if
(this._Window==window.parent)
window.frameElement.parentNode.insertBefore(C,window.frameElement);else
this._Window.document.body.appendChild(C);var
D=C.contentWindow;B=this.Document=D.document;B.open();B.write('<html><head></head><body
style="margin:0px;padding:0px;"><\/body><\/html>');B.close();FCKTools.AddEventListenerEx(D,'focus',FCKPanel_Window_OnFocus,this);FCKTools.AddEventListenerEx(D,'blur',FCKPanel_Window_OnBlur,this);};B.dir=FCKLang.Dir;B.oncontextmenu=FCKTools.CancelEvent;this.MainNode=B.body.appendChild(B.createElement('DIV'));this.MainNode.style.cssFloat=this.IsRTL?'right':'left';if
(FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKPanel_Cleanup);};FCKPanel.prototype.AppendStyleSheet=function(A){FCKTools.AppendStyleSheet(this.Document,A);};FCKPanel.prototype.Preload=function(x,y,A){if
(this._Popup)
this._Popup.show(x,y,0,0,A);};FCKPanel.prototype.Show=function(x,y,A,B,C){if
(this._Popup){this._Popup.show(x,y,0,0,A);this.MainNode.style.width=B?B+'px':'';this.MainNode.style.height=C?C+'px':'';var
D=this.MainNode.offsetWidth;if (this.IsRTL){if (this.IsContextMenu)
x=x-D+1;else if (A)
x=(x*-1)+A.offsetWidth-D;};this._Popup.show(x,y,D,this.MainNode.offsetHeight,A);if
(this.OnHide){if (this._Timer)
CheckPopupOnHide.call(this,true);this._Timer=FCKTools.SetInterval(CheckPopupOnHide,100,this);}}else{FCKFocusManager.Lock();if
(this.ParentPanel)
this.ParentPanel.Lock();this.MainNode.style.width=B?B+'px':'';this.MainNode.style.height=C?C+'px':'';var
D=this.MainNode.offsetWidth;if (!B) this._IFrame.width=1;if (!C)
this._IFrame.height=1;D=this.MainNode.offsetWidth;var
F=FCKTools.GetElementPosition((A.nodeType==9?A.body:A),this._Window);if
(this.IsRTL&&!this.IsContextMenu) x=(x*-1);x+=F.X;y+=F.Y;if (this.IsRTL){if
(this.IsContextMenu) x=x-D+1;else if (A) x=x+A.offsetWidth-D;}else{var
G=FCKTools.GetViewPaneSize(this._Window);var
H=FCKTools.GetScrollPosition(this._Window);var I=G.Height+H.Y;var
J=G.Width+H.X;if ((x+D)>J) x-=x+D-J;if ((y+this.MainNode.offsetHeight)>I)
y-=y+this.MainNode.offsetHeight-I;};if (x<0)
x=0;this._IFrame.style.left=x+'px';this._IFrame.style.top=y+'px';var K=D;var
L=this.MainNode.offsetHeight;this._IFrame.width=K;this._IFrame.height=L;this._IFrame.contentWindow.focus();};this._IsOpened=true;FCKTools.RunFunction(this.OnShow,this);};FCKPanel.prototype.Hide=function(A){if
(this._Popup) this._Popup.hide();else{if (!this._IsOpened)
return;FCKFocusManager.Unlock();this._IFrame.width=this._IFrame.height=0;this._IsOpened=false;if
(this.ParentPanel) this.ParentPanel.Unlock();if (!A)
FCKTools.RunFunction(this.OnHide,this);}};FCKPanel.prototype.CheckIsOpened=function(){if
(this._Popup) return this._Popup.isOpen;else return
this._IsOpened;};FCKPanel.prototype.CreateChildPanel=function(){var
A=this._Popup?FCKTools.GetParentWindow(this.Document):this._Window;var B=new
FCKPanel(A,true);B.ParentPanel=this;return
B;};FCKPanel.prototype.Lock=function(){this._LockCounter++;};FCKPanel.prototype.Unlock=function(){if
(--this._LockCounter==0&&!this.HasFocus) this.Hide();};/* Events */ function
FCKPanel_Window_OnFocus(e,panel){panel.HasFocus=true;};function
FCKPanel_Window_OnBlur(e,panel){panel.HasFocus=false;if (panel._LockCounter==0)
FCKTools.RunFunction(panel.Hide,panel);};function
CheckPopupOnHide(forceHide){if
(forceHide||!this._Popup.isOpen){window.clearInterval(this._Timer);this._Timer=null;FCKTools.RunFunction(this.OnHide,this);}};function
FCKPanel_Cleanup(){this._Popup=null;this._Window=null;this.Document=null;this.MainNode=null;}
+var FCKIcon=function(A){var B=A?typeof(A):'undefined';switch (B){case
'number':this.Path=FCKConfig.SkinPath+'fck_strip.gif';this.Size=16;this.Position=A;break;case
'undefined':this.Path=FCK_SPACER_PATH;break;case
'string':this.Path=A;break;default:this.Path=A[0];this.Size=A[1];this.Position=A[2];}};FCKIcon.prototype.CreateIconElement=function(A){var
B;if (this.Position){var C='-'+((this.Position-1)*this.Size)+'px';if
(FCKBrowserInfo.IsIE){B=A.createElement('DIV');var
D=B.appendChild(A.createElement('IMG'));D.src=this.Path;D.style.top=C;}else{B=A.createElement('IMG');B.src=FCK_SPACER_PATH;B.style.backgroundPosition='0px
'+C;B.style.backgroundImage='url('+this.Path+')';}}else{B=A.createElement('IMG');B.src=this.Path?this.Path:FCK_SPACER_PATH;};B.className='TB_Button_Image';return
B;}
+var
FCKToolbarButtonUI=function(A,B,C,D,E,F){this.Name=A;this.Label=B||A;this.Tooltip=C||this.Label;this.Style=E||FCK_TOOLBARITEM_ONLYICON;this.State=F||FCK_TRISTATE_OFF;this.Icon=new
FCKIcon(D);if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKToolbarButtonUI_Cleanup);};FCKToolbarButtonUI.prototype._CreatePaddingElement=function(A){var
B=A.createElement('IMG');B.className='TB_Button_Padding';B.src=FCK_SPACER_PATH;return
B;};FCKToolbarButtonUI.prototype.Create=function(A){var B=this.MainElement;if
(B){FCKToolbarButtonUI_Cleanup.call(this);if (B.parentNode)
B.parentNode.removeChild(B);B=this.MainElement=null;};var
C=FCKTools.GetElementDocument(A);B=this.MainElement=C.createElement('DIV');B._FCKButton=this;B.title=this.Tooltip;if
(FCKBrowserInfo.IsGecko)
B.onmousedown=FCKTools.CancelEvent;this.ChangeState(this.State,true);if
(this.Style==FCK_TOOLBARITEM_ONLYICON&&!this.ShowArrow){B.appendChild(this.Icon.CreateIconElement(C));}else{var
D=B.appendChild(C.createElement('TABLE'));D.cellPadding=0;D.cellSpacing=0;var
E=D.insertRow(-1);var F=E.insertCell(-1);if
(this.Style==FCK_TOOLBARITEM_ONLYICON||this.Style==FCK_TOOLBARITEM_ICONTEXT)
F.appendChild(this.Icon.CreateIconElement(C));else
F.appendChild(this._CreatePaddingElement(C));if
(this.Style==FCK_TOOLBARITEM_ONLYTEXT||this.Style==FCK_TOOLBARITEM_ICONTEXT){F=E.insertCell(-1);F.className='TB_Button_Text';F.noWrap=true;F.appendChild(C.createTextNode(this.Label));};if
(this.ShowArrow){if
(this.Style!=FCK_TOOLBARITEM_ONLYICON){E.insertCell(-1).appendChild(this._CreatePaddingElement(C));};F=E.insertCell(-1);var
G=F.appendChild(C.createElement('IMG'));G.src=FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif';G.width=5;G.height=3;};F=E.insertCell(-1);F.appendChild(this._CreatePaddingElement(C));};A.appendChild(B);};FCKToolbarButtonUI.prototype.ChangeState=function(A,B){if
(!B&&this.State==A) return;var e=this.MainElement;switch (parseInt(A)){case
FCK_TRISTATE_OFF:e.className='TB_Button_Off';e.onmouseover=FCKToolbarButton_OnMouseOverOff;e.onmouseout=FCKToolbarButton_OnMouseOutOff;e.onclick=FCKToolbarButton_OnClick;break;case
FCK_TRISTATE_ON:e.className='TB_Button_On';e.onmouseover=FCKToolbarButton_OnMouseOverOn;e.onmouseout=FCKToolbarButton_OnMouseOutOn;e.onclick=FCKToolbarButton_OnClick;break;case
FCK_TRISTATE_DISABLED:e.className='TB_Button_Disabled';e.onmouseover=null;e.onmouseout=null;e.onclick=null;bEnableEvents=false;break;};this.State=A;};function
FCKToolbarButtonUI_Cleanup(){if
(this.MainElement){this.MainElement._FCKButton=null;this.MainElement=null;}};function
FCKToolbarButton_OnMouseOverOn(){this.className='TB_Button_On_Over';};function
FCKToolbarButton_OnMouseOutOn(){this.className='TB_Button_On';};function
FCKToolbarButton_OnMouseOverOff(){this.className='TB_Button_Off_Over';};function
FCKToolbarButton_OnMouseOutOff(){this.className='TB_Button_Off';};function
FCKToolbarButton_OnClick(e){if (this._FCKButton.OnClick)
this._FCKButton.OnClick(this._FCKButton);};
+var
FCKToolbarButton=function(A,B,C,D,E,F,G){this.CommandName=A;this.Label=B;this.Tooltip=C;this.Style=D;this.SourceView=E?true:false;this.ContextSensitive=F?true:false;if
(G==null)
this.IconPath=FCKConfig.SkinPath+'toolbar/'+A.toLowerCase()+'.gif';else if
(typeof(G)=='number')
this.IconPath=[FCKConfig.SkinPath+'fck_strip.gif',16,G];};FCKToolbarButton.prototype.Create=function(A){this._UIButton=new
FCKToolbarButtonUI(this.CommandName,this.Label,this.Tooltip,this.IconPath,this.Style);this._UIButton.OnClick=this.Click;this._UIButton._ToolbarButton=this;this._UIButton.Create(A);};FCKToolbarButton.prototype.RefreshState=function(){var
A=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).GetState();if
(A==this._UIButton.State)
return;this._UIButton.ChangeState(A);};FCKToolbarButton.prototype.Click=function(){var
A=this._ToolbarButton||this;FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(A.CommandName).Execute();};FCKToolbarButton.prototype.Enable=function(){this.RefreshState();};FCKToolbarButton.prototype.Disable=function(){this._UIButton.ChangeState(FCK_TRISTATE_DISABLED);}
+var
FCKSpecialCombo=function(A,B,C,D,E){this.FieldWidth=B||100;this.PanelWidth=C||150;this.PanelMaxHeight=D||150;this.Label=' ';this.Caption=A;this.Tooltip=A;this.Style=FCK_TOOLBARITEM_ICONTEXT;this.Enabled=true;this.Items=new
Object();this._Panel=new
FCKPanel(E||window,true);this._Panel.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');this._PanelBox=this._Panel.MainNode.appendChild(this._Panel.Document.createElement('DIV'));this._PanelBox.className='SC_Panel';this._PanelBox.style.width=this.PanelWidth+'px';this._PanelBox.innerHTML='<table
cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT:
fixed"><tr><td
nowrap></td></tr></table>';this._ItemsHolderEl=this._PanelBox.getElementsByTagName('TD')[0];if
(FCK.IECleanup) FCK.IECleanup.AddItem(this,FCKSpecialCombo_Cleanup);};function
FCKSpecialCombo_ItemOnMouseOver(){this.className+=' SC_ItemOver';};function
FCKSpecialCombo_ItemOnMouseOut(){this.className=this.originalClass;};function
FCKSpecialCombo_ItemOnClick(){this.className=this.originalClass;this.FCKSpecialCombo._Panel.Hide();this.FCKSpecialCombo.SetLabel(this.FCKItemLabel);if
(typeof(this.FCKSpecialCombo.OnSelect)=='function')
this.FCKSpecialCombo.OnSelect(this.FCKItemID,this);};FCKSpecialCombo.prototype.AddItem=function(A,B,C,D){var
E=this._ItemsHolderEl.appendChild(this._Panel.Document.createElement('DIV'));E.className=E.originalClass='SC_Item';E.innerHTML=B;E.FCKItemID=A;E.FCKItemLabel=C||A;E.FCKSpecialCombo=this;E.Selected=false;if
(FCKBrowserInfo.IsIE) E.style.width='100%';if (D)
E.style.backgroundColor=D;E.onmouseover=FCKSpecialCombo_ItemOnMouseOver;E.onmouseout=FCKSpecialCombo_ItemOnMouseOut;E.onclick=FCKSpecialCombo_ItemOnClick;this.Items[A.toString().toLowerCase()]=E;return
E;};FCKSpecialCombo.prototype.SelectItem=function(A){A=A?A.toString().toLowerCase():'';var
B=this.Items[A];if
(B){B.className=B.originalClass='SC_ItemSelected';B.Selected=true;}};FCKSpecialCombo.prototype.SelectItemByLabel=function(A,B){for
(var C in this.Items){var D=this.Items[C];if
(D.FCKItemLabel==A){D.className=D.originalClass='SC_ItemSelected';D.Selected=true;if
(B) this.SetLabel(A);}}};FCKSpecialCombo.prototype.DeselectAll=function(A){for
(var i in
this.Items){this.Items[i].className=this.Items[i].originalClass='SC_Item';this.Items[i].Selected=false;};if
(A)
this.SetLabel('');};FCKSpecialCombo.prototype.SetLabelById=function(A){A=A?A.toString().toLowerCase():'';var
B=this.Items[A];this.SetLabel(B?B.FCKItemLabel:'');};FCKSpecialCombo.prototype.SetLabel=function(A){this.Label=A.length==0?' ':A;if
(this._LabelEl)
this._LabelEl.innerHTML=this.Label;};FCKSpecialCombo.prototype.SetEnabled=function(A){this.Enabled=A;this._OuterTable.className=A?'':'SC_FieldDisabled';};FCKSpecialCombo.prototype.Create=function(A){var
B=FCKTools.GetElementDocument(A);var
C=this._OuterTable=A.appendChild(B.createElement('TABLE'));C.cellPadding=0;C.cellSpacing=0;C.insertRow(-1);var
D;var E;switch (this.Style){case
FCK_TOOLBARITEM_ONLYICON:D='TB_ButtonType_Icon';E=false;break;case
FCK_TOOLBARITEM_ONLYTEXT:D='TB_ButtonType_Text';E=false;break;case
FCK_TOOLBARITEM_ICONTEXT:E=true;break;};if
(this.Caption&&this.Caption.length>0&&E){var
F=C.rows[0].insertCell(-1);F.innerHTML=this.Caption;F.className='SC_FieldCaption';};var
G=FCKTools.AppendElement(C.rows[0].insertCell(-1),'div');if
(E){G.className='SC_Field';G.style.width=this.FieldWidth+'px';G.innerHTML='<table
width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT:
fixed;"><tbody><tr><td class="SC_FieldLabel"><label> </label></td><td
class="SC_FieldButton"> </td></tr></tbody></table>';this._LabelEl=G.getElementsByTagName('label')[0];this._LabelEl.innerHTML=this.Label;}else{G.className='TB_Button_Off';G.innerHTML='<table
title="'+this.Tooltip+'" class="'+D+'" cellspacing="0" cellpadding="0"
border="0">'+'<tr>'+'<td><img class="TB_Button_Padding"
src="'+FCK_SPACER_PATH+'" /></td>'+'<td
class="TB_Text">'+this.Caption+'</td>'+'<td><img class="TB_Button_Padding"
src="'+FCK_SPACER_PATH+'" /></td>'+'<td class="TB_ButtonArrow"><img
src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5"
height="3"></td>'+'<td><img class="TB_Button_Padding" src="'+FCK_SPACER_PATH+'"
/></td>'+'</tr>'+'</table>';};G.SpecialCombo=this;G.onmouseover=FCKSpecialCombo_OnMouseOver;G.onmouseout=FCKSpecialCombo_OnMouseOut;G.onclick=FCKSpecialCombo_OnClick;FCKTools.DisableSelection(this._Panel.Document.body);};function
FCKSpecialCombo_Cleanup(){this._LabelEl=null;this._OuterTable=null;this._ItemsHolderEl=null;this._PanelBox=null;if
(this.Items){for (var key in this.Items) this.Items[key]=null;}};function
FCKSpecialCombo_OnMouseOver(){if (this.SpecialCombo.Enabled){switch
(this.SpecialCombo.Style){case
FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_On_Over';break;case
FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_On_Over';break;case
FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field
SC_FieldOver';break;}}};function FCKSpecialCombo_OnMouseOut(){switch
(this.SpecialCombo.Style){case
FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_Off';break;case
FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_Off';break;case
FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field';break;}};function
FCKSpecialCombo_OnClick(e){var oSpecialCombo=this.SpecialCombo;if
(oSpecialCombo.Enabled){var oPanel=oSpecialCombo._Panel;var
oPanelBox=oSpecialCombo._PanelBox;var
oItemsHolder=oSpecialCombo._ItemsHolderEl;var
iMaxHeight=oSpecialCombo.PanelMaxHeight;if (oSpecialCombo.OnBeforeClick)
oSpecialCombo.OnBeforeClick(oSpecialCombo);if (FCKBrowserInfo.IsIE)
oPanel.Preload(0,this.offsetHeight,this);if
(oItemsHolder.offsetHeight>iMaxHeight)
oPanelBox.style.height=iMaxHeight+'px';else
oPanelBox.style.height='';oPanel.Show(0,this.offsetHeight,this);}};
+var
FCKToolbarSpecialCombo=function(){this.SourceView=false;this.ContextSensitive=true;};function
FCKToolbarSpecialCombo_OnSelect(itemId,item){FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).Execute(itemId,item);};FCKToolbarSpecialCombo.prototype.Create=function(A){this._Combo=new
FCKSpecialCombo(this.GetLabel(),this.FieldWidth,this.PanelWidth,this.PanelMaxHeight,FCKBrowserInfo.IsIE?window:FCKTools.GetElementWindow(A).parent);this._Combo.Tooltip=this.Tooltip;this._Combo.Style=this.Style;this.CreateItems(this._Combo);this._Combo.Create(A);this._Combo.CommandName=this.CommandName;this._Combo.OnSelect=FCKToolbarSpecialCombo_OnSelect;};function
FCKToolbarSpecialCombo_RefreshActiveItems(combo,value){combo.DeselectAll();combo.SelectItem(value);combo.SetLabelById(value);};FCKToolbarSpecialCombo.prototype.RefreshState=function(){var
A;var
B=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).GetState();if
(B!=FCK_TRISTATE_DISABLED){A=FCK_TRISTATE_ON;if (this.RefreshActiveItems)
this.RefreshActiveItems(this._Combo,B);else{if
(this._LastValue!=B){this._LastValue=B;FCKToolbarSpecialCombo_RefreshActiveItems(this._Combo,B);}}}else
A=FCK_TRISTATE_DISABLED;if (A==this.State) return;if
(A==FCK_TRISTATE_DISABLED){this._Combo.DeselectAll();this._Combo.SetLabel('');};this.State=A;this._Combo.SetEnabled(A!=FCK_TRISTATE_DISABLED);};FCKToolbarSpecialCombo.prototype.Enable=function(){this.RefreshState();};FCKToolbarSpecialCombo.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this._Combo.DeselectAll();this._Combo.SetLabel('');this._Combo.SetEnabled(false);}
+var
FCKToolbarFontsCombo=function(A,B){this.CommandName='FontName';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontsCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarFontsCombo.prototype.GetLabel=function(){return
FCKLang.Font;};FCKToolbarFontsCombo.prototype.CreateItems=function(A){var
B=FCKConfig.FontNames.split(';');for (var i=0;i<B.length;i++)
this._Combo.AddItem(B[i],'<font face="'+B[i]+'" style="font-size:
12px">'+B[i]+'</font>');}
+var
FCKToolbarFontSizeCombo=function(A,B){this.CommandName='FontSize';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontSizeCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarFontSizeCombo.prototype.GetLabel=function(){return
FCKLang.FontSize;};FCKToolbarFontSizeCombo.prototype.CreateItems=function(A){A.FieldWidth=70;var
B=FCKConfig.FontSizes.split(';');for (var i=0;i<B.length;i++){var
C=B[i].split('/');this._Combo.AddItem(C[0],'<font
size="'+C[0]+'">'+C[1]+'</font>',C[1]);}}
+var
FCKToolbarFontFormatCombo=function(A,B){this.CommandName='FontFormat';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;this.NormalLabel='Normal';this.PanelWidth=190;};FCKToolbarFontFormatCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarFontFormatCombo.prototype.GetLabel=function(){return
FCKLang.FontFormat;};FCKToolbarFontFormatCombo.prototype.CreateItems=function(A){var
B=FCKLang['FontFormats'].split(';');var
C={p:B[0],pre:B[1],address:B[2],h1:B[3],h2:B[4],h3:B[5],h4:B[6],h5:B[7],h6:B[8],div:B[9]};var
D=FCKConfig.FontFormats.split(';');for (var i=0;i<D.length;i++){var E=D[i];var
F=C[E];if (E=='p') this.NormalLabel=F;this._Combo.AddItem(E,'<div
class="BaseFont"><'+E+'>'+F+'</'+E+'></div>',F);}};if
(FCKBrowserInfo.IsIE){FCKToolbarFontFormatCombo.prototype.RefreshActiveItems=function(A,B){if
(B==this.NormalLabel){if (A.Label!=' ') A.DeselectAll(true);}else{if
(this._LastValue==B) return;A.SelectItemByLabel(B,true);};this._LastValue=B;}}
+var
FCKToolbarStyleCombo=function(A,B){this.CommandName='Style';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarStyleCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarStyleCombo.prototype.GetLabel=function(){return
FCKLang.Style;};FCKToolbarStyleCombo.prototype.CreateItems=function(A){var
B=A._Panel.Document;var C=FCKConfig.EditorAreaCSS;for (var i=0;i<C.length;i++)
FCKTools.AppendStyleSheet(B,C[i]);B.body.className+=' ForceBaseFont';if
(!FCKBrowserInfo.IsGecko) A.OnBeforeClick=this.RefreshVisibleItems;var
D=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).Styles;for
(var s in D){var E=D[s];var F;if (E.IsObjectElement) F=A.AddItem(s,s);else
F=A.AddItem(s,E.GetOpenerTag()+s+E.GetCloserTag());F.Style=E;}};FCKToolbarStyleCombo.prototype.RefreshActiveItems=function(A){A.DeselectAll();var
B=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).GetActiveStyles();if
(B.length>0){for (var i=0;i<B.length;i++)
A.SelectItem(B[i].Name);A.SetLabelById(B[0].Name);}else
A.SetLabel('');};FCKToolbarStyleCombo.prototype.RefreshVisibleItems=function(A){if
(FCKSelection.GetType()=='Control') var
B=FCKSelection.GetSelectedElement().tagName;for (var i in A.Items){var
C=A.Items[i];if ((B&&C.Style.Element==B)||(!B&&!C.Style.IsObjectElement))
C.style.display='';else C.style.display='none';}}
+var FCKToolbarPanelButton=function(A,B,C,D,E){this.CommandName=A;var F;if
(E==null) F=FCKConfig.SkinPath+'toolbar/'+A.toLowerCase()+'.gif';else if
(typeof(E)=='number') F=[FCKConfig.SkinPath+'fck_strip.gif',16,E];var
G=this._UIButton=new
FCKToolbarButtonUI(A,B,C,F,D);G._FCKToolbarPanelButton=this;G.ShowArrow=true;G.OnClick=FCKToolbarPanelButton_OnButtonClick;};FCKToolbarPanelButton.prototype.TypeName='FCKToolbarPanelButton';FCKToolbarPanelButton.prototype.Create=function(A){A.className+='Menu';this._UIButton.Create(A);var
B=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName)._Panel;B._FCKToolbarPanelButton=this;var
C=B.Document.body.appendChild(B.Document.createElement('div'));C.style.position='absolute';C.style.top='0px';var
D=this.LineImg=C.appendChild(B.Document.createElement('IMG'));D.className='TB_ConnectionLine';D.src=FCK_SPACER_PATH;B.OnHide=FCKToolbarPanelButton_OnPanelHide;};function
FCKToolbarPanelButton_OnButtonClick(toolbarButton){var
oButton=this._FCKToolbarPanelButton;var
e=oButton._UIButton.MainElement;oButton._UIButton.ChangeState(FCK_TRISTATE_ON);oButton.LineImg.style.width=(e.offsetWidth-2)+'px';FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(oButton.CommandName).Execute(0,e.offsetHeight-1,e);};function
FCKToolbarPanelButton_OnPanelHide(){var
oMenuButton=this._FCKToolbarPanelButton;oMenuButton._UIButton.ChangeState(FCK_TRISTATE_OFF);};FCKToolbarPanelButton.prototype.RefreshState=FCKToolbarButton.prototype.RefreshState;FCKToolbarPanelButton.prototype.Enable=FCKToolbarButton.prototype.Enable;FCKToolbarPanelButton.prototype.Disable=FCKToolbarButton.prototype.Disable;
+var FCKToolbarItems=new Object();FCKToolbarItems.LoadedItems=new
Object();FCKToolbarItems.RegisterItem=function(A,B){this.LoadedItems[A]=B;};FCKToolbarItems.GetItem=function(A){var
B=FCKToolbarItems.LoadedItems[A];if (B) return B;switch (A){case
'Source':B=new
FCKToolbarButton('Source',FCKLang.Source,null,FCK_TOOLBARITEM_ICONTEXT,true,true,1);break;case
'DocProps':B=new
FCKToolbarButton('DocProps',FCKLang.DocProps,null,null,null,null,2);break;case
'Save':B=new
FCKToolbarButton('Save',FCKLang.Save,null,null,true,null,3);break;case
'NewPage':B=new
FCKToolbarButton('NewPage',FCKLang.NewPage,null,null,true,null,4);break;case
'Preview':B=new
FCKToolbarButton('Preview',FCKLang.Preview,null,null,true,null,5);break;case
'Templates':B=new
FCKToolbarButton('Templates',FCKLang.Templates,null,null,null,null,6);break;case
'About':B=new
FCKToolbarButton('About',FCKLang.About,null,null,true,null,47);break;case
'Cut':B=new
FCKToolbarButton('Cut',FCKLang.Cut,null,null,false,true,7);break;case
'Copy':B=new
FCKToolbarButton('Copy',FCKLang.Copy,null,null,false,true,8);break;case
'Paste':B=new
FCKToolbarButton('Paste',FCKLang.Paste,null,null,false,true,9);break;case
'PasteText':B=new
FCKToolbarButton('PasteText',FCKLang.PasteText,null,null,false,true,10);break;case
'PasteWord':B=new
FCKToolbarButton('PasteWord',FCKLang.PasteWord,null,null,false,true,11);break;case
'Print':B=new
FCKToolbarButton('Print',FCKLang.Print,null,null,false,true,12);break;case
'SpellCheck':B=new
FCKToolbarButton('SpellCheck',FCKLang.SpellCheck,null,null,null,null,13);break;case
'Undo':B=new
FCKToolbarButton('Undo',FCKLang.Undo,null,null,false,true,14);break;case
'Redo':B=new
FCKToolbarButton('Redo',FCKLang.Redo,null,null,false,true,15);break;case
'SelectAll':B=new
FCKToolbarButton('SelectAll',FCKLang.SelectAll,null,null,null,null,18);break;case
'RemoveFormat':B=new
FCKToolbarButton('RemoveFormat',FCKLang.RemoveFormat,null,null,false,true,19);break;case
'FitWindow':B=new
FCKToolbarButton('FitWindow',FCKLang.FitWindow,null,null,true,true,66);break;case
'Bold':B=new
FCKToolbarButton('Bold',FCKLang.Bold,null,null,false,true,20);break;case
'Italic':B=new
FCKToolbarButton('Italic',FCKLang.Italic,null,null,false,true,21);break;case
'Underline':B=new
FCKToolbarButton('Underline',FCKLang.Underline,null,null,false,true,22);break;case
'StrikeThrough':B=new
FCKToolbarButton('StrikeThrough',FCKLang.StrikeThrough,null,null,false,true,23);break;case
'Subscript':B=new
FCKToolbarButton('Subscript',FCKLang.Subscript,null,null,false,true,24);break;case
'Superscript':B=new
FCKToolbarButton('Superscript',FCKLang.Superscript,null,null,false,true,25);break;case
'OrderedList':B=new
FCKToolbarButton('InsertOrderedList',FCKLang.NumberedListLbl,FCKLang.NumberedList,null,false,true,26);break;case
'UnorderedList':B=new
FCKToolbarButton('InsertUnorderedList',FCKLang.BulletedListLbl,FCKLang.BulletedList,null,false,true,27);break;case
'Outdent':B=new
FCKToolbarButton('Outdent',FCKLang.DecreaseIndent,null,null,false,true,28);break;case
'Indent':B=new
FCKToolbarButton('Indent',FCKLang.IncreaseIndent,null,null,false,true,29);break;case
'Link':B=new
FCKToolbarButton('Link',FCKLang.InsertLinkLbl,FCKLang.InsertLink,null,false,true,34);break;case
'Unlink':B=new
FCKToolbarButton('Unlink',FCKLang.RemoveLink,null,null,false,true,35);break;case
'Anchor':B=new
FCKToolbarButton('Anchor',FCKLang.Anchor,null,null,null,null,36);break;case
'Image':B=new
FCKToolbarButton('Image',FCKLang.InsertImageLbl,FCKLang.InsertImage,null,false,true,37);break;case
'Flash':B=new
FCKToolbarButton('Flash',FCKLang.InsertFlashLbl,FCKLang.InsertFlash,null,false,true,38);break;case
'Table':B=new
FCKToolbarButton('Table',FCKLang.InsertTableLbl,FCKLang.InsertTable,null,false,true,39);break;case
'SpecialChar':B=new
FCKToolbarButton('SpecialChar',FCKLang.InsertSpecialCharLbl,FCKLang.InsertSpecialChar,null,false,true,42);break;case
'Smiley':B=new
FCKToolbarButton('Smiley',FCKLang.InsertSmileyLbl,FCKLang.InsertSmiley,null,false,true,41);break;case
'PageBreak':B=new
FCKToolbarButton('PageBreak',FCKLang.PageBreakLbl,FCKLang.PageBreak,null,false,true,43);break;case
'UniversalKey':B=new
FCKToolbarButton('UniversalKey',FCKLang.UniversalKeyboard,null,null,false,true,44);break;case
'Rule':B=new
FCKToolbarButton('InsertHorizontalRule',FCKLang.InsertLineLbl,FCKLang.InsertLine,null,false,true,40);break;case
'JustifyLeft':B=new
FCKToolbarButton('JustifyLeft',FCKLang.LeftJustify,null,null,false,true,30);break;case
'JustifyCenter':B=new
FCKToolbarButton('JustifyCenter',FCKLang.CenterJustify,null,null,false,true,31);break;case
'JustifyRight':B=new
FCKToolbarButton('JustifyRight',FCKLang.RightJustify,null,null,false,true,32);break;case
'JustifyFull':B=new
FCKToolbarButton('JustifyFull',FCKLang.BlockJustify,null,null,false,true,33);break;case
'Style':B=new FCKToolbarStyleCombo();break;case 'FontName':B=new
FCKToolbarFontsCombo();break;case 'FontSize':B=new
FCKToolbarFontSizeCombo();break;case 'FontFormat':B=new
FCKToolbarFontFormatCombo();break;case 'TextColor':B=new
FCKToolbarPanelButton('TextColor',FCKLang.TextColor,null,null,45);break;case
'BGColor':B=new
FCKToolbarPanelButton('BGColor',FCKLang.BGColor,null,null,46);break;case
'Find':B=new
FCKToolbarButton('Find',FCKLang.Find,null,null,null,null,16);break;case
'Replace':B=new
FCKToolbarButton('Replace',FCKLang.Replace,null,null,null,null,17);break;case
'Form':B=new
FCKToolbarButton('Form',FCKLang.Form,null,null,null,null,48);break;case
'Checkbox':B=new
FCKToolbarButton('Checkbox',FCKLang.Checkbox,null,null,null,null,49);break;case
'Radio':B=new
FCKToolbarButton('Radio',FCKLang.RadioButton,null,null,null,null,50);break;case
'TextField':B=new
FCKToolbarButton('TextField',FCKLang.TextField,null,null,null,null,51);break;case
'Textarea':B=new
FCKToolbarButton('Textarea',FCKLang.Textarea,null,null,null,null,52);break;case
'HiddenField':B=new
FCKToolbarButton('HiddenField',FCKLang.HiddenField,null,null,null,null,56);break;case
'Button':B=new
FCKToolbarButton('Button',FCKLang.Button,null,null,null,null,54);break;case
'Select':B=new
FCKToolbarButton('Select',FCKLang.SelectionField,null,null,null,null,53);break;case
'ImageButton':B=new
FCKToolbarButton('ImageButton',FCKLang.ImageButton,null,null,null,null,55);break;default:alert(FCKLang.UnknownToolbarItem.replace(/%1/g,A));return
null;};FCKToolbarItems.LoadedItems[A]=B;return B;}
+var FCKToolbar=function(){this.Items=new Array();if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKToolbar_Cleanup);};FCKToolbar.prototype.AddItem=function(A){return
this.Items[this.Items.length]=A;};FCKToolbar.prototype.AddButton=function(A,B,C,D,E,F){if
(typeof(D)=='number') D=[this.DefaultIconsStrip,this.DefaultIconSize,D];var
G=new
FCKToolbarButtonUI(A,B,C,D,E,F);G._FCKToolbar=this;G.OnClick=FCKToolbar_OnItemClick;return
this.AddItem(G);};function FCKToolbar_OnItemClick(item){var
oToolbar=item._FCKToolbar;if (oToolbar.OnItemClick)
oToolbar.OnItemClick(oToolbar,item);};FCKToolbar.prototype.AddSeparator=function(){this.AddItem(new
FCKToolbarSeparator());};FCKToolbar.prototype.Create=function(A){if
(this.MainElement){if (this.MainElement.parentNode)
this.MainElement.parentNode.removeChild(this.MainElement);this.MainElement=null;};var
B=FCKTools.GetElementDocument(A);var
e=this.MainElement=B.createElement('table');e.className='TB_Toolbar';e.style.styleFloat=e.style.cssFloat=(FCKLang.Dir=='ltr'?'left':'right');e.dir=FCKLang.Dir;e.cellPadding=0;e.cellSpacing=0;this.RowElement=e.insertRow(-1);var
C;if
(!this.HideStart){C=this.RowElement.insertCell(-1);C.appendChild(B.createElement('div')).className='TB_Start';};for
(var
i=0;i<this.Items.length;i++){this.Items[i].Create(this.RowElement.insertCell(-1));};if
(!this.HideEnd){C=this.RowElement.insertCell(-1);C.appendChild(B.createElement('div')).className='TB_End';};A.appendChild(e);};function
FCKToolbar_Cleanup(){this.MainElement=null;this.RowElement=null;};var
FCKToolbarSeparator=function(){};FCKToolbarSeparator.prototype.Create=function(A){FCKTools.AppendElement(A,'div').className='TB_Separator';}
+var
FCKToolbarBreak=function(){};FCKToolbarBreak.prototype.Create=function(A){var
B=A.ownerDocument.createElement('div');B.style.clear=B.style.cssFloat=FCKLang.Dir=='rtl'?'right':'left';A.appendChild(B);}
+function FCKToolbarSet_Create(overhideLocation){var oToolbarSet;var
sLocation=overhideLocation||FCKConfig.ToolbarLocation;switch (sLocation){case
'In':document.getElementById('xToolbarRow').style.display='';oToolbarSet=new
FCKToolbarSet(document);break;default:FCK.Events.AttachEvent('OnBlur',FCK_OnBlur);FCK.Events.AttachEvent('OnFocus',FCK_OnFocus);var
eToolbarTarget;var oOutMatch=sLocation.match(/^Out:(.+)\((\w+)\)$/);if
(oOutMatch){eToolbarTarget=eval('parent.'+oOutMatch[1]).document.getElementById(oOutMatch[2]);}else{oOutMatch=sLocation.match(/^Out:(\w+)$/);if
(oOutMatch) eToolbarTarget=parent.document.getElementById(oOutMatch[1]);};if
(!eToolbarTarget){alert('Invalid value for "ToolbarLocation"');return
this._Init('In');};if (oToolbarSet=eToolbarTarget.__FCKToolbarSet) break;var
eToolbarIFrame=FCKTools.GetElementDocument(eToolbarTarget).createElement('iframe');eToolbarIFrame.frameBorder=0;eToolbarIFrame.width='100%';eToolbarIFrame.height='10';eToolbarTarget.appendChild(eToolbarIFrame);eToolbarIFrame.unselectable='on';var
eTargetDocument=eToolbarIFrame.contentWindow.document;eTargetDocument.open();eTargetDocument.write('<html><head><script
type="text/javascript"> window.onload = window.onresize = function() {
window.frameElement.height = document.body.scrollHeight ; }
</script></head><body style="overflow:
hidden">'+document.getElementById('xToolbarSpace').innerHTML+'</body></html>');eTargetDocument.close();eTargetDocument.oncontextmenu=FCKTools.CancelEvent;FCKTools.AppendStyleSheet(eTargetDocument,FCKConfig.SkinPath+'fck_editor.css');oToolbarSet=eToolbarTarget.__FCKToolbarSet=new
FCKToolbarSet(eTargetDocument);oToolbarSet._IFrame=eToolbarIFrame;if
(FCK.IECleanup)
FCK.IECleanup.AddItem(eToolbarTarget,FCKToolbarSet_Target_Cleanup);};oToolbarSet.CurrentInstance=FCK;FCK.AttachToOnSelectionChange(oToolbarSet.RefreshItemsState);return
oToolbarSet;};function FCK_OnBlur(editorInstance){var
eToolbarSet=editorInstance.ToolbarSet;if
(eToolbarSet.CurrentInstance==editorInstance) eToolbarSet.Disable();};function
FCK_OnFocus(editorInstance){var oToolbarset=editorInstance.ToolbarSet;var
oInstance=editorInstance||FCK;oToolbarset.CurrentInstance.FocusManager.RemoveWindow(oToolbarset._IFrame.contentWindow);oToolbarset.CurrentInstance=oInstance;oInstance.FocusManager.AddWindow(oToolbarset._IFrame.contentWindow,true);oToolbarset.Enable();};function
FCKToolbarSet_Cleanup(){this._TargetElement=null;this._IFrame=null;};function
FCKToolbarSet_Target_Cleanup(){this.__FCKToolbarSet=null;};var
FCKToolbarSet=function(A){this._Document=A;this._TargetElement=A.getElementById('xToolbar');var
B=A.getElementById('xExpandHandle');var
C=A.getElementById('xCollapseHandle');B.title=FCKLang.ToolbarExpand;B.onclick=FCKToolbarSet_Expand_OnClick;C.title=FCKLang.ToolbarCollapse;C.onclick=FCKToolbarSet_Collapse_OnClick;if
(!FCKConfig.ToolbarCanCollapse||FCKConfig.ToolbarStartExpanded)
this.Expand();else
this.Collapse();C.style.display=FCKConfig.ToolbarCanCollapse?'':'none';if
(FCKConfig.ToolbarCanCollapse) C.style.display='';else
A.getElementById('xTBLeftBorder').style.display='';this.Toolbars=new
Array();this.IsLoaded=false;if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKToolbarSet_Cleanup);};function
FCKToolbarSet_Expand_OnClick(){FCK.ToolbarSet.Expand();};function
FCKToolbarSet_Collapse_OnClick(){FCK.ToolbarSet.Collapse();};FCKToolbarSet.prototype.Expand=function(){this._ChangeVisibility(false);};FCKToolbarSet.prototype.Collapse=function(){this._ChangeVisibility(true);};FCKToolbarSet.prototype._ChangeVisibility=function(A){this._Document.getElementById('xCollapsed').style.display=A?'':'none';this._Document.getElementById('xExpanded').style.display=A?'none':'';if
(FCKBrowserInfo.IsGecko){FCKTools.RunFunction(window.onresize);}};FCKToolbarSet.prototype.Load=function(A){this.Name=A;this.Items=new
Array();this.ItemsWysiwygOnly=new Array();this.ItemsContextSensitive=new
Array();this._TargetElement.innerHTML='';var B=FCKConfig.ToolbarSets[A];if
(!B){alert(FCKLang.UnknownToolbarSet.replace(/%1/g,A));return;};this.Toolbars=new
Array();for (var x=0;x<B.length;x++){var C=B[x];var D;if
(typeof(C)=='string'){if (C=='/') D=new FCKToolbarBreak();}else{D=new
FCKToolbar();for (var j=0;j<C.length;j++){var E=C[j];if (E=='-')
D.AddSeparator();else{var F=FCKToolbarItems.GetItem(E);if
(F){D.AddItem(F);this.Items.push(F);if (!F.SourceView)
this.ItemsWysiwygOnly.push(F);if (F.ContextSensitive)
this.ItemsContextSensitive.push(F);}}}};D.Create(this._TargetElement);this.Toolbars[this.Toolbars.length]=D;};FCKTools.DisableSelection(this._Document.getElementById('xCollapseHandle').parentNode);if
(FCK.Status!=FCK_STATUS_COMPLETE)
FCK.Events.AttachEvent('OnStatusChange',this.RefreshModeState);else
this.RefreshModeState();this.IsLoaded=true;this.IsEnabled=true;FCKTools.RunFunction(this.OnLoad);};FCKToolbarSet.prototype.Enable=function(){if
(this.IsEnabled) return;this.IsEnabled=true;var A=this.Items;for (var
i=0;i<A.length;i++)
A[i].RefreshState();};FCKToolbarSet.prototype.Disable=function(){if
(!this.IsEnabled) return;this.IsEnabled=false;var A=this.Items;for (var
i=0;i<A.length;i++)
A[i].Disable();};FCKToolbarSet.prototype.RefreshModeState=function(A){if
(FCK.Status!=FCK_STATUS_COMPLETE) return;var B=A?A.ToolbarSet:this;var
C=B.ItemsWysiwygOnly;if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){for (var
i=0;i<C.length;i++)
C[i].Enable();B.RefreshItemsState(A);}else{B.RefreshItemsState(A);for (var
i=0;i<C.length;i++)
C[i].Disable();}};FCKToolbarSet.prototype.RefreshItemsState=function(A){var
B=(A?A.ToolbarSet:this).ItemsContextSensitive;for (var i=0;i<B.length;i++)
B[i].RefreshState();};
+var FCKDialog=new Object();FCKDialog.OpenDialog=function(A,B,C,D,E,F,G,H){var
I=new Object();I.Title=B;I.Page=C;I.Editor=window;I.CustomValue=F;var
J=FCKConfig.BasePath+'fckdialog.html';this.Show(I,A,J,D,E,G,H);};
+FCKDialog.Show=function(A,B,C,D,E,F,G){var H=(FCKConfig.ScreenHeight-E)/2;var
I=(FCKConfig.ScreenWidth-D)/2;var
J="location=no,menubar=no,toolbar=no,dependent=yes,dialog=yes,minimizable=no,modal=yes,alwaysRaised=yes"+",resizable="+(G?'yes':'no')+",width="+D+",height="+E+",top="+H+",left="+I;if
(!F) F=window;FCKFocusManager.Lock();var
K=F.open('','FCKeditorDialog_'+B,J,true);if
(!K){alert(FCKLang.DialogBlocked);FCKFocusManager.Unlock();return;};K.moveTo(I,H);K.resizeTo(D,E);K.focus();K.location.href=C;K.dialogArguments=A;F.FCKLastDialogInfo=A;this.Window=K;try{window.top.captureEvents(Event.CLICK|Event.MOUSEDOWN|Event.MOUSEUP|Event.FOCUS);window.top.parent.addEventListener('mousedown',this.CheckFocus,true);window.top.parent.addEventListener('mouseup',this.CheckFocus,true);window.top.parent.addEventListener('click',this.CheckFocus,true);window.top.parent.addEventListener('focus',this.CheckFocus,true);}catch
(e){}};FCKDialog.CheckFocus=function(){if (typeof(FCKDialog)!="object") return
false;if (FCKDialog.Window&&!FCKDialog.Window.closed)
FCKDialog.Window.focus();else{try{window.top.releaseEvents(Event.CLICK|Event.MOUSEDOWN|Event.MOUSEUP|Event.FOCUS);window.top.parent.removeEventListener('onmousedown',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('mouseup',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('click',FCKDialog.CheckFocus,true);window.top.parent.removeEventListener('onfocus',FCKDialog.CheckFocus,true);}catch
(e){}};return false;};
+var
FCKMenuItem=function(A,B,C,D,E){this.Name=B;this.Label=C||B;this.IsDisabled=E;this.Icon=new
FCKIcon(D);this.SubMenu=new
FCKMenuBlockPanel();this.SubMenu.Parent=A;this.SubMenu.OnClick=FCKTools.CreateEventListener(FCKMenuItem_SubMenu_OnClick,this);if
(FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKMenuItem_Cleanup);};FCKMenuItem.prototype.AddItem=function(A,B,C,D){this.HasSubMenu=true;return
this.SubMenu.AddItem(A,B,C,D);};FCKMenuItem.prototype.AddSeparator=function(){this.SubMenu.AddSeparator();};FCKMenuItem.prototype.Create=function(A){var
B=this.HasSubMenu;var C=FCKTools.GetElementDocument(A);var
r=this.MainElement=A.insertRow(-1);r.className=this.IsDisabled?'MN_Item_Disabled':'MN_Item';if
(!this.IsDisabled){FCKTools.AddEventListenerEx(r,'mouseover',FCKMenuItem_OnMouseOver,[this]);FCKTools.AddEventListenerEx(r,'click',FCKMenuItem_OnClick,[this]);if
(!B)
FCKTools.AddEventListenerEx(r,'mouseout',FCKMenuItem_OnMouseOut,[this]);};var
D=r.insertCell(-1);D.className='MN_Icon';D.appendChild(this.Icon.CreateIconElement(C));D=r.insertCell(-1);D.className='MN_Label';D.noWrap=true;D.appendChild(C.createTextNode(this.Label));D=r.insertCell(-1);if
(B){D.className='MN_Arrow';var
E=D.appendChild(C.createElement('IMG'));E.src=FCK_IMAGES_PATH+'arrow_'+FCKLang.Dir+'.gif';E.width=4;E.height=7;this.SubMenu.Create();this.SubMenu.Panel.OnHide=FCKTools.CreateEventListener(FCKMenuItem_SubMenu_OnHide,this);}};FCKMenuItem.prototype.Activate=function(){this.MainElement.className='MN_Item_Over';if
(this.HasSubMenu){this.SubMenu.Show(this.MainElement.offsetWidth+2,-2,this.MainElement);};FCKTools.RunFunction(this.OnActivate,this);};FCKMenuItem.prototype.Deactivate=function(){this.MainElement.className='MN_Item';if
(this.HasSubMenu) this.SubMenu.Hide();};/* Events */ function
FCKMenuItem_SubMenu_OnClick(clickedItem,listeningItem){FCKTools.RunFunction(listeningItem.OnClick,listeningItem,[clickedItem]);};function
FCKMenuItem_SubMenu_OnHide(menuItem){menuItem.Deactivate();};function
FCKMenuItem_OnClick(ev,menuItem){if (menuItem.HasSubMenu)
menuItem.Activate();else{menuItem.Deactivate();FCKTools.RunFunction(menuItem.OnClick,menuItem,[menuItem]);}};function
FCKMenuItem_OnMouseOver(ev,menuItem){menuItem.Activate();};function
FCKMenuItem_OnMouseOut(ev,menuItem){menuItem.Deactivate();};function
FCKMenuItem_Cleanup(){this.MainElement=null;}
+var FCKMenuBlock=function(){this._Items=new
Array();};FCKMenuBlock.prototype.AddItem=function(A,B,C,D){var E=new
FCKMenuItem(this,A,B,C,D);E.OnClick=FCKTools.CreateEventListener(FCKMenuBlock_Item_OnClick,this);E.OnActivate=FCKTools.CreateEventListener(FCKMenuBlock_Item_OnActivate,this);this._Items.push(E);return
E;};FCKMenuBlock.prototype.AddSeparator=function(){this._Items.push(new
FCKMenuSeparator());};FCKMenuBlock.prototype.RemoveAllItems=function(){this._Items=new
Array();var A=this._ItemsTable;if (A){while (A.rows.length>0)
A.deleteRow(0);}};FCKMenuBlock.prototype.Create=function(A){if
(!this._ItemsTable){if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKMenuBlock_Cleanup);this._Window=FCKTools.GetElementWindow(A);var
B=FCKTools.GetElementDocument(A);var
C=A.appendChild(B.createElement('table'));C.cellPadding=0;C.cellSpacing=0;FCKTools.DisableSelection(C);var
D=C.insertRow(-1).insertCell(-1);D.className='MN_Menu';var
E=this._ItemsTable=D.appendChild(B.createElement('table'));E.cellPadding=0;E.cellSpacing=0;};for
(var i=0;i<this._Items.length;i++)
this._Items[i].Create(this._ItemsTable);};/* Events */ function
FCKMenuBlock_Item_OnClick(clickedItem,menuBlock){FCKTools.RunFunction(menuBlock.OnClick,menuBlock,[clickedItem]);};function
FCKMenuBlock_Item_OnActivate(menuBlock){var
oActiveItem=menuBlock._ActiveItem;if (oActiveItem&&oActiveItem!=this){if
(!FCKBrowserInfo.IsIE&&oActiveItem.HasSubMenu&&!this.HasSubMenu)
menuBlock._Window.focus();oActiveItem.Deactivate();};menuBlock._ActiveItem=this;};function
FCKMenuBlock_Cleanup(){this._Window=null;this._ItemsTable=null;};var
FCKMenuSeparator=function(){};FCKMenuSeparator.prototype.Create=function(A){var
B=FCKTools.GetElementDocument(A);var r=A.insertRow(-1);var
C=r.insertCell(-1);C.className='MN_Separator
MN_Icon';C=r.insertCell(-1);C.className='MN_Separator';C.appendChild(B.createElement('DIV')).className='MN_Separator_Line';C=r.insertCell(-1);C.className='MN_Separator';C.appendChild(B.createElement('DIV')).className='MN_Separator_Line';}
+var
FCKMenuBlockPanel=function(){FCKMenuBlock.call(this);};FCKMenuBlockPanel.prototype=new
FCKMenuBlock();FCKMenuBlockPanel.prototype.Create=function(){var
A=this.Panel=(this.Parent&&this.Parent.Panel?this.Parent.Panel.CreateChildPanel():new
FCKPanel());A.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');FCKMenuBlock.prototype.Create.call(this,A.MainNode);};FCKMenuBlockPanel.prototype.Show=function(x,y,A){if
(!this.Panel.CheckIsOpened())
this.Panel.Show(x,y,A);};FCKMenuBlockPanel.prototype.Hide=function(){if
(this.Panel.CheckIsOpened()) this.Panel.Hide();}
+var FCKContextMenu=function(A,B,C){var D=this._Panel=new
FCKPanel(A,true);D.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');D.IsContextMenu=true;var
E=this._MenuBlock=new
FCKMenuBlock();E.Panel=D;E.OnClick=FCKTools.CreateEventListener(FCKContextMenu_MenuBlock_OnClick,this);this._Redraw=true;this.SetMouseClickWindow(B||A);};FCKContextMenu.prototype.SetMouseClickWindow=function(A){if
(!FCKBrowserInfo.IsIE){this._Document=A.document;this._Document.addEventListener('contextmenu',FCKContextMenu_Document_OnContextMenu,false);}};FCKContextMenu.prototype.AddItem=function(A,B,C,D){var
E=this._MenuBlock.AddItem(A,B,C,D);this._Redraw=true;return
E;};FCKContextMenu.prototype.AddSeparator=function(){this._MenuBlock.AddSeparator();this._Redraw=true;};FCKContextMenu.prototype.RemoveAllItems=function(){this._MenuBlock.RemoveAllItems();this._Redraw=true;};FCKContextMenu.prototype.AttachToElement=function(A){if
(FCKBrowserInfo.IsIE)
FCKTools.AddEventListenerEx(A,'contextmenu',FCKContextMenu_AttachedElement_OnContextMenu,this);else
A._FCKContextMenu=this;};function FCKContextMenu_Document_OnContextMenu(e){var
el=e.target;while (el){if
(el._FCKContextMenu){FCKTools.CancelEvent(e);FCKContextMenu_AttachedElement_OnContextMenu(e,el._FCKContextMenu,el);};el=el.parentNode;}};function
FCKContextMenu_AttachedElement_OnContextMenu(ev,fckContextMenu,el){var
eTarget=el||this;if (fckContextMenu.OnBeforeOpen)
fckContextMenu.OnBeforeOpen.call(fckContextMenu,eTarget);if
(fckContextMenu._Redraw){fckContextMenu._MenuBlock.Create(fckContextMenu._Panel.MainNode);fckContextMenu._Redraw=false;};fckContextMenu._Panel.Show(ev.pageX||ev.screenX,ev.pageY||ev.screenY,ev.currentTarget||null);return
false;};function
FCKContextMenu_MenuBlock_OnClick(menuItem,contextMenu){contextMenu._Panel.Hide();FCKTools.RunFunction(contextMenu.OnItemClick,contextMenu,menuItem);}
+FCK.ContextMenu=new Object();FCK.ContextMenu.Listeners=new
Array();FCK.ContextMenu.RegisterListener=function(A){if (A)
this.Listeners.push(A);};function FCK_ContextMenu_Init(){var
oInnerContextMenu=FCK.ContextMenu._InnerContextMenu=new
FCKContextMenu(FCKBrowserInfo.IsIE?window:window.parent,FCK.EditorWindow,FCKLang.Dir);oInnerContextMenu.OnBeforeOpen=FCK_ContextMenu_OnBeforeOpen;oInnerContextMenu.OnItemClick=FCK_ContextMenu_OnItemClick;var
oMenu=FCK.ContextMenu;for (var i=0;i<FCKConfig.ContextMenu.length;i++)
oMenu.RegisterListener(FCK_ContextMenu_GetListener(FCKConfig.ContextMenu[i]));};function
FCK_ContextMenu_GetListener(listenerName){switch (listenerName){case
'Generic':return
{AddItems:function(A,B,C){A.AddItem('Cut',FCKLang.Cut,7,FCKCommands.GetCommand('Cut').GetState()==FCK_TRISTATE_DISABLED);A.AddItem('Copy',FCKLang.Copy,8,FCKCommands.GetCommand('Copy').GetState()==FCK_TRISTATE_DISABLED);A.AddItem('Paste',FCKLang.Paste,9,FCKCommands.GetCommand('Paste').GetState()==FCK_TRISTATE_DISABLED);}};case
'Table':return {AddItems:function(A,B,C){var D=(C=='TABLE');var
E=(!D&&FCKSelection.HasAncestorNode('TABLE'));if (E){A.AddSeparator();var
F=A.AddItem('Cell',FCKLang.CellCM);F.AddItem('TableInsertCell',FCKLang.InsertCell,58);F.AddItem('TableDeleteCells',FCKLang.DeleteCells,59);F.AddItem('TableMergeCells',FCKLang.MergeCells,60);F.AddItem('TableSplitCell',FCKLang.SplitCell,61);F.AddSeparator();F.AddItem('TableCellProp',FCKLang.CellProperties,57);A.AddSeparator();F=A.AddItem('Row',FCKLang.RowCM);F.AddItem('TableInsertRow',FCKLang.InsertRow,62);F.AddItem('TableDeleteRows',FCKLang.DeleteRows,63);A.AddSeparator();F=A.AddItem('Column',FCKLang.ColumnCM);F.AddItem('TableInsertColumn',FCKLang.InsertColumn,64);F.AddItem('TableDeleteColumns',FCKLang.DeleteColumns,65);};if
(D||E){A.AddSeparator();A.AddItem('TableDelete',FCKLang.TableDelete);A.AddItem('TableProp',FCKLang.TableProperties,39);}}};case
'Link':return {AddItems:function(A,B,C){if
(FCK.GetNamedCommandState('Unlink')!=FCK_TRISTATE_DISABLED){A.AddSeparator();A.AddItem('Link',FCKLang.EditLink,34);A.AddItem('Unlink',FCKLang.RemoveLink,35);}}};case
'Image':return {AddItems:function(A,B,C){if
(C=='IMG'&&!B.getAttribute('_fckfakelement')){A.AddSeparator();A.AddItem('Image',FCKLang.ImageProperties,37);}}};case
'Anchor':return {AddItems:function(A,B,C){if
(C=='IMG'&&B.getAttribute('_fckanchor')){A.AddSeparator();A.AddItem('Anchor',FCKLang.AnchorProp,36);}}};case
'Flash':return {AddItems:function(A,B,C){if
(C=='IMG'&&B.getAttribute('_fckflash')){A.AddSeparator();A.AddItem('Flash',FCKLang.FlashProperties,38);}}};case
'Form':return {AddItems:function(A,B,C){if
(FCKSelection.HasAncestorNode('FORM')){A.AddSeparator();A.AddItem('Form',FCKLang.FormProp,48);}}};case
'Checkbox':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='checkbox'){A.AddSeparator();A.AddItem('Checkbox',FCKLang.CheckboxProp,49);}}};case
'Radio':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='radio'){A.AddSeparator();A.AddItem('Radio',FCKLang.RadioButtonProp,50);}}};case
'TextField':return {AddItems:function(A,B,C){if
(C=='INPUT'&&(B.type=='text'||B.type=='password')){A.AddSeparator();A.AddItem('TextField',FCKLang.TextFieldProp,51);}}};case
'HiddenField':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='hidden'){A.AddSeparator();A.AddItem('HiddenField',FCKLang.HiddenFieldProp,56);}}};case
'ImageButton':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='image'){A.AddSeparator();A.AddItem('ImageButton',FCKLang.ImageButtonProp,55);}}};case
'Button':return {AddItems:function(A,B,C){if
(C=='INPUT'&&(B.type=='button'||B.type=='submit'||B.type=='reset')){A.AddSeparator();A.AddItem('Button',FCKLang.ButtonProp,54);}}};case
'Select':return {AddItems:function(A,B,C){if
(C=='SELECT'){A.AddSeparator();A.AddItem('Select',FCKLang.SelectionFieldProp,53);}}};case
'Textarea':return {AddItems:function(A,B,C){if
(C=='TEXTAREA'){A.AddSeparator();A.AddItem('Textarea',FCKLang.TextareaProp,52);}}};case
'BulletedList':return {AddItems:function(A,B,C){if
(FCKSelection.HasAncestorNode('UL')){A.AddSeparator();A.AddItem('BulletedList',FCKLang.BulletedListProp,27);}}};case
'NumberedList':return {AddItems:function(A,B,C){if
(FCKSelection.HasAncestorNode('OL')){A.AddSeparator();A.AddItem('NumberedList',FCKLang.NumberedListProp,26);}}};}};function
FCK_ContextMenu_OnBeforeOpen(){FCK.Events.FireEvent("OnSelectionChange");var
oTag,sTagName;if (oTag=FCKSelection.GetSelectedElement())
sTagName=oTag.tagName;var
oMenu=FCK.ContextMenu._InnerContextMenu;oMenu.RemoveAllItems();var
aListeners=FCK.ContextMenu.Listeners;for (var i=0;i<aListeners.length;i++)
aListeners[i].AddItems(oMenu,oTag,sTagName);};function
FCK_ContextMenu_OnItemClick(item){FCK.Focus();FCKCommands.GetCommand(item.Name).Execute();}
+var
FCKPlugin=function(A,B,C){this.Name=A;this.BasePath=C?C:FCKConfig.PluginsPath;this.Path=this.BasePath+A+'/';if
(!B||B.length==0) this.AvailableLangs=new Array();else
this.AvailableLangs=B.split(',');};FCKPlugin.prototype.Load=function(){if
(this.AvailableLangs.length>0){var A;if
(this.AvailableLangs.indexOf(FCKLanguageManager.ActiveLanguage.Code)>=0)
A=FCKLanguageManager.ActiveLanguage.Code;else
A=this.AvailableLangs[0];LoadScript(this.Path+'lang/'+A+'.js');};LoadScript(this.Path+'fckplugin.js');}
+var FCKPlugins=FCK.Plugins=new
Object();FCKPlugins.ItemsCount=0;FCKPlugins.Items=new
Object();FCKPlugins.Load=function(){var A=FCKPlugins.Items;for (var
i=0;i<FCKConfig.Plugins.Items.length;i++){var B=FCKConfig.Plugins.Items[i];var
C=A[B[0]]=new FCKPlugin(B[0],B[1],B[2]);FCKPlugins.ItemsCount++;};for (var s in
A) A[s].Load();FCKPlugins.Load=null;}
Index: js/fckeditorcode_ie.js
===================================================================
RCS file: js/fckeditorcode_ie.js
diff -N js/fckeditorcode_ie.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ js/fckeditorcode_ie.js 25 Sep 2006 09:30:40 -0000 1.1
@@ -0,0 +1,81 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * This file has been compacted for best loading performance.
+ */
+var FCK_STATUS_NOTLOADED=window.parent.FCK_STATUS_NOTLOADED=0;var
FCK_STATUS_ACTIVE=window.parent.FCK_STATUS_ACTIVE=1;var
FCK_STATUS_COMPLETE=window.parent.FCK_STATUS_COMPLETE=2;var
FCK_TRISTATE_OFF=window.parent.FCK_TRISTATE_OFF=0;var
FCK_TRISTATE_ON=window.parent.FCK_TRISTATE_ON=1;var
FCK_TRISTATE_DISABLED=window.parent.FCK_TRISTATE_DISABLED=-1;var
FCK_UNKNOWN=window.parent.FCK_UNKNOWN=-9;var
FCK_TOOLBARITEM_ONLYICON=window.parent.FCK_TOOLBARITEM_ONLYICON=0;var
FCK_TOOLBARITEM_ONLYTEXT=window.parent.FCK_TOOLBARITEM_ONLYTEXT=1;var
FCK_TOOLBARITEM_ICONTEXT=window.parent.FCK_TOOLBARITEM_ICONTEXT=2;var
FCK_EDITMODE_WYSIWYG=window.parent.FCK_EDITMODE_WYSIWYG=0;var
FCK_EDITMODE_SOURCE=window.parent.FCK_EDITMODE_SOURCE=1;var
FCK_IMAGES_PATH='images/';var FCK_SPACER_PATH='images/spacer.gif';
+String.prototype.Contains=function(A){return
(this.indexOf(A)>-1);};String.prototype.Equals=function(){for (var
i=0;i<arguments.length;i++) if (this==arguments[i]) return true;return
false;};Array.prototype.AddItem=function(A){var i=this.length;this[i]=A;return
i;};Array.prototype.indexOf=function(A){for (var i=0;i<this.length;i++){if
(this[i]==A) return
i;};return-1;};String.prototype.startsWith=function(A){return
(this.substr(0,A.length)==A);};String.prototype.endsWith=function(A,B){var
C=this.length;var D=A.length;if (D>C) return false;if (B){var E=new
RegExp(A+'$','i');return E.test(this);}else return
(D==0||this.substr(C-D,D)==A);};String.prototype.remove=function(A,B){var
s='';if (A>0) s=this.substring(0,A);if (A+B<this.length)
s+=this.substring(A+B,this.length);return
s;};String.prototype.trim=function(){return
this.replace(/(^\s*)|(\s*$)/g,'');};String.prototype.ltrim=function(){return
this.replace(/^\s*/g,'');};String.prototype.rtrim=function(){return
this.replace(/\s*$/g,'');};String.prototype.replaceNewLineChars=function(A){return
this.replace(/\n/g,A);}
+var FCKIECleanup=function(A){this.Items=new
Array();A._FCKCleanupObj=this;A.attachEvent('onunload',FCKIECleanup_Cleanup);};FCKIECleanup.prototype.AddItem=function(A,B){this.Items.push([A,B]);};function
FCKIECleanup_Cleanup(){var aItems=this._FCKCleanupObj.Items;var
iLenght=aItems.length;for (var i=0;i<iLenght;i++){var
oItem=aItems[i];oItem[1].call(oItem[0]);aItems[i]=null;};this._FCKCleanupObj=null;if
(CollectGarbage) CollectGarbage();}
+var s=navigator.userAgent.toLowerCase();var
FCKBrowserInfo={IsIE:s.Contains('msie'),IsIE7:s.Contains('msie
7'),IsGecko:s.Contains('gecko/'),IsSafari:s.Contains('safari'),IsOpera:s.Contains('opera')};FCKBrowserInfo.IsGeckoLike=FCKBrowserInfo.IsGecko||FCKBrowserInfo.IsSafari||FCKBrowserInfo.IsOpera;if
(FCKBrowserInfo.IsGecko){var
sGeckoVersion=s.match(/gecko\/(\d+)/)[1];FCKBrowserInfo.IsGecko10=sGeckoVersion<20051111;}
+var FCKURLParams=new Object();var
aParams=document.location.search.substr(1).split('&');for (var
i=0;i<aParams.length;i++){var aParam=aParams[i].split('=');var
sParamName=aParam[0];var
sParamValue=aParam[1];FCKURLParams[sParamName]=sParamValue;}
+var FCK=new
Object();FCK.Name=FCKURLParams['InstanceName'];FCK.Status=FCK_STATUS_NOTLOADED;FCK.EditMode=FCK_EDITMODE_WYSIWYG;FCK.LoadLinkedFile=function(){var
A=window.parent.document;var B=A.getElementById(FCK.Name);var
C=A.getElementsByName(FCK.Name);var i=0;while (B||i==0){if
(B&&(B.tagName=='INPUT'||B.tagName=='TEXTAREA')){FCK.LinkedField=B;break;};B=C[i++];}};FCK.LoadLinkedFile();var
FCKTempBin=new Object();FCKTempBin.Elements=new
Array();FCKTempBin.AddElement=function(A){var
B=this.Elements.length;this.Elements[B]=A;return
B;};FCKTempBin.RemoveElement=function(A){var
e=this.Elements[A];this.Elements[A]=null;return
e;};FCKTempBin.Reset=function(){var i=0;while (i<this.Elements.length)
this.Elements[i++]==null;this.Elements.length=0;}
+var FCKConfig=FCK.Config=new Object();if
(document.location.protocol=='file:'){FCKConfig.BasePath=unescape(document.location.pathname.substr(1));FCKConfig.BasePath=FCKConfig.BasePath.replace(/\\/gi,
'/');FCKConfig.BasePath='file://'+FCKConfig.BasePath.substring(0,FCKConfig.BasePath.lastIndexOf('/')+1);FCKConfig.FullBasePath=FCKConfig.BasePath;}else{FCKConfig.BasePath=document.location.pathname.substring(0,document.location.pathname.lastIndexOf('/')+1);FCKConfig.FullBasePath=document.location.protocol+'//'+document.location.host+FCKConfig.BasePath;};FCKConfig.EditorPath=FCKConfig.BasePath.replace(/editor\/$/,'');try{FCKConfig.ScreenWidth=screen.width;FCKConfig.ScreenHeight=screen.height;}catch
(e){FCKConfig.ScreenWidth=800;FCKConfig.ScreenHeight=600;};FCKConfig.ProcessHiddenField=function(){this.PageConfig=new
Object();var A=window.parent.document.getElementById(FCK.Name+'___Config');if
(!A) return;var B=A.value.split('&');for (var i=0;i<B.length;i++){if
(B[i].length==0) continue;var C=B[i].split('=');var D=unescape(C[0]);var
E=unescape(C[1]);if (D=='CustomConfigurationsPath') FCKConfig[D]=E;else if
(E.toLowerCase()=="true") this.PageConfig[D]=true;else if
(E.toLowerCase()=="false") this.PageConfig[D]=false;else if (!isNaN(E))
this.PageConfig[D]=parseInt(E);else this.PageConfig[D]=E;}};function
FCKConfig_LoadPageConfig(){var oPageConfig=FCKConfig.PageConfig;for (var sKey
in oPageConfig) FCKConfig[sKey]=oPageConfig[sKey];};function
FCKConfig_PreProcess(){var oConfig=FCKConfig;if
(oConfig.AllowQueryStringDebug&&(/fckdebug=true/i).test(window.top.location.search))
oConfig.Debug=true;if (!oConfig.PluginsPath.endsWith('/'))
oConfig.PluginsPath+='/';if (typeof(oConfig.EditorAreaCSS)=='string')
oConfig.EditorAreaCSS=[oConfig.EditorAreaCSS];};FCKConfig.ToolbarSets=new
Object();FCKConfig.Plugins=new Object();FCKConfig.Plugins.Items=new
Array();FCKConfig.Plugins.Add=function(A,B,C){FCKConfig.Plugins.Items.AddItem([A,B,C]);};FCKConfig.ProtectedSource=new
Object();FCKConfig.ProtectedSource.RegexEntries=new
Array();FCKConfig.ProtectedSource.Add=function(A){this.RegexEntries.AddItem(A);};FCKConfig.ProtectedSource.Protect=function(A){function
_Replace(protectedSource){var B=FCKTempBin.AddElement(protectedSource);return
'<!--{PS..'+B+'}-->';};for (var
i=0;i<this.RegexEntries.length;i++){A=A.replace(this.RegexEntries[i],_Replace);};return
A;};FCKConfig.ProtectedSource.Revert=function(A,B){function
_Replace(m,opener,index){var
C=B?FCKTempBin.RemoveElement(index):FCKTempBin.Elements[index];return
FCKConfig.ProtectedSource.Revert(C,B);};return
A.replace(/(<|<)!--\{PS..(\d+)\}--(>|>)/g,_Replace);};FCKConfig.ProtectedSource.Add(/<!--[\s\S]*?-->/g);
+var FCKDebug=new Object();FCKDebug.Output=function(A,B,C){if
(!FCKConfig.Debug) return;if (!C&&A!=null&&isNaN(A))
A=A.replace(/</g,"<");if (!this.DebugWindow||this.DebugWindow.closed)
this.DebugWindow=window.open(FCKConfig.BasePath+'fckdebug.html','FCKeditorDebug','menubar=no,scrollbars=no,resizable=yes,location=no,toolbar=no,width=600,height=500',true);if
(this.DebugWindow&&this.DebugWindow.Output){try{this.DebugWindow.Output(A,B);}catch
(e) {}}};FCKDebug.OutputObject=function(A,B){if (!FCKConfig.Debug) return;var
C;if (A!=null){C='Properties of: '+A+'</b><blockquote>';for (var D in
A){try{var E=A[D]?A[D]+'':'[null]';C+='<b>'+D+'</b> :
'+E.replace(/</g,'<')+'<br>';}catch (e){try{C+='<b>'+D+'</b> :
['+typeof(A[D])+']<br>';}catch (e){C+='<b>'+D+'</b> :
[-error-]<br>';}}};C+='</blockquote><b>';} else C='OutputObject : Object is
"null".';FCKDebug.Output(C,B,true);}
+var FCKTools=new Object();FCKTools.GetLinkedFieldValue=function(){return
FCK.LinkedField.value;};FCKTools.AttachToLinkedFieldFormSubmit=function(A){var
B=FCK.LinkedField.form;if (!B) return;if (FCKBrowserInfo.IsIE)
B.attachEvent("onsubmit",A);else B.addEventListener('submit',A,false);if
(!B.updateFCKeditor) B.updateFCKeditor=new
Array();B.updateFCKeditor[B.updateFCKeditor.length]=A;if
(!B.originalSubmit&&(typeof(B.submit)=='function'||(!B.submit.tagName&&!B.submit.length))){B.originalSubmit=B.submit;B.submit=FCKTools_SubmitReplacer;}};function
FCKTools_SubmitReplacer(){if (this.updateFCKeditor){for (var
i=0;i<this.updateFCKeditor.length;i++)
this.updateFCKeditor[i]();};this.originalSubmit();};FCKTools.GetElementWindow=function(A){return
this.GetDocumentWindow(this.GetElementDocument(A));};FCKTools.GetDocumentWindow=function(A){if
(FCKBrowserInfo.IsSafari&&!A.parentWindow)
this.FixDocumentParentWindow(window.top);return
A.parentWindow||A.defaultView;};FCKTools.GetElementPosition=function(A,B){var
c={ X:0,Y:0 };var C=B||window;while
(A){c.X+=A.offsetLeft-A.scrollLeft;c.Y+=A.offsetTop-A.scrollTop;if
(A.offsetParent==null){var D=FCKTools.GetElementWindow(A);if (D!=C)
A=D.frameElement;else{c.X+=A.scrollLeft;c.Y+=A.scrollTop;break;}}else
A=A.offsetParent;};return
c;};FCKTools.FixDocumentParentWindow=function(A){A.document.parentWindow=A;for
(var i=0;i<A.frames.length;i++)
FCKTools.FixDocumentParentWindow(A.frames[i]);};FCKTools.GetParentWindow=function(A){return
A.contentWindow?A.contentWindow:A.parentWindow;};FCKTools.HTMLEncode=function(A){if
(!A) return
'';A=A.replace(/&/g,'&');A=A.replace(/</g,'<');A=A.replace(/>/g,'>');return
A;};FCKTools.AddSelectOption=function(A,B,C){var
D=FCKTools.GetElementDocument(A).createElement("OPTION");D.text=B;D.value=C;A.options.add(D);return
D;};FCKTools.RunFunction=function(A,B,C,D){if (A)
this.SetTimeout(A,0,B,C,D);};FCKTools.SetTimeout=function(A,B,C,D,E){return
(E||window).setTimeout(function(){if (D) A.apply(C,[].concat(D));else
A.apply(C);},B);};FCKTools.SetInterval=function(A,B,C,D,E){return
(E||window).setInterval(function(){A.apply(C,D||[]);},B);};FCKTools.ConvertStyleSizeToHtml=function(A){return
A.endsWith('%')?A:parseInt(A);};FCKTools.ConvertHtmlSizeToStyle=function(A){return
A.endsWith('%')?A:(A+'px');};FCKTools.GetElementAscensor=function(A,B){var
e=A;var C=","+B.toUpperCase()+",";while (e){if
(C.indexOf(","+e.nodeName.toUpperCase()+",")!=-1) return
e;e=e.parentNode;};return null;};FCKTools.CreateEventListener=function(A,B){var
f=function(){var C=[];for (var i=0;i<arguments.length;i++)
C.push(arguments[i]);A.apply(this,C.concat(B));};return
f;};FCKTools.GetElementDocument=function (A){return
A.ownerDocument||A.document;}
+FCKTools.CancelEvent=function(e){return
false;};FCKTools.AppendStyleSheet=function(A,B){return
A.createStyleSheet(B).owningElement;};FCKTools.ClearElementAttributes=function(A){A.clearAttributes();};FCKTools.GetAllChildrenIds=function(A){var
B=new Array();for (var i=0;i<A.all.length;i++){var C=A.all[i].id;if
(C&&C.length>0) B[B.length]=C;};return
B;};FCKTools.RemoveOuterTags=function(e){e.insertAdjacentHTML('beforeBegin',e.innerHTML);e.parentNode.removeChild(e);};FCKTools.CreateXmlObject=function(A){var
B;switch (A){case
'XmlHttp':B=['MSXML2.XmlHttp','Microsoft.XmlHttp'];break;case
'DOMDocument':B=['MSXML2.DOMDocument','Microsoft.XmlDom'];break;};for (var
i=0;i<2;i++){try { return new ActiveXObject(B[i]);}catch (e){}};if
(FCKLang.NoActiveX){alert(FCKLang.NoActiveX);FCKLang.NoActiveX=null;}};FCKTools.DisableSelection=function(A){A.unselectable='on';var
e,i=0;while (e=A.all[i++]){switch (e.tagName){case 'IFRAME':case
'TEXTAREA':case 'INPUT':case 'SELECT':/* Ignore the above tags */
break;default:e.unselectable='on';}}};FCKTools.GetScrollPosition=function(A){var
B=A.document;var C={
X:B.documentElement.scrollLeft,Y:B.documentElement.scrollTop };if
(C.X>0||C.Y>0) return C;return { X:B.body.scrollLeft,Y:B.body.scrollTop
};};FCKTools.AddEventListener=function(A,B,C){A.attachEvent('on'+B,C);};FCKTools.RemoveEventListener=function(A,B,C){A.detachEvent('on'+B,C);};FCKTools.AddEventListenerEx=function(A,B,C,D){var
o=new Object();o.Source=A;o.Params=D||[];o.Listener=function(ev){return
C.apply(o.Source,[ev].concat(o.Params));};if (FCK.IECleanup)
FCK.IECleanup.AddItem(null,function() {
o.Source=null;o.Params=null;});A.attachEvent('on'+B,o.Listener);A=null;D=null;};FCKTools.GetViewPaneSize=function(A){var
B;var C=A.document.documentElement;if (C&&C.clientWidth) B=C;else
B=top.document.body;if (B) return { Width:B.clientWidth,Height:B.clientHeight
};else return { Width:0,Height:0 };};FCKTools.SaveStyles=function(A){var B=new
Object();if (A.className.length>0){B.Class=A.className;A.className='';};var
C=A.style.cssText;if (C.length>0){B.Inline=C;A.style.cssText='';};return
B;};FCKTools.RestoreStyles=function(A,B){A.className=B.Class||'';A.style.cssText=B.Inline||'';};FCKTools.RegisterDollarFunction=function(A){A.$=A.document.getElementById;};FCKTools.AppendElement=function(A,B){return
A.appendChild(this.GetElementDocument(A).createElement(B));}
+var FCKeditorAPI;function InitializeAPI(){if
(!(FCKeditorAPI=window.parent.FCKeditorAPI)){var sScript='\ var FCKeditorAPI={\
Version:\'2.3.1\',\ VersionBuild:\'1062\',\ __Instances:new Object(),\
GetInstance:function(instanceName)\{\ return
this.__Instances[instanceName];\},\ _FunctionQueue:{\ Functions:new Array(),\
IsRunning:false,\ Add:function(functionToAdd)\{\
this.Functions.push(functionToAdd);\ if (!this.IsRunning)\
this.StartNext();\},\ StartNext:function()\{\ var aQueue=this.Functions;\ if
(aQueue.length>0)\{\ this.IsRunning=true;\ aQueue[0].call();\}\ else\
this.IsRunning=false;\},\ Remove:function(func)\{\ var aQueue=this.Functions;\
var i=0,fFunc;\ while(fFunc=aQueue[i])\{\ if (fFunc==func)\
aQueue.splice(i,1);\ i++;\}\ this.StartNext();\}\}\}';if
(window.parent.execScript) window.parent.execScript(sScript,'JavaScript');else
window.parent.eval(sScript);FCKeditorAPI=window.parent.FCKeditorAPI;};FCKeditorAPI.__Instances[FCK.Name]=FCK;};function
FCKeditorAPI_Cleanup(){FCKeditorAPI.__Instances[FCK.Name]=null;};FCKTools.AddEventListener(window,'unload',FCKeditorAPI_Cleanup);
+var FCKRegexLib=new
Object();FCKRegexLib.AposEntity=/'/gi;FCKRegexLib.ObjectElements=/^(?:IMG|TABLE|TR|TD|TH|INPUT|SELECT|TEXTAREA|HR|OBJECT|A|UL|OL|LI)$/i;FCKRegexLib.BlockElements=/^(?:P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TD|TH)$/i;FCKRegexLib.EmptyElements=/^(?:BASE|META|LINK|HR|BR|PARAM|IMG|AREA|INPUT)$/i;FCKRegexLib.NamedCommands=/^(?:Cut|Copy|Paste|Print|SelectAll|RemoveFormat|Unlink|Undo|Redo|Bold|Italic|Underline|StrikeThrough|Subscript|Superscript|JustifyLeft|JustifyCenter|JustifyRight|JustifyFull|Outdent|Indent|InsertOrderedList|InsertUnorderedList|InsertHorizontalRule)$/i;FCKRegexLib.BodyContents=/([\s\S]*\<body[^\>]*\>)([\s\S]*)(\<\/body\>[\s\S]*)/i;FCKRegexLib.ToReplace=/___fcktoreplace:([\w]+)/ig;FCKRegexLib.MetaHttpEquiv=/http-equiv\s*=\s*["']?([^"'
]+)/i;FCKRegexLib.HasBaseTag=/<base
/i;FCKRegexLib.HeadOpener=/<head\s?[^>]*>/i;FCKRegexLib.HeadCloser=/<\/head\s*>/i;FCKRegexLib.TableBorderClass=/\s*FCK__ShowTableBorders\s*/;FCKRegexLib.ElementName=/(^[A-Za-z_:][\w.\-:]*\w$)|(^[A-Za-z_]$)/;FCKRegexLib.ForceSimpleAmpersand=/___FCKAmp___/g;FCKRegexLib.SpaceNoClose=/\/>/g;FCKRegexLib.EmptyParagraph=/^<(p|div)>\s*<\/\1>$/i;FCKRegexLib.TagBody=/></;FCKRegexLib.StrongOpener=/<STRONG([
\>])/gi;FCKRegexLib.StrongCloser=/<\/STRONG>/gi;FCKRegexLib.EmOpener=/<EM([
\>])/gi;FCKRegexLib.EmCloser=/<\/EM>/gi;FCKRegexLib.GeckoEntitiesMarker=/#\?-\:/g;FCKRegexLib.ProtectUrlsAApo=/(<a\s.*?href=)("|')(.+?)\2/gi;FCKRegexLib.ProtectUrlsANoApo=/(<a\s.*?href=)([^"'][^
>]+)/gi;FCKRegexLib.ProtectUrlsImgApo=/(<img\s.*?src=)("|')(.+?)\2/gi;FCKRegexLib.ProtectUrlsImgNoApo=/(<img\s.*?src=)([^"'][^
>]+)/gi;FCKRegexLib.Html4DocType=/HTML 4\.0 Transitional/i;
+var FCKLanguageManager=FCK.Language=new
Object();FCKLanguageManager.AvailableLanguages={'ar':'Arabic','bg':'Bulgarian','bn':'Bengali/Bangla','bs':'Bosnian','ca':'Catalan','cs':'Czech','da':'Danish','de':'German','el':'Greek','en':'English','en-au':'English
(Australia)','en-ca':'English (Canadian)','en-uk':'English (United
Kingdom)','eo':'Esperanto','es':'Spanish','et':'Estonian','eu':'Basque','fa':'Persian','fi':'Finnish','fo':'Faroese','fr':'French','gl':'Galician','he':'Hebrew','hi':'Hindi','hr':'Croatian','hu':'Hungarian','it':'Italian','ja':'Japanese','km':'Khmer','ko':'Korean','lt':'Lithuanian','lv':'Latvian','mn':'Mongolian','ms':'Malay','nl':'Dutch','no':'Norwegian','pl':'Polish','pt':'Portuguese
(Portugal)','pt-br':'Portuguese
(Brazil)','ro':'Romanian','ru':'Russian','sk':'Slovak','sl':'Slovenian','sr':'Serbian
(Cyrillic)','sr-latn':'Serbian
(Latin)','sv':'Swedish','th':'Thai','tr':'Turkish','uk':'Ukrainian','vi':'Vietnamese','zh':'Chinese
Traditional','zh-cn':'Chinese
Simplified'};FCKLanguageManager.GetActiveLanguage=function(){if
(FCKConfig.AutoDetectLanguage){var A;if (navigator.userLanguage)
A=navigator.userLanguage.toLowerCase();else if (navigator.language)
A=navigator.language.toLowerCase();else{return FCKConfig.DefaultLanguage;};if
(A.length>=5){A=A.substr(0,5);if (this.AvailableLanguages[A]) return A;};if
(A.length>=2){A=A.substr(0,2);if (this.AvailableLanguages[A]) return
A;}};return
this.DefaultLanguage;};FCKLanguageManager.TranslateElements=function(A,B,C,D){var
e=A.getElementsByTagName(B);var E,s;for (var i=0;i<e.length;i++){if
(E=e[i].getAttribute('fckLang')){if (s=FCKLang[E]){if (D)
s=FCKTools.HTMLEncode(s);eval('e[i].'+C+' =
s');}}}};FCKLanguageManager.TranslatePage=function(A){this.TranslateElements(A,'INPUT','value');this.TranslateElements(A,'SPAN','innerHTML');this.TranslateElements(A,'LABEL','innerHTML');this.TranslateElements(A,'OPTION','innerHTML',true);};FCKLanguageManager.Initialize=function(){if
(this.AvailableLanguages[FCKConfig.DefaultLanguage])
this.DefaultLanguage=FCKConfig.DefaultLanguage;else
this.DefaultLanguage='en';this.ActiveLanguage=new
Object();this.ActiveLanguage.Code=this.GetActiveLanguage();this.ActiveLanguage.Name=this.AvailableLanguages[this.ActiveLanguage.Code];}
+var FCKEvents;FCKEvents=function(A){this.Owner=A;this.RegisteredEvents=new
Object();};FCKEvents.prototype.AttachEvent=function(A,B){var C;if
(!(C=this.RegisteredEvents[A])) this.RegisteredEvents[A]=[B];else
C.push(B);};FCKEvents.prototype.FireEvent=function(A,B){var C=true;var
D=this.RegisteredEvents[A];if (D){for (var i=0;i<D.length;i++)
C=(D[i](this.Owner,B)&&C);};return C;}
+var FCKXHtmlEntities=new Object();FCKXHtmlEntities.Initialize=function(){if
(FCKXHtmlEntities.Entities) return;if
(FCKConfig.ProcessHTMLEntities){FCKXHtmlEntities.Entities={'Â
':'nbsp','¡':'iexcl','¢':'cent','£':'pound','¤':'curren','Â¥':'yen','¦':'brvbar','§':'sect','¨':'uml','©':'copy','ª':'ordf','«':'laquo','¬':'not','Â':'shy','®':'reg','¯':'macr','°':'deg','±':'plusmn','²':'sup2','³':'sup3','´':'acute','µ':'micro','¶':'para','·':'middot','¸':'cedil','¹':'sup1','º':'ordm','»':'raquo','¼':'frac14','½':'frac12','¾':'frac34','¿':'iquest','Ã':'times','÷':'divide','Æ':'fnof','â¢':'bull','â¦':'hellip','â²':'prime','â³':'Prime','â¾':'oline','â':'frasl','â':'weierp','â':'image','â':'real','â¢':'trade','âµ':'alefsym','â':'larr','â':'uarr','â':'rarr','â':'darr','â':'harr','âµ':'crarr','â':'lArr','â':'uArr','â':'rArr','â':'dArr','â':'hArr','â':'forall','â':'part','â':'exist','â
':'empty','â':'nabla','â':'isin','â':'notin','â':'ni','â':'prod','â':'sum','â':'minus','â':'lowast','â':'radic','â':'prop','â':'infin','â
':'ang','â§':'and','â¨':'or','â©':'cap','âª':'cup','â«':'int','â´':'there4','â¼':'sim','â
':'cong','â':'asymp','â
':'ne','â¡':'equiv','â¤':'le','â¥':'ge','â':'sub','â':'sup','â':'nsub','â':'sube','â':'supe','â':'oplus','â':'otimes','â¥':'perp','â
':'sdot','â':'loz','â
':'spades','â£':'clubs','â¥':'hearts','â¦':'diams','"':'quot','Ë':'circ','Ë':'tilde','â':'ensp','â':'emsp','â':'thinsp','â':'zwnj','â':'zwj','â':'lrm','â':'rlm','â':'ndash','â':'mdash','â':'lsquo','â':'rsquo','â':'sbquo','â':'ldquo','â':'rdquo','â':'bdquo','â
':'dagger','â¡':'Dagger','â°':'permil','â¹':'lsaquo','âº':'rsaquo','â¬':'euro'};FCKXHtmlEntities.Chars='';for
(var e in FCKXHtmlEntities.Entities) FCKXHtmlEntities.Chars+=e;if
(FCKConfig.IncludeLatinEntities){var
A={'Ã':'Agrave','Ã':'Aacute','Ã':'Acirc','Ã':'Atilde','Ã':'Auml','Ã
':'Aring','Ã':'AElig','Ã':'Ccedil','Ã':'Egrave','Ã':'Eacute','Ã':'Ecirc','Ã':'Euml','Ã':'Igrave','Ã':'Iacute','Ã':'Icirc','Ã':'Iuml','Ã':'ETH','Ã':'Ntilde','Ã':'Ograve','Ã':'Oacute','Ã':'Ocirc','Ã':'Otilde','Ã':'Ouml','Ã':'Oslash','Ã':'Ugrave','Ã':'Uacute','Ã':'Ucirc','Ã':'Uuml','Ã':'Yacute','Ã':'THORN','Ã':'szlig','Ã
':'agrave','á':'aacute','â':'acirc','ã':'atilde','ä':'auml','Ã¥':'aring','æ':'aelig','ç':'ccedil','è':'egrave','é':'eacute','ê':'ecirc','ë':'euml','ì':'igrave','Ã':'iacute','î':'icirc','ï':'iuml','ð':'eth','ñ':'ntilde','ò':'ograve','ó':'oacute','ô':'ocirc','õ':'otilde','ö':'ouml','ø':'oslash','ù':'ugrave','ú':'uacute','û':'ucirc','ü':'uuml','ý':'yacute','þ':'thorn','ÿ':'yuml','Å':'OElig','Å':'oelig','Å
':'Scaron','š':'scaron','Ÿ':'Yuml'};for (var e in
A){FCKXHtmlEntities.Entities[e]=A[e];FCKXHtmlEntities.Chars+=e;};A=null;};if
(FCKConfig.IncludeGreekEntities){var
A={'Î':'Alpha','Î':'Beta','Î':'Gamma','Î':'Delta','Î':'Epsilon','Î':'Zeta','Î':'Eta','Î':'Theta','Î':'Iota','Î':'Kappa','Î':'Lambda','Î':'Mu','Î':'Nu','Î':'Xi','Î':'Omicron','Î
':'Pi','Ρ':'Rho','Σ':'Sigma','Τ':'Tau','Î¥':'Upsilon','Φ':'Phi','Χ':'Chi','Ψ':'Psi','Ω':'Omega','α':'alpha','β':'beta','γ':'gamma','δ':'delta','ε':'epsilon','ζ':'zeta','η':'eta','θ':'theta','ι':'iota','κ':'kappa','λ':'lambda','μ':'mu','ν':'nu','ξ':'xi','ο':'omicron','Ï':'pi','Ï':'rho','Ï':'sigmaf','Ï':'sigma','Ï':'tau','Ï
':'upsilon','Ï':'phi','Ï':'chi','Ï':'psi','Ï':'omega'};for (var e in
A){FCKXHtmlEntities.Entities[e]=A[e];FCKXHtmlEntities.Chars+=e;};A=null;};FCKXHtmlEntities.EntitiesRegex=new
RegExp('['+FCKXHtmlEntities.Chars+']|[^'+FCKXHtmlEntities.Chars+']+','g');}else{FCKXHtmlEntities.Entities={
'Â ':'nbsp' };FCKXHtmlEntities.EntitiesRegex=/[Â ]|[^Â ]+/g;}}
+var FCKXHtml=new
Object();FCKXHtml.CurrentJobNum=0;FCKXHtml.GetXHTML=function(A,B,C){FCKXHtmlEntities.Initialize();this._CreateNode=FCKConfig.ForceStrongEm?FCKXHtml_CreateNode_StrongEm:FCKXHtml_CreateNode_Normal;FCKXHtml.SpecialBlocks=new
Array();this.XML=FCKTools.CreateXmlObject('DOMDocument');this.MainNode=this.XML.appendChild(this.XML.createElement('xhtml'));FCKXHtml.CurrentJobNum++;if
(B) this._AppendNode(this.MainNode,A);else
this._AppendChildNodes(this.MainNode,A,false);var
D=this._GetMainXmlString();D=D.substr(7,D.length-15).trim();if
(FCKBrowserInfo.IsGecko)
D=D.replace(/<br\/>$/,'');D=D.replace(FCKRegexLib.SpaceNoClose,' />');if
(FCKConfig.ForceSimpleAmpersand)
D=D.replace(FCKRegexLib.ForceSimpleAmpersand,'&');if (C)
D=FCKCodeFormatter.Format(D);for (var
i=0;i<FCKXHtml.SpecialBlocks.length;i++){var E=new
RegExp('___FCKsi___'+i);D=D.replace(E,FCKXHtml.SpecialBlocks[i]);};this.XML=null;return
D};FCKXHtml._AppendAttribute=function(A,B,C){try{var
D=this.XML.createAttribute(B);D.value=C?C:'';A.attributes.setNamedItem(D);}catch
(e){}};FCKXHtml._AppendChildNodes=function(A,B,C){var D=0;var
E=B.firstChild;while (E){if (this._AppendNode(A,E)) D++;E=E.nextSibling;};if
(D==0){if
(C&&FCKConfig.FillEmptyBlocks){this._AppendEntity(A,'nbsp');return;};if
(!FCKRegexLib.EmptyElements.test(B.nodeName))
A.appendChild(this.XML.createTextNode(''));}};FCKXHtml._AppendNode=function(A,B){if
(!B) return;switch (B.nodeType){case 1:if (B.getAttribute('_fckfakelement'))
return FCKXHtml._AppendNode(A,FCK.GetRealElement(B));if
(FCKBrowserInfo.IsGecko&&B.hasAttribute('_moz_editor_bogus_node')) return
false;if (B.getAttribute('_fcktemp')) return false;var C=B.nodeName;if
(FCKBrowserInfo.IsIE&&B.scopeName&&B.scopeName!='HTML') C=B.scopeName+':'+C;if
(!FCKRegexLib.ElementName.test(C)) return false;C=C.toLowerCase();if
(FCKBrowserInfo.IsGecko&&C=='br'&&B.hasAttribute('type')&&B.getAttribute('type',2)=='_moz')
return false;if (B._fckxhtmljob&&B._fckxhtmljob==FCKXHtml.CurrentJobNum)
return false;var
D=this._CreateNode(C);FCKXHtml._AppendAttributes(A,B,D,C);B._fckxhtmljob=FCKXHtml.CurrentJobNum;var
E=FCKXHtml.TagProcessors[C];if (E){D=E(D,B,A);if (!D) break;}else
this._AppendChildNodes(D,B,FCKRegexLib.BlockElements.test(C));A.appendChild(D);break;case
3:this._AppendTextNode(A,B.nodeValue.replaceNewLineChars(' '));break;case
8:try { A.appendChild(this.XML.createComment(B.nodeValue));}catch (e) { /* Do
nothing... probably this is a wrong format comment.
*/};break;default:A.appendChild(this.XML.createComment("Element not supported -
Type: "+B.nodeType+" Name: "+B.nodeName));break;};return true;};function
FCKXHtml_CreateNode_StrongEm(nodeName){switch (nodeName){case
'b':nodeName='strong';break;case 'i':nodeName='em';break;};return
this.XML.createElement(nodeName);};function
FCKXHtml_CreateNode_Normal(nodeName){return
this.XML.createElement(nodeName);};FCKXHtml._AppendSpecialItem=function(A){return
'___FCKsi___'+FCKXHtml.SpecialBlocks.AddItem(A);};FCKXHtml._AppendTextNode=function(A,B){var
C=B.match(FCKXHtmlEntities.EntitiesRegex);if (C){for (var
i=0;i<C.length;i++){if (C[i].length==1){var
D=FCKXHtmlEntities.Entities[C[i]];if
(D!=null){this._AppendEntity(A,D);continue;}};A.appendChild(this.XML.createTextNode(C[i]));}}};FCKXHtml.TagProcessors=new
Object();FCKXHtml.TagProcessors['img']=function(A,B){if
(!A.attributes.getNamedItem('alt')) FCKXHtml._AppendAttribute(A,'alt','');var
C=B.getAttribute('_fcksavedurl');if (C&&C.length>0)
FCKXHtml._AppendAttribute(A,'src',C);return
A;};FCKXHtml.TagProcessors['a']=function(A,B){var
C=B.getAttribute('_fcksavedurl');if (C&&C.length>0)
FCKXHtml._AppendAttribute(A,'href',C);FCKXHtml._AppendChildNodes(A,B,false);return
A;};FCKXHtml.TagProcessors['script']=function(A,B){if
(!A.attributes.getNamedItem('type'))
FCKXHtml._AppendAttribute(A,'type','text/javascript');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.text)));return
A;};FCKXHtml.TagProcessors['style']=function(A,B){if
(!A.attributes.getNamedItem('type'))
FCKXHtml._AppendAttribute(A,'type','text/css');A.appendChild(FCKXHtml.XML.createTextNode(FCKXHtml._AppendSpecialItem(B.innerHTML)));return
A;};FCKXHtml.TagProcessors['title']=function(A,B){A.appendChild(FCKXHtml.XML.createTextNode(FCK.EditorDocument.title));return
A;};FCKXHtml.TagProcessors['table']=function(A,B){var
C=A.attributes.getNamedItem('class');if
(C&&FCKRegexLib.TableBorderClass.test(C.nodeValue)){var
D=C.nodeValue.replace(FCKRegexLib.TableBorderClass,'');if (D.length==0)
A.attributes.removeNamedItem('class');else
FCKXHtml._AppendAttribute(A,'class',D);};FCKXHtml._AppendChildNodes(A,B,false);return
A;};FCKXHtml.TagProcessors['ol']=FCKXHtml.TagProcessors['ul']=function(A,B,C){if
(B.innerHTML.trim().length==0) return;var D=C.lastChild;if (D&&D.nodeType==3)
D=D.previousSibling;if
(D&&D.nodeName.toUpperCase()=='LI'){B._fckxhtmljob=null;FCKXHtml._AppendNode(D,B);return;};FCKXHtml._AppendChildNodes(A,B);return
A;}
+FCKXHtml._GetMainXmlString=function(){return
this.MainNode.xml;};FCKXHtml._AppendEntity=function(A,B){A.appendChild(this.XML.createEntityReference(B));};FCKXHtml._AppendAttributes=function(A,B,C,D){var
E=B.attributes;for (var n=0;n<E.length;n++){var F=E[n];if (F.specified){var
G=F.nodeName.toLowerCase();var H;if (G.startsWith('_fck')) continue;else if
(G=='style') H=B.style.cssText;else if (G=='class'||G.indexOf('on')==0)
H=F.nodeValue;else if (D=='body'&&G=='contenteditable') continue;else if
(F.nodeValue===true) H=G;else if (!(H=B.getAttribute(G,2))) H=F.nodeValue;if
(FCKConfig.ForceSimpleAmpersand&&H.replace)
H=H.replace(/&/g,'___FCKAmp___');this._AppendAttribute(C,G,H);}}};FCKXHtml.TagProcessors['meta']=function(A,B){var
C=A.attributes.getNamedItem('http-equiv');if (C==null||C.value.length==0){var
D=B.outerHTML.match(FCKRegexLib.MetaHttpEquiv);if
(D){D=D[1];FCKXHtml._AppendAttribute(A,'http-equiv',D);}};return
A;};FCKXHtml.TagProcessors['font']=function(A,B){if (A.attributes.length==0)
A=FCKXHtml.XML.createDocumentFragment();FCKXHtml._AppendChildNodes(A,B);return
A;};FCKXHtml.TagProcessors['input']=function(A,B){if (B.name)
FCKXHtml._AppendAttribute(A,'name',B.name);if
(B.value&&!A.attributes.getNamedItem('value'))
FCKXHtml._AppendAttribute(A,'value',B.value);return
A;};FCKXHtml.TagProcessors['option']=function(A,B){if
(B.selected&&!A.attributes.getNamedItem('selected'))
FCKXHtml._AppendAttribute(A,'selected','selected');FCKXHtml._AppendChildNodes(A,B);return
A;};FCKXHtml.TagProcessors['abbr']=function(A,B){var C=B.nextSibling;while
(true){if
(C&&C.nodeName!='/ABBR'){FCKXHtml._AppendNode(A,C);C=C.nextSibling;}else
break;};return A;};FCKXHtml.TagProcessors['area']=function(A,B){if
(!A.attributes.getNamedItem('coords')){var C=B.getAttribute('coords',2);if
(C&&C!='0,0,0') FCKXHtml._AppendAttribute(A,'coords',C);};if
(!A.attributes.getNamedItem('shape')){var C=B.getAttribute('shape',2);if
(C&&C.length>0) FCKXHtml._AppendAttribute(A,'shape',C);};return
A;};FCKXHtml.TagProcessors['label']=function(A,B){if (B.htmlFor.length>0)
FCKXHtml._AppendAttribute(A,'for',B.htmlFor);FCKXHtml._AppendChildNodes(A,B);return
A;};FCKXHtml.TagProcessors['form']=function(A,B){if
(B.acceptCharset&&B.acceptCharset.length>0&&B.acceptCharset!='UNKNOWN')
FCKXHtml._AppendAttribute(A,'accept-charset',B.acceptCharset);if (B.name)
FCKXHtml._AppendAttribute(A,'name',B.name);FCKXHtml._AppendChildNodes(A,B);return
A;};FCKXHtml.TagProcessors['textarea']=FCKXHtml.TagProcessors['select']=function(A,B){if
(B.name)
FCKXHtml._AppendAttribute(A,'name',B.name);FCKXHtml._AppendChildNodes(A,B);return
A;};FCKXHtml.TagProcessors['div']=function(A,B){if (B.align.length>0)
FCKXHtml._AppendAttribute(A,'align',B.align);FCKXHtml._AppendChildNodes(A,B);return
A;}
+var FCKCodeFormatter=new Object();FCKCodeFormatter.Init=function(){var
A=this.Regex=new
Object();A.BlocksOpener=/\<(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|TH|AREA|OPTION)[^\>]*\>/gi;A.BlocksCloser=/\<\/(P|DIV|H1|H2|H3|H4|H5|H6|ADDRESS|PRE|OL|UL|LI|TITLE|META|LINK|BASE|SCRIPT|LINK|TD|TH|AREA|OPTION)[^\>]*\>/gi;A.NewLineTags=/\<(BR|HR)[^\>]*\>/gi;A.MainTags=/\<\/?(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR)[^\>]*\>/gi;A.LineSplitter=/\s*\n+\s*/g;A.IncreaseIndent=/^\<(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[
\/\>]/i;A.DecreaseIndent=/^\<\/(HTML|HEAD|BODY|FORM|TABLE|TBODY|THEAD|TR|UL|OL)[
\>]/i;A.FormatIndentatorRemove=new
RegExp('^'+FCKConfig.FormatIndentator);A.ProtectedTags=/(<PRE[^>]*>)([\s\S]*?)(<\/PRE>)/gi;};FCKCodeFormatter._ProtectData=function(A,B,C,D){return
B+'___FCKpd___'+FCKCodeFormatter.ProtectedData.AddItem(C)+D;};FCKCodeFormatter.Format=function(A){if
(!this.Regex) this.Init();FCKCodeFormatter.ProtectedData=new Array();var
B=A.replace(this.Regex.ProtectedTags,FCKCodeFormatter._ProtectData);B=B.replace(this.Regex.BlocksOpener,'\n$&');;B=B.replace(this.Regex.BlocksCloser,'$&\n');B=B.replace(this.Regex.NewLineTags,'$&\n');B=B.replace(this.Regex.MainTags,'\n$&\n');var
C='';var D=B.split(this.Regex.LineSplitter);B='';for (var
i=0;i<D.length;i++){var E=D[i];if (E.length==0) continue;if
(this.Regex.DecreaseIndent.test(E))
C=C.replace(this.Regex.FormatIndentatorRemove,'');B+=C+E+'\n';if
(this.Regex.IncreaseIndent.test(E)) C+=FCKConfig.FormatIndentator;};for (var
i=0;i<FCKCodeFormatter.ProtectedData.length;i++){var F=new
RegExp('___FCKpd___'+i);B=B.replace(F,FCKCodeFormatter.ProtectedData[i].replace(/\$/g,'$$$$'));};return
B.trim();}
+var FCKUndo=new Object();FCKUndo.SavedData=new
Array();FCKUndo.CurrentIndex=-1;FCKUndo.TypesCount=FCKUndo.MaxTypes=25;FCKUndo.Typing=false;FCKUndo.SaveUndoStep=function(){if
(FCK.EditMode!=FCK_EDITMODE_WYSIWYG)
return;FCKUndo.SavedData=FCKUndo.SavedData.slice(0,FCKUndo.CurrentIndex+1);var
A=FCK.EditorDocument.body.innerHTML;if
(FCKUndo.CurrentIndex>=0&&A==FCKUndo.SavedData[FCKUndo.CurrentIndex][0])
return;if (FCKUndo.CurrentIndex+1>=FCKConfig.MaxUndoLevels)
FCKUndo.SavedData.shift();else FCKUndo.CurrentIndex++;var B;if
(FCK.EditorDocument.selection.type=='Text')
B=FCK.EditorDocument.selection.createRange().getBookmark();FCKUndo.SavedData[FCKUndo.CurrentIndex]=[A,B];FCK.Events.FireEvent("OnSelectionChange");};FCKUndo.CheckUndoState=function(){return
(FCKUndo.Typing||FCKUndo.CurrentIndex>0);};FCKUndo.CheckRedoState=function(){return
(!FCKUndo.Typing&&FCKUndo.CurrentIndex<(FCKUndo.SavedData.length-1));};FCKUndo.Undo=function(){if
(FCKUndo.CheckUndoState()){if
(FCKUndo.CurrentIndex==(FCKUndo.SavedData.length-1)){FCKUndo.SaveUndoStep();};FCKUndo._ApplyUndoLevel(--FCKUndo.CurrentIndex);FCK.Events.FireEvent("OnSelectionChange");}};FCKUndo.Redo=function(){if
(FCKUndo.CheckRedoState()){FCKUndo._ApplyUndoLevel(++FCKUndo.CurrentIndex);FCK.Events.FireEvent("OnSelectionChange");}};FCKUndo._ApplyUndoLevel=function(A){var
B=FCKUndo.SavedData[A];if (!B) return;FCK.SetInnerHtml(B[0]);if (B[1]){var
C=FCK.EditorDocument.selection.createRange();C.moveToBookmark(B[1]);C.select();};FCKUndo.TypesCount=0;FCKUndo.Typing=false;}
+var
FCKEditingArea=function(A){this.TargetElement=A;this.Mode=FCK_EDITMODE_WYSIWYG;if
(FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKEditingArea_Cleanup);};FCKEditingArea.prototype.Start=function(A,B){var
C=this.TargetElement;var
D=FCKTools.GetElementDocument(C);while(C.childNodes.length>0)
C.removeChild(C.childNodes[0]);if (this.Mode==FCK_EDITMODE_WYSIWYG){if
(FCKBrowserInfo.IsGecko)
A=A.replace(/(<body[^>]*>)\s*(<\/body>)/i,'$1'+GECKO_BOGUS+'$2');var
E=this.IFrame=D.createElement('iframe');E.src='javascript:void(0)';E.frameBorder=0;E.width=E.height='100%';C.appendChild(E);if
(FCKBrowserInfo.IsIE)
A=A.replace(/(<base[^>]*?)\s*\/?>(?!\s*<\/base>)/gi,'$1></base>');this.Window=E.contentWindow;var
F=this.Document=this.Window.document;F.open();F.write(A);F.close();if
(FCKBrowserInfo.IsGecko10&&!B){this.Start(A,true);return;};this.Window._FCKEditingArea=this;if
(FCKBrowserInfo.IsGecko10)
this.Window.setTimeout(FCKEditingArea_CompleteStart,500);else
FCKEditingArea_CompleteStart.call(this.Window);}else{var
G=this.Textarea=D.createElement('textarea');G.className='SourceField';G.dir='ltr';G.style.width=G.style.height='100%';G.style.border='none';C.appendChild(G);G.value=A;FCKTools.RunFunction(this.OnLoad);}};function
FCKEditingArea_CompleteStart(){if
(!this.document.body){this.setTimeout(FCKEditingArea_CompleteStart,50);return;};var
oEditorArea=this._FCKEditingArea;oEditorArea.MakeEditable();FCKTools.RunFunction(oEditorArea.OnLoad);};FCKEditingArea.prototype.MakeEditable=function(){var
A=this.Document;if (FCKBrowserInfo.IsIE)
A.body.contentEditable=true;else{try{A.designMode='on';A.execCommand('useCSS',false,!FCKConfig.GeckoUseSPAN);A.execCommand('enableObjectResizing',false,!FCKConfig.DisableObjectResizing);A.execCommand('enableInlineTableEditing',false,!FCKConfig.DisableFFTableHandles);}catch
(e) {}}};FCKEditingArea.prototype.Focus=function(){try{if
(this.Mode==FCK_EDITMODE_WYSIWYG){if (FCKBrowserInfo.IsSafari)
this.IFrame.focus();else this.Window.focus();}else
this.Textarea.focus();}catch(e) {}};function
FCKEditingArea_Cleanup(){this.TargetElement=null;this.IFrame=null;this.Document=null;this.Textarea=null;if
(this.Window){this.Window._FCKEditingArea=null;this.Window=null;}}
+var FCKDocumentProcessor=new Object();FCKDocumentProcessor._Items=new
Array();FCKDocumentProcessor.AppendNew=function(){var A=new
Object();this._Items.AddItem(A);return
A;};FCKDocumentProcessor.Process=function(A){var
B,i=0;while((B=this._Items[i++])) B.ProcessDocument(A);};var
FCKDocumentProcessor_CreateFakeImage=function(A,B){var
C=FCK.EditorDocument.createElement('IMG');C.className=A;C.src=FCKConfig.FullBasePath+'images/spacer.gif';C.setAttribute('_fckfakelement','true',0);C.setAttribute('_fckrealelement',FCKTempBin.AddElement(B),0);return
C;};var
FCKAnchorsProcessor=FCKDocumentProcessor.AppendNew();FCKAnchorsProcessor.ProcessDocument=function(A){var
B=A.getElementsByTagName('A');var C;var i=B.length-1;while
(i>=0&&(C=B[i--])){if
(C.name.length>0&&(!C.getAttribute('href')||C.getAttribute('href').length==0)){var
D=FCKDocumentProcessor_CreateFakeImage('FCK__Anchor',C.cloneNode(true));D.setAttribute('_fckanchor','true',0);C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);}}};var
FCKPageBreaksProcessor=FCKDocumentProcessor.AppendNew();FCKPageBreaksProcessor.ProcessDocument=function(A){var
B=A.getElementsByTagName('DIV');var C;var i=B.length-1;while
(i>=0&&(C=B[i--])){if
(C.style.pageBreakAfter=='always'&&C.childNodes.length==1&&C.childNodes[0].style&&C.childNodes[0].style.display=='none'){var
D=FCKDocumentProcessor_CreateFakeImage('FCK__PageBreak',C.cloneNode(true));C.parentNode.insertBefore(D,C);C.parentNode.removeChild(C);}}};var
FCKFlashProcessor=FCKDocumentProcessor.AppendNew();FCKFlashProcessor.ProcessDocument=function(A){var
B=A.getElementsByTagName('EMBED');var C;var i=B.length-1;while
(i>=0&&(C=B[i--])){if (C.src.endsWith('.swf',true)){var D=C.cloneNode(true);if
(FCKBrowserInfo.IsIE){var E;if (E=C.getAttribute('scale'))
D.setAttribute('scale',E);if (E=C.getAttribute('play'))
D.setAttribute('play',E);if (E=C.getAttribute('loop'))
D.setAttribute('loop',E);if (E=C.getAttribute('menu'))
D.setAttribute('menu',E);if (E=C.getAttribute('wmode'))
D.setAttribute('wmode',E);if (E=C.getAttribute('quality'))
D.setAttribute('quality',E);};var
F=FCKDocumentProcessor_CreateFakeImage('FCK__Flash',D);F.setAttribute('_fckflash','true',0);FCKFlashProcessor.RefreshView(F,C);C.parentNode.insertBefore(F,C);C.parentNode.removeChild(C);}}};FCKFlashProcessor.RefreshView=function(A,B){if
(B.width>0) A.style.width=FCKTools.ConvertHtmlSizeToStyle(B.width);if
(B.height>0)
A.style.height=FCKTools.ConvertHtmlSizeToStyle(B.height);};FCK.GetRealElement=function(A){var
e=FCKTempBin.Elements[A.getAttribute('_fckrealelement')];if
(A.getAttribute('_fckflash')){if (A.style.width.length>0)
e.width=FCKTools.ConvertStyleSizeToHtml(A.style.width);if
(A.style.height.length>0)
e.height=FCKTools.ConvertStyleSizeToHtml(A.style.height);};return e;};
+var FCK_StartupValue;FCK.Events=new
FCKEvents(FCK);FCK.Toolbar=null;FCK.HasFocus=false;FCK.StartEditor=function(){FCK.TempBaseTag=FCKConfig.BaseHref.length>0?'<base
href="'+FCKConfig.BaseHref+'" _fcktemp="true"></base>':'';FCK.EditingArea=new
FCKEditingArea(document.getElementById('xEditingArea'));this.SetHTML(FCKTools.GetLinkedFieldValue());};FCK.Focus=function(){FCK.EditingArea.Focus();};FCK.SetStatus=function(A){this.Status=A;if
(A==FCK_STATUS_ACTIVE){FCKFocusManager.AddWindow(window,true);if
(FCKBrowserInfo.IsIE) FCKFocusManager.AddWindow(window.frameElement,true);if
(FCKConfig.StartupFocus)
FCK.Focus();};this.Events.FireEvent('OnStatusChange',A);};FCK.GetHTML=FCK.GetXHTML=function(A){if
(FCK.EditMode==FCK_EDITMODE_SOURCE) return FCK.EditingArea.Textarea.value;var
B;if (FCKConfig.FullPage)
B=FCKXHtml.GetXHTML(this.EditorDocument.getElementsByTagName('html')[0],true,A);else{if
(FCKConfig.IgnoreEmptyParagraphValue&&this.EditorDocument.body.innerHTML=='<P> </P>')
B='';else B=FCKXHtml.GetXHTML(this.EditorDocument.body,false,A);};if
(FCKBrowserInfo.IsIE) B=B.replace(FCKRegexLib.ToReplace,'$1');if
(FCK.DocTypeDeclaration&&FCK.DocTypeDeclaration.length>0)
B=FCK.DocTypeDeclaration+'\n'+B;if
(FCK.XmlDeclaration&&FCK.XmlDeclaration.length>0)
B=FCK.XmlDeclaration+'\n'+B;return
FCKConfig.ProtectedSource.Revert(B);};FCK.UpdateLinkedField=function(){FCK.LinkedField.value=FCK.GetXHTML(FCKConfig.FormatOutput);FCK.Events.FireEvent('OnAfterLinkedFieldUpdate');};FCK.RegisteredDoubleClickHandlers=new
Object();FCK.OnDoubleClick=function(A){var
B=FCK.RegisteredDoubleClickHandlers[A.tagName];if (B)
B(A);};FCK.RegisterDoubleClickHandler=function(A,B){FCK.RegisteredDoubleClickHandlers[B.toUpperCase()]=A;};FCK.OnAfterSetHTML=function(){FCKDocumentProcessor.Process(FCK.EditorDocument);FCK.Events.FireEvent('OnAfterSetHTML');};FCK.ProtectUrls=function(A){A=A.replace(FCKRegexLib.ProtectUrlsAApo,'$1$2$3$2
_fcksavedurl=$2$3$2');A=A.replace(FCKRegexLib.ProtectUrlsANoApo,'$1$2
_fcksavedurl="$2"');A=A.replace(FCKRegexLib.ProtectUrlsImgApo,'$1$2$3$2
_fcksavedurl=$2$3$2');A=A.replace(FCKRegexLib.ProtectUrlsImgNoApo,'$1$2
_fcksavedurl="$2"');return A;};FCK.IsDirty=function(){return
(FCK_StartupValue!=FCK.EditorDocument.body.innerHTML);};FCK.ResetIsDirty=function(){if
(FCK.EditorDocument.body)
FCK_StartupValue=FCK.EditorDocument.body.innerHTML;};FCK.SetHTML=function(A){this.EditingArea.Mode=FCK.EditMode;if
(FCK.EditMode==FCK_EDITMODE_WYSIWYG){if
(FCKBrowserInfo.IsGecko){A=A.replace(FCKRegexLib.StrongOpener,'<b$1');A=A.replace(FCKRegexLib.StrongCloser,'<\/b>');A=A.replace(FCKRegexLib.EmOpener,'<i$1');A=A.replace(FCKRegexLib.EmCloser,'<\/i>');};A=FCKConfig.ProtectedSource.Protect(A);A=FCK.ProtectUrls(A);var
B;if (FCKConfig.FullPage){var B;if (FCKBrowserInfo.IsIE)
B=FCK._GetBehaviorsStyle();else if (FCKConfig.ShowBorders) B='<link
href="'+FCKConfig.FullBasePath+'css/fck_showtableborders_gecko.css"
rel="stylesheet" type="text/css" _fcktemp="true" />';B+='<link
href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet"
type="text/css" _fcktemp="true"
/>';B=A.replace(FCKRegexLib.HeadCloser,B+'$&');if
(FCK.TempBaseTag.length>0&&!FCKRegexLib.HasBaseTag.test(A))
B=B.replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);}else{B=FCKConfig.DocType+'<html
dir="'+FCKConfig.ContentLangDirection+'"';if
(FCKBrowserInfo.IsIE&&!FCKRegexLib.Html4DocType.test(FCKConfig.DocType)) B+='
style="overflow-y:
scroll"';B+='><head><title></title>'+this._GetEditorAreaStyleTags()+'<link
href="'+FCKConfig.FullBasePath+'css/fck_internal.css'+'" rel="stylesheet"
type="text/css" _fcktemp="true" />';if (FCKBrowserInfo.IsIE)
B+=FCK._GetBehaviorsStyle();else if (FCKConfig.ShowBorders) B+='<link
href="'+FCKConfig.FullBasePath+'css/fck_showtableborders_gecko.css"
rel="stylesheet" type="text/css" _fcktemp="true"
/>';B+=FCK.TempBaseTag;B+='</head><body>';if
(FCKBrowserInfo.IsGecko&&(A.length==0||FCKRegexLib.EmptyParagraph.test(A)))
B+=GECKO_BOGUS;else
B+=A;B+='</body></html>';};this.EditingArea.OnLoad=FCK_EditingArea_OnLoad;this.EditingArea.Start(B);}else{this.EditingArea.OnLoad=null;this.EditingArea.Start(A);this.EditingArea.Textarea._FCKShowContextMenu=true;}};function
FCK_EditingArea_OnLoad(){FCK.EditorWindow=FCK.EditingArea.Window;FCK.EditorDocument=FCK.EditingArea.Document;FCK.InitializeBehaviors();FCK.OnAfterSetHTML();if
(FCK.Status!=FCK_STATUS_NOTLOADED)
return;FCK.ResetIsDirty();FCKTools.AttachToLinkedFieldFormSubmit(FCK.UpdateLinkedField);FCKUndo.SaveUndoStep();FCK.SetStatus(FCK_STATUS_ACTIVE);};FCK._GetEditorAreaStyleTags=function(){var
A='';var B=FCKConfig.EditorAreaCSS;for (var i=0;i<B.length;i++) A+='<link
href="'+B[i]+'" rel="stylesheet" type="text/css" />';return A;};var
FCKFocusManager=FCK.FocusManager=new
Object();FCKFocusManager.IsLocked=false;FCK.HasFocus=false;FCKFocusManager.AddWindow=function(A,B){var
C;if (FCKBrowserInfo.IsIE)
C=A.nodeType==1?A:A.frameElement?A.frameElement:A.document;else
C=A.document;FCKTools.AddEventListener(C,'blur',FCKFocusManager_Win_OnBlur);FCKTools.AddEventListener(C,'focus',B?FCKFocusManager_Win_OnFocus_Area:FCKFocusManager_Win_OnFocus);};FCKFocusManager.RemoveWindow=function(A){if
(FCKBrowserInfo.IsIE)
oTarget=A.nodeType==1?A:A.frameElement?A.frameElement:A.document;else
oTarget=A.document;FCKTools.RemoveEventListener(oTarget,'blur',FCKFocusManager_Win_OnBlur);FCKTools.RemoveEventListener(oTarget,'focus',FCKFocusManager_Win_OnFocus_Area);FCKTools.RemoveEventListener(oTarget,'focus',FCKFocusManager_Win_OnFocus);};FCKFocusManager.Lock=function(){this.IsLocked=true;};FCKFocusManager.Unlock=function(){if
(this._HasPendingBlur)
FCKFocusManager._Timer=window.setTimeout(FCKFocusManager_FireOnBlur,100);this.IsLocked=false;};FCKFocusManager._ResetTimer=function(){this._HasPendingBlur=false;if
(this._Timer){window.clearTimeout(this._Timer);delete this._Timer;}};function
FCKFocusManager_Win_OnBlur(){if
(FCK&&FCK.HasFocus){FCKFocusManager._ResetTimer();FCKFocusManager._Timer=window.setTimeout(FCKFocusManager_FireOnBlur,100);}};function
FCKFocusManager_FireOnBlur(){if (FCKFocusManager.IsLocked)
FCKFocusManager._HasPendingBlur=true;else{FCK.HasFocus=false;FCK.Events.FireEvent("OnBlur");}};function
FCKFocusManager_Win_OnFocus_Area(){FCKFocusManager_Win_OnFocus();FCK.Focus();};function
FCKFocusManager_Win_OnFocus(){FCKFocusManager._ResetTimer();if
(!FCK.HasFocus&&!FCKFocusManager.IsLocked){FCK.HasFocus=true;FCK.Events.FireEvent("OnFocus");}}
+FCK.Description="FCKeditor for Internet Explorer
5.5+";FCK._GetBehaviorsStyle=function(){if (!FCK._BehaviorsStyle){var
A=FCKConfig.FullBasePath;var B='';var C;C='<style type="text/css"
_fcktemp="true">'+'INPUT { behavior: url('+A+'css/behaviors/hiddenfield.htc) ;
}';if (FCKConfig.ShowBorders)
B='url('+A+'css/behaviors/showtableborders.htc)';C+='INPUT,TEXTAREA,SELECT,.FCK__Anchor,.FCK__PageBreak';if
(FCKConfig.DisableObjectResizing){C+=',IMG';B+='
url('+A+'css/behaviors/disablehandles.htc)';};C+=' { behavior:
url('+A+'css/behaviors/disablehandles.htc) ; }';if (B.length>0) C+='TABLE {
behavior: '+B+' ; }';C+='</style>';FCK._BehaviorsStyle=C;};return
FCK._BehaviorsStyle;};function Doc_OnMouseUp(){if
(FCK.EditorWindow.event.srcElement.tagName=='HTML'){FCK.Focus();FCK.EditorWindow.event.cancelBubble=true;FCK.EditorWindow.event.returnValue=false;}};function
Doc_OnPaste(){if (FCK.Status==FCK_STATUS_COMPLETE)
FCK.Events.FireEvent("OnPaste");return false;};function Doc_OnKeyDown(){var
e=FCK.EditorWindow.event;switch (e.keyCode){case 13:if
(FCKConfig.UseBROnCarriageReturn&&!(e.ctrlKey||e.altKey||e.shiftKey)){Doc_OnKeyDownUndo();if
(FCK.EditorDocument.queryCommandState('InsertOrderedList')||FCK.EditorDocument.queryCommandState('InsertUnorderedList'))
return true;FCK.InsertHtml('<br> ');var
oRange=FCK.EditorDocument.selection.createRange();oRange.moveStart('character',-1);oRange.select();FCK.EditorDocument.selection.clear();return
false;};break;case 8:if
(FCKSelection.GetType()=='Control'){FCKSelection.Delete();return
false;};break;case 9:if
(FCKConfig.TabSpaces>0&&!(e.ctrlKey||e.altKey||e.shiftKey)){Doc_OnKeyDownUndo();FCK.InsertHtml(window.FCKTabHTML);return
false;};break;case 90:if
(e.ctrlKey&&!(e.altKey||e.shiftKey)){FCKUndo.Undo();return false;};break;case
89:if (e.ctrlKey&&!(e.altKey||e.shiftKey)){FCKUndo.Redo();return
false;};break;};if (!(e.keyCode>=16&&e.keyCode<=18)) Doc_OnKeyDownUndo();return
true;};function Doc_OnKeyDownUndo(){if
(!FCKUndo.Typing){FCKUndo.SaveUndoStep();FCKUndo.Typing=true;FCK.Events.FireEvent("OnSelectionChange");};FCKUndo.TypesCount++;if
(FCKUndo.TypesCount>FCKUndo.MaxTypes){FCKUndo.TypesCount=0;FCKUndo.SaveUndoStep();}};function
Doc_OnDblClick(){FCK.OnDoubleClick(FCK.EditorWindow.event.srcElement);FCK.EditorWindow.event.cancelBubble=true;};function
Doc_OnSelectionChange(){FCK.Events.FireEvent("OnSelectionChange");};FCK.InitializeBehaviors=function(A){this.EditorDocument.attachEvent('onmouseup',Doc_OnMouseUp);this.EditorDocument.body.attachEvent('onpaste',Doc_OnPaste);FCK.ContextMenu._InnerContextMenu.AttachToElement(FCK.EditorDocument.body);if
(FCKConfig.TabSpaces>0){window.FCKTabHTML='';for
(i=0;i<FCKConfig.TabSpaces;i++)
window.FCKTabHTML+=" ";};this.EditorDocument.attachEvent("onkeydown",Doc_OnKeyDown);this.EditorDocument.attachEvent("ondblclick",Doc_OnDblClick);this.EditorDocument.attachEvent("onselectionchange",Doc_OnSelectionChange);};FCK.InsertHtml=function(A){A=FCKConfig.ProtectedSource.Protect(A);A=FCK.ProtectUrls(A);FCK.Focus();FCKUndo.SaveUndoStep();var
B=FCK.EditorDocument.selection;if (B.type.toLowerCase()=='control')
B.clear();B.createRange().pasteHTML(A);};FCK.SetInnerHtml=function(A){var
B=FCK.EditorDocument;B.body.innerHTML='<div
id="__fakeFCKRemove__"> </div>'+A;B.getElementById('__fakeFCKRemove__').removeNode(true);};var
FCK_PreloadImages_Count=0;var FCK_PreloadImages_Images=new Array();function
FCK_PreloadImages(){var aImages=FCKConfig.PreloadImages||[];if
(typeof(aImages)=='string')
aImages=aImages.split(';');aImages.push(FCKConfig.SkinPath+'fck_strip.gif');FCK_PreloadImages_Count=aImages.length;var
aImageElements=new Array();for (var i=0;i<aImages.length;i++){var
eImg=document.createElement('img');eImg.onload=eImg.onerror=FCK_PreloadImages_OnImage;eImg.src=aImages[i];FCK_PreloadImages_Images[i]=eImg;}};function
FCK_PreloadImages_OnImage(){if ((--FCK_PreloadImages_Count)==0)
FCKTools.RunFunction(LoadToolbarSetup);};function
Document_OnContextMenu(){return
(event.srcElement._FCKShowContextMenu==true);};document.oncontextmenu=Document_OnContextMenu;function
FCK_Cleanup(){this.EditorWindow=null;this.EditorDocument=null;}
+FCK.RedirectNamedCommands=new
Object();FCK.ExecuteNamedCommand=function(A,B,C){FCKUndo.SaveUndoStep();if
(!C&&FCK.RedirectNamedCommands[A]!=null)
FCK.ExecuteRedirectedNamedCommand(A,B);else{FCK.Focus();FCK.EditorDocument.execCommand(A,false,B);FCK.Events.FireEvent('OnSelectionChange');};FCKUndo.SaveUndoStep();};FCK.GetNamedCommandState=function(A){try{if
(!FCK.EditorDocument.queryCommandEnabled(A)) return FCK_TRISTATE_DISABLED;else
return
FCK.EditorDocument.queryCommandState(A)?FCK_TRISTATE_ON:FCK_TRISTATE_OFF;}catch
(e){return FCK_TRISTATE_OFF;}};FCK.GetNamedCommandValue=function(A){var
B='';var C=FCK.GetNamedCommandState(A);if (C==FCK_TRISTATE_DISABLED) return
null;try{B=this.EditorDocument.queryCommandValue(A);}catch(e) {};return
B?B:'';};FCK.PasteFromWord=function(){FCKDialog.OpenDialog('FCKDialog_Paste',FCKLang.PasteFromWord,'dialog/fck_paste.html',400,330,'Word');};FCK.Preview=function(){var
A=FCKConfig.ScreenWidth*0.8;var B=FCKConfig.ScreenHeight*0.7;var
C=(FCKConfig.ScreenWidth-A)/2;var
D=window.open('',null,'toolbar=yes,location=no,status=yes,menubar=yes,scrollbars=yes,resizable=yes,width='+A+',height='+B+',left='+C);var
E;if (FCKConfig.FullPage){if (FCK.TempBaseTag.length>0)
E=FCK.GetXHTML().replace(FCKRegexLib.HeadOpener,'$&'+FCK.TempBaseTag);else
E=FCK.GetXHTML();}else{E=FCKConfig.DocType+'<html
dir="'+FCKConfig.ContentLangDirection+'">'+'<head>'+FCK.TempBaseTag+'<title>'+FCKLang.Preview+'</title>'+FCK._GetEditorAreaStyleTags()+'</head><body>'+FCK.GetXHTML()+'</body></html>';};D.document.write(E);D.document.close();};FCK.SwitchEditMode=function(A){var
B=(FCK.EditMode==FCK_EDITMODE_WYSIWYG);var C;if (B){if
(!A&&FCKBrowserInfo.IsIE)
FCKUndo.SaveUndoStep();C=FCK.GetXHTML(FCKConfig.FormatSource);}else
C=this.EditingArea.Textarea.value;FCK.EditMode=B?FCK_EDITMODE_SOURCE:FCK_EDITMODE_WYSIWYG;FCK.SetHTML(C);if
(FCKBrowserInfo.IsGecko)
window.onresize();FCK.Focus();FCKTools.RunFunction(FCK.ToolbarSet.RefreshModeState,FCK.ToolbarSet);};FCK.CreateElement=function(A){var
e=FCK.EditorDocument.createElement(A);return
FCK.InsertElementAndGetIt(e);};FCK.InsertElementAndGetIt=function(e){e.setAttribute('FCKTempLabel','true');this.InsertElement(e);var
A=FCK.EditorDocument.getElementsByTagName(e.tagName);for (var
i=0;i<A.length;i++){if
(A[i].getAttribute('FCKTempLabel')){A[i].removeAttribute('FCKTempLabel');return
A[i];}};return null;};
+FCK.Paste=function(){if
(FCKConfig.ForcePasteAsPlainText){FCK.PasteAsPlainText();return;};var
A=FCK.GetClipboardHTML();if (FCKConfig.AutoDetectPasteFromWord){var
B=/<\w[^>]*(( class="?MsoNormal"?)|(="mso-))/gi;if (B.test(A)){if
(confirm(FCKLang["PasteWordConfirm"])){FCK.PasteFromWord();return;}}};FCK.InsertHtml(A);};FCK.PasteAsPlainText=function(){var
A=FCKTools.HTMLEncode(clipboardData.getData("Text"));A=A.replace(/\n/g,'<BR>');this.InsertHtml(A);};FCK.InsertElement=function(A){FCK.InsertHtml(A.outerHTML);};FCK.GetClipboardHTML=function(){var
A=document.getElementById('___FCKHiddenDiv');if (!A){var
A=document.createElement('DIV');A.id='___FCKHiddenDiv';A.style.visibility='hidden';A.style.overflow='hidden';A.style.position='absolute';A.style.width=1;A.style.height=1;document.body.appendChild(A);};A.innerHTML='';var
C=document.body.createTextRange();C.moveToElementText(A);C.execCommand('Paste');var
D=A.innerHTML;A.innerHTML='';return
D;};FCK.AttachToOnSelectionChange=function(A){this.Events.AttachEvent('OnSelectionChange',A);};FCK.CreateLink=function(A){FCK.ExecuteNamedCommand('Unlink');if
(A.length>0){var B='javascript:void(0);/*'+(new
Date().getTime())+'*/';FCK.ExecuteNamedCommand('CreateLink',B);var
C=this.EditorDocument.links;for (i=0;i<C.length;i++){if
(C[i].href==B){C[i].href=A;return C[i];}}}};
+var FCKSelection=FCK.Selection=new Object();
+FCKSelection.GetType=function(){return
FCK.EditorDocument.selection.type;};FCKSelection.GetSelectedElement=function(){if
(this.GetType()=='Control'){var
A=FCK.EditorDocument.selection.createRange();if (A&&A.item) return
FCK.EditorDocument.selection.createRange().item(0);}};FCKSelection.GetParentElement=function(){switch
(this.GetType()){case 'Control':return
FCKSelection.GetSelectedElement().parentElement;case
'None':return;default:return
FCK.EditorDocument.selection.createRange().parentElement();}};FCKSelection.SelectNode=function(A){FCK.Focus();FCK.EditorDocument.selection.empty();try{var
B=FCK.EditorDocument.body.createControlRange();B.addElement(A);}catch(e){var
B=FCK.EditorDocument.selection.createRange();B.moveToElementText(A);};B.select();};FCKSelection.Collapse=function(A){FCK.Focus();if
(this.GetType()=='Text'){var
B=FCK.EditorDocument.selection.createRange();B.collapse(A==null||A===true);B.select();}};FCKSelection.HasAncestorNode=function(A){var
B;if
(FCK.EditorDocument.selection.type=="Control"){B=this.GetSelectedElement();}else{var
C=FCK.EditorDocument.selection.createRange();B=C.parentElement();};while
(B){if (B.tagName==A) return true;B=B.parentNode;};return
false;};FCKSelection.MoveToAncestorNode=function(A){var B;if
(FCK.EditorDocument.selection.type=="Control"){var
C=FCK.EditorDocument.selection.createRange();for (i=0;i<C.length;i++){if
(C(i).parentNode){B=C(i).parentNode;break;}}}else{var
C=FCK.EditorDocument.selection.createRange();B=C.parentElement();};while
(B&&B.nodeName!=A) B=B.parentNode;return B;};FCKSelection.Delete=function(){var
A=FCK.EditorDocument.selection;if
(A.type.toLowerCase()!="none"){A.clear();};return A;};
+var FCKTableHandler=new Object();FCKTableHandler.InsertRow=function(){var
A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var
B=A.cloneNode(true);A.parentNode.insertBefore(B,A);FCKTableHandler.ClearRow(A);};FCKTableHandler.DeleteRows=function(A){if
(!A) A=FCKSelection.MoveToAncestorNode("TR");if (!A) return;var
B=FCKTools.GetElementAscensor(A,'TABLE');if
(B.rows.length==1){FCKTableHandler.DeleteTable(B);return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteTable=function(A){if
(!A){var A=FCKSelection.GetSelectedElement();if (!A||A.tagName!='TABLE')
A=FCKSelection.MoveToAncestorNode("TABLE");};if (!A)
return;FCKSelection.SelectNode(A);FCKSelection.Collapse();A.parentNode.removeChild(A);};FCKTableHandler.InsertColumn=function(){var
A=FCKSelection.MoveToAncestorNode("TD");if (!A)
A=FCKSelection.MoveToAncestorNode("TH");if (!A) return;var
B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex+1;for (var
i=0;i<B.rows.length;i++){var D=B.rows[i];if (D.cells.length<C)
continue;A=D.cells[C-1].cloneNode(false);if (FCKBrowserInfo.IsGecko)
A.innerHTML=GECKO_BOGUS;var E=D.cells[C];if (E) D.insertBefore(A,E);else
D.appendChild(A);}};FCKTableHandler.DeleteColumns=function(){var
A=FCKSelection.MoveToAncestorNode('TD')||FCKSelection.MoveToAncestorNode('TH');if
(!A) return;var B=FCKTools.GetElementAscensor(A,'TABLE');var C=A.cellIndex;for
(var i=B.rows.length-1;i>=0;i--){var D=B.rows[i];if
(C==0&&D.cells.length==1){FCKTableHandler.DeleteRows(D);continue;};if
(D.cells[C])
D.removeChild(D.cells[C]);}};FCKTableHandler.InsertCell=function(A){var
B=A?A:FCKSelection.MoveToAncestorNode("TD");if (!B) return;var
C=FCK.EditorDocument.createElement("TD");if (FCKBrowserInfo.IsGecko)
C.innerHTML=GECKO_BOGUS;if
(B.cellIndex==B.parentNode.cells.length-1){B.parentNode.appendChild(C);}else{B.parentNode.insertBefore(C,B.nextSibling);};return
C;};FCKTableHandler.DeleteCell=function(A){if
(A.parentNode.cells.length==1){FCKTableHandler.DeleteRows(FCKTools.GetElementAscensor(A,'TR'));return;};A.parentNode.removeChild(A);};FCKTableHandler.DeleteCells=function(){var
A=FCKTableHandler.GetSelectedCells();for (var
i=A.length-1;i>=0;i--){FCKTableHandler.DeleteCell(A[i]);}};FCKTableHandler.MergeCells=function(){var
A=FCKTableHandler.GetSelectedCells();if (A.length<2) return;if
(A[0].parentNode!=A[A.length-1].parentNode) return;var
B=isNaN(A[0].colSpan)?1:A[0].colSpan;var C='';var
D=FCK.EditorDocument.createDocumentFragment();for (var
i=A.length-1;i>=0;i--){var E=A[i];for (var
c=E.childNodes.length-1;c>=0;c--){var F=E.removeChild(E.childNodes[c]);if
((F.hasAttribute&&F.hasAttribute('_moz_editor_bogus_node'))||(F.getAttribute&&F.getAttribute('type',2)=='_moz'))
continue;D.insertBefore(F,D.firstChild);};if
(i>0){B+=isNaN(E.colSpan)?1:E.colSpan;FCKTableHandler.DeleteCell(E);}};A[0].colSpan=B;if
(FCKBrowserInfo.IsGecko&&D.childNodes.length==0)
A[0].innerHTML=GECKO_BOGUS;else
A[0].appendChild(D);};FCKTableHandler.SplitCell=function(){var
A=FCKTableHandler.GetSelectedCells();if (A.length!=1) return;var
B=this._CreateTableMap(A[0].parentNode.parentNode);var
C=FCKTableHandler._GetCellIndexSpan(B,A[0].parentNode.rowIndex,A[0]);var
D=this._GetCollumnCells(B,C);for (var i=0;i<D.length;i++){if (D[i]==A[0]){var
E=this.InsertCell(A[0]);if (!isNaN(A[0].rowSpan)&&A[0].rowSpan>1)
E.rowSpan=A[0].rowSpan;}else{if (isNaN(D[i].colSpan)) D[i].colSpan=2;else
D[i].colSpan+=1;}}};FCKTableHandler._GetCellIndexSpan=function(A,B,C){if
(A.length<B+1) return null;var D=A[B];for (var c=0;c<D.length;c++){if (D[c]==C)
return c;};return null;};FCKTableHandler._GetCollumnCells=function(A,B){var
C=new Array();for (var r=0;r<A.length;r++){var D=A[r][B];if
(D&&(C.length==0||C[C.length-1]!=D)) C[C.length]=D;};return
C;};FCKTableHandler._CreateTableMap=function(A){var B=A.rows;var r=-1;var C=new
Array();for (var i=0;i<B.length;i++){r++;if (!C[r]) C[r]=new Array();var
c=-1;for (var j=0;j<B[i].cells.length;j++){var D=B[i].cells[j];c++;while
(C[r][c]) c++;var E=isNaN(D.colSpan)?1:D.colSpan;var
F=isNaN(D.rowSpan)?1:D.rowSpan;for (var G=0;G<F;G++){if (!C[r+G]) C[r+G]=new
Array();for (var H=0;H<E;H++){C[r+G][c+H]=B[i].cells[j];}};c+=E-1;}};return
C;};FCKTableHandler.ClearRow=function(A){var B=A.cells;for (var
i=0;i<B.length;i++){if (FCKBrowserInfo.IsGecko) B[i].innerHTML=GECKO_BOGUS;else
B[i].innerHTML='';}};
+FCKTableHandler.GetSelectedCells=function(){var A=new Array();var
B=FCK.EditorDocument.selection.createRange();var
C=FCKSelection.GetParentElement();if (C&&C.tagName.Equals('TD','TH'))
A[0]=C;else{var C=FCKSelection.MoveToAncestorNode("TABLE");if (C){for (var
i=0;i<C.cells.length;i++){var
E=FCK.EditorDocument.selection.createRange();E.moveToElementText(C.cells[i]);if
(B.inRange(E)||(B.compareEndPoints('StartToStart',E)>=0&&B.compareEndPoints('StartToEnd',E)<=0)||(B.compareEndPoints('EndToStart',E)>=0&&B.compareEndPoints('EndToEnd',E)<=0)){A[A.length]=C.cells[i];}}}};return
A;};
+var
FCKXml=function(){this.Error=false;};FCKXml.prototype.LoadUrl=function(A){this.Error=false;var
B=FCKTools.CreateXmlObject('XmlHttp');if
(!B){this.Error=true;return;};B.open("GET",A,false);B.send(null);if
(B.status==200||B.status==304) this.DOMDocument=B.responseXML;else if
(B.status==0&&B.readyState==4){this.DOMDocument=FCKTools.CreateXmlObject('DOMDocument');this.DOMDocument.async=false;this.DOMDocument.resolveExternals=false;this.DOMDocument.loadXML(B.responseText);}else{this.Error=true;alert('Error
loading "'+A+'"');}};FCKXml.prototype.SelectNodes=function(A,B){if
(this.Error) return new Array();if (B) return B.selectNodes(A);else return
this.DOMDocument.selectNodes(A);};FCKXml.prototype.SelectSingleNode=function(A,B){if
(this.Error) return;if (B) return B.selectSingleNode(A);else return
this.DOMDocument.selectSingleNode(A);}
+var
FCKStyleDef=function(A,B){this.Name=A;this.Element=B.toUpperCase();this.IsObjectElement=FCKRegexLib.ObjectElements.test(this.Element);this.Attributes=new
Object();};FCKStyleDef.prototype.AddAttribute=function(A,B){this.Attributes[A]=B;};FCKStyleDef.prototype.GetOpenerTag=function(){var
s='<'+this.Element;for (var a in this.Attributes) s+='
'+a+'="'+this.Attributes[a]+'"';return
s+'>';};FCKStyleDef.prototype.GetCloserTag=function(){return
'</'+this.Element+'>';};FCKStyleDef.prototype.RemoveFromSelection=function(){if
(FCKSelection.GetType()=='Control')
this._RemoveMe(FCK.ToolbarSet.CurrentInstance.Selection.GetSelectedElement());else
this._RemoveMe(FCK.ToolbarSet.CurrentInstance.Selection.GetParentElement());}
+FCKStyleDef.prototype.ApplyToSelection=function(){var
A=FCK.ToolbarSet.CurrentInstance.EditorDocument.selection;if
(A.type=='Text'){var B=A.createRange();var
e=document.createElement(this.Element);e.innerHTML=B.htmlText;this._AddAttributes(e);this._RemoveDuplicates(e);B.pasteHTML(e.outerHTML);}else
if (A.type=='Control'){var
C=FCK.ToolbarSet.CurrentInstance.Selection.GetSelectedElement();if
(C.tagName==this.Element)
this._AddAttributes(C);}};FCKStyleDef.prototype._AddAttributes=function(A){for
(var a in this.Attributes){switch (a.toLowerCase()){case
'style':A.style.cssText=this.Attributes[a];break;case
'class':A.setAttribute('className',this.Attributes[a],0);break;case
'src':A.setAttribute('_fcksavedurl',this.Attributes[a],0);default:A.setAttribute(a,this.Attributes[a],0);}}};FCKStyleDef.prototype._RemoveDuplicates=function(A){for
(var i=0;i<A.children.length;i++){var
B=A.children[i];this._RemoveDuplicates(B);if (this.IsEqual(B))
FCKTools.RemoveOuterTags(B);}};FCKStyleDef.prototype.IsEqual=function(e){if
(e.tagName!=this.Element) return false;for (var a in this.Attributes){switch
(a.toLowerCase()){case 'style':if
(e.style.cssText.toLowerCase()!=this.Attributes[a].toLowerCase()) return
false;break;case 'class':if (e.getAttribute('className',0)!=this.Attributes[a])
return false;break;default:if (e.getAttribute(a,0)!=this.Attributes[a]) return
false;}};return true;};FCKStyleDef.prototype._RemoveMe=function(A){if (!A)
return;var B=A.parentElement;if (this.IsEqual(A)){if (this.IsObjectElement){for
(var a in this.Attributes){switch (a.toLowerCase()){case
'class':A.removeAttribute('className',0);break;default:A.removeAttribute(a,0);}};return;}else
FCKTools.RemoveOuterTags(A);};this._RemoveMe(B);}
+var FCKStylesLoader=function(){this.Styles=new Object();this.StyleGroups=new
Object();this.Loaded=false;this.HasObjectElements=false;};FCKStylesLoader.prototype.Load=function(A){var
B=new FCKXml();B.LoadUrl(A);var C=B.SelectNodes('Styles/Style');for (var
i=0;i<C.length;i++){var
D=C[i].attributes.getNamedItem('element').value.toUpperCase();var E=new
FCKStyleDef(C[i].attributes.getNamedItem('name').value,D);if
(E.IsObjectElement) this.HasObjectElements=true;var
F=B.SelectNodes('Attribute',C[i]);for (var j=0;j<F.length;j++){var
G=F[j].attributes.getNamedItem('name').value;var
H=F[j].attributes.getNamedItem('value').value;if (G.toLowerCase()=='style'){var
I=document.createElement('SPAN');I.style.cssText=H;H=I.style.cssText;};E.AddAttribute(G,H);};this.Styles[E.Name]=E;var
J=this.StyleGroups[D];if (J==null){this.StyleGroups[D]=new
Array();J=this.StyleGroups[D];};J[J.length]=E;};this.Loaded=true;}
+var
FCKNamedCommand=function(A){this.Name=A;};FCKNamedCommand.prototype.Execute=function(){FCK.ExecuteNamedCommand(this.Name);};FCKNamedCommand.prototype.GetState=function(){return
FCK.GetNamedCommandState(this.Name);};
+var
FCKDialogCommand=function(A,B,C,D,E,F,G){this.Name=A;this.Title=B;this.Url=C;this.Width=D;this.Height=E;this.GetStateFunction=F;this.GetStateParam=G;};FCKDialogCommand.prototype.Execute=function(){FCKDialog.OpenDialog('FCKDialog_'+this.Name,this.Title,this.Url,this.Width,this.Height);};FCKDialogCommand.prototype.GetState=function(){if
(this.GetStateFunction) return this.GetStateFunction(this.GetStateParam);else
return FCK_TRISTATE_OFF;};var
FCKUndefinedCommand=function(){this.Name='Undefined';};FCKUndefinedCommand.prototype.Execute=function(){alert(FCKLang.NotImplemented);};FCKUndefinedCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKFontNameCommand=function(){this.Name='FontName';};FCKFontNameCommand.prototype.Execute=function(A){if
(A==null||A==""){}else
FCK.ExecuteNamedCommand('FontName',A);};FCKFontNameCommand.prototype.GetState=function(){return
FCK.GetNamedCommandValue('FontName');};var
FCKFontSizeCommand=function(){this.Name='FontSize';};FCKFontSizeCommand.prototype.Execute=function(A){if
(typeof(A)=='string') A=parseInt(A);if
(A==null||A==''){FCK.ExecuteNamedCommand('FontSize',3);}else
FCK.ExecuteNamedCommand('FontSize',A);};FCKFontSizeCommand.prototype.GetState=function(){return
FCK.GetNamedCommandValue('FontSize');};var
FCKFormatBlockCommand=function(){this.Name='FormatBlock';};FCKFormatBlockCommand.prototype.Execute=function(A){if
(A==null||A=='') FCK.ExecuteNamedCommand('FormatBlock','<P>');else if
(A=='div'&&FCKBrowserInfo.IsGecko)
FCK.ExecuteNamedCommand('FormatBlock','div');else
FCK.ExecuteNamedCommand('FormatBlock','<'+A+'>');};FCKFormatBlockCommand.prototype.GetState=function(){return
FCK.GetNamedCommandValue('FormatBlock');};var
FCKPreviewCommand=function(){this.Name='Preview';};FCKPreviewCommand.prototype.Execute=function(){FCK.Preview();};FCKPreviewCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKSaveCommand=function(){this.Name='Save';};FCKSaveCommand.prototype.Execute=function(){var
A=FCK.LinkedField.form;if (typeof(A.onsubmit)=='function'){var
B=A.onsubmit();if (B!=null&&B===false)
return;};A.submit();};FCKSaveCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKNewPageCommand=function(){this.Name='NewPage';};FCKNewPageCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();FCK.SetHTML('');FCKUndo.Typing=true;};FCKNewPageCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};var
FCKSourceCommand=function(){this.Name='Source';};FCKSourceCommand.prototype.Execute=function(){if
(FCKConfig.SourcePopup){var A=FCKConfig.ScreenWidth*0.65;var
B=FCKConfig.ScreenHeight*0.65;FCKDialog.OpenDialog('FCKDialog_Source',FCKLang.Source,'dialog/fck_source.html',A,B,null,null,true);}else
FCK.SwitchEditMode();};FCKSourceCommand.prototype.GetState=function(){return
(FCK.EditMode==FCK_EDITMODE_WYSIWYG?FCK_TRISTATE_OFF:FCK_TRISTATE_ON);};var
FCKUndoCommand=function(){this.Name='Undo';};FCKUndoCommand.prototype.Execute=function(){if
(FCKBrowserInfo.IsIE) FCKUndo.Undo();else
FCK.ExecuteNamedCommand('Undo');};FCKUndoCommand.prototype.GetState=function(){if
(FCKBrowserInfo.IsIE) return
(FCKUndo.CheckUndoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return
FCK.GetNamedCommandState('Undo');};var
FCKRedoCommand=function(){this.Name='Redo';};FCKRedoCommand.prototype.Execute=function(){if
(FCKBrowserInfo.IsIE) FCKUndo.Redo();else
FCK.ExecuteNamedCommand('Redo');};FCKRedoCommand.prototype.GetState=function(){if
(FCKBrowserInfo.IsIE) return
(FCKUndo.CheckRedoState()?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED);else return
FCK.GetNamedCommandState('Redo');};var
FCKPageBreakCommand=function(){this.Name='PageBreak';};FCKPageBreakCommand.prototype.Execute=function(){var
e=FCK.EditorDocument.createElement('DIV');e.style.pageBreakAfter='always';e.innerHTML='<span
style="DISPLAY:none"> </span>';var
A=FCKDocumentProcessor_CreateFakeImage('FCK__PageBreak',e);A=FCK.InsertElement(A);};FCKPageBreakCommand.prototype.GetState=function(){return
0;};var
FCKUnlinkCommand=function(){this.Name='Unlink';};FCKUnlinkCommand.prototype.Execute=function(){if
(FCKBrowserInfo.IsGecko){var A=FCK.Selection.MoveToAncestorNode('A');if (A)
FCK.Selection.SelectNode(A);};FCK.ExecuteNamedCommand(this.Name);if
(FCKBrowserInfo.IsGecko)
FCK.Selection.Collapse(true);};FCKUnlinkCommand.prototype.GetState=function(){return
FCK.GetNamedCommandState(this.Name);}
+var
FCKSpellCheckCommand=function(){this.Name='SpellCheck';this.IsEnabled=(FCKConfig.SpellChecker=='ieSpell'||FCKConfig.SpellChecker=='SpellerPages');};FCKSpellCheckCommand.prototype.Execute=function(){switch
(FCKConfig.SpellChecker){case 'ieSpell':this._RunIeSpell();break;case
'SpellerPages':FCKDialog.OpenDialog('FCKDialog_SpellCheck','Spell
Check','dialog/fck_spellerpages.html',440,480);break;}};FCKSpellCheckCommand.prototype._RunIeSpell=function(){try{var
A=new
ActiveXObject("ieSpell.ieSpellExtension");A.CheckAllLinkedDocuments(FCK.EditorDocument);}catch(e){if(e.number==-2146827859){if
(confirm(FCKLang.IeSpellDownload))
window.open(FCKConfig.IeSpellDownloadUrl,'IeSpellDownload');}else alert('Error
Loading ieSpell: '+e.message+'
('+e.number+')');}};FCKSpellCheckCommand.prototype.GetState=function(){return
this.IsEnabled?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;}
+var
FCKTextColorCommand=function(A){this.Name=A=='ForeColor'?'TextColor':'BGColor';this.Type=A;var
B;if (FCKBrowserInfo.IsIE) B=window;else if (FCK.ToolbarSet._IFrame)
B=FCKTools.GetElementWindow(FCK.ToolbarSet._IFrame);else
B=window.parent;this._Panel=new
FCKPanel(B,true);this._Panel.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');this._Panel.MainNode.className='FCK_Panel';this._CreatePanelBody(this._Panel.Document,this._Panel.MainNode);FCKTools.DisableSelection(this._Panel.Document.body);};FCKTextColorCommand.prototype.Execute=function(A,B,C){FCK._ActiveColorPanelType=this.Type;this._Panel.Show(A,B,C);};FCKTextColorCommand.prototype.SetColor=function(A){if
(FCK._ActiveColorPanelType=='ForeColor')
FCK.ExecuteNamedCommand('ForeColor',A);else if (FCKBrowserInfo.IsGeckoLike){if
(FCKBrowserInfo.IsGecko&&!FCKConfig.GeckoUseSPAN)
FCK.EditorDocument.execCommand('useCSS',false,false);FCK.ExecuteNamedCommand('hilitecolor',A);if
(FCKBrowserInfo.IsGecko&&!FCKConfig.GeckoUseSPAN)
FCK.EditorDocument.execCommand('useCSS',false,true);}else
FCK.ExecuteNamedCommand('BackColor',A);delete
FCK._ActiveColorPanelType;};FCKTextColorCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;};function FCKTextColorCommand_OnMouseOver() {
this.className='ColorSelected';};function FCKTextColorCommand_OnMouseOut() {
this.className='ColorDeselected';};function
FCKTextColorCommand_OnClick(){this.className='ColorDeselected';this.Command.SetColor('#'+this.Color);this.Command._Panel.Hide();};function
FCKTextColorCommand_AutoOnClick(){this.className='ColorDeselected';this.Command.SetColor('');this.Command._Panel.Hide();};function
FCKTextColorCommand_MoreOnClick(){this.className='ColorDeselected';this.Command._Panel.Hide();FCKDialog.OpenDialog('FCKDialog_Color',FCKLang.DlgColorTitle,'dialog/fck_colorselector.html',400,330,this.Command.SetColor);};FCKTextColorCommand.prototype._CreatePanelBody=function(A,B){function
CreateSelectionDiv(){var
C=A.createElement("DIV");C.className='ColorDeselected';C.onmouseover=FCKTextColorCommand_OnMouseOver;C.onmouseout=FCKTextColorCommand_OnMouseOut;return
C;};var
D=B.appendChild(A.createElement("TABLE"));D.className='ForceBaseFont';D.style.tableLayout='fixed';D.cellPadding=0;D.cellSpacing=0;D.border=0;D.width=150;var
E=D.insertRow(-1).insertCell(-1);E.colSpan=8;var
C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table cellspacing="0"
cellpadding="0" width="100%" border="0">\<tr>\<td><div
class="ColorBoxBorder"><div class="ColorBox" style="background-color:
#000000"></div></div></td>\<td nowrap width="100%" align="center">' +
FCKLang.ColorAutomatic +
'</td>\</tr>\</table>';C.Command=this;C.onclick=FCKTextColorCommand_AutoOnClick;var
G=FCKConfig.FontColors.toString().split(',');var H=0;while (H<G.length){var
I=D.insertRow(-1);for (var
i=0;i<8&&H<G.length;i++,H++){C=I.insertCell(-1).appendChild(CreateSelectionDiv());C.Color=G[H];C.innerHTML='<div
class="ColorBoxBorder"><div class="ColorBox" style="background-color:
#'+G[H]+'"></div></div>';C.Command=this;C.onclick=FCKTextColorCommand_OnClick;}};E=D.insertRow(-1).insertCell(-1);E.colSpan=8;C=E.appendChild(CreateSelectionDiv());C.innerHTML='<table
width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td nowrap
align="center">'+FCKLang.ColorMoreColors+'</td></tr></table>';C.Command=this;C.onclick=FCKTextColorCommand_MoreOnClick;}
+var
FCKPastePlainTextCommand=function(){this.Name='PasteText';};FCKPastePlainTextCommand.prototype.Execute=function(){FCK.PasteAsPlainText();};FCKPastePlainTextCommand.prototype.GetState=function(){return
FCK.GetNamedCommandState('Paste');};
+var
FCKPasteWordCommand=function(){this.Name='PasteWord';};FCKPasteWordCommand.prototype.Execute=function(){FCK.PasteFromWord();};FCKPasteWordCommand.prototype.GetState=function(){if
(FCKConfig.ForcePasteAsPlainText) return FCK_TRISTATE_DISABLED;else return
FCK.GetNamedCommandState('Paste');};
+var
FCKTableCommand=function(A){this.Name=A;};FCKTableCommand.prototype.Execute=function(){FCKUndo.SaveUndoStep();switch
(this.Name){case 'TableInsertRow':FCKTableHandler.InsertRow();break;case
'TableDeleteRows':FCKTableHandler.DeleteRows();break;case
'TableInsertColumn':FCKTableHandler.InsertColumn();break;case
'TableDeleteColumns':FCKTableHandler.DeleteColumns();break;case
'TableInsertCell':FCKTableHandler.InsertCell();break;case
'TableDeleteCells':FCKTableHandler.DeleteCells();break;case
'TableMergeCells':FCKTableHandler.MergeCells();break;case
'TableSplitCell':FCKTableHandler.SplitCell();break;case
'TableDelete':FCKTableHandler.DeleteTable();break;default:alert(FCKLang.UnknownCommand.replace(/%1/g,this.Name));}};FCKTableCommand.prototype.GetState=function(){return
FCK_TRISTATE_OFF;}
+var FCKStyleCommand=function(){this.Name='Style';this.StylesLoader=new
FCKStylesLoader();this.StylesLoader.Load(FCKConfig.StylesXmlPath);this.Styles=this.StylesLoader.Styles;};FCKStyleCommand.prototype.Execute=function(A,B){FCKUndo.SaveUndoStep();if
(B.Selected) B.Style.RemoveFromSelection();else
B.Style.ApplyToSelection();FCKUndo.SaveUndoStep();FCK.Focus();FCK.Events.FireEvent("OnSelectionChange");};FCKStyleCommand.prototype.GetState=function(){if
(!FCK.EditorDocument) return FCK_TRISTATE_DISABLED;var
A=FCK.EditorDocument.selection;if (FCKSelection.GetType()=='Control'){var
e=FCKSelection.GetSelectedElement();if (e) return
this.StylesLoader.StyleGroups[e.tagName]?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;};return
FCK_TRISTATE_OFF;};FCKStyleCommand.prototype.GetActiveStyles=function(){var
A=new Array();if (FCKSelection.GetType()=='Control')
this._CheckStyle(FCKSelection.GetSelectedElement(),A,false);else
this._CheckStyle(FCKSelection.GetParentElement(),A,true);return
A;};FCKStyleCommand.prototype._CheckStyle=function(A,B,C){if (!A) return;if
(A.nodeType==1){var D=this.StylesLoader.StyleGroups[A.tagName];if (D){for (var
i=0;i<D.length;i++){if (D[i].IsEqual(A)) B[B.length]=D[i];}}};if (C)
this._CheckStyle(A.parentNode,B,C);}
+var
FCKFitWindow=function(){this.Name='FitWindow';};FCKFitWindow.prototype.Execute=function(){var
A=window.frameElement;var B=A.style;var C=parent;var
D=C.document.documentElement;var E=C.document.body;var F=E.style;if
(!this.IsMaximized){if(FCKBrowserInfo.IsIE)
C.attachEvent('onresize',FCKFitWindow_Resize);else
C.addEventListener('resize',FCKFitWindow_Resize,true);this._ScrollPos=FCKTools.GetScrollPosition(C);var
G=A;while(G=G.parentNode){if (G.nodeType==1)
G._fckSavedStyles=FCKTools.SaveStyles(G);};if
(FCKBrowserInfo.IsIE){this.documentElementOverflow=D.style.overflow;D.style.overflow='hidden';F.overflow='hidden';}else{F.overflow='hidden';F.width='0px';F.height='0px';};this._EditorFrameStyles=FCKTools.SaveStyles(A);var
H=FCKTools.GetViewPaneSize(C);B.position="absolute";B.zIndex=FCKConfig.FloatingPanelsZIndex-1;B.left="0px";B.top="0px";B.width=H.Width+"px";B.height=H.Height+"px";if
(!FCKBrowserInfo.IsIE){B.borderRight=B.borderBottom="9999px solid
white";B.backgroundColor="white";};C.scrollTo(0,0);this.IsMaximized=true;}else{if(FCKBrowserInfo.IsIE)
C.detachEvent("onresize",FCKFitWindow_Resize);else
C.removeEventListener("resize",FCKFitWindow_Resize,true);var
G=A;while(G=G.parentNode){if
(G._fckSavedStyles){FCKTools.RestoreStyles(G,G._fckSavedStyles);G._fckSavedStyles=null;}};if
(FCKBrowserInfo.IsIE)
D.style.overflow=this.documentElementOverflow;FCKTools.RestoreStyles(A,this._EditorFrameStyles);C.scrollTo(this._ScrollPos.X,this._ScrollPos.Y);this.IsMaximized=false;};FCKToolbarItems.GetItem('FitWindow').RefreshState();FCK.EditingArea.MakeEditable();FCK.Focus();};FCKFitWindow.prototype.GetState=function(){if
(FCKConfig.ToolbarLocation!='In') return FCK_TRISTATE_DISABLED;else return
(this.IsMaximized?FCK_TRISTATE_ON:FCK_TRISTATE_OFF);};function
FCKFitWindow_Resize(){var oViewPaneSize=FCKTools.GetViewPaneSize(parent);var
eEditorFrameStyle=window.frameElement.style;eEditorFrameStyle.width=oViewPaneSize.Width+'px';eEditorFrameStyle.height=oViewPaneSize.Height+'px';};
+var FCKCommands=FCK.Commands=new Object();FCKCommands.LoadedCommands=new
Object();FCKCommands.RegisterCommand=function(A,B){this.LoadedCommands[A]=B;};FCKCommands.GetCommand=function(A){var
B=FCKCommands.LoadedCommands[A];if (B) return B;switch (A){case
'DocProps':B=new
FCKDialogCommand('DocProps',FCKLang.DocProps,'dialog/fck_docprops.html',400,390,FCKCommands.GetFullPageState);break;case
'Templates':B=new
FCKDialogCommand('Templates',FCKLang.DlgTemplatesTitle,'dialog/fck_template.html',380,450);break;case
'Link':B=new
FCKDialogCommand('Link',FCKLang.DlgLnkWindowTitle,'dialog/fck_link.html',400,330,FCK.GetNamedCommandState,'CreateLink');break;case
'Unlink':B=new FCKUnlinkCommand();break;case 'Anchor':B=new
FCKDialogCommand('Anchor',FCKLang.DlgAnchorTitle,'dialog/fck_anchor.html',370,170);break;case
'BulletedList':B=new
FCKDialogCommand('BulletedList',FCKLang.BulletedListProp,'dialog/fck_listprop.html',370,170);break;case
'NumberedList':B=new
FCKDialogCommand('NumberedList',FCKLang.NumberedListProp,'dialog/fck_listprop.html',370,170);break;case
'About':B=new
FCKDialogCommand('About',FCKLang.About,'dialog/fck_about.html',400,330);break;case
'Find':B=new
FCKDialogCommand('Find',FCKLang.DlgFindTitle,'dialog/fck_find.html',340,170);break;case
'Replace':B=new
FCKDialogCommand('Replace',FCKLang.DlgReplaceTitle,'dialog/fck_replace.html',340,200);break;case
'Image':B=new
FCKDialogCommand('Image',FCKLang.DlgImgTitle,'dialog/fck_image.html',450,400);break;case
'Flash':B=new
FCKDialogCommand('Flash',FCKLang.DlgFlashTitle,'dialog/fck_flash.html',450,400);break;case
'SpecialChar':B=new
FCKDialogCommand('SpecialChar',FCKLang.DlgSpecialCharTitle,'dialog/fck_specialchar.html',400,320);break;case
'Smiley':B=new
FCKDialogCommand('Smiley',FCKLang.DlgSmileyTitle,'dialog/fck_smiley.html',FCKConfig.SmileyWindowWidth,FCKConfig.SmileyWindowHeight);break;case
'Table':B=new
FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html',450,250);break;case
'TableProp':B=new
FCKDialogCommand('Table',FCKLang.DlgTableTitle,'dialog/fck_table.html?Parent',400,250);break;case
'TableCellProp':B=new
FCKDialogCommand('TableCell',FCKLang.DlgCellTitle,'dialog/fck_tablecell.html',500,250);break;case
'UniversalKey':B=new
FCKDialogCommand('UniversalKey',FCKLang.UniversalKeyboard,'dialog/fck_universalkey.html',415,300);break;case
'Style':B=new FCKStyleCommand();break;case 'FontName':B=new
FCKFontNameCommand();break;case 'FontSize':B=new
FCKFontSizeCommand();break;case 'FontFormat':B=new
FCKFormatBlockCommand();break;case 'Source':B=new FCKSourceCommand();break;case
'Preview':B=new FCKPreviewCommand();break;case 'Save':B=new
FCKSaveCommand();break;case 'NewPage':B=new FCKNewPageCommand();break;case
'PageBreak':B=new FCKPageBreakCommand();break;case 'TextColor':B=new
FCKTextColorCommand('ForeColor');break;case 'BGColor':B=new
FCKTextColorCommand('BackColor');break;case 'PasteText':B=new
FCKPastePlainTextCommand();break;case 'PasteWord':B=new
FCKPasteWordCommand();break;case 'TableInsertRow':B=new
FCKTableCommand('TableInsertRow');break;case 'TableDeleteRows':B=new
FCKTableCommand('TableDeleteRows');break;case 'TableInsertColumn':B=new
FCKTableCommand('TableInsertColumn');break;case 'TableDeleteColumns':B=new
FCKTableCommand('TableDeleteColumns');break;case 'TableInsertCell':B=new
FCKTableCommand('TableInsertCell');break;case 'TableDeleteCells':B=new
FCKTableCommand('TableDeleteCells');break;case 'TableMergeCells':B=new
FCKTableCommand('TableMergeCells');break;case 'TableSplitCell':B=new
FCKTableCommand('TableSplitCell');break;case 'TableDelete':B=new
FCKTableCommand('TableDelete');break;case 'Form':B=new
FCKDialogCommand('Form',FCKLang.Form,'dialog/fck_form.html',380,230);break;case
'Checkbox':B=new
FCKDialogCommand('Checkbox',FCKLang.Checkbox,'dialog/fck_checkbox.html',380,230);break;case
'Radio':B=new
FCKDialogCommand('Radio',FCKLang.RadioButton,'dialog/fck_radiobutton.html',380,230);break;case
'TextField':B=new
FCKDialogCommand('TextField',FCKLang.TextField,'dialog/fck_textfield.html',380,230);break;case
'Textarea':B=new
FCKDialogCommand('Textarea',FCKLang.Textarea,'dialog/fck_textarea.html',380,230);break;case
'HiddenField':B=new
FCKDialogCommand('HiddenField',FCKLang.HiddenField,'dialog/fck_hiddenfield.html',380,230);break;case
'Button':B=new
FCKDialogCommand('Button',FCKLang.Button,'dialog/fck_button.html',380,230);break;case
'Select':B=new
FCKDialogCommand('Select',FCKLang.SelectionField,'dialog/fck_select.html',400,380);break;case
'ImageButton':B=new
FCKDialogCommand('ImageButton',FCKLang.ImageButton,'dialog/fck_image.html?ImageButton',450,400);break;case
'SpellCheck':B=new FCKSpellCheckCommand();break;case 'FitWindow':B=new
FCKFitWindow();break;case 'Undo':B=new FCKUndoCommand();break;case 'Redo':B=new
FCKRedoCommand();break;case 'Undefined':B=new
FCKUndefinedCommand();break;default:if (FCKRegexLib.NamedCommands.test(A))
B=new
FCKNamedCommand(A);else{alert(FCKLang.UnknownCommand.replace(/%1/g,A));return
null;}};FCKCommands.LoadedCommands[A]=B;return
B;};FCKCommands.GetFullPageState=function(){return
FCKConfig.FullPage?FCK_TRISTATE_OFF:FCK_TRISTATE_DISABLED;};
+var
FCKPanel=function(A){this.IsRTL=(FCKLang.Dir=='rtl');this.IsContextMenu=false;this._LockCounter=0;this._Window=A||window;var
B;if
(FCKBrowserInfo.IsIE){this._Popup=this._Window.createPopup();B=this.Document=this._Popup.document;}else{var
C=this._IFrame=this._Window.document.createElement('iframe');C.src='javascript:void(0)';C.allowTransparency=true;C.frameBorder='0';C.scrolling='no';C.style.position='absolute';C.style.zIndex=FCKConfig.FloatingPanelsZIndex;C.width=C.height=0;if
(this._Window==window.parent)
window.frameElement.parentNode.insertBefore(C,window.frameElement);else
this._Window.document.body.appendChild(C);var
D=C.contentWindow;B=this.Document=D.document;B.open();B.write('<html><head></head><body
style="margin:0px;padding:0px;"><\/body><\/html>');B.close();FCKTools.AddEventListenerEx(D,'focus',FCKPanel_Window_OnFocus,this);FCKTools.AddEventListenerEx(D,'blur',FCKPanel_Window_OnBlur,this);};B.dir=FCKLang.Dir;B.oncontextmenu=FCKTools.CancelEvent;this.MainNode=B.body.appendChild(B.createElement('DIV'));this.MainNode.style.cssFloat=this.IsRTL?'right':'left';if
(FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKPanel_Cleanup);};FCKPanel.prototype.AppendStyleSheet=function(A){FCKTools.AppendStyleSheet(this.Document,A);};FCKPanel.prototype.Preload=function(x,y,A){if
(this._Popup)
this._Popup.show(x,y,0,0,A);};FCKPanel.prototype.Show=function(x,y,A,B,C){if
(this._Popup){this._Popup.show(x,y,0,0,A);this.MainNode.style.width=B?B+'px':'';this.MainNode.style.height=C?C+'px':'';var
D=this.MainNode.offsetWidth;if (this.IsRTL){if (this.IsContextMenu)
x=x-D+1;else if (A)
x=(x*-1)+A.offsetWidth-D;};this._Popup.show(x,y,D,this.MainNode.offsetHeight,A);if
(this.OnHide){if (this._Timer)
CheckPopupOnHide.call(this,true);this._Timer=FCKTools.SetInterval(CheckPopupOnHide,100,this);}}else{FCKFocusManager.Lock();if
(this.ParentPanel)
this.ParentPanel.Lock();this.MainNode.style.width=B?B+'px':'';this.MainNode.style.height=C?C+'px':'';var
D=this.MainNode.offsetWidth;if (!B) this._IFrame.width=1;if (!C)
this._IFrame.height=1;D=this.MainNode.offsetWidth;var
F=FCKTools.GetElementPosition((A.nodeType==9?A.body:A),this._Window);if
(this.IsRTL&&!this.IsContextMenu) x=(x*-1);x+=F.X;y+=F.Y;if (this.IsRTL){if
(this.IsContextMenu) x=x-D+1;else if (A) x=x+A.offsetWidth-D;}else{var
G=FCKTools.GetViewPaneSize(this._Window);var
H=FCKTools.GetScrollPosition(this._Window);var I=G.Height+H.Y;var
J=G.Width+H.X;if ((x+D)>J) x-=x+D-J;if ((y+this.MainNode.offsetHeight)>I)
y-=y+this.MainNode.offsetHeight-I;};if (x<0)
x=0;this._IFrame.style.left=x+'px';this._IFrame.style.top=y+'px';var K=D;var
L=this.MainNode.offsetHeight;this._IFrame.width=K;this._IFrame.height=L;this._IFrame.contentWindow.focus();};this._IsOpened=true;FCKTools.RunFunction(this.OnShow,this);};FCKPanel.prototype.Hide=function(A){if
(this._Popup) this._Popup.hide();else{if (!this._IsOpened)
return;FCKFocusManager.Unlock();this._IFrame.width=this._IFrame.height=0;this._IsOpened=false;if
(this.ParentPanel) this.ParentPanel.Unlock();if (!A)
FCKTools.RunFunction(this.OnHide,this);}};FCKPanel.prototype.CheckIsOpened=function(){if
(this._Popup) return this._Popup.isOpen;else return
this._IsOpened;};FCKPanel.prototype.CreateChildPanel=function(){var
A=this._Popup?FCKTools.GetParentWindow(this.Document):this._Window;var B=new
FCKPanel(A,true);B.ParentPanel=this;return
B;};FCKPanel.prototype.Lock=function(){this._LockCounter++;};FCKPanel.prototype.Unlock=function(){if
(--this._LockCounter==0&&!this.HasFocus) this.Hide();};/* Events */ function
FCKPanel_Window_OnFocus(e,panel){panel.HasFocus=true;};function
FCKPanel_Window_OnBlur(e,panel){panel.HasFocus=false;if (panel._LockCounter==0)
FCKTools.RunFunction(panel.Hide,panel);};function
CheckPopupOnHide(forceHide){if
(forceHide||!this._Popup.isOpen){window.clearInterval(this._Timer);this._Timer=null;FCKTools.RunFunction(this.OnHide,this);}};function
FCKPanel_Cleanup(){this._Popup=null;this._Window=null;this.Document=null;this.MainNode=null;}
+var FCKIcon=function(A){var B=A?typeof(A):'undefined';switch (B){case
'number':this.Path=FCKConfig.SkinPath+'fck_strip.gif';this.Size=16;this.Position=A;break;case
'undefined':this.Path=FCK_SPACER_PATH;break;case
'string':this.Path=A;break;default:this.Path=A[0];this.Size=A[1];this.Position=A[2];}};FCKIcon.prototype.CreateIconElement=function(A){var
B;if (this.Position){var C='-'+((this.Position-1)*this.Size)+'px';if
(FCKBrowserInfo.IsIE){B=A.createElement('DIV');var
D=B.appendChild(A.createElement('IMG'));D.src=this.Path;D.style.top=C;}else{B=A.createElement('IMG');B.src=FCK_SPACER_PATH;B.style.backgroundPosition='0px
'+C;B.style.backgroundImage='url('+this.Path+')';}}else{B=A.createElement('IMG');B.src=this.Path?this.Path:FCK_SPACER_PATH;};B.className='TB_Button_Image';return
B;}
+var
FCKToolbarButtonUI=function(A,B,C,D,E,F){this.Name=A;this.Label=B||A;this.Tooltip=C||this.Label;this.Style=E||FCK_TOOLBARITEM_ONLYICON;this.State=F||FCK_TRISTATE_OFF;this.Icon=new
FCKIcon(D);if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKToolbarButtonUI_Cleanup);};FCKToolbarButtonUI.prototype._CreatePaddingElement=function(A){var
B=A.createElement('IMG');B.className='TB_Button_Padding';B.src=FCK_SPACER_PATH;return
B;};FCKToolbarButtonUI.prototype.Create=function(A){var B=this.MainElement;if
(B){FCKToolbarButtonUI_Cleanup.call(this);if (B.parentNode)
B.parentNode.removeChild(B);B=this.MainElement=null;};var
C=FCKTools.GetElementDocument(A);B=this.MainElement=C.createElement('DIV');B._FCKButton=this;B.title=this.Tooltip;if
(FCKBrowserInfo.IsGecko)
B.onmousedown=FCKTools.CancelEvent;this.ChangeState(this.State,true);if
(this.Style==FCK_TOOLBARITEM_ONLYICON&&!this.ShowArrow){B.appendChild(this.Icon.CreateIconElement(C));}else{var
D=B.appendChild(C.createElement('TABLE'));D.cellPadding=0;D.cellSpacing=0;var
E=D.insertRow(-1);var F=E.insertCell(-1);if
(this.Style==FCK_TOOLBARITEM_ONLYICON||this.Style==FCK_TOOLBARITEM_ICONTEXT)
F.appendChild(this.Icon.CreateIconElement(C));else
F.appendChild(this._CreatePaddingElement(C));if
(this.Style==FCK_TOOLBARITEM_ONLYTEXT||this.Style==FCK_TOOLBARITEM_ICONTEXT){F=E.insertCell(-1);F.className='TB_Button_Text';F.noWrap=true;F.appendChild(C.createTextNode(this.Label));};if
(this.ShowArrow){if
(this.Style!=FCK_TOOLBARITEM_ONLYICON){E.insertCell(-1).appendChild(this._CreatePaddingElement(C));};F=E.insertCell(-1);var
G=F.appendChild(C.createElement('IMG'));G.src=FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif';G.width=5;G.height=3;};F=E.insertCell(-1);F.appendChild(this._CreatePaddingElement(C));};A.appendChild(B);};FCKToolbarButtonUI.prototype.ChangeState=function(A,B){if
(!B&&this.State==A) return;var e=this.MainElement;switch (parseInt(A)){case
FCK_TRISTATE_OFF:e.className='TB_Button_Off';e.onmouseover=FCKToolbarButton_OnMouseOverOff;e.onmouseout=FCKToolbarButton_OnMouseOutOff;e.onclick=FCKToolbarButton_OnClick;break;case
FCK_TRISTATE_ON:e.className='TB_Button_On';e.onmouseover=FCKToolbarButton_OnMouseOverOn;e.onmouseout=FCKToolbarButton_OnMouseOutOn;e.onclick=FCKToolbarButton_OnClick;break;case
FCK_TRISTATE_DISABLED:e.className='TB_Button_Disabled';e.onmouseover=null;e.onmouseout=null;e.onclick=null;bEnableEvents=false;break;};this.State=A;};function
FCKToolbarButtonUI_Cleanup(){if
(this.MainElement){this.MainElement._FCKButton=null;this.MainElement=null;}};function
FCKToolbarButton_OnMouseOverOn(){this.className='TB_Button_On_Over';};function
FCKToolbarButton_OnMouseOutOn(){this.className='TB_Button_On';};function
FCKToolbarButton_OnMouseOverOff(){this.className='TB_Button_Off_Over';};function
FCKToolbarButton_OnMouseOutOff(){this.className='TB_Button_Off';};function
FCKToolbarButton_OnClick(e){if (this._FCKButton.OnClick)
this._FCKButton.OnClick(this._FCKButton);};
+var
FCKToolbarButton=function(A,B,C,D,E,F,G){this.CommandName=A;this.Label=B;this.Tooltip=C;this.Style=D;this.SourceView=E?true:false;this.ContextSensitive=F?true:false;if
(G==null)
this.IconPath=FCKConfig.SkinPath+'toolbar/'+A.toLowerCase()+'.gif';else if
(typeof(G)=='number')
this.IconPath=[FCKConfig.SkinPath+'fck_strip.gif',16,G];};FCKToolbarButton.prototype.Create=function(A){this._UIButton=new
FCKToolbarButtonUI(this.CommandName,this.Label,this.Tooltip,this.IconPath,this.Style);this._UIButton.OnClick=this.Click;this._UIButton._ToolbarButton=this;this._UIButton.Create(A);};FCKToolbarButton.prototype.RefreshState=function(){var
A=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).GetState();if
(A==this._UIButton.State)
return;this._UIButton.ChangeState(A);};FCKToolbarButton.prototype.Click=function(){var
A=this._ToolbarButton||this;FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(A.CommandName).Execute();};FCKToolbarButton.prototype.Enable=function(){this.RefreshState();};FCKToolbarButton.prototype.Disable=function(){this._UIButton.ChangeState(FCK_TRISTATE_DISABLED);}
+var
FCKSpecialCombo=function(A,B,C,D,E){this.FieldWidth=B||100;this.PanelWidth=C||150;this.PanelMaxHeight=D||150;this.Label=' ';this.Caption=A;this.Tooltip=A;this.Style=FCK_TOOLBARITEM_ICONTEXT;this.Enabled=true;this.Items=new
Object();this._Panel=new
FCKPanel(E||window,true);this._Panel.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');this._PanelBox=this._Panel.MainNode.appendChild(this._Panel.Document.createElement('DIV'));this._PanelBox.className='SC_Panel';this._PanelBox.style.width=this.PanelWidth+'px';this._PanelBox.innerHTML='<table
cellpadding="0" cellspacing="0" width="100%" style="TABLE-LAYOUT:
fixed"><tr><td
nowrap></td></tr></table>';this._ItemsHolderEl=this._PanelBox.getElementsByTagName('TD')[0];if
(FCK.IECleanup) FCK.IECleanup.AddItem(this,FCKSpecialCombo_Cleanup);};function
FCKSpecialCombo_ItemOnMouseOver(){this.className+=' SC_ItemOver';};function
FCKSpecialCombo_ItemOnMouseOut(){this.className=this.originalClass;};function
FCKSpecialCombo_ItemOnClick(){this.className=this.originalClass;this.FCKSpecialCombo._Panel.Hide();this.FCKSpecialCombo.SetLabel(this.FCKItemLabel);if
(typeof(this.FCKSpecialCombo.OnSelect)=='function')
this.FCKSpecialCombo.OnSelect(this.FCKItemID,this);};FCKSpecialCombo.prototype.AddItem=function(A,B,C,D){var
E=this._ItemsHolderEl.appendChild(this._Panel.Document.createElement('DIV'));E.className=E.originalClass='SC_Item';E.innerHTML=B;E.FCKItemID=A;E.FCKItemLabel=C||A;E.FCKSpecialCombo=this;E.Selected=false;if
(FCKBrowserInfo.IsIE) E.style.width='100%';if (D)
E.style.backgroundColor=D;E.onmouseover=FCKSpecialCombo_ItemOnMouseOver;E.onmouseout=FCKSpecialCombo_ItemOnMouseOut;E.onclick=FCKSpecialCombo_ItemOnClick;this.Items[A.toString().toLowerCase()]=E;return
E;};FCKSpecialCombo.prototype.SelectItem=function(A){A=A?A.toString().toLowerCase():'';var
B=this.Items[A];if
(B){B.className=B.originalClass='SC_ItemSelected';B.Selected=true;}};FCKSpecialCombo.prototype.SelectItemByLabel=function(A,B){for
(var C in this.Items){var D=this.Items[C];if
(D.FCKItemLabel==A){D.className=D.originalClass='SC_ItemSelected';D.Selected=true;if
(B) this.SetLabel(A);}}};FCKSpecialCombo.prototype.DeselectAll=function(A){for
(var i in
this.Items){this.Items[i].className=this.Items[i].originalClass='SC_Item';this.Items[i].Selected=false;};if
(A)
this.SetLabel('');};FCKSpecialCombo.prototype.SetLabelById=function(A){A=A?A.toString().toLowerCase():'';var
B=this.Items[A];this.SetLabel(B?B.FCKItemLabel:'');};FCKSpecialCombo.prototype.SetLabel=function(A){this.Label=A.length==0?' ':A;if
(this._LabelEl)
this._LabelEl.innerHTML=this.Label;};FCKSpecialCombo.prototype.SetEnabled=function(A){this.Enabled=A;this._OuterTable.className=A?'':'SC_FieldDisabled';};FCKSpecialCombo.prototype.Create=function(A){var
B=FCKTools.GetElementDocument(A);var
C=this._OuterTable=A.appendChild(B.createElement('TABLE'));C.cellPadding=0;C.cellSpacing=0;C.insertRow(-1);var
D;var E;switch (this.Style){case
FCK_TOOLBARITEM_ONLYICON:D='TB_ButtonType_Icon';E=false;break;case
FCK_TOOLBARITEM_ONLYTEXT:D='TB_ButtonType_Text';E=false;break;case
FCK_TOOLBARITEM_ICONTEXT:E=true;break;};if
(this.Caption&&this.Caption.length>0&&E){var
F=C.rows[0].insertCell(-1);F.innerHTML=this.Caption;F.className='SC_FieldCaption';};var
G=FCKTools.AppendElement(C.rows[0].insertCell(-1),'div');if
(E){G.className='SC_Field';G.style.width=this.FieldWidth+'px';G.innerHTML='<table
width="100%" cellpadding="0" cellspacing="0" style="TABLE-LAYOUT:
fixed;"><tbody><tr><td class="SC_FieldLabel"><label> </label></td><td
class="SC_FieldButton"> </td></tr></tbody></table>';this._LabelEl=G.getElementsByTagName('label')[0];this._LabelEl.innerHTML=this.Label;}else{G.className='TB_Button_Off';G.innerHTML='<table
title="'+this.Tooltip+'" class="'+D+'" cellspacing="0" cellpadding="0"
border="0">'+'<tr>'+'<td><img class="TB_Button_Padding"
src="'+FCK_SPACER_PATH+'" /></td>'+'<td
class="TB_Text">'+this.Caption+'</td>'+'<td><img class="TB_Button_Padding"
src="'+FCK_SPACER_PATH+'" /></td>'+'<td class="TB_ButtonArrow"><img
src="'+FCKConfig.SkinPath+'images/toolbar.buttonarrow.gif" width="5"
height="3"></td>'+'<td><img class="TB_Button_Padding" src="'+FCK_SPACER_PATH+'"
/></td>'+'</tr>'+'</table>';};G.SpecialCombo=this;G.onmouseover=FCKSpecialCombo_OnMouseOver;G.onmouseout=FCKSpecialCombo_OnMouseOut;G.onclick=FCKSpecialCombo_OnClick;FCKTools.DisableSelection(this._Panel.Document.body);};function
FCKSpecialCombo_Cleanup(){this._LabelEl=null;this._OuterTable=null;this._ItemsHolderEl=null;this._PanelBox=null;if
(this.Items){for (var key in this.Items) this.Items[key]=null;}};function
FCKSpecialCombo_OnMouseOver(){if (this.SpecialCombo.Enabled){switch
(this.SpecialCombo.Style){case
FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_On_Over';break;case
FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_On_Over';break;case
FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field
SC_FieldOver';break;}}};function FCKSpecialCombo_OnMouseOut(){switch
(this.SpecialCombo.Style){case
FCK_TOOLBARITEM_ONLYICON:this.className='TB_Button_Off';break;case
FCK_TOOLBARITEM_ONLYTEXT:this.className='TB_Button_Off';break;case
FCK_TOOLBARITEM_ICONTEXT:this.className='SC_Field';break;}};function
FCKSpecialCombo_OnClick(e){var oSpecialCombo=this.SpecialCombo;if
(oSpecialCombo.Enabled){var oPanel=oSpecialCombo._Panel;var
oPanelBox=oSpecialCombo._PanelBox;var
oItemsHolder=oSpecialCombo._ItemsHolderEl;var
iMaxHeight=oSpecialCombo.PanelMaxHeight;if (oSpecialCombo.OnBeforeClick)
oSpecialCombo.OnBeforeClick(oSpecialCombo);if (FCKBrowserInfo.IsIE)
oPanel.Preload(0,this.offsetHeight,this);if
(oItemsHolder.offsetHeight>iMaxHeight)
oPanelBox.style.height=iMaxHeight+'px';else
oPanelBox.style.height='';oPanel.Show(0,this.offsetHeight,this);}};
+var
FCKToolbarSpecialCombo=function(){this.SourceView=false;this.ContextSensitive=true;};function
FCKToolbarSpecialCombo_OnSelect(itemId,item){FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).Execute(itemId,item);};FCKToolbarSpecialCombo.prototype.Create=function(A){this._Combo=new
FCKSpecialCombo(this.GetLabel(),this.FieldWidth,this.PanelWidth,this.PanelMaxHeight,FCKBrowserInfo.IsIE?window:FCKTools.GetElementWindow(A).parent);this._Combo.Tooltip=this.Tooltip;this._Combo.Style=this.Style;this.CreateItems(this._Combo);this._Combo.Create(A);this._Combo.CommandName=this.CommandName;this._Combo.OnSelect=FCKToolbarSpecialCombo_OnSelect;};function
FCKToolbarSpecialCombo_RefreshActiveItems(combo,value){combo.DeselectAll();combo.SelectItem(value);combo.SetLabelById(value);};FCKToolbarSpecialCombo.prototype.RefreshState=function(){var
A;var
B=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).GetState();if
(B!=FCK_TRISTATE_DISABLED){A=FCK_TRISTATE_ON;if (this.RefreshActiveItems)
this.RefreshActiveItems(this._Combo,B);else{if
(this._LastValue!=B){this._LastValue=B;FCKToolbarSpecialCombo_RefreshActiveItems(this._Combo,B);}}}else
A=FCK_TRISTATE_DISABLED;if (A==this.State) return;if
(A==FCK_TRISTATE_DISABLED){this._Combo.DeselectAll();this._Combo.SetLabel('');};this.State=A;this._Combo.SetEnabled(A!=FCK_TRISTATE_DISABLED);};FCKToolbarSpecialCombo.prototype.Enable=function(){this.RefreshState();};FCKToolbarSpecialCombo.prototype.Disable=function(){this.State=FCK_TRISTATE_DISABLED;this._Combo.DeselectAll();this._Combo.SetLabel('');this._Combo.SetEnabled(false);}
+var
FCKToolbarFontsCombo=function(A,B){this.CommandName='FontName';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontsCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarFontsCombo.prototype.GetLabel=function(){return
FCKLang.Font;};FCKToolbarFontsCombo.prototype.CreateItems=function(A){var
B=FCKConfig.FontNames.split(';');for (var i=0;i<B.length;i++)
this._Combo.AddItem(B[i],'<font face="'+B[i]+'" style="font-size:
12px">'+B[i]+'</font>');}
+var
FCKToolbarFontSizeCombo=function(A,B){this.CommandName='FontSize';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarFontSizeCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarFontSizeCombo.prototype.GetLabel=function(){return
FCKLang.FontSize;};FCKToolbarFontSizeCombo.prototype.CreateItems=function(A){A.FieldWidth=70;var
B=FCKConfig.FontSizes.split(';');for (var i=0;i<B.length;i++){var
C=B[i].split('/');this._Combo.AddItem(C[0],'<font
size="'+C[0]+'">'+C[1]+'</font>',C[1]);}}
+var
FCKToolbarFontFormatCombo=function(A,B){this.CommandName='FontFormat';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;this.NormalLabel='Normal';this.PanelWidth=190;};FCKToolbarFontFormatCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarFontFormatCombo.prototype.GetLabel=function(){return
FCKLang.FontFormat;};FCKToolbarFontFormatCombo.prototype.CreateItems=function(A){var
B=FCKLang['FontFormats'].split(';');var
C={p:B[0],pre:B[1],address:B[2],h1:B[3],h2:B[4],h3:B[5],h4:B[6],h5:B[7],h6:B[8],div:B[9]};var
D=FCKConfig.FontFormats.split(';');for (var i=0;i<D.length;i++){var E=D[i];var
F=C[E];if (E=='p') this.NormalLabel=F;this._Combo.AddItem(E,'<div
class="BaseFont"><'+E+'>'+F+'</'+E+'></div>',F);}};if
(FCKBrowserInfo.IsIE){FCKToolbarFontFormatCombo.prototype.RefreshActiveItems=function(A,B){if
(B==this.NormalLabel){if (A.Label!=' ') A.DeselectAll(true);}else{if
(this._LastValue==B) return;A.SelectItemByLabel(B,true);};this._LastValue=B;}}
+var
FCKToolbarStyleCombo=function(A,B){this.CommandName='Style';this.Label=this.GetLabel();this.Tooltip=A?A:this.Label;this.Style=B?B:FCK_TOOLBARITEM_ICONTEXT;};FCKToolbarStyleCombo.prototype=new
FCKToolbarSpecialCombo;FCKToolbarStyleCombo.prototype.GetLabel=function(){return
FCKLang.Style;};FCKToolbarStyleCombo.prototype.CreateItems=function(A){var
B=A._Panel.Document;var C=FCKConfig.EditorAreaCSS;for (var i=0;i<C.length;i++)
FCKTools.AppendStyleSheet(B,C[i]);B.body.className+=' ForceBaseFont';if
(!FCKBrowserInfo.IsGecko) A.OnBeforeClick=this.RefreshVisibleItems;var
D=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).Styles;for
(var s in D){var E=D[s];var F;if (E.IsObjectElement) F=A.AddItem(s,s);else
F=A.AddItem(s,E.GetOpenerTag()+s+E.GetCloserTag());F.Style=E;}};FCKToolbarStyleCombo.prototype.RefreshActiveItems=function(A){A.DeselectAll();var
B=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName).GetActiveStyles();if
(B.length>0){for (var i=0;i<B.length;i++)
A.SelectItem(B[i].Name);A.SetLabelById(B[0].Name);}else
A.SetLabel('');};FCKToolbarStyleCombo.prototype.RefreshVisibleItems=function(A){if
(FCKSelection.GetType()=='Control') var
B=FCKSelection.GetSelectedElement().tagName;for (var i in A.Items){var
C=A.Items[i];if ((B&&C.Style.Element==B)||(!B&&!C.Style.IsObjectElement))
C.style.display='';else C.style.display='none';}}
+var FCKToolbarPanelButton=function(A,B,C,D,E){this.CommandName=A;var F;if
(E==null) F=FCKConfig.SkinPath+'toolbar/'+A.toLowerCase()+'.gif';else if
(typeof(E)=='number') F=[FCKConfig.SkinPath+'fck_strip.gif',16,E];var
G=this._UIButton=new
FCKToolbarButtonUI(A,B,C,F,D);G._FCKToolbarPanelButton=this;G.ShowArrow=true;G.OnClick=FCKToolbarPanelButton_OnButtonClick;};FCKToolbarPanelButton.prototype.TypeName='FCKToolbarPanelButton';FCKToolbarPanelButton.prototype.Create=function(A){A.className+='Menu';this._UIButton.Create(A);var
B=FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(this.CommandName)._Panel;B._FCKToolbarPanelButton=this;var
C=B.Document.body.appendChild(B.Document.createElement('div'));C.style.position='absolute';C.style.top='0px';var
D=this.LineImg=C.appendChild(B.Document.createElement('IMG'));D.className='TB_ConnectionLine';D.src=FCK_SPACER_PATH;B.OnHide=FCKToolbarPanelButton_OnPanelHide;};function
FCKToolbarPanelButton_OnButtonClick(toolbarButton){var
oButton=this._FCKToolbarPanelButton;var
e=oButton._UIButton.MainElement;oButton._UIButton.ChangeState(FCK_TRISTATE_ON);oButton.LineImg.style.width=(e.offsetWidth-2)+'px';FCK.ToolbarSet.CurrentInstance.Commands.GetCommand(oButton.CommandName).Execute(0,e.offsetHeight-1,e);};function
FCKToolbarPanelButton_OnPanelHide(){var
oMenuButton=this._FCKToolbarPanelButton;oMenuButton._UIButton.ChangeState(FCK_TRISTATE_OFF);};FCKToolbarPanelButton.prototype.RefreshState=FCKToolbarButton.prototype.RefreshState;FCKToolbarPanelButton.prototype.Enable=FCKToolbarButton.prototype.Enable;FCKToolbarPanelButton.prototype.Disable=FCKToolbarButton.prototype.Disable;
+var FCKToolbarItems=new Object();FCKToolbarItems.LoadedItems=new
Object();FCKToolbarItems.RegisterItem=function(A,B){this.LoadedItems[A]=B;};FCKToolbarItems.GetItem=function(A){var
B=FCKToolbarItems.LoadedItems[A];if (B) return B;switch (A){case
'Source':B=new
FCKToolbarButton('Source',FCKLang.Source,null,FCK_TOOLBARITEM_ICONTEXT,true,true,1);break;case
'DocProps':B=new
FCKToolbarButton('DocProps',FCKLang.DocProps,null,null,null,null,2);break;case
'Save':B=new
FCKToolbarButton('Save',FCKLang.Save,null,null,true,null,3);break;case
'NewPage':B=new
FCKToolbarButton('NewPage',FCKLang.NewPage,null,null,true,null,4);break;case
'Preview':B=new
FCKToolbarButton('Preview',FCKLang.Preview,null,null,true,null,5);break;case
'Templates':B=new
FCKToolbarButton('Templates',FCKLang.Templates,null,null,null,null,6);break;case
'About':B=new
FCKToolbarButton('About',FCKLang.About,null,null,true,null,47);break;case
'Cut':B=new
FCKToolbarButton('Cut',FCKLang.Cut,null,null,false,true,7);break;case
'Copy':B=new
FCKToolbarButton('Copy',FCKLang.Copy,null,null,false,true,8);break;case
'Paste':B=new
FCKToolbarButton('Paste',FCKLang.Paste,null,null,false,true,9);break;case
'PasteText':B=new
FCKToolbarButton('PasteText',FCKLang.PasteText,null,null,false,true,10);break;case
'PasteWord':B=new
FCKToolbarButton('PasteWord',FCKLang.PasteWord,null,null,false,true,11);break;case
'Print':B=new
FCKToolbarButton('Print',FCKLang.Print,null,null,false,true,12);break;case
'SpellCheck':B=new
FCKToolbarButton('SpellCheck',FCKLang.SpellCheck,null,null,null,null,13);break;case
'Undo':B=new
FCKToolbarButton('Undo',FCKLang.Undo,null,null,false,true,14);break;case
'Redo':B=new
FCKToolbarButton('Redo',FCKLang.Redo,null,null,false,true,15);break;case
'SelectAll':B=new
FCKToolbarButton('SelectAll',FCKLang.SelectAll,null,null,null,null,18);break;case
'RemoveFormat':B=new
FCKToolbarButton('RemoveFormat',FCKLang.RemoveFormat,null,null,false,true,19);break;case
'FitWindow':B=new
FCKToolbarButton('FitWindow',FCKLang.FitWindow,null,null,true,true,66);break;case
'Bold':B=new
FCKToolbarButton('Bold',FCKLang.Bold,null,null,false,true,20);break;case
'Italic':B=new
FCKToolbarButton('Italic',FCKLang.Italic,null,null,false,true,21);break;case
'Underline':B=new
FCKToolbarButton('Underline',FCKLang.Underline,null,null,false,true,22);break;case
'StrikeThrough':B=new
FCKToolbarButton('StrikeThrough',FCKLang.StrikeThrough,null,null,false,true,23);break;case
'Subscript':B=new
FCKToolbarButton('Subscript',FCKLang.Subscript,null,null,false,true,24);break;case
'Superscript':B=new
FCKToolbarButton('Superscript',FCKLang.Superscript,null,null,false,true,25);break;case
'OrderedList':B=new
FCKToolbarButton('InsertOrderedList',FCKLang.NumberedListLbl,FCKLang.NumberedList,null,false,true,26);break;case
'UnorderedList':B=new
FCKToolbarButton('InsertUnorderedList',FCKLang.BulletedListLbl,FCKLang.BulletedList,null,false,true,27);break;case
'Outdent':B=new
FCKToolbarButton('Outdent',FCKLang.DecreaseIndent,null,null,false,true,28);break;case
'Indent':B=new
FCKToolbarButton('Indent',FCKLang.IncreaseIndent,null,null,false,true,29);break;case
'Link':B=new
FCKToolbarButton('Link',FCKLang.InsertLinkLbl,FCKLang.InsertLink,null,false,true,34);break;case
'Unlink':B=new
FCKToolbarButton('Unlink',FCKLang.RemoveLink,null,null,false,true,35);break;case
'Anchor':B=new
FCKToolbarButton('Anchor',FCKLang.Anchor,null,null,null,null,36);break;case
'Image':B=new
FCKToolbarButton('Image',FCKLang.InsertImageLbl,FCKLang.InsertImage,null,false,true,37);break;case
'Flash':B=new
FCKToolbarButton('Flash',FCKLang.InsertFlashLbl,FCKLang.InsertFlash,null,false,true,38);break;case
'Table':B=new
FCKToolbarButton('Table',FCKLang.InsertTableLbl,FCKLang.InsertTable,null,false,true,39);break;case
'SpecialChar':B=new
FCKToolbarButton('SpecialChar',FCKLang.InsertSpecialCharLbl,FCKLang.InsertSpecialChar,null,false,true,42);break;case
'Smiley':B=new
FCKToolbarButton('Smiley',FCKLang.InsertSmileyLbl,FCKLang.InsertSmiley,null,false,true,41);break;case
'PageBreak':B=new
FCKToolbarButton('PageBreak',FCKLang.PageBreakLbl,FCKLang.PageBreak,null,false,true,43);break;case
'UniversalKey':B=new
FCKToolbarButton('UniversalKey',FCKLang.UniversalKeyboard,null,null,false,true,44);break;case
'Rule':B=new
FCKToolbarButton('InsertHorizontalRule',FCKLang.InsertLineLbl,FCKLang.InsertLine,null,false,true,40);break;case
'JustifyLeft':B=new
FCKToolbarButton('JustifyLeft',FCKLang.LeftJustify,null,null,false,true,30);break;case
'JustifyCenter':B=new
FCKToolbarButton('JustifyCenter',FCKLang.CenterJustify,null,null,false,true,31);break;case
'JustifyRight':B=new
FCKToolbarButton('JustifyRight',FCKLang.RightJustify,null,null,false,true,32);break;case
'JustifyFull':B=new
FCKToolbarButton('JustifyFull',FCKLang.BlockJustify,null,null,false,true,33);break;case
'Style':B=new FCKToolbarStyleCombo();break;case 'FontName':B=new
FCKToolbarFontsCombo();break;case 'FontSize':B=new
FCKToolbarFontSizeCombo();break;case 'FontFormat':B=new
FCKToolbarFontFormatCombo();break;case 'TextColor':B=new
FCKToolbarPanelButton('TextColor',FCKLang.TextColor,null,null,45);break;case
'BGColor':B=new
FCKToolbarPanelButton('BGColor',FCKLang.BGColor,null,null,46);break;case
'Find':B=new
FCKToolbarButton('Find',FCKLang.Find,null,null,null,null,16);break;case
'Replace':B=new
FCKToolbarButton('Replace',FCKLang.Replace,null,null,null,null,17);break;case
'Form':B=new
FCKToolbarButton('Form',FCKLang.Form,null,null,null,null,48);break;case
'Checkbox':B=new
FCKToolbarButton('Checkbox',FCKLang.Checkbox,null,null,null,null,49);break;case
'Radio':B=new
FCKToolbarButton('Radio',FCKLang.RadioButton,null,null,null,null,50);break;case
'TextField':B=new
FCKToolbarButton('TextField',FCKLang.TextField,null,null,null,null,51);break;case
'Textarea':B=new
FCKToolbarButton('Textarea',FCKLang.Textarea,null,null,null,null,52);break;case
'HiddenField':B=new
FCKToolbarButton('HiddenField',FCKLang.HiddenField,null,null,null,null,56);break;case
'Button':B=new
FCKToolbarButton('Button',FCKLang.Button,null,null,null,null,54);break;case
'Select':B=new
FCKToolbarButton('Select',FCKLang.SelectionField,null,null,null,null,53);break;case
'ImageButton':B=new
FCKToolbarButton('ImageButton',FCKLang.ImageButton,null,null,null,null,55);break;default:alert(FCKLang.UnknownToolbarItem.replace(/%1/g,A));return
null;};FCKToolbarItems.LoadedItems[A]=B;return B;}
+var FCKToolbar=function(){this.Items=new Array();if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKToolbar_Cleanup);};FCKToolbar.prototype.AddItem=function(A){return
this.Items[this.Items.length]=A;};FCKToolbar.prototype.AddButton=function(A,B,C,D,E,F){if
(typeof(D)=='number') D=[this.DefaultIconsStrip,this.DefaultIconSize,D];var
G=new
FCKToolbarButtonUI(A,B,C,D,E,F);G._FCKToolbar=this;G.OnClick=FCKToolbar_OnItemClick;return
this.AddItem(G);};function FCKToolbar_OnItemClick(item){var
oToolbar=item._FCKToolbar;if (oToolbar.OnItemClick)
oToolbar.OnItemClick(oToolbar,item);};FCKToolbar.prototype.AddSeparator=function(){this.AddItem(new
FCKToolbarSeparator());};FCKToolbar.prototype.Create=function(A){if
(this.MainElement){if (this.MainElement.parentNode)
this.MainElement.parentNode.removeChild(this.MainElement);this.MainElement=null;};var
B=FCKTools.GetElementDocument(A);var
e=this.MainElement=B.createElement('table');e.className='TB_Toolbar';e.style.styleFloat=e.style.cssFloat=(FCKLang.Dir=='ltr'?'left':'right');e.dir=FCKLang.Dir;e.cellPadding=0;e.cellSpacing=0;this.RowElement=e.insertRow(-1);var
C;if
(!this.HideStart){C=this.RowElement.insertCell(-1);C.appendChild(B.createElement('div')).className='TB_Start';};for
(var
i=0;i<this.Items.length;i++){this.Items[i].Create(this.RowElement.insertCell(-1));};if
(!this.HideEnd){C=this.RowElement.insertCell(-1);C.appendChild(B.createElement('div')).className='TB_End';};A.appendChild(e);};function
FCKToolbar_Cleanup(){this.MainElement=null;this.RowElement=null;};var
FCKToolbarSeparator=function(){};FCKToolbarSeparator.prototype.Create=function(A){FCKTools.AppendElement(A,'div').className='TB_Separator';}
+var
FCKToolbarBreak=function(){};FCKToolbarBreak.prototype.Create=function(A){var
B=FCKTools.GetElementDocument(A).createElement('div');B.className='TB_Break';B.style.clear=FCKLang.Dir=='rtl'?'left':'right';A.appendChild(B);}
+function FCKToolbarSet_Create(overhideLocation){var oToolbarSet;var
sLocation=overhideLocation||FCKConfig.ToolbarLocation;switch (sLocation){case
'In':document.getElementById('xToolbarRow').style.display='';oToolbarSet=new
FCKToolbarSet(document);break;default:FCK.Events.AttachEvent('OnBlur',FCK_OnBlur);FCK.Events.AttachEvent('OnFocus',FCK_OnFocus);var
eToolbarTarget;var oOutMatch=sLocation.match(/^Out:(.+)\((\w+)\)$/);if
(oOutMatch){eToolbarTarget=eval('parent.'+oOutMatch[1]).document.getElementById(oOutMatch[2]);}else{oOutMatch=sLocation.match(/^Out:(\w+)$/);if
(oOutMatch) eToolbarTarget=parent.document.getElementById(oOutMatch[1]);};if
(!eToolbarTarget){alert('Invalid value for "ToolbarLocation"');return
this._Init('In');};if (oToolbarSet=eToolbarTarget.__FCKToolbarSet) break;var
eToolbarIFrame=FCKTools.GetElementDocument(eToolbarTarget).createElement('iframe');eToolbarIFrame.frameBorder=0;eToolbarIFrame.width='100%';eToolbarIFrame.height='10';eToolbarTarget.appendChild(eToolbarIFrame);eToolbarIFrame.unselectable='on';var
eTargetDocument=eToolbarIFrame.contentWindow.document;eTargetDocument.open();eTargetDocument.write('<html><head><script
type="text/javascript"> window.onload = window.onresize = function() {
window.frameElement.height = document.body.scrollHeight ; }
</script></head><body style="overflow:
hidden">'+document.getElementById('xToolbarSpace').innerHTML+'</body></html>');eTargetDocument.close();eTargetDocument.oncontextmenu=FCKTools.CancelEvent;FCKTools.AppendStyleSheet(eTargetDocument,FCKConfig.SkinPath+'fck_editor.css');oToolbarSet=eToolbarTarget.__FCKToolbarSet=new
FCKToolbarSet(eTargetDocument);oToolbarSet._IFrame=eToolbarIFrame;if
(FCK.IECleanup)
FCK.IECleanup.AddItem(eToolbarTarget,FCKToolbarSet_Target_Cleanup);};oToolbarSet.CurrentInstance=FCK;FCK.AttachToOnSelectionChange(oToolbarSet.RefreshItemsState);return
oToolbarSet;};function FCK_OnBlur(editorInstance){var
eToolbarSet=editorInstance.ToolbarSet;if
(eToolbarSet.CurrentInstance==editorInstance) eToolbarSet.Disable();};function
FCK_OnFocus(editorInstance){var oToolbarset=editorInstance.ToolbarSet;var
oInstance=editorInstance||FCK;oToolbarset.CurrentInstance.FocusManager.RemoveWindow(oToolbarset._IFrame.contentWindow);oToolbarset.CurrentInstance=oInstance;oInstance.FocusManager.AddWindow(oToolbarset._IFrame.contentWindow,true);oToolbarset.Enable();};function
FCKToolbarSet_Cleanup(){this._TargetElement=null;this._IFrame=null;};function
FCKToolbarSet_Target_Cleanup(){this.__FCKToolbarSet=null;};var
FCKToolbarSet=function(A){this._Document=A;this._TargetElement=A.getElementById('xToolbar');var
B=A.getElementById('xExpandHandle');var
C=A.getElementById('xCollapseHandle');B.title=FCKLang.ToolbarExpand;B.onclick=FCKToolbarSet_Expand_OnClick;C.title=FCKLang.ToolbarCollapse;C.onclick=FCKToolbarSet_Collapse_OnClick;if
(!FCKConfig.ToolbarCanCollapse||FCKConfig.ToolbarStartExpanded)
this.Expand();else
this.Collapse();C.style.display=FCKConfig.ToolbarCanCollapse?'':'none';if
(FCKConfig.ToolbarCanCollapse) C.style.display='';else
A.getElementById('xTBLeftBorder').style.display='';this.Toolbars=new
Array();this.IsLoaded=false;if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKToolbarSet_Cleanup);};function
FCKToolbarSet_Expand_OnClick(){FCK.ToolbarSet.Expand();};function
FCKToolbarSet_Collapse_OnClick(){FCK.ToolbarSet.Collapse();};FCKToolbarSet.prototype.Expand=function(){this._ChangeVisibility(false);};FCKToolbarSet.prototype.Collapse=function(){this._ChangeVisibility(true);};FCKToolbarSet.prototype._ChangeVisibility=function(A){this._Document.getElementById('xCollapsed').style.display=A?'':'none';this._Document.getElementById('xExpanded').style.display=A?'none':'';if
(FCKBrowserInfo.IsGecko){FCKTools.RunFunction(window.onresize);}};FCKToolbarSet.prototype.Load=function(A){this.Name=A;this.Items=new
Array();this.ItemsWysiwygOnly=new Array();this.ItemsContextSensitive=new
Array();this._TargetElement.innerHTML='';var B=FCKConfig.ToolbarSets[A];if
(!B){alert(FCKLang.UnknownToolbarSet.replace(/%1/g,A));return;};this.Toolbars=new
Array();for (var x=0;x<B.length;x++){var C=B[x];var D;if
(typeof(C)=='string'){if (C=='/') D=new FCKToolbarBreak();}else{D=new
FCKToolbar();for (var j=0;j<C.length;j++){var E=C[j];if (E=='-')
D.AddSeparator();else{var F=FCKToolbarItems.GetItem(E);if
(F){D.AddItem(F);this.Items.push(F);if (!F.SourceView)
this.ItemsWysiwygOnly.push(F);if (F.ContextSensitive)
this.ItemsContextSensitive.push(F);}}}};D.Create(this._TargetElement);this.Toolbars[this.Toolbars.length]=D;};FCKTools.DisableSelection(this._Document.getElementById('xCollapseHandle').parentNode);if
(FCK.Status!=FCK_STATUS_COMPLETE)
FCK.Events.AttachEvent('OnStatusChange',this.RefreshModeState);else
this.RefreshModeState();this.IsLoaded=true;this.IsEnabled=true;FCKTools.RunFunction(this.OnLoad);};FCKToolbarSet.prototype.Enable=function(){if
(this.IsEnabled) return;this.IsEnabled=true;var A=this.Items;for (var
i=0;i<A.length;i++)
A[i].RefreshState();};FCKToolbarSet.prototype.Disable=function(){if
(!this.IsEnabled) return;this.IsEnabled=false;var A=this.Items;for (var
i=0;i<A.length;i++)
A[i].Disable();};FCKToolbarSet.prototype.RefreshModeState=function(A){if
(FCK.Status!=FCK_STATUS_COMPLETE) return;var B=A?A.ToolbarSet:this;var
C=B.ItemsWysiwygOnly;if (FCK.EditMode==FCK_EDITMODE_WYSIWYG){for (var
i=0;i<C.length;i++)
C[i].Enable();B.RefreshItemsState(A);}else{B.RefreshItemsState(A);for (var
i=0;i<C.length;i++)
C[i].Disable();}};FCKToolbarSet.prototype.RefreshItemsState=function(A){var
B=(A?A.ToolbarSet:this).ItemsContextSensitive;for (var i=0;i<B.length;i++)
B[i].RefreshState();};
+var FCKDialog=new Object();FCKDialog.OpenDialog=function(A,B,C,D,E,F,G,H){var
I=new Object();I.Title=B;I.Page=C;I.Editor=window;I.CustomValue=F;var
J=FCKConfig.BasePath+'fckdialog.html';this.Show(I,A,J,D,E,G,H);};
+FCKDialog.Show=function(A,B,C,D,E,F){if (!F)
F=window;FCKFocusManager.Lock();var
G=F.showModalDialog(C,A,"dialogWidth:"+D+"px;dialogHeight:"+E+"px;help:no;scroll:no;status:no");if
(!G) alert(FCKLang.DialogBlocked);FCKFocusManager.Unlock();};
+var
FCKMenuItem=function(A,B,C,D,E){this.Name=B;this.Label=C||B;this.IsDisabled=E;this.Icon=new
FCKIcon(D);this.SubMenu=new
FCKMenuBlockPanel();this.SubMenu.Parent=A;this.SubMenu.OnClick=FCKTools.CreateEventListener(FCKMenuItem_SubMenu_OnClick,this);if
(FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKMenuItem_Cleanup);};FCKMenuItem.prototype.AddItem=function(A,B,C,D){this.HasSubMenu=true;return
this.SubMenu.AddItem(A,B,C,D);};FCKMenuItem.prototype.AddSeparator=function(){this.SubMenu.AddSeparator();};FCKMenuItem.prototype.Create=function(A){var
B=this.HasSubMenu;var C=FCKTools.GetElementDocument(A);var
r=this.MainElement=A.insertRow(-1);r.className=this.IsDisabled?'MN_Item_Disabled':'MN_Item';if
(!this.IsDisabled){FCKTools.AddEventListenerEx(r,'mouseover',FCKMenuItem_OnMouseOver,[this]);FCKTools.AddEventListenerEx(r,'click',FCKMenuItem_OnClick,[this]);if
(!B)
FCKTools.AddEventListenerEx(r,'mouseout',FCKMenuItem_OnMouseOut,[this]);};var
D=r.insertCell(-1);D.className='MN_Icon';D.appendChild(this.Icon.CreateIconElement(C));D=r.insertCell(-1);D.className='MN_Label';D.noWrap=true;D.appendChild(C.createTextNode(this.Label));D=r.insertCell(-1);if
(B){D.className='MN_Arrow';var
E=D.appendChild(C.createElement('IMG'));E.src=FCK_IMAGES_PATH+'arrow_'+FCKLang.Dir+'.gif';E.width=4;E.height=7;this.SubMenu.Create();this.SubMenu.Panel.OnHide=FCKTools.CreateEventListener(FCKMenuItem_SubMenu_OnHide,this);}};FCKMenuItem.prototype.Activate=function(){this.MainElement.className='MN_Item_Over';if
(this.HasSubMenu){this.SubMenu.Show(this.MainElement.offsetWidth+2,-2,this.MainElement);};FCKTools.RunFunction(this.OnActivate,this);};FCKMenuItem.prototype.Deactivate=function(){this.MainElement.className='MN_Item';if
(this.HasSubMenu) this.SubMenu.Hide();};/* Events */ function
FCKMenuItem_SubMenu_OnClick(clickedItem,listeningItem){FCKTools.RunFunction(listeningItem.OnClick,listeningItem,[clickedItem]);};function
FCKMenuItem_SubMenu_OnHide(menuItem){menuItem.Deactivate();};function
FCKMenuItem_OnClick(ev,menuItem){if (menuItem.HasSubMenu)
menuItem.Activate();else{menuItem.Deactivate();FCKTools.RunFunction(menuItem.OnClick,menuItem,[menuItem]);}};function
FCKMenuItem_OnMouseOver(ev,menuItem){menuItem.Activate();};function
FCKMenuItem_OnMouseOut(ev,menuItem){menuItem.Deactivate();};function
FCKMenuItem_Cleanup(){this.MainElement=null;}
+var FCKMenuBlock=function(){this._Items=new
Array();};FCKMenuBlock.prototype.AddItem=function(A,B,C,D){var E=new
FCKMenuItem(this,A,B,C,D);E.OnClick=FCKTools.CreateEventListener(FCKMenuBlock_Item_OnClick,this);E.OnActivate=FCKTools.CreateEventListener(FCKMenuBlock_Item_OnActivate,this);this._Items.push(E);return
E;};FCKMenuBlock.prototype.AddSeparator=function(){this._Items.push(new
FCKMenuSeparator());};FCKMenuBlock.prototype.RemoveAllItems=function(){this._Items=new
Array();var A=this._ItemsTable;if (A){while (A.rows.length>0)
A.deleteRow(0);}};FCKMenuBlock.prototype.Create=function(A){if
(!this._ItemsTable){if (FCK.IECleanup)
FCK.IECleanup.AddItem(this,FCKMenuBlock_Cleanup);this._Window=FCKTools.GetElementWindow(A);var
B=FCKTools.GetElementDocument(A);var
C=A.appendChild(B.createElement('table'));C.cellPadding=0;C.cellSpacing=0;FCKTools.DisableSelection(C);var
D=C.insertRow(-1).insertCell(-1);D.className='MN_Menu';var
E=this._ItemsTable=D.appendChild(B.createElement('table'));E.cellPadding=0;E.cellSpacing=0;};for
(var i=0;i<this._Items.length;i++)
this._Items[i].Create(this._ItemsTable);};/* Events */ function
FCKMenuBlock_Item_OnClick(clickedItem,menuBlock){FCKTools.RunFunction(menuBlock.OnClick,menuBlock,[clickedItem]);};function
FCKMenuBlock_Item_OnActivate(menuBlock){var
oActiveItem=menuBlock._ActiveItem;if (oActiveItem&&oActiveItem!=this){if
(!FCKBrowserInfo.IsIE&&oActiveItem.HasSubMenu&&!this.HasSubMenu)
menuBlock._Window.focus();oActiveItem.Deactivate();};menuBlock._ActiveItem=this;};function
FCKMenuBlock_Cleanup(){this._Window=null;this._ItemsTable=null;};var
FCKMenuSeparator=function(){};FCKMenuSeparator.prototype.Create=function(A){var
B=FCKTools.GetElementDocument(A);var r=A.insertRow(-1);var
C=r.insertCell(-1);C.className='MN_Separator
MN_Icon';C=r.insertCell(-1);C.className='MN_Separator';C.appendChild(B.createElement('DIV')).className='MN_Separator_Line';C=r.insertCell(-1);C.className='MN_Separator';C.appendChild(B.createElement('DIV')).className='MN_Separator_Line';}
+var
FCKMenuBlockPanel=function(){FCKMenuBlock.call(this);};FCKMenuBlockPanel.prototype=new
FCKMenuBlock();FCKMenuBlockPanel.prototype.Create=function(){var
A=this.Panel=(this.Parent&&this.Parent.Panel?this.Parent.Panel.CreateChildPanel():new
FCKPanel());A.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');FCKMenuBlock.prototype.Create.call(this,A.MainNode);};FCKMenuBlockPanel.prototype.Show=function(x,y,A){if
(!this.Panel.CheckIsOpened())
this.Panel.Show(x,y,A);};FCKMenuBlockPanel.prototype.Hide=function(){if
(this.Panel.CheckIsOpened()) this.Panel.Hide();}
+var FCKContextMenu=function(A,B,C){var D=this._Panel=new
FCKPanel(A,true);D.AppendStyleSheet(FCKConfig.SkinPath+'fck_editor.css');D.IsContextMenu=true;var
E=this._MenuBlock=new
FCKMenuBlock();E.Panel=D;E.OnClick=FCKTools.CreateEventListener(FCKContextMenu_MenuBlock_OnClick,this);this._Redraw=true;this.SetMouseClickWindow(B||A);};FCKContextMenu.prototype.SetMouseClickWindow=function(A){if
(!FCKBrowserInfo.IsIE){this._Document=A.document;this._Document.addEventListener('contextmenu',FCKContextMenu_Document_OnContextMenu,false);}};FCKContextMenu.prototype.AddItem=function(A,B,C,D){var
E=this._MenuBlock.AddItem(A,B,C,D);this._Redraw=true;return
E;};FCKContextMenu.prototype.AddSeparator=function(){this._MenuBlock.AddSeparator();this._Redraw=true;};FCKContextMenu.prototype.RemoveAllItems=function(){this._MenuBlock.RemoveAllItems();this._Redraw=true;};FCKContextMenu.prototype.AttachToElement=function(A){if
(FCKBrowserInfo.IsIE)
FCKTools.AddEventListenerEx(A,'contextmenu',FCKContextMenu_AttachedElement_OnContextMenu,this);else
A._FCKContextMenu=this;};function FCKContextMenu_Document_OnContextMenu(e){var
el=e.target;while (el){if
(el._FCKContextMenu){FCKTools.CancelEvent(e);FCKContextMenu_AttachedElement_OnContextMenu(e,el._FCKContextMenu,el);};el=el.parentNode;}};function
FCKContextMenu_AttachedElement_OnContextMenu(ev,fckContextMenu,el){var
eTarget=el||this;if (fckContextMenu.OnBeforeOpen)
fckContextMenu.OnBeforeOpen.call(fckContextMenu,eTarget);if
(fckContextMenu._Redraw){fckContextMenu._MenuBlock.Create(fckContextMenu._Panel.MainNode);fckContextMenu._Redraw=false;};fckContextMenu._Panel.Show(ev.pageX||ev.screenX,ev.pageY||ev.screenY,ev.currentTarget||null);return
false;};function
FCKContextMenu_MenuBlock_OnClick(menuItem,contextMenu){contextMenu._Panel.Hide();FCKTools.RunFunction(contextMenu.OnItemClick,contextMenu,menuItem);}
+FCK.ContextMenu=new Object();FCK.ContextMenu.Listeners=new
Array();FCK.ContextMenu.RegisterListener=function(A){if (A)
this.Listeners.push(A);};function FCK_ContextMenu_Init(){var
oInnerContextMenu=FCK.ContextMenu._InnerContextMenu=new
FCKContextMenu(FCKBrowserInfo.IsIE?window:window.parent,FCK.EditorWindow,FCKLang.Dir);oInnerContextMenu.OnBeforeOpen=FCK_ContextMenu_OnBeforeOpen;oInnerContextMenu.OnItemClick=FCK_ContextMenu_OnItemClick;var
oMenu=FCK.ContextMenu;for (var i=0;i<FCKConfig.ContextMenu.length;i++)
oMenu.RegisterListener(FCK_ContextMenu_GetListener(FCKConfig.ContextMenu[i]));};function
FCK_ContextMenu_GetListener(listenerName){switch (listenerName){case
'Generic':return
{AddItems:function(A,B,C){A.AddItem('Cut',FCKLang.Cut,7,FCKCommands.GetCommand('Cut').GetState()==FCK_TRISTATE_DISABLED);A.AddItem('Copy',FCKLang.Copy,8,FCKCommands.GetCommand('Copy').GetState()==FCK_TRISTATE_DISABLED);A.AddItem('Paste',FCKLang.Paste,9,FCKCommands.GetCommand('Paste').GetState()==FCK_TRISTATE_DISABLED);}};case
'Table':return {AddItems:function(A,B,C){var D=(C=='TABLE');var
E=(!D&&FCKSelection.HasAncestorNode('TABLE'));if (E){A.AddSeparator();var
F=A.AddItem('Cell',FCKLang.CellCM);F.AddItem('TableInsertCell',FCKLang.InsertCell,58);F.AddItem('TableDeleteCells',FCKLang.DeleteCells,59);F.AddItem('TableMergeCells',FCKLang.MergeCells,60);F.AddItem('TableSplitCell',FCKLang.SplitCell,61);F.AddSeparator();F.AddItem('TableCellProp',FCKLang.CellProperties,57);A.AddSeparator();F=A.AddItem('Row',FCKLang.RowCM);F.AddItem('TableInsertRow',FCKLang.InsertRow,62);F.AddItem('TableDeleteRows',FCKLang.DeleteRows,63);A.AddSeparator();F=A.AddItem('Column',FCKLang.ColumnCM);F.AddItem('TableInsertColumn',FCKLang.InsertColumn,64);F.AddItem('TableDeleteColumns',FCKLang.DeleteColumns,65);};if
(D||E){A.AddSeparator();A.AddItem('TableDelete',FCKLang.TableDelete);A.AddItem('TableProp',FCKLang.TableProperties,39);}}};case
'Link':return {AddItems:function(A,B,C){if
(FCK.GetNamedCommandState('Unlink')!=FCK_TRISTATE_DISABLED){A.AddSeparator();A.AddItem('Link',FCKLang.EditLink,34);A.AddItem('Unlink',FCKLang.RemoveLink,35);}}};case
'Image':return {AddItems:function(A,B,C){if
(C=='IMG'&&!B.getAttribute('_fckfakelement')){A.AddSeparator();A.AddItem('Image',FCKLang.ImageProperties,37);}}};case
'Anchor':return {AddItems:function(A,B,C){if
(C=='IMG'&&B.getAttribute('_fckanchor')){A.AddSeparator();A.AddItem('Anchor',FCKLang.AnchorProp,36);}}};case
'Flash':return {AddItems:function(A,B,C){if
(C=='IMG'&&B.getAttribute('_fckflash')){A.AddSeparator();A.AddItem('Flash',FCKLang.FlashProperties,38);}}};case
'Form':return {AddItems:function(A,B,C){if
(FCKSelection.HasAncestorNode('FORM')){A.AddSeparator();A.AddItem('Form',FCKLang.FormProp,48);}}};case
'Checkbox':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='checkbox'){A.AddSeparator();A.AddItem('Checkbox',FCKLang.CheckboxProp,49);}}};case
'Radio':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='radio'){A.AddSeparator();A.AddItem('Radio',FCKLang.RadioButtonProp,50);}}};case
'TextField':return {AddItems:function(A,B,C){if
(C=='INPUT'&&(B.type=='text'||B.type=='password')){A.AddSeparator();A.AddItem('TextField',FCKLang.TextFieldProp,51);}}};case
'HiddenField':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='hidden'){A.AddSeparator();A.AddItem('HiddenField',FCKLang.HiddenFieldProp,56);}}};case
'ImageButton':return {AddItems:function(A,B,C){if
(C=='INPUT'&&B.type=='image'){A.AddSeparator();A.AddItem('ImageButton',FCKLang.ImageButtonProp,55);}}};case
'Button':return {AddItems:function(A,B,C){if
(C=='INPUT'&&(B.type=='button'||B.type=='submit'||B.type=='reset')){A.AddSeparator();A.AddItem('Button',FCKLang.ButtonProp,54);}}};case
'Select':return {AddItems:function(A,B,C){if
(C=='SELECT'){A.AddSeparator();A.AddItem('Select',FCKLang.SelectionFieldProp,53);}}};case
'Textarea':return {AddItems:function(A,B,C){if
(C=='TEXTAREA'){A.AddSeparator();A.AddItem('Textarea',FCKLang.TextareaProp,52);}}};case
'BulletedList':return {AddItems:function(A,B,C){if
(FCKSelection.HasAncestorNode('UL')){A.AddSeparator();A.AddItem('BulletedList',FCKLang.BulletedListProp,27);}}};case
'NumberedList':return {AddItems:function(A,B,C){if
(FCKSelection.HasAncestorNode('OL')){A.AddSeparator();A.AddItem('NumberedList',FCKLang.NumberedListProp,26);}}};}};function
FCK_ContextMenu_OnBeforeOpen(){FCK.Events.FireEvent("OnSelectionChange");var
oTag,sTagName;if (oTag=FCKSelection.GetSelectedElement())
sTagName=oTag.tagName;var
oMenu=FCK.ContextMenu._InnerContextMenu;oMenu.RemoveAllItems();var
aListeners=FCK.ContextMenu.Listeners;for (var i=0;i<aListeners.length;i++)
aListeners[i].AddItems(oMenu,oTag,sTagName);};function
FCK_ContextMenu_OnItemClick(item){FCK.Focus();FCKCommands.GetCommand(item.Name).Execute();}
+var
FCKPlugin=function(A,B,C){this.Name=A;this.BasePath=C?C:FCKConfig.PluginsPath;this.Path=this.BasePath+A+'/';if
(!B||B.length==0) this.AvailableLangs=new Array();else
this.AvailableLangs=B.split(',');};FCKPlugin.prototype.Load=function(){if
(this.AvailableLangs.length>0){var A;if
(this.AvailableLangs.indexOf(FCKLanguageManager.ActiveLanguage.Code)>=0)
A=FCKLanguageManager.ActiveLanguage.Code;else
A=this.AvailableLangs[0];LoadScript(this.Path+'lang/'+A+'.js');};LoadScript(this.Path+'fckplugin.js');}
+var FCKPlugins=FCK.Plugins=new
Object();FCKPlugins.ItemsCount=0;FCKPlugins.Items=new
Object();FCKPlugins.Load=function(){var A=FCKPlugins.Items;for (var
i=0;i<FCKConfig.Plugins.Items.length;i++){var B=FCKConfig.Plugins.Items[i];var
C=A[B[0]]=new FCKPlugin(B[0],B[1],B[2]);FCKPlugins.ItemsCount++;};for (var s in
A) A[s].Load();FCKPlugins.Load=null;}
Index: lang/bn.js
===================================================================
RCS file: lang/bn.js
diff -N lang/bn.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lang/bn.js 25 Sep 2006 09:30:40 -0000 1.1
@@ -0,0 +1,486 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: bn.js
+ * Bengali/Bangla language file.
+ *
+ * File Authors:
+ * Richard Walledge (address@hidden)
+ */
+
+var FCKLang =
+{
+// Language direction : "ltr" (left to right) or "rtl" (right to left).
+Dir : "ltr",
+
+ToolbarCollapse : "à¦à§à¦²à¦¬à¦¾à¦° সিমà¦à¦¾à¦¯à§à¤",
+ToolbarExpand : "à¦à§à¦²à¦¬à¦¾à¦° à¦à¦¾ ঵িসà§à¦¤à¦¾à¦°
à¦à¦°à§à¤",
+
+// Toolbar Items and Context Menu
+Save : "সà§à¦µ",
+NewPage : "নযা পà§à¦",
+Preview : "পà§à¦°à§à¦µà§à¦¯à§",
+Cut : "à¦à¦",
+Copy : "à¦à§à¦ªà§",
+Paste : "পà§à¦¸à§à¦",
+PasteText : "পà§à¦¸à§à¦ (সাদা à¦à§
à¦à§à¦¸à§à¦)",
+PasteWord : "পà§à¦¸à§à¦ (঵রà§à¦¡ সà§)",
+Print : "পà§à¦°à¦¿à¦¨à§à¦",
+SelectAll : "সব সà§
লà§
à¦à§à¦ à¦à¦°à§à¤",
+RemoveFormat : "à§à§à¦°à§à¦®à§à¦ হà¦à¦¾à¦¯à§à¤",
+InsertLinkLbl : "লিà¤à¦",
+InsertLink : "লিà¤à¦
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+RemoveLink : "লিà¤à¦ হà¦à¦¾à¦¯à§à¤",
+Anchor : "à¦à¤à¦à¦°
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+InsertImageLbl : "তসà§à¦µà§à¦°",
+InsertImage : "তসà§à¦µà§à¦°
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+InsertFlashLbl : "à§à§à¦²à§à¦¶",
+InsertFlash : "à§à§à¦²à§à¦¶
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+InsertTableLbl : "à¦à§à¦¬à¦²",
+InsertTable : "à¦à§à¦¬à¦²
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+InsertLineLbl : "রà§à¦à¦¾",
+InsertLine : "হà§à¦°à¦¿à§à§à¦¨à§à¦à¦² রà§à¦à¦¾
à¦à¦¨à§à¦¸à¦°à§à¦ à¦à¦°à§à¤",
+InsertSpecialCharLbl: "঵িশà§à¦· à¦à¦°à§
à¦à§à¦à¦°",
+InsertSpecialChar : "঵িশà§à¦· à¦à¦°à§
à¦à§à¦à¦°
à¦à¦¨à§à¦¸à¦°à§à¦ à¦à¦°à§à¤",
+InsertSmileyLbl : "সà§à¦®à¦¾à¦à¦²à§",
+InsertSmiley : "সà§à¦®à¦¾à¦à¦²à§ à¦à¦¨à§à¦¸à¦°à§à¦
à¦à¦°à§à¤",
+About : "FCKeditor à¦à§ বারৠমà§à¤",
+Bold : "বà§à¦²à§à¦¡",
+Italic : "à¦à¦à§à¦²à¦¿à¦",
+Underline : "রà§à¦à¦¾à¤à¦à¦£",
+StrikeThrough : "সà§à¦à§à¦°à¦¾à¦à¦ থà§à¦°à§",
+Subscript : "à¦
ধà§à¦²à§à¦",
+Superscript : "à¦
à¦à¦¿à¦²à§à¦",
+LeftJustify : "বাযà§à¤ তরফ",
+CenterJustify : "বà§à¦ মà§à¤",
+RightJustify : "দাযà§à¤ তরফ",
+BlockJustify : "বà§à¦²à§à¦ à¦à¦¸à§à¦à§à§à¦¾à¦",
+DecreaseIndent : "à¦à¦¨à§à¦¡à§
নà§à¦ à¦à¦® à¦à¦°à§à¤",
+IncreaseIndent : "à¦à¦¨à§à¦¡à§
নà§à¦ বà§à¦¾à¦¯à§à¤",
+Undo : "à¦
নà§à¦¡à§",
+Redo : "রà§à¦¡à§",
+NumberedListLbl : "à¦
à¤à¦à§à¦¯ সà§à¦à§",
+NumberedList : "à¦
à¤à¦à§à¦¯ সà§à¦à§
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+BulletedListLbl : "বà§à¦²à§
ঠসà§à¦à§",
+BulletedList : "বà§à¦²à§
ঠসà§à¦à§
à¦à¦¨à§à¦¸à¦°à§à¦/সà¤à¦ªà¦¾à¦¦à¦¨",
+ShowTableBorders : "à¦à§à¦¬à¦² বà§à¦°à§à¦¡à¦°à¦¯à§à¤
দিà¦à¦¾à¦¯à§à¤",
+ShowDetails : "à¦à§à¦¯à¦¾à¦¦à¦¾ দিà¦à¦¾à¦¯à§à¤",
+Style : "সà§à¦à¦¾à¦à¦²",
+FontFormat : "à§à§à¦°à§à¦®à§à¦",
+Font : "à§à§à¦¨à§à¦",
+FontSize : "সাà¦à§",
+TextColor : "à¦à§à¦à§à¦¸à§à¦ রà¤à¦",
+BGColor : "বà§à¦à§à¦à§à¦°à¦¾à¦à¦¨à§à¦¡
রà¤à¦",
+Source : "সà§à¦°à§à¦¸",
+Find : "à¦à§à¦à§à¤",
+Replace : "রà§à¦ªà§à¦²à§à¦¸",
+SpellCheck : "঵রà§à¦¤à¦¨à§
(সà§à¦ªà§à¦²à¦¿à¤à¦) à¦à¦¾à¤à¦",
+UniversalKeyboard : "যà§à¦¨à§à¦µà¦°à§à¦¸à¦² à¦à§à¦¬à§à¦°à§à¦¡",
+PageBreakLbl : "পà§à¦ বà§à¦°à§à¦",
+PageBreak : "পà§à¦ বà§à¦°à§à¦
à¦à¦¨à§à¦¸à¦°à§à¦à§ à¦à¦°à§à¤",
+
+Form : "à§à§à¦°à§à¦®",
+Checkbox : "à¦à§
ঠবà§à¦à§à¦¸",
+RadioButton : "রà§à¦¡à¦¿à¦ বà¦à¦¨",
+TextField : "à¦à§à¦à§à¦¸à§à¦ à§à§à¦²à§à¦¡",
+Textarea : "à¦à§à¦à§à¦¸à§à¦ à¦à¦°à¦¿à¦¯à¦¾",
+HiddenField : "à¦à§à¦ªà§à¦¤ à§à§à¦²à§à¦¡",
+Button : "বà¦à¦¨",
+SelectionField : "à¦à§à¦¨à¦¾à¦µ à§à§à¦²à§à¦¡",
+ImageButton : "তসà§à¦µà§à¦° বà¦à¦¨",
+
+FitWindow : "মà¦à¦¸à¦¿à¦®à¦¿à¦¸à§ সি",
+
+// Context Menu
+EditLink : "লিà¤à¦ সà¤à¦ªà¦¾à¦¦à¦¨",
+CellCM : "সà§
ল",
+RowCM : "পà¤à¦à§à¦¤à¦¿",
+ColumnCM : "à¦à§à¦²à¦®",
+InsertRow : "পà¤à¦à§à¦¤à¦¿ à¦à¦¨à§à¦¸à¦°à§à¦
à¦à¦°à§à¤",
+DeleteRows : "পà¤à¦à§à¦¤à¦¿à¦¯à¦¾à¤ ডিলà§à¦
à¦à¦°à§à¤",
+InsertColumn : "à¦à§à¦²à¦® à¦à¦¨à§à¦¸à¦°à§à¦ à¦à¦°à§à¤",
+DeleteColumns : "à¦à§à¦²à¦® ডিলà§à¦ à¦à¦°à§à¤",
+InsertCell : "সà§
ল à¦à¦¨à§à¦¸à¦°à§à¦
à¦à¦°à§à¤",
+DeleteCells : "সà§
ল ডিলà§à¦ à¦à¦°à§à¤",
+MergeCells : "সà§
ল মিলাযà§à¤",
+SplitCell : "সà§
ল à¦
লঠà¦à¦°à§à¤",
+TableDelete : "à¦à§à¦¬à¦² ডিলà§à¦ à¦à¦°à§à¤",
+CellProperties : "সà§
ল পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+TableProperties : "à¦à§à¦¬à¦² পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+ImageProperties : "তসà§à¦µà§à¦°
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+FlashProperties : "à§à§à¦²à§à¦¶
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+
+AnchorProp : "à¦à¤à¦à¦° পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+ButtonProp : "বà¦à¦¨ পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+CheckboxProp : "à¦à§
ঠবà§à¦à§à¦¸
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+HiddenFieldProp : "à¦à§à¦ªà§à¦¤ à§à§à¦²à§à¦¡
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+RadioButtonProp : "রà§à¦¡à¦¿à¦ বà¦à¦¨
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+ImageButtonProp : "তসà§à¦µà§à¦° বà¦à¦¨
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+TextFieldProp : "à¦à§à¦à§à¦¸à§à¦ à§à§à¦²à§à¦¡
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+SelectionFieldProp : "à¦à§à¦¨à¦¾à¦µ à§à§à¦²à§à¦¡
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+TextareaProp : "à¦à§à¦à§à¦¸à§à¦¤ à¦à¦°à¦¿à¦¯à¦¾
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+FormProp : "à§à§à¦°à§à¦®
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+
+FontFormats : "সাধারণ;à§à§à¦°à§à¦®à§à¦à§
ড;পতা;শà§à¦°à§à¦·à¦ 1;শà§à¦°à§à¦·à¦ 2;শà§à¦°à§à¦·à¦
3;শà§à¦°à§à¦·à¦4;শà§à¦°à§à¦·à¦ 5;শà§à¦°à§à¦·à¦
6;শà§à¦°à§à¦·à¦ (DIV)",
+
+// Alerts and Messages
+ProcessingXHTML : "XHTML পà§à¦°à§à¦¸à§
স হৠরহা
হà§à§¤ à§à¦°à¦¾ হরà§à¤...",
+Done : "পà§à¦°à¦¾ হà§à¦",
+PasteWordConfirm : "à¦à¦ª à¦à§ à¦à§à¦à§à¦¸à§à¦ পà§à¦¸à§à¦
à¦à¦°à¦¨à¦¾ à¦à¦¾à¦¹à¦¤à§ হà§à¤, ঵হ ঵রà§à¦¡ সà§
à¦à§à¦ªà§à¦à¦¿à¦¯à¦¾ হà§à¦ লঠরহা হà§à§¤ à¦à§à¦¯à¦¾
পà§à¦¸à§à¦ à¦à¦°à¦¨à§ সৠপহলৠà¦à¦ª à¦à¦¸à§ সাà§
à¦à¦°à¦¨à¦¾ à¦à¦¾à¦¹à§à¤à¦à§?",
+NotCompatiblePaste : "যহ à¦à¦®à¦¾à¤à¦¡ à¦à¦¨à§à¦à¦°à¦¨à§
à¦
à¦à¦à§à¦¸à§à¦ªà§à¦²à§à¦°à¦°(Internet Explorer)5.5 যা à¦à¦¸à¦à§
বাদ à¦à§ ঵রà§à§à¦¨ à¦à§ লিঠহৠà¦à¦ªà¦²à¦¬à§à¦§
হà§à§¤ à¦à§à¦¯à¦¾ à¦à¦ª বিনা সাৠà¦à¦¿à¦à¦ªà§à¦¸à§à¦
à¦à¦°à¦¨à¦¾ à¦à¦¾à¦¹à§à¤à¦à§?",
+UnknownToolbarItem : "à¦
নà¦à¦¾à¦¨ à¦à§à¦²à¦¬à¦¾à¦° à¦à¦à¦à¦®
\"%1\"",
+UnknownCommand : "à¦
নà¦à¦¾à¦¨ à¦à¦®à¦¾à¦¨à§à¦¡ \"%1\"",
+NotImplemented : "à¦à¦®à¦¾à¦¨à§à¦¡ à¦à¦®à§à¦ªà§à¦²à§à¦®à§
নà§à¦ নহà§à¤ à¦à¦¿à¦¯à¦¾ à¦à¦¯à¦¾ হà§",
+UnknownToolbarSet : "à¦à§à¦²à¦¬à¦¾à¦° সà§
ঠ\"%1\"
à¦à¦ªà¦²à¦¬à§à¦§ নহà§à¤ হà§",
+NoActiveX : "à¦à¦ªà¦à§ বà§à¦°à¦¾à¦à§à¦°à§ à¦à§
সà§à¦°à¦à§à¦¶à¦¾ সà§à¦à¦¿à¤à¦à§à¦¸à§ à¦à¦¡à¦¿à¦à¦° à¦à§
à¦à§à¦à§ à§à§à¦à¦°à§à¤ à¦à§à¦¸à§à¦®à¦¿à¦¤ à¦à¦°à§ সà¦à¦¤à§
হà§à¤à§¤ à¦à§à¦°à¦¿à¦ªà¦¯à¦¾ \"Run ActiveX controls and
plug-ins\"঵িà¦à¦²à§à¦ª à¦à§ à¦à¦¨à§à¦¬à¦² à¦à¦°à§à¤. à¦à¦ªà¦à§
à¦à¦°à¦°à§à¦¸à§ à¦à¦° à¦à¦¾à¦¯à¦¬ à§à§à¦à¦°à§à¦¸à§ à¦à¦¾ à¦
নà§à¦à¦µ হৠসà¦à¦¤à¦¾à¦¹à§à§¤",
+BrowseServerBlocked : "রিসà§à¦°à§à¦¸à§à§ বà§à¦°à¦¾à¦à§à¦°à§
নহà§à¤ à¦à§à¦²à¦¾ à¦à¦¾ সà¦à¦¾à§¤ à¦à§à¦°à¦¿à¦ªà¦¯à¦¾
সà¦à§à¦ªà§à¦ªà§-à¦
পৠবà§à¦²à§à¦à¦°à§à¦¸à§ à¦à§
ডিসà§à¦¬à¦² à¦à¦°à§à¤à§¤",
+DialogBlocked : "ডাযলঠ঵িনà§à¦¡à§ নহà§à¤
à¦à§à¦²à¦¾ à¦à¦¾ সà¦à¦¾à§¤ à¦à§à¦°à¦¿à¦ªà¦¯à¦¾ সà¦à§
পà§à¦ªà§-à¦
পà§à¦¬à§à¦²à§à¦à¦°à§à¦¸à§ à¦à§ ডিসà§à¦¬à¦²
à¦à¦°à§à¤à§¤",
+
+// Dialogs
+DlgBtnOK : " à§à¦ হà§",
+DlgBtnCancel : "রদà§à¦¦ à¦à¦°à§à¤",
+DlgBtnClose : "বনà§à¦¦ à¦à¦°à§à¤",
+DlgBtnBrowseServer : "সরà§à¦µà¦° বà§à¦°à¦¾à¦à§ à¦à¦°à§à¤",
+DlgAdvancedTag : "à¦à¦¡à§à¦µà¦¾à¦¨à§à¦¸à§à¦¡",
+DlgOpOther : "<à¦
নà§à¦¯>",
+DlgInfoTab : "সà§à¦à¦¨à¦¾",
+DlgAlertUrl : "URL à¦à¦¨à§à¦¸à¦°à§à¦ à¦à¦°à§à¤",
+
+// General Dialogs Labels
+DlgGenNotSet : "<সà§
ঠনহà§à¤>",
+DlgGenId : "Id",
+DlgGenLangDir : "à¦à¦¾à¦·à¦¾ লিà¦à¦¨à§ à¦à§ দিশা",
+DlgGenLangDirLtr : "বাযà§à¤ সৠদাযà§à¤ (LTR)",
+DlgGenLangDirRtl : "দাযà§à¤ সৠবাযà§à¤ (RTL)",
+DlgGenLangCode : "à¦à¦¾à¦·à¦¾ à¦à§à¦¡",
+DlgGenAccessKey : "à¦à¦à§à¦¸à§
স à¦à§",
+DlgGenName : "নাম",
+DlgGenTabIndex : "à¦à§à¦¬ à¦à¦¨à§à¦¡à§
à¦à§à¦¸",
+DlgGenLongDescr : "à¦
ধিঠ঵ি঵রণ à¦à§
লিঠURL",
+DlgGenClass : "সà§à¦à¦¾à¦à¦²-শà§à¦
à¦à§à¦²à¦¾à¦¸",
+DlgGenTitle : "পরামরà§à¦¶ শà§à¦°à§à¦¶à¦",
+DlgGenContType : "পরামরà§à¦¶ à¦à¦¨à§à¦à§
নà§à¦
পà§à¦°à¦à¦¾à¦°",
+DlgGenLinkCharset : "লিà¤à¦ রিসà§à¦°à§à¦¸ à¦à¦°à§
à¦à§à¦à¦° সà§
à¦",
+DlgGenStyle : "সà§à¦à¦¾à¦à¦²",
+
+// Image Dialog
+DlgImgTitle : "তসà§à¦µà§à¦°
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+DlgImgInfoTab : "তসà§à¦µà§à¦° à¦à§ à¦à¦¾à¦¨à¦à¦¾à¦°à§",
+DlgImgBtnUpload : "à¦à¦¸à§ সরà§à¦µà¦° à¦à§
à¦à§à¦à§à¤",
+DlgImgURL : "URL",
+DlgImgUpload : "à¦
পলà§à¦¡",
+DlgImgAlt : "঵à§à¦à¦²à§à¦ªà¦¿à¦
à¦à§à¦à§à¦¸à§à¦",
+DlgImgWidth : "à¦à§à§à¦¾à¦",
+DlgImgHeight : "à¦à¤à¦à¦¾à¦",
+DlgImgLockRatio : "লà§à¦ à¦
নà§à¦ªà¦¾à¦¤",
+DlgBtnResetSize : "রà§à¦¸à§
ঠসাà¦à§",
+DlgImgBorder : "বà§à¦°à§à¦¡à¦°",
+DlgImgHSpace : "হà§à¦°à¦¿à§à§à¦¨à§à¦à¦² সà§à¦ªà§à¦¸",
+DlgImgVSpace : "঵রà§à¦à¦¿à¦à¦² সà§à¦ªà§à¦¸",
+DlgImgAlign : "à¦à¦²à¦¾à¦à¦¨",
+DlgImgAlignLeft : "দাযà§à¤",
+DlgImgAlignAbsBottom: "Abs নà§à¦à§",
+DlgImgAlignAbsMiddle: "Abs à¦à¦ªà¦°",
+DlgImgAlignBaseline : "মà§à¦² রà§à¦à¦¾",
+DlgImgAlignBottom : "নà§à¦à§",
+DlgImgAlignMiddle : "মধà§à¦¯",
+DlgImgAlignRight : "দাযà§à¤",
+DlgImgAlignTextTop : "à¦à§à¦à§à¦¸à§à¦ à¦à¦ªà¦°",
+DlgImgAlignTop : "à¦à¦ªà¦°",
+DlgImgPreview : "পà§à¦°à§à¦µà§à¦¯à§",
+DlgImgAlertUrl : "তসà§à¦µà§à¦° à¦à¦¾ URL à¦à¦¾à¦à¦ª
à¦à¦°à§à¤ ",
+DlgImgLinkTab : "লিà¤à¦",
+
+// Flash Dialog
+DlgFlashTitle : "à§à§à¦²à§à¦¶ পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+DlgFlashChkPlay : "à¦à¦à§ পà§à¦²à§",
+DlgFlashChkLoop : "লà§à¦ª",
+DlgFlashChkMenu : "à§à§à¦²à§à¦¶ মà§
নà§à¦¯à§ à¦à¦¾
পà§à¦°à¦¯à§à¦ à¦à¦°à§à¤",
+DlgFlashScale : "সà§à¦à§à¦²",
+DlgFlashScaleAll : "সà¦à§ দিà¦à¦¾à¦¯à§à¤",
+DlgFlashScaleNoBorder : "à¦à§à¦ বà§à¦°à§à¦¡à¦° নহà§à¤",
+DlgFlashScaleFit : "বিলà§à¦à§à¦² à§à¦¿à¦",
+
+// Link Dialog
+DlgLnkWindowTitle : "লিà¤à¦",
+DlgLnkInfoTab : "লিà¤à¦ ",
+DlgLnkTargetTab : "à¦à¦¾à¦°à§à¦à§à¦",
+
+DlgLnkType : "লিà¤à¦ পà§à¦°à¦à¦¾à¦°",
+DlgLnkTypeURL : "URL",
+DlgLnkTypeAnchor : "à¦à¦¸ পà§à¦ à¦à¦¾ à¦à¤à¦à¦°",
+DlgLnkTypeEMail : "à¦-মà§à¦²",
+DlgLnkProto : "পà§à¦°à§à¦à§à¦à§à¦²",
+DlgLnkProtoOther : "<à¦
নà§à¦¯>",
+DlgLnkURL : "URL",
+DlgLnkAnchorSel : "à¦à¤à¦à¦° à¦à§à¦¨à§à¤",
+DlgLnkAnchorByName : "à¦à¤à¦à¦° নাম সà§",
+DlgLnkAnchorById : "à¦à¦²à§à¦®à§
নà§à¦ Id সà§",
+DlgLnkNoAnchors : "<ডà§à¦à§à¦¯à§à¦®à§
নà§à¦ মà§à¤
à¦à¤à¦à¦°à§à¦¸ à¦à§ সà¤à¦à§à¦¯à¦¾>",
+DlgLnkEMail : "à¦-মà§à¦² পতা",
+DlgLnkEMailSubject : "সà¤à¦¦à§à¦¶ ঵িষয",
+DlgLnkEMailBody : "সà¤à¦¦à§à¦¶",
+DlgLnkUpload : "à¦
পলà§à¦¡",
+DlgLnkBtnUpload : "à¦à¦¸à§ সরà§à¦µà¦° à¦à§
à¦à§à¦à§à¤",
+
+DlgLnkTarget : "à¦à¦¾à¦°à§à¦à§à¦",
+DlgLnkTargetFrame : "<à§à§à¦°à§à¦®>",
+DlgLnkTargetPopup : "<পà§à¦ª-à¦
প ঵িনà§à¦¡à§>",
+DlgLnkTargetBlank : "নযা ঵িনà§à¦¡à§ (_blank)",
+DlgLnkTargetParent : "মà§à¦² ঵িনà§à¦¡à§ (_parent)",
+DlgLnkTargetSelf : "à¦à¦¸à§ ঵িনà§à¦¡à§ (_self)",
+DlgLnkTargetTop : "শà§à¦°à§à¦· ঵িনà§à¦¡à§ (_top)",
+DlgLnkTargetFrameName : "à¦à¦¾à¦°à§à¦à§à¦ à§à§à¦°à§à¦® à¦à¦¾
নাম",
+DlgLnkPopWinName : "পà§à¦ª-à¦
প ঵িনà§à¦¡à§ à¦à¦¾
নাম",
+DlgLnkPopWinFeat : "পà§à¦ª-à¦
প ঵িনà§à¦¡à§
à§à§à¦à¦°à§à¦¸",
+DlgLnkPopResize : "সাà¦à§ বদলা à¦à¦¾
সà¦à¦¤à¦¾ হà§",
+DlgLnkPopLocation : "লà§à¦à§à¦¶à¦¨ বার",
+DlgLnkPopMenu : "মà§
নà§à¦¯à§ বার",
+DlgLnkPopScroll : "সà§à¦à§à¦°à§à¦² বার",
+DlgLnkPopStatus : "সà§à¦à§à¦à¦¸ বার",
+DlgLnkPopToolbar : "à¦à§à¦² বার",
+DlgLnkPopFullScrn : "à§à§à¦² সà§à¦à§à¦°à§à¦¨ (IE)",
+DlgLnkPopDependent : "ডিপà§à¦¨à§à¦¡à§
নà§à¦ (Netscape)",
+DlgLnkPopWidth : "à¦à§à§à¦¾à¦",
+DlgLnkPopHeight : "à¦à¤à¦à¦¾à¦",
+DlgLnkPopLeft : "বাযà§à¤ তরফ",
+DlgLnkPopTop : "দাযà§à¤ তরফ",
+
+DlnLnkMsgNoUrl : "লিà¤à¦ URL à¦à¦¾à¦à¦ª à¦à¦°à§à¤",
+DlnLnkMsgNoEMail : "à¦-মà§à¦² পতা à¦à¦¾à¦à¦ª à¦à¦°à§à¤",
+DlnLnkMsgNoAnchor : "à¦à¤à¦à¦° à¦à§à¦¨à§à¤",
+
+// Color Dialog
+DlgColorTitle : "রà¤à¦ à¦à§à¦¨à§à¤",
+DlgColorBtnClear : "সাৠà¦à¦°à§à¤",
+DlgColorHighlight : "হাà¦à¦²à¦¾à¦à¦",
+DlgColorSelected : "সà§
লà§
à¦à§à¦à§
ড",
+
+// Smiley Dialog
+DlgSmileyTitle : "সà§à¦®à¦¾à¦à¦²à§ à¦à¦¨à§à¦¸à¦°à§à¦
à¦à¦°à§à¤",
+
+// Special Character Dialog
+DlgSpecialCharTitle : "঵িশà§à¦· à¦à¦°à§
à¦à§à¦à¦°
à¦à§à¦¨à§à¤",
+
+// Table Dialog
+DlgTableTitle : "à¦à§à¦¬à¦² পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+DlgTableRows : "পà¤à¦à§à¦¤à¦¿à¦¯à¦¾à¤",
+DlgTableColumns : "à¦à§à¦²à¦®",
+DlgTableBorder : "বà§à¦°à§à¦¡à¦° সাà¦à§",
+DlgTableAlign : "à¦à¦²à¦¾à¦à¦¨à§à¦®à§
নà§à¦",
+DlgTableAlignNotSet : "<সà§
ঠনহà§à¤>",
+DlgTableAlignLeft : "দাযà§à¤",
+DlgTableAlignCenter : "বà§à¦ মà§à¤",
+DlgTableAlignRight : "বাযà§à¤",
+DlgTableWidth : "à¦à§à§à¦¾à¦",
+DlgTableWidthPx : "পিà¦à§à¦¸à§
ল",
+DlgTableWidthPc : "পà§à¦°à¦¤à¦¿à¦¶à¦¤",
+DlgTableHeight : "à¦à¤à¦à¦¾à¦",
+DlgTableCellSpace : "সà§
ল à¦
à¤à¦¤à¦°",
+DlgTableCellPad : "সà§
ল পà§à¦¡à¦¿à¤à¦",
+DlgTableCaption : "শà§à¦°à§à¦·à¦",
+DlgTableSummary : "সারাà¤à¦¶",
+
+// Table Cell Dialog
+DlgCellTitle : "সà§
ল পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+DlgCellWidth : "à¦à§à§à¦¾à¦",
+DlgCellWidthPx : "পিà¦à§à¦¸à§
ল",
+DlgCellWidthPc : "পà§à¦°à¦¤à¦¿à¦¶à¦¤",
+DlgCellHeight : "à¦à¤à¦à¦¾à¦",
+DlgCellWordWrap : "঵রà§à¦¡ রà§à¦ª",
+DlgCellWordWrapNotSet : "<সà§
ঠনহà§à¤>",
+DlgCellWordWrapYes : "হাà¤",
+DlgCellWordWrapNo : "নহà§à¤",
+DlgCellHorAlign : "হà§à¦°à¦¿à§à§à¦¨à§à¦à¦²
à¦à¦²à¦¾à¦à¦¨à§à¦®à§
নà§à¦",
+DlgCellHorAlignNotSet : "<সà§
ঠনহà§à¤>",
+DlgCellHorAlignLeft : "দাযà§à¤",
+DlgCellHorAlignCenter : "বà§à¦ মà§à¤",
+DlgCellHorAlignRight: "বাযà§à¤",
+DlgCellVerAlign : "঵রà§à¦à¦¿à¦à¦²
à¦à¦²à¦¾à¦à¦¨à§à¦®à§
নà§à¦",
+DlgCellVerAlignNotSet : "<সà§
ঠনহà§à¤>",
+DlgCellVerAlignTop : "à¦à¦ªà¦°",
+DlgCellVerAlignMiddle : "মধà§à¦¯",
+DlgCellVerAlignBottom : "নà§à¦à§",
+DlgCellVerAlignBaseline : "মà§à¦²à¦°à§à¦à¦¾",
+DlgCellRowSpan : "পà¤à¦à§à¦¤à¦¿ সà§à¦ªà§à¦¨",
+DlgCellCollSpan : "à¦à§à¦²à¦® সà§à¦ªà§à¦¨",
+DlgCellBackColor : "বà§à¦à§à¦à§à¦°à¦¾à¦à¦¨à§à¦¡ রà¤à¦",
+DlgCellBorderColor : "বà§à¦°à§à¦¡à¦° à¦à¦¾ রà¤à¦",
+DlgCellBtnSelect : "à¦à§à¦¨à§à¤...",
+
+// Find Dialog
+DlgFindTitle : "à¦à§à¦à§à¤",
+DlgFindFindBtn : "à¦à§à¦à§à¤",
+DlgFindNotFoundMsg : "à¦à¦ªà¦à§ দà§à¦µà¦¾à¦°à¦¾ দিযা
à¦à¦¯à¦¾ à¦à§à¦à§à¦¸à§à¦ নহà§à¤ মিলা",
+
+// Replace Dialog
+DlgReplaceTitle : "রিপà§à¦²à§à¦¸",
+DlgReplaceFindLbl : "যহ à¦à§à¦à§à¤:",
+DlgReplaceReplaceLbl : "à¦à¦¸à¦¸à§ রিপà§à¦²à§à¦¸ à¦à¦°à§à¤:",
+DlgReplaceCaseChk : "à¦à§à¦¸ মিলাযà§à¤",
+DlgReplaceReplaceBtn : "রিপà§à¦²à§à¦¸",
+DlgReplaceReplAllBtn : "সà¦à§ রিপà§à¦²à§à¦¸ à¦à¦°à§à¤",
+DlgReplaceWordChk : "পà§à¦°à¦¾ শবà§à¦¦
মিলাযà§à¤",
+
+// Paste Operations / Dialog
+PasteErrorPaste : "à¦à¦ªà¦à§ বà§à¦°à¦¾âà¦à§à¦° à¦à§
সà§à¦°à¦à§à¦·à¦¾ সà§
à¦à¦¿à¦¨à§à¦à§à¦¸ নৠপà§à¦¸à§à¦
à¦à¦°à¦¨à§ à¦à§ à¦
নà§à¦®à¦¤à¦¿ নহà§à¤ পà§à¦°à¦¦à¦¾à¦¨ à¦à§
হà§à§¤ (Ctrl+V) à¦à¦¾ পà§à¦°à¦¯à§à¦ à¦à¦°à§à¤à§¤",
+PasteErrorCut : "à¦à¦ªà¦à§ বà§à¦°à¦¾à¦à§à¦° à¦à§
সà§à¦°à¦à§à¦·à¦¾ সà§
à¦à¦¿à¦¨à§à¦à§à¦¸ নৠà¦à¦ à¦à¦°à¦¨à§
à¦à§ à¦
নà§à¦®à¦¤à¦¿ নহà§à¤ পà§à¦°à¦¦à¦¾à¦¨ à¦à§ হà§à§¤
(Ctrl+X) à¦à¦¾ পà§à¦°à¦¯à§à¦ à¦à¦°à§à¤à§¤",
+PasteErrorCopy : "à¦à¦ªà¦à§ বà§à¦°à¦¾à¦à¦à§à¦° à¦à§
সà§à¦°à¦à§à¦·à¦¾ সà§
à¦à¦¿à¦¨à§à¦à§à¦¸ নৠà¦à§à¦ªà§
à¦à¦°à¦¨à§ à¦à§ à¦
নà§à¦®à¦¤à¦¿ নহà§à¤ পà§à¦°à¦¦à¦¾à¦¨ à¦à§
হà§à§¤ (Ctrl+C) à¦à¦¾ পà§à¦°à¦¯à§à¦ à¦à¦°à§à¤à§¤",
+
+PasteAsText : "পà§à¦¸à§à¦ (সাদা à¦à§
à¦à§à¦¸à§à¦)",
+PasteFromWord : "পà§à¦¸à§à¦ (঵রà§à¦¡ সà§)",
+
+DlgPasteMsg2 : "Ctrl+V à¦à¦¾ পà§à¦°à¦¯à§à¦ à¦à¦°à¦à§
পà§à¦¸à§à¦ à¦à¦°à§à¤ à¦à¦° à§à¦ হৠà¦à¦°à§à¤.",
+DlgPasteIgnoreFont : "à§à§à¦¨à§à¦ পরিà¦à¦¾à¦·à¦¾
নিà¦à¦¾à¦²à§à¤",
+DlgPasteRemoveStyles : "সà§à¦à¦¾à¦à¦² পরিà¦à¦¾à¦·à¦¾
নিà¦à¦¾à¦²à§à¤",
+DlgPasteCleanBox : "বà§à¦à§à¦¸ সাৠà¦à¦°à§à¤",
+
+// Color Picker
+ColorAutomatic : "à¦à¦à§à¦®à§à¦à¦¿à¦",
+ColorMoreColors : "à¦à¦° রà¤à¦...",
+
+// Document Properties
+DocProps : "ডà§à¦à§à¦¯à§à¦®à§
নà§à¦
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+
+// Anchor Dialog
+DlgAnchorTitle : "à¦à¤à¦à¦° পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+DlgAnchorName : "à¦à¤à¦à¦° à¦à¦¾ নাম",
+DlgAnchorErrorName : "à¦à¤à¦à¦° à¦à¦¾ নাম à¦à¦¾à¦à¦ª
à¦à¦°à§à¤",
+
+// Speller Pages Dialog
+DlgSpellNotInDic : "শবà§à¦¦à¦à§à¦¶ মà§à¤
নহà§à¤",
+DlgSpellChangeTo : "à¦à¦¸à¦®à§à¤ বদলà§à¤",
+DlgSpellBtnIgnore : "à¦à¦à§à¦¨à§à¦°",
+DlgSpellBtnIgnoreAll : "সà¦à§ à¦à¦à§à¦¨à§à¦° à¦à¦°à§à¤",
+DlgSpellBtnReplace : "রিপà§à¦²à§à¦¸",
+DlgSpellBtnReplaceAll : "সà¦à§ রিপà§à¦²à§à¦¸ à¦à¦°à§à¤",
+DlgSpellBtnUndo : "à¦
নà§à¦¡à§",
+DlgSpellNoSuggestions : "- à¦à§à¦ সà§à¦à¦¾à¦µ নহà§à¤ -",
+DlgSpellProgress : "঵রà§à¦¤à¦¨à§ à¦à§ à¦à¦¾à¤à¦
(সà§à¦ªà§
ল-à¦à§
à¦) à¦à¦¾à¦°à§ হà§...",
+DlgSpellNoMispell : "঵রà§à¦¤à¦¨à§ à¦à§ à¦à¦¾à¤à¦ :
à¦à§à¦ à¦à¦²à¦¤ ঵রà§à¦¤à¦¨à§ (সà§à¦ªà§
লিà¤à¦) নহà§à¤
পাঠà¦à¦",
+DlgSpellNoChanges : "঵রà§à¦¤à¦¨à§ à¦à§ à¦à¦¾à¤à¦
:à¦à§à¦ শবà§à¦¦ নহà§à¤ বদলা à¦à¦¯à¦¾",
+DlgSpellOneChange : "঵রà§à¦¤à¦¨à§ à¦à§ à¦à¦¾à¤à¦ :
à¦à¦ শবà§à¦¦ বদলা à¦à¦¯à¦¾",
+DlgSpellManyChanges : "঵রà§à¦¤à¦¨à§ à¦à§ à¦à¦¾à¤à¦ : %1
শবà§à¦¦ বদলৠà¦à¦¯à§",
+
+IeSpellDownload : "সà§à¦ªà§
ল-à¦à§
à¦à¦°
à¦à¦¨à§à¦¸à§à¦à¦¾à¦² নহà§à¤ à¦à¦¿à¦¯à¦¾ à¦à¦¯à¦¾ হà§à§¤
à¦à§à¦¯à¦¾ à¦à¦ª à¦à¦¸à§ ডাâà¦à¦¨à¦²à§à¦¡ à¦à¦°à¦¨à¦¾
à¦à¦¾à¦¹à§à¤à¦à§?",
+
+// Button Dialog
+DlgButtonText : "à¦à§à¦à§à¦¸à§à¦ (঵à§à¦²à§à¦¯à§)",
+DlgButtonType : "পà§à¦°à¦à¦¾à¦°",
+
+// Checkbox and Radio Button Dialogs
+DlgCheckboxName : "নাম",
+DlgCheckboxValue : "঵à§à¦²à§à¦¯à§",
+DlgCheckboxSelected : "সà§
লà§
à¦à§à¦à§
ড",
+
+// Form Dialog
+DlgFormName : "নাম",
+DlgFormAction : "à¦à¦à§à¦¶à¦¨",
+DlgFormMethod : "তরà§à¦à¦¾",
+
+// Select Field Dialog
+DlgSelectName : "নাম",
+DlgSelectValue : "঵à§à¦²à§à¦¯à§",
+DlgSelectSize : "সাà¦à§",
+DlgSelectLines : "পà¤à¦à§à¦¤à¦¿à¦¯à¦¾à¤",
+DlgSelectChkMulti : "à¦à¦ সৠà¦à§à¦¯à¦¾à¦¦à¦¾ ঵িà¦à¦²à§à¦ª
à¦à§à¦¨à¦¨à§ দà§à¤",
+DlgSelectOpAvail : "à¦à¦ªà¦²à¦¬à§à¦§ ঵িà¦à¦²à§à¦ª",
+DlgSelectOpText : "à¦à§à¦à§à¦¸à§à¦",
+DlgSelectOpValue : "঵à§à¦²à§à¦¯à§",
+DlgSelectBtnAdd : "à¦à§à§à§à¤",
+DlgSelectBtnModify : "বদলà§à¤",
+DlgSelectBtnUp : "à¦à¦ªà¦°",
+DlgSelectBtnDown : "নà§à¦à§",
+DlgSelectBtnSetValue : "à¦à§à¦¨à§ à¦à¦ ঵à§à¦²à§à¦¯à§ সà§
à¦
à¦à¦°à§à¤",
+DlgSelectBtnDelete : "ডিলà§à¦",
+
+// Textarea Dialog
+DlgTextareaName : "নাম",
+DlgTextareaCols : "à¦à§à¦²à¦®",
+DlgTextareaRows : "পà¤à¦à§à¦¤à¦¿à¦¯à¦¾à¤",
+
+// Text Field Dialog
+DlgTextName : "নাম",
+DlgTextValue : "঵à§à¦²à§à¦¯à§",
+DlgTextCharWidth : "à¦à¦°à§
à¦à§à¦à¦° à¦à§ à¦à§à§à¦¾à¦",
+DlgTextMaxChars : "à¦
ধিà¦à¦¤à¦® à¦à¦°à§
à¦à§à¦à¦°",
+DlgTextType : "à¦à¦¾à¦à¦ª",
+DlgTextTypeText : "à¦à§à¦à§à¦¸à§à¦",
+DlgTextTypePass : "পাসà§à¦µà¦°à§à¦¡",
+
+// Hidden Field Dialog
+DlgHiddenName : "নাম",
+DlgHiddenValue : "঵à§à¦²à§à¦¯à§",
+
+// Bulleted List Dialog
+BulletedListProp : "বà§à¦²à§
ঠসà§à¦à§
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+NumberedListProp : "à¦
à¤à¦à§à¦¯ সà§à¦à§
পà§à¦°à§à¦ªà¦°à§à¦à§à§",
+DlgLstType : "পà§à¦°à¦à¦¾à¦°",
+DlgLstTypeCircle : "à¦à§à¦²",
+DlgLstTypeDisc : "ডিসà§à¦",
+DlgLstTypeSquare : "à¦à§à¦à§à¦£",
+DlgLstTypeNumbers : "à¦
à¤à¦ (1, 2, 3)",
+DlgLstTypeLCase : "à¦à§à¦à§ à¦
à¦à§à¦·à¦° (a, b, c)",
+DlgLstTypeUCase : "বà§à§ à¦
à¦à§à¦·à¦° (A, B, C)",
+DlgLstTypeSRoman : "à¦à§à¦à§ রà§à¦®à¦¨ à¦
à¤à¦ (i, ii, iii)",
+DlgLstTypeLRoman : "বà§à§ রà§à¦®à¦¨ à¦
à¤à¦ (I, II, III)",
+
+// Document Properties Dialog
+DlgDocGeneralTab : "à¦à¦®",
+DlgDocBackTab : "বà§à¦à§à¦à§à¦°à¦¾à¦à¦¨à§à¦¡",
+DlgDocColorsTab : "রà¤à¦ à¦à¦° মারà§à¦à¦¿à¦¨",
+DlgDocMetaTab : "মà§
à¦à¦¾à¦¡à§à¦à¦¾",
+
+DlgDocPageTitle : "পà§à¦ শà§à¦°à§à¦·à¦",
+DlgDocLangDir : "à¦à¦¾à¦·à¦¾ লিà¦à¦¨à§ à¦à§ দিশা",
+DlgDocLangDirLTR : "বাযà§à¤ সৠদাযà§à¤ (LTR)",
+DlgDocLangDirRTL : "দাযà§à¤ সৠবাযà§à¤ (RTL)",
+DlgDocLangCode : "à¦à¦¾à¦·à¦¾ à¦à§à¦¡",
+DlgDocCharSet : "à¦à¦°à§à¦à§à¦à¦° সà§
à¦
à¦à¦¨à§à¦à§à¦¡à¦¿à¤à¦",
+DlgDocCharSetOther : "à¦
নà§à¦¯ à¦à¦°à§à¦à§à¦à¦° সà§
à¦
à¦à¦¨à§à¦à§à¦¡à¦¿à¤à¦",
+
+DlgDocDocType : "ডà§à¦à§à¦¯à§à¦®à§
নà§à¦ পà§à¦°à¦à¦¾à¦°
শà§à¦°à§à¦·à¦",
+DlgDocDocTypeOther : "à¦
নà§à¦¯ ডà§à¦à§à¦¯à§à¦®à§
নà§à¦
পà§à¦°à¦à¦¾à¦° শà§à¦°à§à¦·à¦",
+DlgDocIncXHTML : "XHTML সà§à¦à¦¨à¦¾ সমà§à¦®à¦¿à¦²à¦¿à¦¤
à¦à¦°à§à¤",
+DlgDocBgColor : "বà§à¦à§à¦à§à¦°à¦¾à¦à¦¨à§à¦¡ রà¤à¦",
+DlgDocBgImage : "বà§à¦à§à¦à§à¦°à¦¾à¦à¦¨à§à¦¡
তসà§à¦µà§à¦° URL",
+DlgDocBgNoScroll : "সà§à¦à§à¦°à§à¦² ন à¦à¦°à¦¨à§ ঵ালা
বà§à¦à§à¦à§à¦°à¦¾à¦à¦¨à§à¦¡",
+DlgDocCText : "à¦à§à¦à§à¦¸à§à¦",
+DlgDocCLink : "লিà¤à¦",
+DlgDocCVisited : "঵িà§à¦¿à¦ à¦à¦¿à¦¯à¦¾ à¦à¦¯à¦¾ লিà¤à¦",
+DlgDocCActive : "সà¦à§à¦°à¦¿à¦¯ লিà¤à¦",
+DlgDocMargins : "পà§à¦ মারà§à¦à¦¿à¦¨",
+DlgDocMaTop : "à¦à¦ªà¦°",
+DlgDocMaLeft : "বাযà§à¤",
+DlgDocMaRight : "দাযà§à¤",
+DlgDocMaBottom : "নà§à¦à§",
+DlgDocMeIndex : "ডà§à¦à§à¦¯à§à¦®à§
নà§à¦
à¦à¦¨à§à¦¡à§à¦à§à¦¸ সà¤à¦à§à¦¤à¦¶à¦¬à§à¦¦ (à¦
লà§à¦ªà¦µà¦¿à¦°à¦¾à¦® সৠà¦
লঠà¦à¦°à§à¤)",
+DlgDocMeDescr : "ডà§à¦à§à¦¯à§à¦®à§
নà§à¦ à¦à¦°à§
à¦à§à¦à¦°à¦¨",
+DlgDocMeAuthor : "লà§à¦à¦",
+DlgDocMeCopy : "à¦à§à¦ªà§à¦°à¦¾à¦à¦",
+DlgDocPreview : "পà§à¦°à§à¦µà§à¦¯à§",
+
+// Templates Dialog
+Templates : "à¦à§
মà§à¦ªà§à¦²à§à¦",
+DlgTemplatesTitle : "à¦à¦¨à§à¦à§à¦¨à§à¦ à¦à§
মà§à¦ªà§à¦²à§à¦",
+DlgTemplatesSelMsg : "à¦à¦¡à¦¿à¦à¦° মà§à¤ à¦à¦ªà¦¨ à¦à¦°à¦¨à§
হà§à¦¤à§ à¦à§
মà§à¦ªà§à¦²à§à¦ à¦à§à¦¨à§à¤(঵রà§à¦¤à¦®à¦¾à¦¨
à¦à¦¨à§à¦à§
নà§à¦ সà§à¦µ নহà§à¤ হà§à¤à¦à§):",
+DlgTemplatesLoading : "à¦à§
মà§à¦ªà§à¦²à§à¦ সà§à¦à§ লà§à¦¡
à¦à§ à¦à¦¾ রহৠহà§à§¤ à§à¦°à¦¾ হরà§à¤...",
+DlgTemplatesNoTpl : "(à¦à§à¦ à¦à§
মà§à¦ªà§à¦²à§à¦
ডিà§à¦¾à¦à¦¨ নহà§à¤ à¦à¦¿à¦¯à¦¾ à¦à¦¯à¦¾ হà§)",
+
+// About Dialog
+DlgAboutAboutTab : "FCKEditor à¦à§ বারৠমà§à¤",
+DlgAboutBrowserInfoTab : "বà§à¦°à¦¾à¦à§à¦° à¦à§ বারৠমà§à¤",
+DlgAboutLicenseTab : "লিসà§à¦£à¦¸",
+DlgAboutVersion : "঵রà§à§à¦¨",
+DlgAboutLicense : "লাà¦à¦¸à§à¤à¦¸ :GNU LGPL",
+DlgAboutInfo : "à¦
ধিঠà¦à¦¾à¦¨à¦à¦¾à¦°à§ à¦à§
লিযৠযহাठà¦à¦¾à¦¯à§à¤:"
+}
\ No newline at end of file
Index: lang/en-ca.js
===================================================================
RCS file: lang/en-ca.js
diff -N lang/en-ca.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lang/en-ca.js 25 Sep 2006 09:30:40 -0000 1.1
@@ -0,0 +1,487 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: en-ca.js
+ * English (Canadian) language file.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ * Kevin Bennett
+ */
+
+var FCKLang =
+{
+// Language direction : "ltr" (left to right) or "rtl" (right to left).
+Dir : "ltr",
+
+ToolbarCollapse : "Collapse Toolbar",
+ToolbarExpand : "Expand Toolbar",
+
+// Toolbar Items and Context Menu
+Save : "Save",
+NewPage : "New Page",
+Preview : "Preview",
+Cut : "Cut",
+Copy : "Copy",
+Paste : "Paste",
+PasteText : "Paste as plain text",
+PasteWord : "Paste from Word",
+Print : "Print",
+SelectAll : "Select All",
+RemoveFormat : "Remove Format",
+InsertLinkLbl : "Link",
+InsertLink : "Insert/Edit Link",
+RemoveLink : "Remove Link",
+Anchor : "Insert/Edit Anchor",
+InsertImageLbl : "Image",
+InsertImage : "Insert/Edit Image",
+InsertFlashLbl : "Flash",
+InsertFlash : "Insert/Edit Flash",
+InsertTableLbl : "Table",
+InsertTable : "Insert/Edit Table",
+InsertLineLbl : "Line",
+InsertLine : "Insert Horizontal Line",
+InsertSpecialCharLbl: "Special Character",
+InsertSpecialChar : "Insert Special Character",
+InsertSmileyLbl : "Smiley",
+InsertSmiley : "Insert Smiley",
+About : "About FCKeditor",
+Bold : "Bold",
+Italic : "Italic",
+Underline : "Underline",
+StrikeThrough : "Strike Through",
+Subscript : "Subscript",
+Superscript : "Superscript",
+LeftJustify : "Left Justify",
+CenterJustify : "Centre Justify",
+RightJustify : "Right Justify",
+BlockJustify : "Block Justify",
+DecreaseIndent : "Decrease Indent",
+IncreaseIndent : "Increase Indent",
+Undo : "Undo",
+Redo : "Redo",
+NumberedListLbl : "Numbered List",
+NumberedList : "Insert/Remove Numbered List",
+BulletedListLbl : "Bulleted List",
+BulletedList : "Insert/Remove Bulleted List",
+ShowTableBorders : "Show Table Borders",
+ShowDetails : "Show Details",
+Style : "Style",
+FontFormat : "Format",
+Font : "Font",
+FontSize : "Size",
+TextColor : "Text Colour",
+BGColor : "Background Colour",
+Source : "Source",
+Find : "Find",
+Replace : "Replace",
+SpellCheck : "Check Spelling",
+UniversalKeyboard : "Universal Keyboard",
+PageBreakLbl : "Page Break",
+PageBreak : "Insert Page Break",
+
+Form : "Form",
+Checkbox : "Checkbox",
+RadioButton : "Radio Button",
+TextField : "Text Field",
+Textarea : "Textarea",
+HiddenField : "Hidden Field",
+Button : "Button",
+SelectionField : "Selection Field",
+ImageButton : "Image Button",
+
+FitWindow : "Maximize the editor size",
+
+// Context Menu
+EditLink : "Edit Link",
+CellCM : "Cell",
+RowCM : "Row",
+ColumnCM : "Column",
+InsertRow : "Insert Row",
+DeleteRows : "Delete Rows",
+InsertColumn : "Insert Column",
+DeleteColumns : "Delete Columns",
+InsertCell : "Insert Cell",
+DeleteCells : "Delete Cells",
+MergeCells : "Merge Cells",
+SplitCell : "Split Cell",
+TableDelete : "Delete Table",
+CellProperties : "Cell Properties",
+TableProperties : "Table Properties",
+ImageProperties : "Image Properties",
+FlashProperties : "Flash Properties",
+
+AnchorProp : "Anchor Properties",
+ButtonProp : "Button Properties",
+CheckboxProp : "Checkbox Properties",
+HiddenFieldProp : "Hidden Field Properties",
+RadioButtonProp : "Radio Button Properties",
+ImageButtonProp : "Image Button Properties",
+TextFieldProp : "Text Field Properties",
+SelectionFieldProp : "Selection Field Properties",
+TextareaProp : "Textarea Properties",
+FormProp : "Form Properties",
+
+FontFormats : "Normal;Formatted;Address;Heading 1;Heading
2;Heading 3;Heading 4;Heading 5;Heading 6;Normal (DIV)",
+
+// Alerts and Messages
+ProcessingXHTML : "Processing XHTML. Please wait...",
+Done : "Done",
+PasteWordConfirm : "The text you want to paste seems to be copied from
Word. Do you want to clean it before pasting?",
+NotCompatiblePaste : "This command is available for Internet Explorer
version 5.5 or more. Do you want to paste without cleaning?",
+UnknownToolbarItem : "Unknown toolbar item \"%1\"",
+UnknownCommand : "Unknown command name \"%1\"",
+NotImplemented : "Command not implemented",
+UnknownToolbarSet : "Toolbar set \"%1\" doesn't exist",
+NoActiveX : "Your browser's security settings could limit
some features of the editor. You must enable the option \"Run ActiveX controls
and plug-ins\". You may experience errors and notice missing features.",
+BrowseServerBlocked : "The resources browser could not be opened. Make sure
that all popup blockers are disabled.",
+DialogBlocked : "It was not possible to open the dialog window. Make
sure all popup blockers are disabled.",
+
+// Dialogs
+DlgBtnOK : "OK",
+DlgBtnCancel : "Cancel",
+DlgBtnClose : "Close",
+DlgBtnBrowseServer : "Browse Server",
+DlgAdvancedTag : "Advanced",
+DlgOpOther : "<Other>",
+DlgInfoTab : "Info",
+DlgAlertUrl : "Please insert the URL",
+
+// General Dialogs Labels
+DlgGenNotSet : "<not set>",
+DlgGenId : "Id",
+DlgGenLangDir : "Language Direction",
+DlgGenLangDirLtr : "Left to Right (LTR)",
+DlgGenLangDirRtl : "Right to Left (RTL)",
+DlgGenLangCode : "Language Code",
+DlgGenAccessKey : "Access Key",
+DlgGenName : "Name",
+DlgGenTabIndex : "Tab Index",
+DlgGenLongDescr : "Long Description URL",
+DlgGenClass : "Stylesheet Classes",
+DlgGenTitle : "Advisory Title",
+DlgGenContType : "Advisory Content Type",
+DlgGenLinkCharset : "Linked Resource Charset",
+DlgGenStyle : "Style",
+
+// Image Dialog
+DlgImgTitle : "Image Properties",
+DlgImgInfoTab : "Image Info",
+DlgImgBtnUpload : "Send it to the Server",
+DlgImgURL : "URL",
+DlgImgUpload : "Upload",
+DlgImgAlt : "Alternative Text",
+DlgImgWidth : "Width",
+DlgImgHeight : "Height",
+DlgImgLockRatio : "Lock Ratio",
+DlgBtnResetSize : "Reset Size",
+DlgImgBorder : "Border",
+DlgImgHSpace : "HSpace",
+DlgImgVSpace : "VSpace",
+DlgImgAlign : "Align",
+DlgImgAlignLeft : "Left",
+DlgImgAlignAbsBottom: "Abs Bottom",
+DlgImgAlignAbsMiddle: "Abs Middle",
+DlgImgAlignBaseline : "Baseline",
+DlgImgAlignBottom : "Bottom",
+DlgImgAlignMiddle : "Middle",
+DlgImgAlignRight : "Right",
+DlgImgAlignTextTop : "Text Top",
+DlgImgAlignTop : "Top",
+DlgImgPreview : "Preview",
+DlgImgAlertUrl : "Please type the image URL",
+DlgImgLinkTab : "Link",
+
+// Flash Dialog
+DlgFlashTitle : "Flash Properties",
+DlgFlashChkPlay : "Auto Play",
+DlgFlashChkLoop : "Loop",
+DlgFlashChkMenu : "Enable Flash Menu",
+DlgFlashScale : "Scale",
+DlgFlashScaleAll : "Show all",
+DlgFlashScaleNoBorder : "No Border",
+DlgFlashScaleFit : "Exact Fit",
+
+// Link Dialog
+DlgLnkWindowTitle : "Link",
+DlgLnkInfoTab : "Link Info",
+DlgLnkTargetTab : "Target",
+
+DlgLnkType : "Link Type",
+DlgLnkTypeURL : "URL",
+DlgLnkTypeAnchor : "Anchor in this page",
+DlgLnkTypeEMail : "E-Mail",
+DlgLnkProto : "Protocol",
+DlgLnkProtoOther : "<other>",
+DlgLnkURL : "URL",
+DlgLnkAnchorSel : "Select an Anchor",
+DlgLnkAnchorByName : "By Anchor Name",
+DlgLnkAnchorById : "By Element Id",
+DlgLnkNoAnchors : "<No anchors available in the document>",
+DlgLnkEMail : "E-Mail Address",
+DlgLnkEMailSubject : "Message Subject",
+DlgLnkEMailBody : "Message Body",
+DlgLnkUpload : "Upload",
+DlgLnkBtnUpload : "Send it to the Server",
+
+DlgLnkTarget : "Target",
+DlgLnkTargetFrame : "<frame>",
+DlgLnkTargetPopup : "<popup window>",
+DlgLnkTargetBlank : "New Window (_blank)",
+DlgLnkTargetParent : "Parent Window (_parent)",
+DlgLnkTargetSelf : "Same Window (_self)",
+DlgLnkTargetTop : "Topmost Window (_top)",
+DlgLnkTargetFrameName : "Target Frame Name",
+DlgLnkPopWinName : "Popup Window Name",
+DlgLnkPopWinFeat : "Popup Window Features",
+DlgLnkPopResize : "Resizable",
+DlgLnkPopLocation : "Location Bar",
+DlgLnkPopMenu : "Menu Bar",
+DlgLnkPopScroll : "Scroll Bars",
+DlgLnkPopStatus : "Status Bar",
+DlgLnkPopToolbar : "Toolbar",
+DlgLnkPopFullScrn : "Full Screen (IE)",
+DlgLnkPopDependent : "Dependent (Netscape)",
+DlgLnkPopWidth : "Width",
+DlgLnkPopHeight : "Height",
+DlgLnkPopLeft : "Left Position",
+DlgLnkPopTop : "Top Position",
+
+DlnLnkMsgNoUrl : "Please type the link URL",
+DlnLnkMsgNoEMail : "Please type the e-mail address",
+DlnLnkMsgNoAnchor : "Please select an anchor",
+
+// Color Dialog
+DlgColorTitle : "Select Colour",
+DlgColorBtnClear : "Clear",
+DlgColorHighlight : "Highlight",
+DlgColorSelected : "Selected",
+
+// Smiley Dialog
+DlgSmileyTitle : "Insert a Smiley",
+
+// Special Character Dialog
+DlgSpecialCharTitle : "Select Special Character",
+
+// Table Dialog
+DlgTableTitle : "Table Properties",
+DlgTableRows : "Rows",
+DlgTableColumns : "Columns",
+DlgTableBorder : "Border size",
+DlgTableAlign : "Alignment",
+DlgTableAlignNotSet : "<Not set>",
+DlgTableAlignLeft : "Left",
+DlgTableAlignCenter : "Centre",
+DlgTableAlignRight : "Right",
+DlgTableWidth : "Width",
+DlgTableWidthPx : "pixels",
+DlgTableWidthPc : "percent",
+DlgTableHeight : "Height",
+DlgTableCellSpace : "Cell spacing",
+DlgTableCellPad : "Cell padding",
+DlgTableCaption : "Caption",
+DlgTableSummary : "Summary",
+
+// Table Cell Dialog
+DlgCellTitle : "Cell Properties",
+DlgCellWidth : "Width",
+DlgCellWidthPx : "pixels",
+DlgCellWidthPc : "percent",
+DlgCellHeight : "Height",
+DlgCellWordWrap : "Word Wrap",
+DlgCellWordWrapNotSet : "<Not set>",
+DlgCellWordWrapYes : "Yes",
+DlgCellWordWrapNo : "No",
+DlgCellHorAlign : "Horizontal Alignment",
+DlgCellHorAlignNotSet : "<Not set>",
+DlgCellHorAlignLeft : "Left",
+DlgCellHorAlignCenter : "Centre",
+DlgCellHorAlignRight: "Right",
+DlgCellVerAlign : "Vertical Alignment",
+DlgCellVerAlignNotSet : "<Not set>",
+DlgCellVerAlignTop : "Top",
+DlgCellVerAlignMiddle : "Middle",
+DlgCellVerAlignBottom : "Bottom",
+DlgCellVerAlignBaseline : "Baseline",
+DlgCellRowSpan : "Rows Span",
+DlgCellCollSpan : "Columns Span",
+DlgCellBackColor : "Background Colour",
+DlgCellBorderColor : "Border Colour",
+DlgCellBtnSelect : "Select...",
+
+// Find Dialog
+DlgFindTitle : "Find",
+DlgFindFindBtn : "Find",
+DlgFindNotFoundMsg : "The specified text was not found.",
+
+// Replace Dialog
+DlgReplaceTitle : "Replace",
+DlgReplaceFindLbl : "Find what:",
+DlgReplaceReplaceLbl : "Replace with:",
+DlgReplaceCaseChk : "Match case",
+DlgReplaceReplaceBtn : "Replace",
+DlgReplaceReplAllBtn : "Replace All",
+DlgReplaceWordChk : "Match whole word",
+
+// Paste Operations / Dialog
+PasteErrorPaste : "Your browser security settings don't permit the
editor to automatically execute pasting operations. Please use the keyboard for
that (Ctrl+V).",
+PasteErrorCut : "Your browser security settings don't permit the editor to
automatically execute cutting operations. Please use the keyboard for that
(Ctrl+X).",
+PasteErrorCopy : "Your browser security settings don't permit the editor to
automatically execute copying operations. Please use the keyboard for that
(Ctrl+C).",
+
+PasteAsText : "Paste as Plain Text",
+PasteFromWord : "Paste from Word",
+
+DlgPasteMsg2 : "Please paste inside the following box using the keyboard
(<STRONG>Ctrl+V</STRONG>) and hit <STRONG>OK</STRONG>.",
+DlgPasteIgnoreFont : "Ignore Font Face definitions",
+DlgPasteRemoveStyles : "Remove Styles definitions",
+DlgPasteCleanBox : "Clean Up Box",
+
+// Color Picker
+ColorAutomatic : "Automatic",
+ColorMoreColors : "More Colours...",
+
+// Document Properties
+DocProps : "Document Properties",
+
+// Anchor Dialog
+DlgAnchorTitle : "Anchor Properties",
+DlgAnchorName : "Anchor Name",
+DlgAnchorErrorName : "Please type the anchor name",
+
+// Speller Pages Dialog
+DlgSpellNotInDic : "Not in dictionary",
+DlgSpellChangeTo : "Change to",
+DlgSpellBtnIgnore : "Ignore",
+DlgSpellBtnIgnoreAll : "Ignore All",
+DlgSpellBtnReplace : "Replace",
+DlgSpellBtnReplaceAll : "Replace All",
+DlgSpellBtnUndo : "Undo",
+DlgSpellNoSuggestions : "- No suggestions -",
+DlgSpellProgress : "Spell check in progress...",
+DlgSpellNoMispell : "Spell check complete: No misspellings found",
+DlgSpellNoChanges : "Spell check complete: No words changed",
+DlgSpellOneChange : "Spell check complete: One word changed",
+DlgSpellManyChanges : "Spell check complete: %1 words changed",
+
+IeSpellDownload : "Spell checker not installed. Do you
want to download it now?",
+
+// Button Dialog
+DlgButtonText : "Text (Value)",
+DlgButtonType : "Type",
+
+// Checkbox and Radio Button Dialogs
+DlgCheckboxName : "Name",
+DlgCheckboxValue : "Value",
+DlgCheckboxSelected : "Selected",
+
+// Form Dialog
+DlgFormName : "Name",
+DlgFormAction : "Action",
+DlgFormMethod : "Method",
+
+// Select Field Dialog
+DlgSelectName : "Name",
+DlgSelectValue : "Value",
+DlgSelectSize : "Size",
+DlgSelectLines : "lines",
+DlgSelectChkMulti : "Allow multiple selections",
+DlgSelectOpAvail : "Available Options",
+DlgSelectOpText : "Text",
+DlgSelectOpValue : "Value",
+DlgSelectBtnAdd : "Add",
+DlgSelectBtnModify : "Modify",
+DlgSelectBtnUp : "Up",
+DlgSelectBtnDown : "Down",
+DlgSelectBtnSetValue : "Set as selected value",
+DlgSelectBtnDelete : "Delete",
+
+// Textarea Dialog
+DlgTextareaName : "Name",
+DlgTextareaCols : "Columns",
+DlgTextareaRows : "Rows",
+
+// Text Field Dialog
+DlgTextName : "Name",
+DlgTextValue : "Value",
+DlgTextCharWidth : "Character Width",
+DlgTextMaxChars : "Maximum Characters",
+DlgTextType : "Type",
+DlgTextTypeText : "Text",
+DlgTextTypePass : "Password",
+
+// Hidden Field Dialog
+DlgHiddenName : "Name",
+DlgHiddenValue : "Value",
+
+// Bulleted List Dialog
+BulletedListProp : "Bulleted List Properties",
+NumberedListProp : "Numbered List Properties",
+DlgLstType : "Type",
+DlgLstTypeCircle : "Circle",
+DlgLstTypeDisc : "Disc",
+DlgLstTypeSquare : "Square",
+DlgLstTypeNumbers : "Numbers (1, 2, 3)",
+DlgLstTypeLCase : "Lowercase Letters (a, b, c)",
+DlgLstTypeUCase : "Uppercase Letters (A, B, C)",
+DlgLstTypeSRoman : "Small Roman Numerals (i, ii, iii)",
+DlgLstTypeLRoman : "Large Roman Numerals (I, II, III)",
+
+// Document Properties Dialog
+DlgDocGeneralTab : "General",
+DlgDocBackTab : "Background",
+DlgDocColorsTab : "Colours and Margins",
+DlgDocMetaTab : "Meta Data",
+
+DlgDocPageTitle : "Page Title",
+DlgDocLangDir : "Language Direction",
+DlgDocLangDirLTR : "Left to Right (LTR)",
+DlgDocLangDirRTL : "Right to Left (RTL)",
+DlgDocLangCode : "Language Code",
+DlgDocCharSet : "Character Set Encoding",
+DlgDocCharSetOther : "Other Character Set Encoding",
+
+DlgDocDocType : "Document Type Heading",
+DlgDocDocTypeOther : "Other Document Type Heading",
+DlgDocIncXHTML : "Include XHTML Declarations",
+DlgDocBgColor : "Background Colour",
+DlgDocBgImage : "Background Image URL",
+DlgDocBgNoScroll : "Nonscrolling Background",
+DlgDocCText : "Text",
+DlgDocCLink : "Link",
+DlgDocCVisited : "Visited Link",
+DlgDocCActive : "Active Link",
+DlgDocMargins : "Page Margins",
+DlgDocMaTop : "Top",
+DlgDocMaLeft : "Left",
+DlgDocMaRight : "Right",
+DlgDocMaBottom : "Bottom",
+DlgDocMeIndex : "Document Indexing Keywords (comma separated)",
+DlgDocMeDescr : "Document Description",
+DlgDocMeAuthor : "Author",
+DlgDocMeCopy : "Copyright",
+DlgDocPreview : "Preview",
+
+// Templates Dialog
+Templates : "Templates",
+DlgTemplatesTitle : "Content Templates",
+DlgTemplatesSelMsg : "Please select the template to open in the
editor<br>(the actual contents will be lost):",
+DlgTemplatesLoading : "Loading templates list. Please wait...",
+DlgTemplatesNoTpl : "(No templates defined)",
+
+// About Dialog
+DlgAboutAboutTab : "About",
+DlgAboutBrowserInfoTab : "Browser Info",
+DlgAboutLicenseTab : "License",
+DlgAboutVersion : "version",
+DlgAboutLicense : "Licensed under the terms of the GNU Lesser
General Public License",
+DlgAboutInfo : "For further information go to"
+}
\ No newline at end of file
Index: lang/km.js
===================================================================
RCS file: lang/km.js
diff -N lang/km.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ lang/km.js 25 Sep 2006 09:30:40 -0000 1.1
@@ -0,0 +1,486 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: km.js
+ * Khmer language file.
+ *
+ * File Authors:
+ * Chay Sengtha (address@hidden - http://translate.e-khmer.net)
+ */
+
+var FCKLang =
+{
+// Language direction : "ltr" (left to right) or "rtl" (right to left).
+Dir : "ltr",
+
+ToolbarCollapse :
"ááááá½áááá¶á§ááááá",
+ToolbarExpand : "ááááá¸áááá¶á§áááá",
+
+// Toolbar Items and Context Menu
+Save : "ááááá¶áá»á",
+NewPage : "ááááááááá¸",
+Preview : "áá¾ááá¶ááááá",
+Cut : "áá¶áááá",
+Copy : "á
ááááá",
+Paste : "á
ááááá¶áá",
+PasteText : "á
ááááá¶áááá¶á¢ááááááááááá¶",
+PasteWord : "á
ááááá¶áááḠWord",
+Print : "ááááá»ááá",
+SelectAll :
"áááá¾ááá¾ááá¶ááá¢áá",
+RemoveFormat : "áááá
áá áá¶ááá
áá¶",
+InsertLinkLbl : "áááá¶áá",
+InsertLink : "áááááá/áááááá
áááá¶áá",
+RemoveLink : "ááááááá¶áá",
+Anchor : "áááááá/áááááá
áá»áááá¶",
+InsertImageLbl : "áá¼ááá¶á",
+InsertImage : "áááááá/áááááá
áá¼ááá¶á",
+InsertFlashLbl : "Flash",
+InsertFlash : "áááááá/áááááá Flash",
+InsertTableLbl : "áá¶áá¶á",
+InsertTable : "áááááá/áááááá
áá¶áá¶á",
+InsertLineLbl : "ááááá¶áá",
+InsertLine :
"ááááááááááá¶ááááááá",
+InsertSpecialCharLbl: "á¢áááááá·ááá",
+InsertSpecialChar : "ááááááá¢áááááá·ááá",
+InsertSmileyLbl : "áá¼ááá¶á",
+InsertSmiley : "áááááá áá¼ááá¶á",
+About : "á¢ááḠFCKeditor",
+Bold : "á¢áááááá·ááá",
+Italic : "á¢ááááááááá",
+Underline :
"áá·áááááá¶áááá¸áááááá¢áááá",
+StrikeThrough :
"áá·áááááá¶áááá¶ááááááá¶áá¢áááá",
+Subscript : "á¢áááááá¼á
ááááá",
+Superscript : "á¢áááááá¼á
áá¾",
+LeftJustify : "áááá¹áááááá",
+CenterJustify : "áááá¹áááááá¶á",
+RightJustify : "áááá¹ááááá¶á",
+BlockJustify : "áááá¹ááááá¶á",
+DecreaseIndent : "ááááááá¶áá
á¼áááááá¶áá",
+IncreaseIndent : "áááááááá¶áá
á¼áááááá¶áá",
+Undo : "áá¶áá¡á¾ááá·á",
+Redo : "áááá¾á¡á¾ááá·á",
+NumberedListLbl : "ááááá¸áá¶á¢áááá",
+NumberedList : "áááááá/ááá
ááááá¸áá¶á¢áááá",
+BulletedListLbl :
"ááááá¸áá¶áááááááá¼á",
+BulletedList : "áááááá/ááá
ááááá¸áá¶áááááááá¼á",
+ShowTableBorders : "áááá á¶áááá»ááá¶áá¶á",
+ShowDetails : "áááá á¶ááá·áááá¶á",
+Style : "ááá¼á",
+FontFormat : "áá
áá¶",
+Font : "á ááá»á",
+FontSize : "ááá á",
+TextColor : "áááá¢áááá",
+BGColor :
"ááááááááá¶áááááá",
+Source : "áá¼á",
+Find : "ááááááá",
+Replace : "áááá½á",
+SpellCheck :
"áá·áá·áááá¢ááááá¶áá·áá»ááá",
+UniversalKeyboard :
"áááá¶ááá»áááá¢ááááááá",
+PageBreakLbl : "áá¶ááááá¶á
áááááá",
+PageBreak : "áááááá áá¶ááááá¶á
áááááá",
+
+Form : "ááááá",
+Checkbox : "áááá¢áááááá¾ááá¾á",
+RadioButton : "ááá¼áá»ááááááááá¼á",
+TextField : "áá½ááááááá¢ááááá",
+Textarea : "ááááááááááá¢ááááá",
+HiddenField : "áá½ááá¶áá",
+Button : "ááá¼áá»á",
+SelectionField : "áá½ááááá¾ááá¾á",
+ImageButton : "ááá¼áá»ááá¼ááá¶á",
+
+FitWindow : "Maximize the editor size", //MISSING
+
+// Context Menu
+EditLink : "áááááááááá¶áá",
+CellCM : "Cell", //MISSING
+RowCM : "Row", //MISSING
+ColumnCM : "Column", //MISSING
+InsertRow : "áááááááá½áááááá",
+DeleteRows : "ááááá½áááááá",
+InsertColumn : "áááááááá½ááá",
+DeleteColumns : "ááááá½ááá",
+InsertCell : "áááááá ááá",
+DeleteCells : "áááááá",
+MergeCells : "ááááá¼áááá",
+SplitCell : "áááá¶á
áááá",
+TableDelete : "ááááá¶áá¶á",
+CellProperties : "áá¶ááááááááá",
+TableProperties : "áá¶áááááááá¶áá¶á",
+ImageProperties : "áá¶áááááááá¼ááá¶á",
+FlashProperties : "áá¶áááááá Flash",
+
+AnchorProp : "áá¶áááááááá»áááá¶",
+ButtonProp : "áá¶áááááá ááá¼áá»á",
+CheckboxProp :
"áá¶áááááááááá¢áááááá¾ááá¾á",
+HiddenFieldProp :
"áá¶áááááááá½ááá¶áá",
+RadioButtonProp :
"áá¶ááááááááá¼áá»ááááááá",
+ImageButtonProp :
"áá¶ááááááááá¼áá»ááá¼ááá¶á",
+TextFieldProp : "áá¶áááááááá½áá¢ááááá",
+SelectionFieldProp :
"áá¶áááááááá½ááááá¾ááá¾á",
+TextareaProp :
"áá¶áááááááááááááááááá¢ááááá",
+FormProp : "áá¶ááááááááááá",
+
+FontFormats : "Normal;Formatted;Address;Heading 1;Heading
2;Heading 3;Heading 4;Heading 5;Heading 6;Normal (DIV)",
+
+// Alerts and Messages
+ProcessingXHTML : "áááá»ááááá¾ááá¶á
XHTML á áá¼áááá
á¶á...",
+Done : "á
áááá½á
áá¶áá",
+PasteWordConfirm :
"á¢áááááááááááá¢ááááááá»áá
ááááá¶áá á á¶áááá¸áá¼á
áá¶áááá¼áá
ááááááá¸áááááá·áá¸âWordâá
áá¾áááá¢áááá
ááááá¢á¶ááá»áá
áááá¢ááááááá¶áááá?",
+NotCompatiblePaste :
"áá¶áááááááá¶ááááááá¾áá¶ááááá¶áá½á
Internet Explorer áááá·á 5.5 áẠáá¾áááá á
áá¾áááá¢áááá
ááá
ááááá¶ááááááá·áá
á¶ááá¶á
áááá¢á¶ááá?",
+UnknownToolbarItem : "ááááá»áá¾ááá¶á§ááááá
áá·ááááá¶áá \"%1\"",
+UnknownCommand : "ááááááá¶áááááááá¶
áá·ááááá¶áá \"%1\"",
+NotImplemented : "áá¶áááááááá¶
áá·ááá¶áá¢áá»áááá",
+UnknownToolbarSet : "ááá¶á§ááááá \"%1\"
áá»ááá¶á á",
+NoActiveX :
"áá¶áááááááá»áááááá¶ááááááááááá·áá¸áá»ááááááááááá¢ááá
áááâá¢á¶á
áááá¾á¢áááááá¢ááááá·áá¢á¶á
áááá¾áá»ááá¶ááááááááááááááá·áá¸áá¶áááááá¢áááááááá
á áááá¢ááááááá¼ááááááá¢áá \"ActiveX
áá·áâáááááá·áá¸áááá½ááááá»á (plug-ins)\"
á¢áááááá¾ááá¶á á áááá¢áááá¢á¶á
áá½áááááááá¹á áááá á¶
áááááá¶áá½ááá¹ááá¶ááá¶ááááááá»ááá¶ááá¶áá½ááááááááááá·áá¸áá¶áááááá¢áááááááá
á",
+BrowseServerBlocked : "The resources browser could not be opened. Make sure
that all popup blockers are disabled.", //MISSING
+DialogBlocked : "áá¸ááá¼ááá·áá¢á¶á
áá¾ááá¶ááá á áá¼ááá·áá·áááá
áááááááááá·áá¸áá·á áá¸ááá¼áááá
(popup) áá¶áá¾áá¶áááá¾ááá¶áááºáá á",
+
+// Dialogs
+DlgBtnOK : "ááááááá",
+DlgBtnCancel : "áá·áááááááá",
+DlgBtnClose : "áá·á",
+DlgBtnBrowseServer : "áá¾á",
+DlgAdvancedTag : "áááá·áááááá",
+DlgOpOther : "<ááááááá
á>",
+DlgInfoTab : "ááááá¶á",
+DlgAlertUrl : "áá¼áááááá URL",
+
+// General Dialogs Labels
+DlgGenNotSet : "<áá·áááá>",
+DlgGenId : "Id",
+DlgGenLangDir : "áá·ááá
áá¶áá¶",
+DlgGenLangDirLtr : "áá¸ááááááá
áááá¶á(LTR)",
+DlgGenLangDirRtl : "áá¸áááá¶ááá
ááááá(RTL)",
+DlgGenLangCode : "ááááá¼ááá¶áá¶",
+DlgGenAccessKey : "áḠáááá¶ááá
á¼á",
+DlgGenName : "ááááá",
+DlgGenTabIndex : "ááá Tab",
+DlgGenLongDescr : "á¢áá·áááá¶á URL ááá",
+DlgGenClass : "Stylesheet Classes",
+DlgGenTitle : "á
ááááá¾á
áááá¹áááá¶",
+DlgGenContType : "ááááááá¢ááááá
áááá¹áááá¶",
+DlgGenLinkCharset :
"ááááá¼áá¢áááááááááááá¶áá",
+DlgGenStyle : "ááá¼á",
+
+// Image Dialog
+DlgImgTitle : "áá¶áááááááá¼ááá¶á",
+DlgImgInfoTab : "ááááá¶áá¢ááá¸áá¼ááá¶á",
+DlgImgBtnUpload : "ááááá¼ááá
áá¶ááááá¶ááá¸áááááááááá¶",
+DlgImgURL : "URL",
+DlgImgUpload : "áá¶ááá",
+DlgImgAlt : "á¢ááááááááá½á",
+DlgImgWidth : "ááá¹á",
+DlgImgHeight : "ááááá",
+DlgImgLockRatio : "á¢áááá¶á¡á»á",
+DlgBtnResetSize : "áááááááá
áá¡á¾ááá·á",
+DlgImgBorder : "ááá»á",
+DlgImgHSpace : "áááá¶áááá¹á",
+DlgImgVSpace : "áááá¶ááááááá",
+DlgImgAlign : "ááááááá¸áá¶áá",
+DlgImgAlignLeft : "áá¶ááááá",
+DlgImgAlignAbsBottom: "Abs Bottom", //MISSING
+DlgImgAlignAbsMiddle: "Abs Middle", //MISSING
+DlgImgAlignBaseline : "ááááá¶áááá¶áá¼ááááá¶á",
+DlgImgAlignBottom : "áá¶áááááá",
+DlgImgAlignMiddle : "ááááá¶á",
+DlgImgAlignRight : "áá¶ááááá¶á",
+DlgImgAlignTextTop : "áá¾á¢ááááá",
+DlgImgAlignTop : "áá¶ááá¾",
+DlgImgPreview : "áá¾ááá¶ááááá",
+DlgImgAlertUrl :
"áá¼áááááááá¶ááááááá¶ááááááá¼ááá¶á",
+DlgImgLinkTab : "áááá¶áá",
+
+// Flash Dialog
+DlgFlashTitle : "áá¶áááááá Flash",
+DlgFlashChkPlay :
"áááááááááááááááááá",
+DlgFlashChkLoop : "á
ááá½ááá",
+DlgFlashChkMenu : "áááá á¶á
ááºáá»ááááá Flash",
+DlgFlashScale : "ááá á",
+DlgFlashScaleAll : "áááá á¶ááá¶ááá¢áá",
+DlgFlashScaleNoBorder : "áá·ááááá á¶áááá»á",
+DlgFlashScaleFit : "áááá¼ááááá",
+
+// Link Dialog
+DlgLnkWindowTitle : "áááá¶áá",
+DlgLnkInfoTab : "ááááá¶áá¢ááá¸áááá¶áá",
+DlgLnkTargetTab : "ááááá
",
+
+DlgLnkType : "áááááááááá¶áá",
+DlgLnkTypeURL : "URL",
+DlgLnkTypeAnchor : "áá»áááá¶áá
áááá»ááááááááá",
+DlgLnkTypeEMail : "á¢áá¸ááá",
+DlgLnkProto : "áááá¼áá¼áá¼á",
+DlgLnkProtoOther : "<áááááááá>",
+DlgLnkURL : "URL",
+DlgLnkAnchorSel : "áááá¾ááá¾ááá»áááá¶",
+DlgLnkAnchorByName :
"áá¶áááááááááááá»áááá¶",
+DlgLnkAnchorById : "áá¶á Id",
+DlgLnkNoAnchors : "<áá»ááá¶ááá»áááá¶áá
áááá»áá¯ááá¶áááááá>",
+DlgLnkEMail : "á¢áá¸ááá",
+DlgLnkEMailSubject : "á
ááááá¾áá¢ááááá",
+DlgLnkEMailBody : "á¢ááááá",
+DlgLnkUpload : "áá¶ááá",
+DlgLnkBtnUpload : "áá¶ááá",
+
+DlgLnkTarget : "ááááá
",
+DlgLnkTargetFrame : "<á áááááá>",
+DlgLnkTargetPopup : "<áá¸ááá¼á ááá>",
+DlgLnkTargetBlank : "áá¸ááá¼ááááḠ(_blank)",
+DlgLnkTargetParent : "áá¸ááá¼ááá (_parent)",
+DlgLnkTargetSelf : "áá¸ááá¼ááááá (_self)",
+DlgLnkTargetTop : "áá¸ááá¼ááá
áá¾áá(_top)",
+DlgLnkTargetFrameName : "áááááá
ááááááááááá¶ááááá
",
+DlgLnkPopWinName : "ááááááá¸ááá¼áááá",
+DlgLnkPopWinFeat :
"áááááááááááá¸ááá¼áááá",
+DlgLnkPopResize : "ááá áá¢á¶á
áááá¶áááááá¼á",
+DlgLnkPopLocation : "ááᶠáá¸áá¶áá",
+DlgLnkPopMenu : "ááᶠááºáá»á",
+DlgLnkPopScroll : "ááᶠáá¶á",
+DlgLnkPopStatus : "ááᶠááááá¶á",
+DlgLnkPopToolbar : "ááᶠá©ááááá",
+DlgLnkPopFullScrn : "á¢ááááá»áááá(IE)",
+DlgLnkPopDependent : "á¢á¶ááááááá¾ (Netscape)",
+DlgLnkPopWidth : "ááá¹á",
+DlgLnkPopHeight : "ááááá",
+DlgLnkPopLeft : "áá¸áá¶áááá¶áááááá",
+DlgLnkPopTop : "áá¸áá¶áááá¶ááá¾",
+
+DlnLnkMsgNoUrl : "áá¼áááááá
á¢á¶ááááááá¶á URL",
+DlnLnkMsgNoEMail : "áá¼áááááá
á¢á¶ááááááá¶á á¢áá¸ááá",
+DlnLnkMsgNoAnchor : "áá¼ááááá¾ááá¾á
áá»áááá¶",
+
+// Color Dialog
+DlgColorTitle : "áááá¾ááá¾á ááá",
+DlgColorBtnClear : "ááá",
+DlgColorHighlight : "áá¶ááááá",
+DlgColorSelected : "áá¶ááááá¾ááá¾á",
+
+// Smiley Dialog
+DlgSmileyTitle : "ááááá¼ááá¼ááá¶á",
+
+// Special Character Dialog
+DlgSpecialCharTitle : "áá¼á¢áááááá·ááá",
+
+// Table Dialog
+DlgTableTitle : "áá¶áááááá áá¶áá¶á",
+DlgTableRows : "áá½áááááá",
+DlgTableColumns : "áá½ááá",
+DlgTableBorder : "ááá áááá»á",
+DlgTableAlign : "áá¶áááááááá¸áá¶áá",
+DlgTableAlignNotSet : "<áá·áááááá>",
+DlgTableAlignLeft : "áá¶áááááá",
+DlgTableAlignCenter : "ááááá¶á",
+DlgTableAlignRight : "áá¶ááááá¶á",
+DlgTableWidth : "ááá¹á",
+DlgTableWidthPx : "áá¸áááá",
+DlgTableWidthPc : "áá¶ááá",
+DlgTableHeight : "ááááá",
+DlgTableCellSpace : "áááá¶áááá",
+DlgTableCellPad : "áááááá",
+DlgTableCaption : "á
ááááá¾á",
+DlgTableSummary : "ááá
áááá¸áááááá",
+
+// Table Cell Dialog
+DlgCellTitle : "áá¶áááááá ááá",
+DlgCellWidth : "ááá¹á",
+DlgCellWidthPx : "áá¸áááá",
+DlgCellWidthPc : "áá¶ááá",
+DlgCellHeight : "ááááá",
+DlgCellWordWrap : "áááá
á¶áá¢ááááááá¶ááá¢áá",
+DlgCellWordWrapNotSet : "<áá·áááááá>",
+DlgCellWordWrapYes : "áá¶á(á
á¶)",
+DlgCellWordWrapNo : "áá",
+DlgCellHorAlign : "áááá¹áááááá",
+DlgCellHorAlignNotSet : "<áá·áááááá>",
+DlgCellHorAlignLeft : "áá¶áááááá",
+DlgCellHorAlignCenter : "ááááá¶á",
+DlgCellHorAlignRight: "Right", //MISSING
+DlgCellVerAlign : "áááá¹ááá",
+DlgCellVerAlignNotSet : "<áá·ááááá>",
+DlgCellVerAlignTop : "áá¶ááá¾",
+DlgCellVerAlignMiddle : "ááááá¶á",
+DlgCellVerAlignBottom : "áá¶áááááá",
+DlgCellVerAlignBaseline :
"ááááá¶áááá¶áá¼ááááá¶á",
+DlgCellRowSpan : "ááááá¼ááá½áááááá",
+DlgCellCollSpan : "ááááá¼ááá½ááá",
+DlgCellBackColor : "áááááááááá¶áááááá",
+DlgCellBorderColor : "áááááá»á",
+DlgCellBtnSelect : "áááá¾ááá¾á...",
+
+// Find Dialog
+DlgFindTitle : "ááááááá",
+DlgFindFindBtn : "ááááááá",
+DlgFindNotFoundMsg : "áá¶áááááá
áááá·ááá¾ááá á",
+
+// Replace Dialog
+DlgReplaceTitle : "áááá½á",
+DlgReplaceFindLbl : "áááááááá¢ááá¸:",
+DlgReplaceReplaceLbl : "áááá½ááá¶áá½á:",
+DlgReplaceCaseChk : "áááááááá¼ááá",
+DlgReplaceReplaceBtn : "áááá½á",
+DlgReplaceReplAllBtn : "áááá½ááá¶ááá¢áá",
+DlgReplaceWordChk :
"áááá¼ááá¶ááááá¶ááá¢áá",
+
+// Paste Operations / Dialog
+PasteErrorPaste : "Your browser security settings don't permit the
editor to automatically execute pasting operations. Please use the keyboard for
that (Ctrl+V).", //MISSING
+PasteErrorCut :
"áá¶áááááááá»áááááá¶ááááááááááá·áá¸áá»ááááááááááá¢ááá
áááâáá·áá¢á¶á
áááá¾áááááá·áá¸áá¶áááááá¢ááááá
áá¶ááá¢áááááááááááááááááááááááá¶áá¡á¾á
á áá¼ááááá¾áááá¶ááááááá áá¸áá¼á
ááá (Ctrl+X) á",
+PasteErrorCopy :
"áá¶áááááááá»áááááá¶ááááááááááá·áá¸áá»ááááááááááá¢ááá
áááâáá·áá¢á¶á
áááá¾áááááá·áá¸áá¶áááááá¢ááááá á
áááá¢áááááááááááááááááááááááá¶áá¡á¾á
á áá¼ááááá¾áááá¶ááááááá áá¸áá¼á
ááá (Ctrl+C)á",
+
+PasteAsText : "á
ááááá¶ááá¢ááááááááááá¶",
+PasteFromWord : "á
ááááá¶ááááá¸áááááá·áá¸
Word",
+
+DlgPasteMsg2 : "áá¼áá
áááá¢ááááááá
áá¶áááááá»ááááá¢áááá¼á
áá¶ááááááááááááá¾áááá¶áá áá¸
â(<STRONG>Ctrl+V</STRONG>) á á¾áá
á»á
<STRONG>OK</STRONG> á",
+DlgPasteIgnoreFont :
"áá·ááá·áá¢ááá¸áááááááá»áááá¢áááá",
+DlgPasteRemoveStyles : "áááááá¼á",
+DlgPasteCleanBox : "áááá¢áááááá
áááá¸áááá¢áá",
+
+// Color Picker
+ColorAutomatic : "áááááááááááá",
+ColorMoreColors : "ááááááááááá..",
+
+// Document Properties
+DocProps : "áá¶áááááá á¯ááá¶á",
+
+// Anchor Dialog
+DlgAnchorTitle : "áá¶ááááááá
ááááá¾ááá»ááááááá¶",
+DlgAnchorName : "ááááááá»ááááááá¶",
+DlgAnchorErrorName : "áá¼áááááá
ááááááá»ááááááá¶",
+
+// Speller Pages Dialog
+DlgSpellNotInDic : "áááá¶ááááá»ááá
áá¶áá»áááá",
+DlgSpellChangeTo : "áááá¶áááááá¼ááá
",
+DlgSpellBtnIgnore : "áá·ááááá¶áááááá¼á",
+DlgSpellBtnIgnoreAll : "áá·ááááá¶áááááá¼á
áá¶ááá¢áá",
+DlgSpellBtnReplace : "áááá½á",
+DlgSpellBtnReplaceAll : "áááá½ááá¶ááá¢áá",
+DlgSpellBtnUndo : "áá¶áá¡á¾ááá·á",
+DlgSpellNoSuggestions : "- áááá¶ááááá¾á -",
+DlgSpellProgress :
"áááá»ááá·áá·áááá¢ááááá¶áá·áá»ááá...",
+DlgSpellNoMispell :
"áá¶ááá·áá·áááá¢ááááá¶áá·áá»ááááá¶áá
áá: áááá¶áááá á»á",
+DlgSpellNoChanges :
"áá¶ááá·áá·áááá¢ááááá¶áá·áá»ááááá¶áá
áá: áá»ááá¶ááááá¶áááááá¼á",
+DlgSpellOneChange :
"áá¶ááá·áá·áááá¢ááááá¶áá·áá»ááááá¶áá
áá: áá¶ááááá½ááááá¼á
áá¶ááááá¶áááááá¼á",
+DlgSpellManyChanges :
"áá¶ááá·áá·áááá¢ááááá¶áá·áá»ááááá¶áá
áá: %1 áá¶ááááá¶ááááá¶áááááá¼á",
+
+IeSpellDownload :
"áá»ááá¶ááááááá·áá¸áá·áá·áááá¢ááááá¶áá·áá»ááá
á áá¾á
áááá¶ááááá¸áá¶?",
+
+// Button Dialog
+DlgButtonText : "á¢ááááá(áááá)",
+DlgButtonType : "áááááá",
+
+// Checkbox and Radio Button Dialogs
+DlgCheckboxName : "ááááá",
+DlgCheckboxValue : "áááá",
+DlgCheckboxSelected : "áá¶ááááá¾ááá¾á",
+
+// Form Dialog
+DlgFormName : "ááááá",
+DlgFormAction : "ááááááá¶á",
+DlgFormMethod : "áá·áá¸",
+
+// Select Field Dialog
+DlgSelectName : "ááááá",
+DlgSelectValue : "áááá",
+DlgSelectSize : "ááá á",
+DlgSelectLines : "ááááá¶áá",
+DlgSelectChkMulti :
"á¢áá»áááá¶áá¢áááááá¾ááá¾áá
ááá¾á",
+DlgSelectOpAvail : "áá¶áááááááááá¾ááá¾á
áááá¢á¶á
ááááááá¶á",
+DlgSelectOpText : "áá¶ááá",
+DlgSelectOpValue : "áááá",
+DlgSelectBtnAdd : "áááááá",
+DlgSelectBtnModify : "áááá¶áááááá¼á",
+DlgSelectBtnUp : "áá¾",
+DlgSelectBtnDown : "ááááá",
+DlgSelectBtnSetValue : "Set as selected value", //MISSING
+DlgSelectBtnDelete : "ááá",
+
+// Textarea Dialog
+DlgTextareaName : "ááááá",
+DlgTextareaCols : "áá¼ááá",
+DlgTextareaRows : "áá¼áááááá",
+
+// Text Field Dialog
+DlgTextName : "ááááá",
+DlgTextValue : "áááá",
+DlgTextCharWidth : "ááá¹á á¢áááá",
+DlgTextMaxChars : "á¢ááááá¢áá·ááá·áá¶",
+DlgTextType : "áááááá",
+DlgTextTypeText : "áá¶ááá",
+DlgTextTypePass : "áá¶ááááááá¶áá",
+
+// Hidden Field Dialog
+DlgHiddenName : "ááááá",
+DlgHiddenValue : "áááá",
+
+// Bulleted List Dialog
+BulletedListProp : "áááááááááá¸áááááá",
+NumberedListProp : "ááááááááááá¸ááá",
+DlgLstType : "áááááá",
+DlgLstTypeCircle : "áááááá",
+DlgLstTypeDisc : "Disc",
+DlgLstTypeSquare : "áá¶áá",
+DlgLstTypeNumbers : "ááá(1, 2, 3)",
+DlgLstTypeLCase : "á¢áááááá¼á
(a, b, c)",
+DlgLstTypeUCase : "á¢áááááá(A, B, C)",
+DlgLstTypeSRoman : "á¢ááááá¡á¶áá¶áááá¼á
(i, ii,
iii)",
+DlgLstTypeLRoman : "á¢ááááá¡á¶áá¶áááá(I, II, III)",
+
+// Document Properties Dialog
+DlgDocGeneralTab : "áá¼áá
",
+DlgDocBackTab : "ááááááá¶áááááá",
+DlgDocColorsTab : "áááááâáá·á ááá»á",
+DlgDocMetaTab : "áá·áááááááá",
+
+DlgDocPageTitle : "á
ááááá¾áááááá",
+DlgDocLangDir : "áá·ááá
ááááááá¶áá¶",
+DlgDocLangDirLTR : "áá¸ááááááá
áááá¶á(LTR)",
+DlgDocLangDirRTL : "áá¸áááá¶ááá
ááááá(RTL)",
+DlgDocLangCode : "ááááá¼ááá¶áá¶",
+DlgDocCharSet : "áááááááááá¼ááá¶áá¶",
+DlgDocCharSetOther :
"áááááááááá¼ááá¶áá¶áááááááá",
+
+DlgDocDocType : "áááááááááá¶áááááá",
+DlgDocDocTypeOther :
"áááááááááá¶áááááááááááááá",
+DlgDocIncXHTML : "ááááá¼á XHTML",
+DlgDocBgColor : "ááááá¶áááááá",
+DlgDocBgImage : "URL
áááááá¼ááá¶ááá¶áááááá",
+DlgDocBgNoScroll :
"áááááááááááá·ááááá¼á",
+DlgDocCText : "á¢ááááá",
+DlgDocCLink : "áááá¶áá",
+DlgDocCVisited : "áááá¶áááá¾áá á¾á",
+DlgDocCActive : "áááá¶áááááá»ááá¾á",
+DlgDocMargins : "ááá»áááááá",
+DlgDocMaTop : "áá¾",
+DlgDocMaLeft : "ááááá",
+DlgDocMaRight : "áááá¶á",
+DlgDocMaBottom : "ááááá",
+DlgDocMeIndex : "áá¶ááááá
áááá»áá¯ááá¶á
(áááá¶á
ááá¸áááá¶áááááááá)",
+DlgDocMeDescr : "ááá
áááá¸á¢áááá¶áá·áááá¶áá¢ááá¸á¯ááá¶á",
+DlgDocMeAuthor : "á¢ááááá·áááá",
+DlgDocMeCopy : "ááááá¶áá·áááá·á",
+DlgDocPreview : "áá¾ááá¶ááááá",
+
+// Templates Dialog
+Templates : "á¯ááá¶ááááá¼",
+DlgTemplatesTitle : "á¯ááá¶ááááá¼
ááááá¢áááááá",
+DlgTemplatesSelMsg :
"áá¼ááááá¾ááá¾áá¯ááá¶ááááá¼
áá¾áááá¸áá¾ááá
áááá»ááááááá·áá¸áá¶áááááá¢ááááá<br>(á¢ááááááá¹ááá¶ááááá):",
+DlgTemplatesLoading :
"áááá»áá¢á¶áááááá¸á¯ááá¶ááááá¼ á
áá¼áááá
á¶á...",
+DlgTemplatesNoTpl :
"(áá»ááá¶áá¯ááá¶ááááá¼áááá¼ááá¶áááááá)",
+
+// About Dialog
+DlgAboutAboutTab : "á¢ááá¸",
+DlgAboutBrowserInfoTab :
"ááááá¶ááááááá·áá¸áá»ááá",
+DlgAboutLicenseTab : "License", //MISSING
+DlgAboutVersion : "áááá¶áá",
+DlgAboutLicense : "Licensed under the terms of the GNU Lesser
General Public License",
+DlgAboutInfo :
"áááá¶ááááááá¶ááááááááá
áá¼ááá¶áááá"
+}
\ No newline at end of file
Index: plugins/autogrow/fckplugin.js
===================================================================
RCS file: plugins/autogrow/fckplugin.js
diff -N plugins/autogrow/fckplugin.js
--- /dev/null 1 Jan 1970 00:00:00 -0000
+++ plugins/autogrow/fckplugin.js 25 Sep 2006 09:30:40 -0000 1.1
@@ -0,0 +1,85 @@
+/*
+ * FCKeditor - The text editor for internet
+ * Copyright (C) 2003-2006 Frederico Caldeira Knabben
+ *
+ * Licensed under the terms of the GNU Lesser General Public License:
+ * http://www.opensource.org/licenses/lgpl-license.php
+ *
+ * For further information visit:
+ * http://www.fckeditor.net/
+ *
+ * "Support Open Source software. What about a donation today?"
+ *
+ * File Name: fckplugin.js
+ * Plugin: automatically resizes the editor until a configurable maximun
+ * height (FCKConfig.AutoGrowMax), based on its contents.
+ *
+ * File Authors:
+ * Frederico Caldeira Knabben (address@hidden)
+ */
+
+var FCKAutoGrow_Min = window.frameElement.offsetHeight ;
+
+function FCKAutoGrow_Check()
+{
+ var oInnerDoc = FCK.EditorDocument ;
+
+ var iFrameHeight, iInnerHeight ;
+
+ if ( FCKBrowserInfo.IsIE )
+ {
+ iFrameHeight = FCK.EditorWindow.frameElement.offsetHeight ;
+ iInnerHeight = oInnerDoc.body.scrollHeight ;
+ }
+ else
+ {
+ iFrameHeight = FCK.EditorWindow.innerHeight ;
+ iInnerHeight = oInnerDoc.body.offsetHeight ;
+ }
+
+ var iDiff = iInnerHeight - iFrameHeight ;
+
+ if ( iDiff != 0 )
+ {
+ var iMainFrameSize = window.frameElement.offsetHeight ;
+
+ if ( iDiff > 0 && iMainFrameSize < FCKConfig.AutoGrowMax )
+ {
+ iMainFrameSize += iDiff ;
+ if ( iMainFrameSize > FCKConfig.AutoGrowMax )
+ iMainFrameSize = FCKConfig.AutoGrowMax ;
+ }
+ else if ( iDiff < 0 && iMainFrameSize > FCKAutoGrow_Min )
+ {
+ iMainFrameSize += iDiff ;
+ if ( iMainFrameSize < FCKAutoGrow_Min )
+ iMainFrameSize = FCKAutoGrow_Min ;
+ }
+ else
+ return ;
+
+ window.frameElement.height = iMainFrameSize ;
+ }
+}
+
+FCK.AttachToOnSelectionChange( FCKAutoGrow_Check ) ;
+
+function FCKAutoGrow_SetListeners()
+{
+ FCK.EditorWindow.attachEvent( 'onscroll', FCKAutoGrow_Check ) ;
+ FCK.EditorDocument.attachEvent( 'onkeyup', FCKAutoGrow_Check ) ;
+}
+
+if ( FCKBrowserInfo.IsIE )
+{
+// FCKAutoGrow_SetListeners() ;
+ FCK.Events.AttachEvent( 'OnAfterSetHTML', FCKAutoGrow_SetListeners ) ;
+}
+
+function FCKAutoGrow_CheckEditorStatus( sender, status )
+{
+ if ( status == FCK_STATUS_COMPLETE )
+ FCKAutoGrow_Check() ;
+}
+
+FCK.Events.AttachEvent( 'OnStatusChange', FCKAutoGrow_CheckEditorStatus ) ;
\ No newline at end of file
Index: skins/default/fck_strip.gif
===================================================================
RCS file: skins/default/fck_strip.gif
diff -N skins/default/fck_strip.gif
Binary files /dev/null and /tmp/cvs6f1vf2 differ
Index: skins/office2003/fck_strip.gif
===================================================================
RCS file: skins/office2003/fck_strip.gif
diff -N skins/office2003/fck_strip.gif
Binary files /dev/null and /tmp/cvsHcjrt2 differ
Index: skins/silver/fck_strip.gif
===================================================================
RCS file: skins/silver/fck_strip.gif
diff -N skins/silver/fck_strip.gif
Binary files /dev/null and /tmp/cvs8WqAS2 differ
[Prev in Thread] |
Current Thread |
[Next in Thread] |
- [Phpgroupware-cvs] phpgwapi/js/fckeditor/editor _source/classes/fc...,
Dave Hall <=