/*
XOWA: the XOWA Offline Wiki Application
Copyright (C) 2012 gnosygnu@gmail.com

This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.

This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
GNU Affero General Public License for more details.

You should have received a copy of the GNU Affero General Public License
along with this program.  If not, see <http://www.gnu.org/licenses/>.
*/
package gplx.xowa.htmls.heads; import gplx.*; import gplx.xowa.*; import gplx.xowa.htmls.*;
public class Xoh_head_itm__navframe extends Xoh_head_itm__base {
	@Override public byte[] Key() {return Xoh_head_itm_.Key__navframe;}
	@Override public int Flags() {return Flag__js_head_global;}
	@Override public void Write_js_head_global(Xoae_app app, Xowe_wiki wiki, Xoae_page page, Xoh_head_wtr wtr) {
		wtr.Write_js_global_ini_atr_val(Key_enabled		, true);
		wtr.Write_js_global_ini_atr_val(Key_collapsed	, wiki.Html_mgr().Head_mgr().Collapsible__navframe() || wiki.Html_mgr().Head_mgr().Itm__navframe().Enabled_n());
		wtr.Write_js_global_ini_atr_msg(wiki			, Key_show);
		wtr.Write_js_global_ini_atr_msg(wiki			, Key_hide);
	}
	private static final    byte[]
	  Key_enabled				= Bry_.new_a7("navframe-enabled")
	, Key_collapsed				= Bry_.new_a7("navframe-collapsed")
	, Key_show					= Bry_.new_a7("show")
	, Key_hide					= Bry_.new_a7("hide")
	;
}
