
// CONSTANTS FILE

// Page Count Exceeded msg
var PCE_MSG = "Please clear some space by exporting and deleting\nsome web pages or full sites from your account.";

// Default content field message (shown when a content td has no content type assigned)
var DEFAULT_CONTENT_MSG = 'Click here to assign a content type';
// Default HTML content field message 
var DEFAULT_CONTENT_HTML_MSG = 'Click here to add Text';

// loading image
var LOADING_IMG = 'images/indicator.gif';

// id of the toolbar area
var WYSIWYG_TOOLBAR_AREA = 'horizontalToolBarArea';

// time in milliseconds for an auto save
var SAVE_TIMEOUT = 1000 * 60; // every minute

// id of iframe for template
var SITE_EDIT_IFRAME = "site_edit_iframe";

// Video player types
var VIDEO_PLR_FLASH = 'video_plr_flash';
var VIDEO_PLR_WMP = 'video_plr_wmp';
var VIDEO_PLR_QT = 'video_plr_qt';
var VIDEO_PLR_RP = 'video_plr_rp';
var VIDEO_PLR_UNKNOWN = 'video_plr_unknown';

var BANNER_UPLOAD = 'banner_upload_form';
var IMAGE_UPLOAD = 'image_upload_form';


var ADD_BORDER_MSG = 'Add&nbsp;Border';
var REMOVE_BORDER_MSG = 'Remove&nbsp;Border';

/*****************HEADER FIELDS************************/
// id of div that is used to display header text
var WYSIWYG_HEADER_ID = 'wysiwyg_header_div_id';
// id of the edit button div for the header
var HEADER_EDIT_BUTTON = 'header_edit_button';

/*****************END HEADER FIELDS************************/


/*****************FOOTER FIELDS************************/
// id of div that is used to display footer text
var WYSIWYG_FOOTER_ID = 'wysiwyg_footer_div_id';

/*****************END HEADER FIELDS************************/


/************* LINK EDIT FIELDS*****************/
// id of div that will contain all the controls for a menu link
var MENU_LINK_CTRL = 'menu_link_ctrl';

// id of div that will contain all the add new item options
var MENU_LINK_OPTIONS = 'menu_link_options';

// id of div that will contain an edit form for a menu link
var MENU_LINK_EDIT = 'menu_link_edit';

// id of div that will contain an edit field for a menu item's text
var MENU_ITEM_EDIT = 'menu_item_edit';

// id of display text input field
var MENU_LINK_DISPLAY_EDIT = "menu_link_display";

// id of url text input field
var MENU_LINK_URL_EDIT = "menu_link_url";

// id of page dropdown list field
var MENU_LINK_PAGE_EDIT = "menu_link_page";

// ids of target radio buttons
var MENU_LINK_TARGET_YES = "menu_link_target_yes";
var MENU_LINK_TARGET_NO = "menu_link_target_no";

var CURR_EDIT_MENU_ID = 'curr_edit_menu_id';
var CURR_PARENT_EDIT_MENU_ID = 'curr_parent_edit_menu_id';

var MENU_PARENT_EDIT = 'menu_parent_edit';
/************* END LINK EDIT FIELDS*****************/


/************* NEW LINK FIELDS*****************/

var ADD_NEW_LINK_BUTTON = 'add_new_link_button';
// id of div that will contain the form for adding a new menu item
var NEW_MENU_LINK = 'add_new_menu_item';

// ids of the form navigation radio buttons
var MENU_LINK_TYPE_HEADING = 'menu_link_type_heading';
var MENU_LINK_TYPE_LINK = 'menu_link_type_link';

// id of div that contains the form navigation heading item
var NEW_HEADING = 'new_heading';
// id of div that contains the form navigation link item
var NEW_LINK = 'new_link';

// id of div that contains the form for adding a new heading
var ADD_NEW_HEADING = 'add_new_heading';
// id of div that contains the form for adding a new link
var ADD_NEW_LINK = 'add_new_link';

// id of text input for the new heading display text
var NEW_HEADING_TEXT = 'new_heading_text';

// id of text input for the new link display text
var NEW_LINK_TEXT = "new_link_text";

// id of url text input field
var NEW_LINK_URL = "new_link_url";

// id of page dropdown list field
var NEW_LINK_PAGE = "new_link_page_id";

// ids of target radio buttons
var NEW_LINK_TARGET_BLANK = "new_link_target_blank";
var NEW_LINK_TARGET_NONE = "new_link_target_none";
/************* END LINK EDIT FIELDS*****************/


