// Chris Pyper 2006

// Calculate the small distance that a component is expected to jump when it is set to edit
var RESIZETABLEOFFSETIE     = 19;
var RESIZETABLEOFFSETMOZ    = 19;
var RESIZETABLEIFRAMEOFFSET = 28;

// Size of undo buffer
var UNDOBUFFERSIZE = 50;

// Prefix for generated ID for DOM elements that have no ID
var IDPREFIX = 'ESW_GEN_ID_';

// Id's of DIV's that are transformed into editor
var INNEREDITORID  = 'innerEditor';
var MIDDLEEDITORID = 'middleEditor';
var OUTEREDITORID  = 'outerEditor';

// THe id's of some important tags defined in templates
var TITLEID	  = 'ESWpageTitle';
var TAGLINEID = 'ESWpageTagline';
var MENUID    = 'ESWuserMenu';
var BODYID    = 'ESW_TEMPLATE';
var PAGECONTENT_CLASS = "ESWpageContent";


// Offset of duplcated object
var DUPLICATEOFFSET = 50;

// How large edited text areas height will be offset in addition to there offsetHeight, to compensate for overly text large areas
var EDITMODEOFFSET = 50;

// Path to AJAX spell check script
var SPELLCHECKBASEURL = self.location.protocol + "//" + self.location.hostname  + "/OS4/resources/esw/editor/spellcheck.php";

// Maximum number of corrections to show to user for incorrectly spelled words
var MAXCORRECTIONS = 5;

// User language preference, used for spell-check (among other things)
var EDITORUSERLANGUAGE = "en";

// External editor support for various element types
// Key = tagName, Value = function to invoke the external editor
// An element reference will be passed as the only argument
var EXTERNAL_EDITORS = new Array();

