NAME = Full Screen Web Page

USE_BODY2 = 1

CAN_EDIT_LINK = 1
CAN_EDIT_STYLE_COND = 1

INCLUDE_1 = 

BEGIN_BODY_ONLOAD

	<div id="[$DEF_name]Div" style="display: none;
	width: 1024px;
	height: 1024px;
	position: absolute; top: 0px; left: 0px;
	background: none;
	background-color: rgba(0, 0, 0, 1.0);
	">
		<iframe id="[$DEF_name]IFrame" scrolling="no" frameborder="0" src="[$DEF_linkURL]" visibility="visible" style="display: block;
		width: 1024px;
		height: 1024px;
		position: absolute; top: 0px; left: 0px;
		background: none;
		background-color: rgba(0, 0, 0, 1.0);
		">
		</iframe>
 
  	</div>
  	
END_BODY_ONLOAD

BEGIN_ONLOAD

  [$DEF_name]Load();

END_ONLOAD

BEGIN_DEFINITION

	var [$DEF_name]Interval 			= 100;
	var [$DEF_name]IntervalID 			= 0;
	var [$DEF_name]LastVisible			= -1;
	var	[$DEF_name]LastAngle			= -1;

	function [$DEF_name]Load()
	{
		var	visible = 0;
		
		updateConditions();
		
		//---
		
		[$STYLE_CONDITIONS]
		
		//---
		
		try // these methods are only available on our own pages
		{
			if (visible)
			{
				document.getElementById('[$DEF_name]IFrame').contentWindow.hidePage(0);

				if ([$DEF_name]LastAngle != gCond_DeviceAngle)
				{
					document.getElementById('[$DEF_name]IFrame').contentWindow.setAngle(gCond_DeviceAngle);
					document.getElementById('[$DEF_name]IFrame').contentWindow.updateOrientation();
					
					[$DEF_name]LastAngle = gCond_DeviceAngle;
				}
			}
			else
			{
				document.getElementById('[$DEF_name]IFrame').contentWindow.hidePage(1);
			}
		}
		
		catch (err)
		{}
		
		if ([$DEF_name]LastVisible != visible)
		{	
			if (visible)	
			{
				document.getElementById("Secondary").style.display = 'block';  
				
				document.getElementById('[$DEF_name]IFrame').style.visibility = 'visible';
				document.getElementById("[$DEF_name]Div").style.display	= 'block';  
				hidePage(1);
			}
			else			
			{
				document.getElementById("Secondary").style.display = 'none';  // otherwise *links* on 'Main' are disabled!

				hidePage(0);
				document.getElementById('[$DEF_name]IFrame').style.visibility = 'hidden';
				document.getElementById("[$DEF_name]Div").style.display	= 'none';   
			}
		}

		[$DEF_name]LastVisible = visible;
		
		//---
		
		if ([$DEF_name]IntervalID)
		{
			clearInterval( [$DEF_name]IntervalID );
			[$DEF_name]IntervalID = 0;
		}
		
		if ([$DEF_name]Interval)
			[$DEF_name]IntervalID = setInterval([$DEF_name]Load, [$DEF_name]Interval);
	}

END_DEFINITION

BEGIN_COND_ACTION_MENU
	
	BEGIN_ENTRY
		DESC = Do Nothing
		CODE = 0
		VAR = 
		DEFAULT = 0
		MIN = 0
		MAX = 0
	END_ENTRY
	
	BEGIN_ENTRY
		DESC = Show, otherwise Hide
		CODE = 1
		VAR = visible
	END_ENTRY
	
	BEGIN_ENTRY
		DESC = Show
		CODE = 2
		VAR = visible
	END_ENTRY
	
	BEGIN_ENTRY
		DESC = Hide
		CODE = 3
		VAR = visible
	END_ENTRY
	
END_COND_ACTION_MENU

BEGIN_DEF

	DEF_name = 
	DEF_linkURL = http://iFuntastic.com
	DEF_linkName = iFuntastic

END_DEF

BEGIN_COND
END_COND

BEGIN_STYLE_COND
END_STYLE_COND

BEGIN_STYLE
END_STYLE

BEGIN_DEFAULT_STYLE
END_DEFAULT_STYLE
