/*******************************************************************************
*                                                                              *
*                                                                              *
*  highlife.js                                                                 *
*                                                                              *
*                                                                              *
*******************************************************************************/

//------------------------------------------------------------------------------
// Main object                                                                  
//------------------------------------------------------------------------------

Main =
{
	run: function()
	{
		this.include('swfobject.js');
		this.include('swfmacmousewheel.js');
				
		/*
		document.onblur = function()
		{
			if (document.getElementById('main').onDocBlur)
				document.getElementById('main').onDocBlur();
		}
		document.onfocus = function()
		{
			if (document.getElementById('main').onDocFocus)
				document.getElementById('main').onDocFocus();
		}*/
	},
	
	include: function(jsFile)
	{
		// with document.write we're sure that the script will be loaded and 
		// executed just after the current script and in the correct order 
		document.write('<script'
			+' type="text/javascript"'
			+' src="js/' +jsFile +'"></script>');
	}
};


//------------------------------------------------------------------------------
// Main initialization                                                          
//------------------------------------------------------------------------------

Main.run();
