NAME = Web Page

CAN_EDIT_STYLE = 1
CAN_EDIT_STYLE_COND = 1
IS_IFRAME = 1

BEGIN_BODY_ONLOAD

	<div id="[$DEF_name]Div" style="display: block;
	background-color: rgba(255,255,255,1.0);
	[$STYLE_height]
	[$STYLE_width]
	[$STYLE_margin]
	[$STYLE_border]
	[$STYLE_border-top]
	[$STYLE_border-bottom]
	[$STYLE_border-left]
	[$STYLE_border-right]
	[$STYLE_position_element]
	[$STYLE_transform]
	min-height: 10px;
	overflow: hidden;
	">

		<span id="[$DEF_name]Span" class="small" style="
		position: relative; top: 0px; left: 0px;
		">
		</span>

	</div>

END_BODY_ONLOAD

BEGIN_ONLOAD

    [$DEF_name]Load();
    
    if ([$DEF_name]Interval)
    	setInterval([$DEF_name]Load, [$DEF_name]Interval);
	
END_ONLOAD

BEGIN_DEFINITION

	var [$DEF_name]Interval = 1000 * [$DEF_interval];
	var [$DEF_name]LastShown = 0;

	function [$DEF_name]Load()
	{
		var CurrentTimestamp = new Date();

		if ([$DEF_name]LastShown + [$DEF_name]Interval - 1000 <= CurrentTimestamp.getTime())
		{
			var topPos = [$DEF_top];
			var leftPos = [$DEF_left];
			
			document.getElementById('[$DEF_name]Span').innerHTML =  '<iframe width="[$DEF_width]" height="[$DEF_height]" scrolling="[$DEF_scroll]" frameborder="0" src="[$DEF_address]"></iframe>';
			
		//	if (ON_DEVICE)
		//		topPos -= 12;
				
			document.getElementById('[$DEF_name]Span').style.pixelTop	= topPos;
			document.getElementById('[$DEF_name]Span').style.pixelLeft	= leftPos;
			
			CurrentTimestamp = new Date();
			[$DEF_name]LastShown = CurrentTimestamp.getTime();
		}
	}

END_DEFINITION

BEGIN_DEF

	DEF_name = 
	DEF_width = 300
	DEF_height = 200
	DEF_top = 0
	DEF_left = 0
	DEF_scrollH = 1
	DEF_scrollV = 1
	DEF_address = http://iFuntastic.com
	DEF_interval = 0

END_DEF

BEGIN_STYLE

	STYLE_height = 300px;
	STYLE_width = 200px;
	STYLE_position_element = absolute; top: 0px; left: 0px;
	STYLE_position_content = relative; top: 0px; left: 0px;
	STYLE_transform = none;
	STYLE_margin = 0px 0px 0px 0px;
	STYLE_border = none;
	STYLE_border-top = none;
	STYLE_border-bottom = none;
	STYLE_border-left = none;
	STYLE_border-right = none;

END_STYLE
