/*	

hg_init.js v1.0

mercury (Hg) bootstrap script
part of the mercury (Hg) client-side script library
more information/downloads available at: http://mercury.cashmusic.org

requires:
mootools v 1.2
HgCore

usage:
provides domready block, any module customizations, custom routines and 
Hg initialization — THIS FILE SHOULD *NOT* BE COMPRESSED to allow for debug
and any quick changes

*/
var Hg; // store Hg main object in global namespace
window.addEvent('domready', function(){
	// 0. pre-Hg page-specific code:

	// 1. assign new HgCore object to Hg, set events
	Hg = new HgCore();
	
	// 2. allow for customizations, event listeners, additional module definitions
	// 3. call Hg.bootstrap() to autoload necessary modules
	Hg.bootstrap();
	
	// 4. call Hg.loadModule('name') for any non-automated modules necessary for page scripts
	// 5. call Hg.injectScript('url') for any additional scripts needed
	// 6. post-Hg page-specific code:

});
// page-specific code BEFORE domready:

// working on a more elegant solution to document.write 