/*******************************************************************************
*                                                                              *
*                                                                              *
*  tiki.js                                                                 *
*                                                                              *
*                                                                              *
*******************************************************************************/

//------------------------------------------------------------------------------
// Index object                                                             
//------------------------------------------------------------------------------

Index =
{
	run: function()
	{
		this.include('swfobject.js');
		this.include('swfmacmousewheel.js');
				
		/*
		document.onblur = function()
		{
			if (document.getElementById('index').onDocBlur)
				document.getElementById('index').onDocBlur();
		}
		document.onfocus = function()
		{
			if (document.getElementById('index').onDocFocus)
				document.getElementById('index').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>');
	}
};


//------------------------------------------------------------------------------
// Index initialization                                                          
//------------------------------------------------------------------------------

Index.run();
