// Publish project specific data
(function() {
rh = window.rh;
model = rh.model;

rh.consts('DEFAULT_TOPIC', encodeURI("#Court_Rules_Book_Ch_2/Court_Rules_Chapter_2/Court_Rules_Chapter_2.htm".substring(1)));
rh.consts('HOME_FILEPATH', encodeURI("index.html"));
rh.consts('START_FILEPATH', encodeURI('index.html'));
rh.consts('HELP_ID', '4F3ED9F9-F726-4BC6-976A-FC269B749F78' || 'preview');
rh.consts('LNG_STOP_WORDS', ["a", "about", "after", "against", "all", "also", "among", "an", "and", "are", "as", "at", "be", "became", "because", "been", "between", "but", "by", "can", "come", "do", "during", "each", "early", "for", "form", "found", "from", "had", "has", "have", "he", "her", "his", "however", "in", "include", "into", "is", "it", "its", "late", "later", "made", "many", "may", "me", "med", "more", "most", "near", "no", "non", "not", "of", "on", "only", "or", "other", "over", "several", "she", "some", "such", "than", "that", "the", "their", "then", "there", "these", "they", "this", "through", "to", "under", "until", "use", "was", "we", "were", "when", "where", "which", "who", "with", "you"]);
rh.consts('LNG_SUBSTR_SEARCH', 0);

model.publish(rh.consts('KEY_DIR'), "ltr");
model.publish(rh.consts('KEY_LNG_NAME'), "en_US");
model.publish(rh.consts('KEY_LNG'), {"ApplyTip":"Apply","Back":"Back","Cancel":"Cancel","Canceled":"Canceled","ContentFilterChanged":"Content filter is changed, search again","Contents":"Contents","Disabled Next":">>","Disabled Prev":"<<","EnableAndSearch":"Display results with all search words","EndOfResults":"End of search results.","Filter":"Filter","Glossary":"Glossary","GlossaryFilterTerms":"Filter Term","Hide":"Hide","HideAll":"Hide All","HighlightSearchResults":"Highlight Search Results","HomeButton":"Home","IeCompatibilityErrorMsg":"This page cannot be viewed in Internet Explorer 8 or earlier version.","Index":"Index","IndexFilterKewords":"Filter Keyword","JS_alert_InitDatabaseFailed":"Failed to initialize database","JS_alert_InvalidExpression_1":"The search string you typed is not valid.","JS_alert_LoadXmlFailed":"Failed to load XML file","Loading":"Loading...","Logo":"Logo","Logo/Author":"Powered By","NavTip":"Menu","Next":"Next","NextLabel":"Next","NoScriptErrorMsg":"Enable JavaScript support in the browser to view this page.","Prev":"Previous","PreviousLabel":"Previous","Print":"Print","Reset":"Reset","ResultsFoundText":"%1 result(s) found for %2","Search":"-Search-","SearchOptions":"Search Options","SearchPageTitle":"Search Results","SearchResultsPerScreen":"Search results per page","SearchTitle":"Search","Searching":"Searching...","Seperate":"|","Show":"Show","ShowAll":"All","ShowHide":"Show/Hide","SidebarToggleTip":"Expand/Collapse","SyncToc":"SyncToc","TableOfContents":"Table of Contents","ToTopTip":"Go to top","TopicsNotFound":"No results found","UnknownError":"Unknown error","WebSearch":"WebSearch","WebSearchButton":"WebSearch"});

model.publish(rh.consts('KEY_HEADER_DEFAULT_TITLE_COLOR'), "#ffffff");
model.publish(rh.consts('KEY_HEADER_DEFAULT_BACKGROUND_COLOR'), "#025172");
model.publish(rh.consts('KEY_LAYOUT_DEFAULT_FONT_FAMILY'), "\"Trebuchet MS\", Arial, sans-serif");

model.publish(rh.consts('KEY_HEADER_TITLE'), "Michigan Court Rules Chap 2. Civil Procedure");
model.publish(rh.consts('KEY_HEADER_TITLE_COLOR'), "");
model.publish(rh.consts('KEY_HEADER_BACKGROUND_COLOR'), "");
model.publish(rh.consts('KEY_HEADER_LOGO_PATH'), "");
model.publish(rh.consts('KEY_LAYOUT_FONT_FAMILY'), "");
model.publish(rh.consts('KEY_HEADER_HTML'), "<div class='topic-header' onClick='rh._.goToFullLayout()'>\
  <div class='logo'>\
    <img src='#{logo}' />\
  </div>\
  <div class='nav'>\
    <div class='title' title='#{title}'>\
      <span>#{title}</span>\
    </div>\
    <div class='gotohome' title='#{tooltip}'>\
      <span>#{label}</span>\
    </div></div>\
  </div>\
<div class='topic-header-shadow'></div>\
");
model.publish(rh.consts('KEY_HEADER_CSS'), ".topic-header { background-color: #{background-color}; color: #{color}; width: calc(100%); height: 3em; position: fixed; left: 0; top: 0; font-family: #{font-family}; display: table; box-sizing: border-box; }\
.topic-header-shadow { height: 3em; width: 100%; }\
.logo { cursor: pointer; padding: 0.2em; text-align: center; display: table-cell; vertical-align: middle; }\
.logo img { width: 1.875em; display: block; }\
.nav { width: 100%; display: table-cell; }\
.title { width: 40%; height: 100%; float: left; line-height: 3em; cursor: pointer; }\
.gotohome { width: 60%; float: left; text-align: right; height: 100%; line-height: 3em; cursor: pointer; }\
.title span, .gotohome span { padding: 0em 1em; white-space: nowrap; text-overflow: ellipsis; overflow: hidden; display: block; }");

})();