
//document.domain = "heuristscholar.org";

if (! document.body) {
	// Document manipulation becomes much harder if we can't access the body.
	throw document.location.href + ": include display-preferences.php in the body, not the head";
}

top.HEURIST.displayPreferences = {
	"help": "show",
	"advanced": "hide",
	"input-visibility": "required",
	"action-on-save": "stay",
	"gigitiser-view": "",
	"double-click-action": "edit",
	"my-records-searches": "show",
	"all-records-searches": "show",
	"workgroup-searches": "show",
	"left-panel-scroll": "0",
	"record-search-string": "",
	"record-search-type": "",
	"search-result-style": "list",
	"results-per-page": "50",
	"scratchpad-bottom": "0",
	"scratchpad-right": "0",
	"scratchpad-width": "0",
	"scratchpad-height": "0",
	"scratchpad": "hide"
};
window.document.body.className = window.document.body.className.replace(/\bhelp-\S+\b|\badvanced-\S+\b|\binput-visibility-\S+\b|\baction-on-save-\S+\b|\bgigitiser-view-\S+\b|\bdouble-click-action-\S+\b|\bmy-records-searches-\S+\b|\ball-records-searches-\S+\b|\bworkgroup-searches-\S+\b|\bleft-panel-scroll-\S+\b|\brecord-search-string-\S+\b|\brecord-search-type-\S+\b|\bsearch-result-style-\S+\b|\bresults-per-page-\S+\b|\bscratchpad-bottom-\S+\b|\bscratchpad-right-\S+\b|\bscratchpad-width-\S+\b|\bscratchpad-height-\S+\b|\bscratchpad-\S+\b/g, ' help-show advanced-hide input-visibility-required action-on-save-stay gigitiser-view- double-click-action-edit my-records-searches-show all-records-searches-show workgroup-searches-show left-panel-scroll-0 record-search-string- record-search-type- search-result-style-list results-per-page-50 scratchpad-bottom-0 scratchpad-right-0 scratchpad-width-0 scratchpad-height-0 scratchpad-hide');
window.document.body.className += ' help-show advanced-hide input-visibility-required action-on-save-stay gigitiser-view- double-click-action-edit my-records-searches-show all-records-searches-show workgroup-searches-show left-panel-scroll-0 record-search-string- record-search-type- search-result-style-list results-per-page-50 scratchpad-bottom-0 scratchpad-right-0 scratchpad-width-0 scratchpad-height-0 scratchpad-hide';
top.HEURIST.fireEvent(window, "heurist-display-preferences-loaded");

