var estradaCustom = {
	sitePath: '',
	leaveSite: 'You are leaving the site',
	editor: {
	  defaultConfig: {
	    //height: "500px"
	    plugins : "table,advlink,insertdatetime,preview,searchreplace,print,contextmenu,paste,fullscreen,xhtmlxtras,advimage,media,imagepicker", //,noneditable",
      theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,cleanup,removeformat,separator,search,replace,separator,undo,redo,separator",
      theme_advanced_buttons2 : "bold,italic,underline,strikethrough,sub,sup,separator,justifyleft,justifycenter,justifyright,justifyfull,separator,bullist,numlist,outdent,indent,separator,link,unlink,anchor,image,imagepicker,charmap,media",
      theme_advanced_buttons3 : "tablecontrols,separator,hr,visualaid,code,separator,fullscreen,separator,print,formatselect,styleselect",
	    theme_advanced_blockformats : "p,div,blockquote,h4,h3,h2,h1",
	    theme_advanced_font_sizes : 'Small=.small-text,Large=.large-text',
      content_css : 'http://assets.estradacms.com/estrada/library/styles/editor.css',
      extended_valid_elements : "div[*]",
      invalid_elements: "font",
      forced_root_block : ''
    },
    full: {
      theme_advanced_buttons1 : "cut,copy,paste,pastetext,pasteword,cleanup,removeformat,separator,search,replace,separator,undo,redo,separator,forecolor,backcolor,fontsizeselect,fontselect"
    }
  },
  //editorUseCss: true,
  editor_content_area: {
    _any_: {
      style_formats: [
        {title: 'Estrada Brand', inline: 'span', classes: 'estrada-brand'},
        {title: 'Boxed Content', block: 'div', classes: 'boxed-content'},
        {title: 'Highlight', block: 'div', classes: 'highlight-content'}
      ]
    },
    related: {
      theme_advanced_blockformats : 'Title=h3,Paragraph=p'
    },
    main: {
      style_formats: [
        {title: 'Attention', attributes :{'class': 'attention'}}
      ]
    },
    tabbed: {
      style_formats: [
        {title: 'Tabbed-List', block: 'ul', attributes :{'class': 'tabbed-list'}},
        {title: 'Tabbed-Item', block: 'li', attributes :{'class': 'tabbed-item'}},
        {title: 'Tabbed-Title', block: 'div', attributes :{'class': 'tabbed-title'}},
        {title: 'Tabbed-Content', block: 'div', attributes :{'class': 'tabbed-content'}}
      ]
    }
  },
  //editor_content_css: '/assets/estrada/styles/editor.css',
  navigator: {
    css: {
      opacity: 0.2,
      'background-color': 'red'
    }
  },
  feedback: {
    required: ['Feedback'] // ['Name', 'Email', 'Feedback']
  },
  formvalidation: function() {
    // These are custom validators that add to or override the built-in valildators.
    // the name of the validator functon should match the classname
    // e.g.  fv-filename is the classname to apply to an input that you want to be 
    // validated with the filename validator.  An input can have multiple validator
    // classes.
    var regxFileName = /^[a-z][\w]?\.(asp|html|htm|shtml|php)$/i;
    var o = {
      filename: function(value, message) {
        if (!regxFileName.test(value)) {
          message.push('is not a valid file name');
          return false;
        }
        return true;
      }
    }
    return o;
  }()
};
