/*
    * Browser.Engine.trident - (boolean) True if the current browser uses the trident engine (e.g. Internet Explorer).
    * Browser.Engine.gecko - (boolean) True if the current browser uses the gecko engine (e.g. Firefox, or any Mozilla Browser).
    * Browser.Engine.webkit - (boolean) True if the current browser uses the webkit engine (e.g. Safari, Google Chrome, Konqueror).
    * Browser.Engine.presto - (boolean) True if the current browser uses the presto engine (e.g. Opera 9).
    * Browser.Engine.name - (string) The name of the engine.
    * Browser.Engine.version - (number) The version of the engine. (e.g. 950)
    * Browser.Plugins.Flash.version - (number) The major version of the flash plugin installed.
    * Browser.Plugins.Flash.build - (number) The build version of the flash plugin installed.

*/
// SPLASH PAGE JS
function initSplash()
{	
	if( $('enterLink') != null && $('flashLink') != null)
	{
		$('mover').slide('hide');
	
		$('enterLink').slide('hide');
		
		var ins = new Fx.Slide('instructions');
			ins.hide();
		if (Browser.Plugins.Flash.version < 10)
		{
			
			
			$('getFlash').addEvent('mouseover', function(){
				ins.slideIn().chain(function (){this.slideOut.delay(8000,this);});
	
			$('splashCont').addEvent('click', function(){
				$('splashCont').slide('out');
				$('mover').slide('in');
				$('splashLogo').style.cursor = 'pointer';
			});
		
			$('splashLogo').addEvent('click', function(){
				$('splashCont').slide('in');
				$('mover').slide('out');
				$('splashLogo').style.cursor = 'default';
			})
		
			})
		}
		else
		{
			$('flashLink').slide('hide');
			$('splashCont').addEvent('click', function(){
				$('splashCont').slide('out');
				$('mover').slide('in');
				$('splashLogo').style.cursor = 'pointer';
				$('enterLink').slide('in');
			});
		
			$('splashLogo').addEvent('click', function(){
				$('splashCont').slide('in');
				$('mover').slide('out');
				$('splashLogo').style.cursor = 'default';
				$('enterLink').slide('out');
			})
			
		}		
	}
}
//MAINPAGE JS
function initMain()
{
	if($('footerIndex') != null)
	{
		$('pageContent').slide('hide');
		$('footerIndex').slide('hide');
	}
}
//---------------

window.addEvent('domready',function(){
	initSplash();
	initMain();
});
