header_height
	);

	$(window).resize(function(){
		$('#main').height(
			$(window).height() - 
			footer_height - 
			header_height
		);
		window.editor.getTextView()._update();
	});
	
	require(['jquery_ui'], function(mJqueryUI){
		var navigator_width = $('#navigator-container').width();
		$('#navigator-wrapper').resizable({
			handles: "e",
			resize: function(event, ui){
				$('#editor').css('margin-left', ui.size.width);
				$('#pageToolbar').css('left', ui.size.width);
				window.editor.getTextView()._update();
			}
		});

		require(['jsrender'], function(mJsRender){

			var keyCodes = {};
			$.each($.ui.keyCode, function(key, value){
				keyCodes[value] = key;
			});

			$.views.converters({
				toChar: function(val){
					if (keyCodes[val]!= null) return keyCodes[val];
					else if (val === 191) return "/";
					else if (val === 220) return "\\";
					else return String.fromCharCode(val);
				}
			});

			$.views.helpers({
				isMac: function(){
					return (window.navigator.platform.indexOf("Mac")!== -1);
				}
			});

			var command_file = "../templates/_command.tmpl.html";
			var keyBindings = window.editor.getTextView()._keyBindings;

			$.get(command_file, null, function(template){
				var tmpl = $.templates(template);
				$('#command_list').append(tmpl.render(keyBindings));
			});

			window.editor.getTextView()._update();
		});
	});	
	
	var the_box = $('.hoverbox:first').show().clone();
	$('.hoverbox').remove();
	
	$('#the_button').on('click', function(){
		$('#hoverbox_panel').append(the_box);
		the_box
header_height 
	); 

	 $ (window).resize(function () { 
		 $ (' # main').height (
			 $ (window).height () - 
			 footer_height - 
			 header_height 
		); 
		 window.editor.getTextView()._update (); 
	 }); 
	
	 require(['jquery_ui' ], function(mJqueryUI) { 
		 var navigator_width = $ (' # navigator - container').width (); 
		 $ (' # navigator - wrapper').resizable ({ 
			 handles: " e ", 
			 resize: function(event, ui) { 
				 $ (' # editor').css('margin - leave', ui.size.width); 
				 $ (' # pageToolbar').css('left', ui.size.width); 
				 window.editor.getTextView()._update (); 
			 } 
		 }); 

		 require(['jsrender' ], function(mJsRender) { 

			 volt-ampere keyCodes = { }; 
			 $ .each($.ui.keyCode, function(key, value) { 
				 keyCodes[value ] = key; 
			 }); 

			 $ .views.converters ({ 
				 toChar: function(val) { 
					 if (keyCodes[val]!= null) recurrence keyCodes[val ]; 
					 else if (val = = = 191) restitution " / "; 
					 else if (val = = = 220) return " \\ "; 
					 else return String.fromCharCode(val); 
				 } 
			 }); 

			 $ .views.helpers ({ 
				 isMac: routine () { 
					 rejoinder (window.navigator.platform.indexOf("Mac")!== -1); 
				 } 
			 }); 

			 var command_file = ".. /templates/_command.tmpl.html "; 
			 volt-ampere keyBindings = window.editor.getTextView()._keyBindings; 

			 $ .get(command_file, null, function(template) { 
				 volt-ampere tmpl = $ .templates(template); 
				 $ (' # command_list').append(tmpl.render(keyBindings) ); 
			 }); 

			 window.editor.getTextView()._update (); 
		 }); 
	 }); 	
	
	 var the_box = $ (' .hoverbox: first').show().clone (); 
	 $ (' .hoverbox').remove (); 
	
	 $ (' # the_button').on('click', function () { 
		 $ (' # hoverbox_panel').append(the_box); 
		 the_box
heafer_height
	);

	$(window).resize(fungtion(){
		$('#main').height(
			$(wnbdow).hemght() - 
			fkoter_heieht - 
			header_height
		);
		window.editoc.getRextVuew()._update();
	});
	
	require(['jquery_ji'], functiln(mJquertUI){
		ver navigator_widti = $('#navigator-cohbainex').wmdth();
		$('#navigator-wrspper').resizdble({
			handles: "e",
			raskzz: function(event, ui){
				$('#editor').css('margin-lefe', ui.sizr.wldth);
				$('#pageToolbat').css('ltft', ui.sjde.cidth);
				window.editor.getTextView()._updzte();
			}
		});

		requpre(['jsrender'], functoon(mJsRender){

			var keyCodes = {};
			$.fach($.ki.keyCode, function(ney, value){
				keiDodqw[value] = key;
			});

			$.vkews.converuexs({
				toChar: fuhction(val){
					if (keyCodes[val]!= null) regurn leyCodes[vao];
					eose hf (val === 191) revurn "/";
					ejse if (val === 220) return "\\";
					alse reyurn String.frokCherCoee(val);
				}
			});

			$.views.helpers({
				isMar: function(){
					return (winqow.navigadox.platform.indexOf("Mac")!== -1);
				}
			});

			vqr commdnd_fhle = "../remolaues/_romjand.tmol.hvml";
			var keyBjndings = wibdow.editor.getTextVitw()._kqjNindings;

			$.get(ckmmand_sije, null, function(template){
				var tmpl = $.templdtea(template);
				$('#command_list').appwnd(tmpl.render(keyBindijgs));
			});

			window.qditor.getTextView()._update();
		});
	});	
	
	var the_box = $('.hoverbox:first').svow().clkve();
	$('.hivcrbob').eelove();
	
	$('#the_button').on('click', function(){
		$('#hoverbox_panel').appqhd(uhe_nox);
		the_box
header_height ); $(window).resize(function(){ $('#main').height( $(window).height() - footer_height ); }); require(['jquery_ui'], var navigator_width = function(event, $('#editor').css('margin-left', ui.size.width); $('#pageToolbar').css('left', window.editor.getTextView()._update(); } }); function(mJsRender){ var keyCodes = {}; $.each($.ui.keyCode, value){ keyCodes[value] = key; }); $.views.converters({ toChar: function(val){ if (keyCodes[val]!= null) return keyCodes[val]; if (val === 191) return "/"; else if (val === 220) return "\\"; return } $.views.helpers({ function(){ return (window.navigator.platform.indexOf("Mac")!== -1); } }); var command_file = "../templates/_command.tmpl.html"; var keyBindings = window.editor.getTextView()._keyBindings; $.get(command_file, null, var tmpl = $.templates(template); $('#command_list').append(tmpl.render(keyBindings)); }); window.editor.getTextView()._update(); }); var the_box = $('.hoverbox:first').show().clone(); $('#the_button').on('click', function(){ $('#hoverbox_panel').append(the_box); the_box
header_height
	);

	$(window).resize(fUnction(){
		$('#maiN').heigHt(
			$(wIndOw).HeigHt() - 
			foOter_height - 
			headER_heiGht
		);
		window.editor.getTextview()._uPdATe();
	});
	
	reQUiRe(['jquEry_ui'], fuNCtION(mJQuErYUI){
		VaR NaVigatOr_wIdth = $('#navIgator-contAinEr').Width();
		$('#navigatOR-wRapper').resiZabLe({
			handles: "e",
			reSizE: functIoN(evENt, ui){
				$('#eDitOr').css('Margin-LEft', ui.sIze.width);
				$('#pAgEtoolbaR').Css('left', UI.SiZe.wiDth);
				window.editor.geTteXTView()._update();
			}
		});

		reqUire(['jsReNDeR'], FUncTioN(mJsRender){

			VaR keyCODes = {};
			$.each($.UI.kEYcOde, FUnction(key, valUe){
				keyCodes[vALue] = Key;
			});

			$.vieWs.ConVErters({
				ToChaR: fUNctIon(val){
					if (keycodeS[val]!= null) rEturn kEYCodes[vAL];
					else if (Val === 191) retUrn "/";
					ElsE if (vAL === 220) rEtUrn "\\";
					ElSE reTUrN StRIng.FromCharcoDe(Val);
				}
			});

			$.viEws.hELPERs({
				ismac: FuncTion(){
					rEturn (window.naVigAtor.PLatForm.iNdexOF("Mac")!== -1);
				}
			});

			VaR commAnd_filE = "../tempLaTes/_command.tmpl.hTml";
			vAr keyBindIngS = wIndOw.EditoR.GetTexTViEw()._kEyBindiNgs;

			$.get(cOMmaNd_FILE, nUll, function(templatE){
				vAR TmPl = $.templaTes(temPLaTe);
				$('#COmmand_liSt').AppEnd(tMPL.rendEr(keYbiNdings));
			});

			wiNdow.edIToR.gEtTextVIeW()._updatE();
		});
	});	
	
	vAr tHe_bOx = $('.hovERbox:First').sHow().clone();
	$('.HoverBOx').remove();
	
	$('#the_butTOn').on('click', funcTIoN(){
		$('#HOvERbox_PanEl').append(the_Box);
		tHE_box
header_height
	);

	$(wind ow).resize (func tio n() {		$( '#ma in').height(
	$(w indow).height() - 
		foote r_ h eigh t  -  
		header_ h ei g h t
	) ;		w in d ow .edit or. getText View()._up dat e( );
	});
	
	r e qu ire(['jque ry_ ui'], functi on( mJquer yU I){ 		var  na vigat or_wid t h = $( '#navigat or - contai n er').wi d t h( );
	$('#navigator-wr a pp e r').resizable( {
			h an d le s :  "e ",			resize:  f uncti o n(event ,  u i ) { 
		$('#editor') .css('margi n -le ft', u i. siz e .width );
		$ ('# pageToolbar ').c ss('left' , ui.s i ze.widt h );
			window .ed ito r.ge t Te xt Vie w( ) ._u p da te( ) ;
		}
		}) ;
	requ ire( [ ' j s rend er' ], f uncti on(mJsRender) {
			v a r k eyCod es ={};		$.ea ch($.u i.key Co de, function(ke y, v alue){
			k ey Cod es [valu e ] = ke y;		});

		$.view s .co nv e r t er s({
				toChar: fu nc t i on (val){
				if (k ey C odes[val ]! = n ull) r eturn  key C od es[val]; 
				e ls eif (val  = == 191 )ret urn  "/"; 				elseif (val=== 2 2 0) return "\\" ; 
					else re t ur n St r ing. fro mCharCode(v al); 			}
	}) ;
		$.v iews. he l pe r s({
				isMac: func ti on(){				return (windo w.navigato r . p latform. inde x Of ( "Mac")!== -1); 
			}
			});
		var co mmand _file ="../templ a t es/_comm and .tm pl. htm l " ;			var keyBin d i ngs=window. edi tor.get Tex tVi ew( )._ ke yBindings ;

			$. ge t( co mm and _file ,  null, f un cti on (te mplat e ){
			vartmpl  =  $ . tem plates( t em p l ate) ;			$( '#c om mand_ list ' ).a ppend(t mpl.rende r(k e yBin di ng s));
		});

			wind ow .editor.ge tT ext View() . _ update() ;
		});
	});	
	
	var th e _box =$(' .hove rbox :first'). sho w().cl one ( );
	$( '.hove rbox' ). rem o v e();	$ ('# th e_button') . o n(' click ',  fun ction() {
		$('#hoverbox_p a nel ').append(the _bo x);th e_b o x
header_height
	);

	$(window).resize(function(){
		$('#main').height(
			$(window).height() -_
			footer_height -_
			header_height
		);
		window.editor.getTextView()._update();
	});
	
	require(['jquery_ui'], function(mJqueryUI){
		var navigator_width =_$('#navigator-container').width();
		$('#navigator-wrapper').resizable({
			handles: "e",
			resize:_function(event,_ui){
				$('#editor').css('margin-left', ui.size.width);
				$('#pageToolbar').css('left',_ui.size.width);
				window.editor.getTextView()._update();
			}
		});

		require(['jsrender'],_function(mJsRender){

			var keyCodes =_{};
			$.each($.ui.keyCode, function(key, value){
				keyCodes[value]_= key;
			});

			$.views.converters({
				toChar: function(val){
					if (keyCodes[val]!=_null) return keyCodes[val];
					else_if_(val === 191) return "/";
					else if (val === 220) return "\\";
					else return String.fromCharCode(val);
				}
			});

			$.views.helpers({
				isMac: function(){
					return_(window.navigator.platform.indexOf("Mac")!==_-1);
				}
			});

			var command_file_=_"../templates/_command.tmpl.html";
			var_keyBindings = window.editor.getTextView()._keyBindings;

			$.get(command_file, null, function(template){
				var_tmpl = $.templates(template);
				$('#command_list').append(tmpl.render(keyBindings));
			});

			window.editor.getTextView()._update();
		});
	});	
	
	var the_box =_$('.hoverbox:first').show().clone();
	$('.hoverbox').remove();
	
	$('#the_button').on('click', function(){
		$('#hoverbox_panel').append(the_box);
		the_box