Rkns.defaults = {

    language: (navigator.language || navigator.userLanguage || "en"),
        /* GUI Language */
    container: "renkan",
        /* GUI Container DOM element ID */
    search: [],
        /* List of Search Engines */
    bins: [],
           /* List of Bins */
    static_url: "",
        /* URL for static resources */
    popup_editor: true,
        /* show the node editor as a popup inside the renkan view */
    editor_panel: 'editor-panel',
        /* GUI continer DOM element ID of the editor panel */
    show_bins: true,
        /* Show bins in left column */
    properties: [],
        /* Semantic properties for edges */
    show_editor: true,
        /* Show the graph editor... Setting this to "false" only shows the bins part ! */
    read_only: false,
        /* Allows editing of renkan without changing the rest of the GUI. Can be switched on/off on the fly to block/enable editing */
    editor_mode: true,
        /* Switch for Publish/Edit GUI. If editor_mode is false, read_only will be true.  */
    manual_save: false,
        /* In snapshot mode, clicking on the floppy will save a snapshot. Otherwise, it will show the connection status */
    show_top_bar: true,
        /* Show the top bar, (title, buttons, users) */
    default_user_color: "#303030",
    size_bug_fix: false,
        /* Resize the canvas after load (fixes a bug on iPad and FF Mac) */
    force_resize: false,
    allow_double_click: true,
        /* Allows Double Click to create a node on an empty background */
    double_click_open_url: true,
        /* In read_only mode open node uri in new window with a double click */
    simple_click_open_url: false,
        /* In read_only mode open node uri in new window with a simple click (do not disable the double click) */
    zoom_on_scroll: true,
        /* Allows to use the scrollwheel to zoom */
    element_delete_delay: 0,
        /* Delay between clicking on the bin on an element and really deleting it
           Set to 0 for delete confirm */
    autoscale_padding: 50,
    resize: true,

    /* zoom options */
    show_zoom: true,
        /* show zoom buttons */
    save_view: true,
        /* show buttons to save view */
    view_force_autoscale: true,
        /* Force autoscale when the Renkan is loaded */
    view_show_hiddennodes: true,
        /* Show all the node when the Renkan is loaded */
    default_index_view: -1,

    /* URL parsing */
    url_parameters: true,
        /* accept or not hash parameters in the url */
    update_url: true,
        /* update the url each time the paper shift or on zoom in/out, with the serialized view (offset and scale) */
        /* Considered as false if url_parameters is false */


    /* TOP BAR BUTTONS */
    show_search_field: true,
    show_user_list: true,
        /* show the user list */
    user_name_editable: true,
        /* allow the edition of the user name */
    user_color_editable: true,
        /* allow the edition of the user color */
    title_editable: true,
        /* allow the edition of the renkan title */
    show_user_color: true,
        /* show user colors in the list */
    show_save_button: true,
    show_export_button: true,
    show_open_button: false,
    show_addnode_button: true,
    show_addedge_button: true,
    show_bookmarklet: true,
    show_fullscreen_button: true,
    home_button_url: false,
    home_button_title: "Home",

    /* MINI-MAP OPTIONS */

    show_minimap: true,
        /* Show a small map at the bottom right */
    minimap_width: 160,
    minimap_height: 120,
    minimap_padding: 20,
    minimap_background_color: "#ffffff",
    minimap_border_color: "#cccccc",
    minimap_highlight_color: "#ffff00",
    minimap_highlight_weight: 5,


    /* EDGE/NODE COMMON OPTIONS */

    buttons_background: "#202020",
    buttons_label_color: "#c000c0",
    buttons_label_font_size: 9,

    ghost_opacity : 0.3,
        /* opacity when the hidden element is revealed */
    default_dash_array : [4, 5],
        /* dash line genometry */

    /* NODE DISPLAY OPTIONS */

    show_node_circles: true,
        /* Show circles for nodes */
    clip_node_images: true,
        /* Constraint node images to circles */
    node_images_fill_mode: false,
        /* Set to false for "letterboxing" (height/width of node adapted to show full image)
           Set to true for "crop" (adapted to fill circle) */
    node_size_base: 25,
    node_stroke_width: 2,
    node_stroke_max_width: 12,
    selected_node_stroke_width: 4,
    selected_node_stroke_max_width: 24,
    node_stroke_witdh_scale: 5,
    node_title_size_min: 0,
        /* minimum relative size for node title (in graph) */
    node_title_size_max: 5,
        /* maximum relative size for node title (in graph) */
    node_title_size_step: 0.1,
        /* step for relative size for node title (in graph) */
    node_fill_color: "#ffffff",
        /* default color to fill node background */
    highlighted_node_fill_color: "#ffff00",
        /* default color to fill highlighted node background */
    node_title_color: "#000000",
        /* default title color */
    node_label_distance: 5,
        /* Vertical distance between node and label */
    node_label_max_length: 60,
        /* Maximum displayed text length */
    label_untitled_nodes: "(untitled)",
        /* Label to display on untitled nodes */
    hide_nodes: true,
        /* allow hide/show nodes */
    change_shapes: true,
        /* Change shapes enabled */
    change_types: true,
    /* Change type enabled */

    /* NODE EDITOR TEMPLATE*/

    node_editor_templates: {
        "default": "templates/nodeeditor_readonly.html",
        "video": "templates/nodeeditor_video.html"
    },

    /* EDGE DISPLAY OPTIONS */

    edge_stroke_width: 2,
    edge_stroke_max_width: 12,
    selected_edge_stroke_width: 4,
    selected_edge_stroke_max_width: 24,
    edge_stroke_witdh_scale: 5,

    edge_label_distance: 0,
    edge_label_max_length: 20,
    edge_arrow_length: 18,
    edge_arrow_width: 12,
    edge_arrow_max_width: 32,
    edge_gap_in_bundles: 12,
    highlighted_edge_color: "#ffff00",
    label_untitled_edges: "",

    /* CONTEXTUAL DISPLAY (TOOLTIP OR EDITOR) OPTIONS */

    tooltip_width: 275,
    tooltip_padding: 10,
    tooltip_margin: 15,
    tooltip_arrow_length : 20,
    tooltip_arrow_width : 40,
    tooltip_top_color: "#f0f0f0",
    tooltip_bottom_color: "#d0d0d0",
    tooltip_border_color: "#808080",
    tooltip_border_width: 1,
    tooltip_opacity: 0.8,

    richtext_editor_config: {
        toolbarGroups: [
            { name: 'basicstyles', groups: [ 'basicstyles', 'cleanup' ] },
            { name: 'clipboard',   groups: [ 'clipboard', 'undo' ] },
            '/',
	        { name: 'styles'},
        ],
        removePlugins : 'colorbutton,find,flash,font,forms,iframe,image,newpage,smiley,specialchar,stylescombo,templates',
    },

    /* NODE EDITOR OPTIONS */

    show_node_title_style: true,
    show_node_editor_uri: true,
    show_node_editor_title: true,
    show_node_editor_title_richtext: true,
    show_node_editor_description: true,
    show_node_editor_description_richtext: true,
    show_node_editor_size: true,
    show_node_editor_style: true, // show node title style editor
    show_node_editor_style_color: true,
    show_node_editor_style_dash: true,
    show_node_editor_style_thickness: true,
    show_node_editor_image: true,
    show_node_editor_creator: true,
    allow_image_upload: true,
    uploaded_image_max_kb: 500,


    /* NODE TOOLTIP OPTIONS */

    show_node_tooltip_uri: true,
    show_node_tooltip_description: true,
    show_node_tooltip_color: true,
    show_node_tooltip_image: true,
    show_node_tooltip_creator: true,

    /* EDGE EDITOR OPTIONS */

    show_edge_editor_uri: true,
    show_edge_editor_style: true,
    show_edge_editor_style_color: true,
    show_edge_editor_style_dash: true,
    show_edge_editor_style_thickness: true,
    show_edge_editor_style_arrow: true,
    show_edge_editor_direction: true,
    show_edge_editor_nodes: true,
    show_edge_editor_creator: true,

    /* EDGE TOOLTIP OPTIONS */

    show_edge_tooltip_uri: true,
    show_edge_tooltip_color: true,
    show_edge_tooltip_nodes: true,
    show_edge_tooltip_creator: true,

};
