	/*
	
		Generic interface for queueing onload events
	
	*/
	
	function register_onload_event( method )
	{
		if( typeof window.addEventListener != "undefined" )
		{
			window.addEventListener( "load", method, false );
		}
		else
		if( typeof window.attachEvent != "undefined" )
		{
			window.attachEvent( "onload", method );
		}
		else
		{
			if( window.onload != null )
			{
				var oldevent	=	window.onload;
				window.onload	=	function ( e )
									{
										oldevent( e );
										method();
									};
			}
			else
			{
				window.onload	=	method;
			}
		}
	}
	
	/*
	
		Flip flop the display divs
	
	*/
	
	function ShowMainContentBlock()
	{
		iDiv	=	document.getElementById( 'ares-body-interstitial' );
		mDiv	=	document.getElementById( 'ares-body-maincontent' );
		
		if( iDiv && mDiv )
		{
			iDiv.style.display	=	'none';
			mDiv.style.display	=	'block';
		}
	}
	
	/*
	
		This function is the core on load handler - if calls a custom load handler if it exists
	
	*/
	
	function DefaultInterstitialOnLoadHandler()
	{
		ShowMainContentBlock();
		
		if( typeof BundleInterstitialOnLoadHandler == "function" )
		{
			BundleInterstitialOnLoadHandler();
		}
	}
	
	register_onload_event( DefaultInterstitialOnLoadHandler );
	