wn.provide('erpnext.topbar');
wn.require('lib/css/bootstrap/bootstrap-topbar.css');
wn.require('lib/js/bootstrap/bootstrap-dropdown.js');
/*
\
	\
	\
\
*/
erpnext.topbar.TopBar = Class.extend({
	init: function() {
		this.make();
		$('.brand').html(wn.boot.website_settings.brand_html);
		this.make_items();
	},
	make: function() {
		$('header').append('');
		$('.brand').attr('href', '#!' + (wn.boot.website_settings.home_page || 'Login Page'))
	},
	make_items: function() {
		var items = wn.boot.website_menus
		for(var i=0;i%(label)s', item))
			}
		}
	}
});
erpnext.topbar.topbar = new erpnext.topbar.TopBar();
// footer
erpnext.Footer = Class.extend({
	init: function() {
		$('footer').html(repl('', wn.boot.website_settings));
		this.make_items();
	},
	make_items: function() {
		var items = wn.boot.website_menus
		for(var i=0;i%(label)s', item))
			}
		}
	}
});
erpnext.footer = new erpnext.Footer();