/************* CONTENT LAYOUT FIELDS *****************/

// id of the layout selection div
var CONTENT_LAYOUT_SELECT = 'content_layout_select';

// id of the layout selection div
var CONTENT_LAYOUT_SELECT_SPACER = 'content_layout_select_spacer';

// id of the button to add a new layout
var CONTENT_ADD_NEW_LAYOUT = 'content_add_new_layout';
/************* END CONTENT LAYOUT FIELDS *****************/

/************* CONTENT FORM FIELDS *****************/
// ENUM values for content_type in db
var CONTENT_TYPE_TEXT = 'TEXT';
var CONTENT_TYPE_IMAGE = 'IMAGE';
var CONTENT_TYPE_VIDEO = 'VIDEO';
var CONTENT_TYPE_SCREEN = 'SCREEN';

// id of the hidden element for the current page_layout_td_id, used when saving
var CURR_PAGE_LAYOUT_TD_ID = 'curr_page_layout_td_id';

// id of the hidden element for the current page_layout_td's width, used when saving
var CURR_PAGE_LAYOUT_TD_WIDTH = 'curr_page_layout_td_width';

// id of the hidden element for the current content td id, 
// used when saving fo setting the innerhtml to show the loading gif
var CURR_CONTENT_TD_ID = 'curr_content_td_id';

// id of the content form div itself
var CONTENT_TYPE_EDIT = 'content_type_edit';

// ids of the divs wrapping the forms navigation
var CONTENT_TEXT_LINK = 'content_text_link';
var CONTENT_IMAGE_LINK = 'content_image_link';
var CONTENT_VIDEO_LINK = 'content_video_link';
var CONTENT_SCREEN_LINK = 'content_screen_link';

// ids of the radio buttons in the forms navigation
var CONTENT_TEXT_RADIO = 'content_text_radio';
var CONTENT_IMAGE_RADIO = 'content_image_radio';
var CONTENT_VIDEO_RADIO = 'content_video_radio';
var CONTENT_SCREEN_RADIO = 'content_screen_radio';

// ids of the the forms
var CONTENT_TEXT_FORM = 'content_text_form';
var CONTENT_IMAGE_FORM = 'content_image_form';
var CONTENT_VIDEO_FORM = 'content_video_form';
var CONTENT_SCREEN_FORM = 'content_screen_form';

// possible image types
var CONTENT_IMAGE_TYPE_URL = 'content_image_type_url';
var CONTENT_IMAGE_TYPE_UPLOAD = 'content_image_type_upload';
var CONTENT_IMAGE_TYPE_IMAGE = 'content_image_type_image';
var CONTENT_IMAGE_TYPE_SCREEN = 'content_image_type_screen';

// ids of the fields in the image form
var CONTENT_IMAGE_LINK_TXT = 'content_image_link_txt';
var CONTENT_IMAGE_ALT_TXT = 'content_image_alt_txt';
var CONTENT_IMAGE_URL_TXT = 'content_image_url_txt';
var CONTENT_IMAGE_UPLOAD_TXT = 'content_image_upload_txt';
var CONTENT_IMAGE_NAME_TXT = 'content_image_name_txt';
var PREV_IMAGE_ID_SELECTED = 'prev_image_id_selected';
var PREV_SCREEN_ID_SELECTED = 'prev_screen_id_selected';
var CONTENT_IMAGE_PREV_FLD_DISABLED = 'content_image_prev_fld_disabled';
var CONTENT_IMAGE_PREV_FLD = 'content_image_prev_fld';
var CONTENT_SCREEN_PREV_FLD = 'content_screen_prev_fld';

var CONTENT_VIDEO_NAME = 'content_video_name';
var VIDEO_VERT_ALIGN = 'video_vert_align';
var VIDEO_HORT_ALIGN = 'video_hort_align';
var CONTENT_VIDEO_URL_TXT = 'content_video_url_txt';
var CONTENT_VIDEO_URL_PREVIEW = 'content_video_url_preview';

var CONTENT_SCREEN_LINK_TXT = 'content_screen_link_txt';
var CONTENT_SCREEN_ALT_TXT = 'content_screen_alt_txt';
var CONTENT_SCREEN_URL_TXT = 'content_screen_url_txt';
var CONTENT_SCREEN_URL_PREVIEW = 'content_screen_url_preview';
/************* END CONTENT FORM FIELDS *****************/