Trying 185.156.199.239...
Connected to 185.156.199.239.
Escape character is '^]'.
HTTP/1.0 200 Document follows
Server: ADH-Web
Content-type: text/html

<html>
<head>
	<meta http-equiv="Pragma" content="no-cache">
	<meta http-equiv="cache-control" content="no-cache">
	<meta name="author" content="AD Group Plc">
	<meta name="copyright" content="Copyright 2008 - AD Group and all subsidiaries. All rights reserved.">
	<meta http-equiv=Content-Type content="text/html; charset=utf-8">
	<title>Console Control</title>
	<style type="text/css">
	<!--
		.titlestyle
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: left;
			color: Black;
			background-color: LightGrey;
			z-index:1;
		}
		.timestyle
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 160px;
			height: 18px;
			color: Black;
			background-color: LightGrey;
			z-index:2;
		}
		.statstyle
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 50px;
			height: 18px;
			color: Black;
			background-color: LightGrey;
			z-index:2;
		}
		.monidentifierstyle
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 120px;
			height: 18px;
			color: Black;
			background-color: LightGrey;
			z-index:2;
		}
		.hidden
		{
			visibility: hidden;
		}
		.visible
		{
			visibility: visible;
		}
		.eventstyle
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			position: absolute;
			top: 18px;
			left: 5px;
			color: White;
			background-color: Black;
			z-index:1;
		}
		.timelinestyle
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			height: 18px;
			color: Black;
			background-color: LightGrey;
			visibility: hidden;
			z-index: 1;
		}
		.timeline_datetime
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			height: 18px;
			padding:1px;
			color: Black;
			background-color: LightGrey;
			visibility: hidden;
			z-index: 1;
			cursor:default;
		}
		.timeline_field
		{
			border: 1px solid LightGrey;
			padding-left:1px;
			padding-right:1px;
			cursor:default;
		}
		.gps_field
		{
			font-family: courier;
			font-size: 16px;
			color: #FFFFFF;
			text-align: center;
			width: 500px;
			background-color: Black;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			visibility: visible;
			z-index:1;
		}
		.recwarn_field
		{
			font-family: courier;
			font-size: 16px;
			color: #FF3333;
			text-align: center;
			width: 500px;
			background-color: Black;
			padding: 0;
			margin: 0;
			border: 0;
			visibility: visible;
			z-index:1;
		}
		.radar_field
		{
			font-family: courier;
			font-size: 16px;
			color: #FFFFFF;
			text-align: center;
			width: 500px;
			background-color: Black;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			visibility: visible;
			z-index:1;
		}
		.alm_overlay
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 60px;
			background-color: Black;
			color: #444444;
			padding: 0;
			margin: 0;
			border: 0;
			visibility: visible;
			z-index:1;
		}
		.ChanInput
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			color: #FFFFFF;
			text-align: center;
			width: 50px;
			background-color: Black;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			visibility: visible;
			z-index:1;
		}
		.RedButton
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 80px;
			height: 18px;
			background-color: Red;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			z-index:1;
		}
		.GreenButton
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 80px;
			height: 18px;
			background-color: Green;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			z-index:1;
		}
		.YellowButton
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 80px;
			height: 18px;
			background-color: Yellow;
			color: Black;
			padding: 0;
			margin: 0;
			border: 0;
			z-index:1;
		}
		.BlueButton
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 80px;
			height: 18px;
			background-color: Blue;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			z-index:1;
		}
		.PurpleButton
		{
			font-family: Arial ,helvetica , sans-serif;
			font-size: 16px;
			text-align: center;
			width: 80px;
			height: 18px;
			background-color: Purple;
			color: White;
			padding: 0;
			margin: 0;
			border: 0;
			z-index:1;
		}
		.seg_cam_select
		{
			position:absolute;
			z-index:10;
			width:180px;
			border:1px solid #000000;
		}
		.seg_cam_select_title
		{
			background-color:#000000;
			color:#FFFFFF;
			font-weight:bold;
			cursor:default;
			height:30px;
		}
		.seg_cam_select_up, .seg_cam_select_down
		{
			background-color:#557FFF;
			text-align:center;
			border-bottom:1px solid #000000;
			color:#000000;
			height:15px;
			cursor:default;
		}
		.seg_cam_select_up
		{
			border-bottom:1px solid #000000;
		}
		.seg_cam_select_down
		{
			border-top:1px solid #000000;
		}
		.seg_cam_select_row, .seg_cam_select_row_alt
		{
			background-color:#FFFFFF;
			height:30px;
			cursor:default;
		}
		.seg_cam_select_row_alt
		{
			background-color:#E6E6E6;
		}
		.notification
		{
			position:absolute;
			left:0px;
			top:0px;
			width:250px;
			height:70px;
			border:1px solid #0000FF;
			background-color:#EEEEFF;
			z-index:100;
		}
		.notification_text
		{
			margin:4px;
			margin-left:30px;
		}
	-->
	</style>

<script language="JavaScript" type="text/javascript">
	function unloadPageFunction()
	{
		if(top.close_tlm != undefined)
		{
			debug("DEBUG: unloadPageFunction: Calling close_tlm...");
			top.close_tlm();
		}
		else
		{
			debug("DEBUG: unloadPageFunction: Unloading entire system...");
		}
	}
	
	function create_display()	
	{
		var str = '';
		var i, str_class_name, int_cam_index;

		str += '<form name="frmMain" onSubmit="return false;">\n';
		
		str += '<table id="COPYREVIEWLIST" style="z-index:1; visibility:hidden; border-collapse:collapse; position:absolute; left:10px; top:' + (top.active_height[top.vo_active_config[0]]-270) + '; width:350px; height:180px; border:1px solid #000000;">\n';
		str += '	<tr><td colspan="4" style="height:20px; text-align:center; font-weight:bold; background-color:#000000; color:#FFFFFF;">Copy Event List</td></tr>\n';
		var str_copy_event_row_colour = "CCCCCC";
		for(var int_copy_event_index=0; int_copy_event_index<top.int_max_copy_entries; int_copy_event_index++)
		{
			if(str_copy_event_row_colour=="CCCCCC") str_copy_event_row_colour = "EEEEEE"; else str_copy_event_row_colour = "CCCCCC";
			str += '	<tr>\n';
			str += '		<td style="width:5%; height:15px; background-color:#' + str_copy_event_row_colour + ';">' + (int_copy_event_index+1) + ': </td>\n';
			str += '		<td style="width:45%; height:15px; background-color:#' + str_copy_event_row_colour + ';"><div id="COPYREVIEWLIST_S' + (int_copy_event_index+1) + '" style="text-align:center;">---</div></td>\n';
			str += '		<td style="width:5%; height:15px; background-color:#' + str_copy_event_row_colour + '; text-align:center;">-&gt;</td>\n';
			str += '		<td style="width:45%; height:15px; background-color:#' + str_copy_event_row_colour + ';"><div id="COPYREVIEWLIST_E' + (int_copy_event_index+1) + '" style="text-align:center;">---</div></td>\n';
			str += '	</tr>\n';
		}
		str += '</table>\n';
		gps_top 	= 475;
		alm_top 	= 475;
		radar_top 	= 475;
		recwarn_top	= 475;
		gps_left 	= 4
		radar_left  = 4;
		alm_left 	= 4;
		recwarn_left= 4;
		if(top.features & top.FEATURE_GPS)
		{
			str += '<input type="text" class="gps_field" id="gps_loc" style="position:absolute; text-align:center; '+ top.style_xy_str(top.mainmon_text_style,gps_left,gps_top) +'" value="No GPS Signal" />';
			alm_top 	-= 18;
			radar_top 	-= 18;
			recwarn_top	-= 18;
		}
		if(top.features & top.FEATURE_RADAR)
		{
			str += '<input type="text" class="radar_field" id="radar_data" style="position: absolute; '+ top.style_xy_str(top.mainmon_text_style,radar_left,radar_top) +'" value="No Radar Signal" />';
			alm_top 	-= 18;
			recwarn_top	-= 18;
		}
		alm_count 	= 0;
		for(i=0;i<32;i++)
		{
			if(top.alm_display_text[i] != '1')
				continue;
			else
			{ 
				str += '<div class="alm_overlay" id="alm_field_'+i+'" style=" position: absolute; '+ top.style_xy_str(top.mainmon_text_style,alm_left,alm_top) +'">'+top.alarm_title[i]+'</div>';
				alm_left += 63;
				alm_count +=1;
			}
			if(alm_count>=10)
				break;
		}
		if(alm_count > 0)
			recwarn_top += 18;
		system_up = top.GetCgiResponse(location.protocol + "//" + location.host + "/variable.cgi?variable=system_up_state");
		system_up = parseInt(system_up);
		label = '';
		if(top.record_fail_reboot_counter >=0 || system_up != 10)
			label = '<font color=#FF5555>Warning: Not Recording</font>';
		str += '<div class="recwarn_field" id="recwarn_data" style="position: absolute; '+ top.style_xy_str(top.mainmon_text_style,recwarn_left,recwarn_top) +'; visibility:hidden;">'+label+'</div>';

		str += '<div class="timeline_datetime" style="' + top.style_xy_str("width:270px; text-align:center; border:1px solid #000000; ",top.active_width[top.vo_active_config[0]]/2-135,top.timeline_y - 25 ) + '" id="timeline_datetime">';
		str += '<span class="timeline_field" id="timeline_datetime_hour" onclick="top.timelineShowInput(top.cur_disp[0], \'hour\');">HH</span>:';
		str += '<span class="timeline_field" id="timeline_datetime_min" onclick="top.timelineShowInput(top.cur_disp[0], \'min\');">MM</span>:';
		str += '<span class="timeline_field" id="timeline_datetime_sec" onclick="top.timelineShowInput(top.cur_disp[0], \'sec\');">SS</span> ';
		str += '<span class="timeline_field" id="timeline_datetime_ampm" onclick="top.timelineShowInput(top.cur_disp[0], \'ampm\');"></span> ';
		str += '<span class="timeline_field" id="timeline_datetime_day" onclick="top.timelineShowInput(top.cur_disp[0], \'day\');">DD</span> ';
		str += '<span class="timeline_field" id="timeline_datetime_month" onclick="top.timelineShowInput(top.cur_disp[0], \'month\');">MN</span> ';
		str += '<span class="timeline_field" id="timeline_datetime_year" onclick="top.timelineShowInput(top.cur_disp[0], \'year\');">YYYY</span> ';
		str += '</div>\n';
		str += '<input class="timelinestyle" size = "6" style = "' + top.style_xy_str("width:60px; ",((top.active_width[top.vo_active_config[0]]/2)-(top.timeline_width/2)),top.timeline_y - 25) + '" type="button" name="timeline_lefttime" readonly>\n';
		str += '<input class="GreenButton" style = "' + top.style_xy_str("visibility:hidden;",((top.active_width[top.vo_active_config[0]]/2)-(top.timeline_width/2))+65,top.timeline_y - 25) + '" type="button" name="timeline_left_btngreen" onclick="top.exec_key(top.RMT_GREEN)" readonly/>\n';
		str += '<input class="YellowButton" style = "' + top.style_xy_str("visibility:hidden;",((top.active_width[top.vo_active_config[0]]/2)+(top.timeline_width/2))-150,top.timeline_y - 25) + '" type="button" name="timeline_right_btnyellow" onclick="top.exec_key(top.RMT_YELLOW)" readonly/>\n';
		str += '<input class="timelinestyle" size = "6" style = "' + top.style_xy_str("width:60px; ",((top.active_width[top.vo_active_config[0]]/2)+(top.timeline_width/2))-65,top.timeline_y - 25) + '" type="button" name="timeline_righttime" readonly>\n';
		str += '<input class="timelinestyle" style="' + top.style_xy_str("width:60px; ",((top.active_width[top.vo_active_config[0]]/2)-(top.timeline_width/2)),top.timeline_y - 115) + '" type="button" name="timeline_mark" value="' + top.check_lang("Mark") + '" onclick="top.archiveMarkCopyEvent(); top.screen_focus.focus();" />\n';
		str += '<input class="timelinestyle" style="' + top.style_xy_str("width:60px; ",((top.active_width[top.vo_active_config[0]]/2)-(top.timeline_width/2)),top.timeline_y - 85) + '" type="button" name="timeline_clear" value="' + top.check_lang("Clear") + '" onclick="top.archiveRemoveLastEvent(); top.screen_focus.focus();" />\n';
		str += '<input class="timelinestyle" style="' + top.style_xy_str("width:60px; ",((top.active_width[top.vo_active_config[0]]/2)-(top.timeline_width/2)),top.timeline_y - 55) + '" type="button" name="timeline_archive" value="' + top.check_lang("Archive") + '" onclick="top.archiveLoadOverview(); top.screen_focus.focus();" />\n';

		
		for(var int_monitor_index=0; int_monitor_index<top.int_total_monitors; int_monitor_index++)
		{
			if(int_monitor_index==0 || !top.digital_spot_enabled || top.capability.is_decoder)
			{
				// Console system info
				str += '<input class="monstatusstyle" style="' + top.style_xy_str(top.mainmon_text_style+" visibility: hidden;",(top.arr_monitor_x_offsets[int_monitor_index]+5),top.active_height[top.vo_active_config[int_monitor_index]]-40) + '"';
				str += ' type="input" value="" name="console_status' + int_monitor_index +'" ';
				str += 'id="console_status' + int_monitor_index +'" onkeypress="return top.keyhand(event);" readonly />';
				
				str += '<input class="timestyle" style="' + top.style_xy_str(top.mainmon_text_style+" visibility: hidden;",(top.arr_monitor_x_offsets[int_monitor_index]+5),top.active_height[top.vo_active_config[int_monitor_index]]-40) + '"';
				str += ' type="input" value="' + top.check_lang("Monitor") + ':1" name="monitor_status' + int_monitor_index +'" ';
				str += 'id="monitor_status' + int_monitor_index +'" onkeypress="return top.keyhand(event);" readonly />';
				
				if(top.capability.show_time_date)
					str += '<input class="timestyle" style = "' + top.style_xy_str(top.mainmon_text_style,(top.arr_monitor_x_offsets[int_monitor_index]+5), top.active_height[top.vo_active_config[int_monitor_index]]-20) + '"';
				else
					str += '<input class="timestyle" style = "' + top.style_xy_str(top.mainmon_text_style+" visibility: hidden;",(top.arr_monitor_x_offsets[int_monitor_index]+5), top.active_height[top.vo_active_config[int_monitor_index]]-20) + '"';
				str += 'type="input" value="time" name="time_date'+int_monitor_index+'" ';
				str += 'onclick="top.softkeysDisplay(true);" onkeypress="return top.keyhand(event)" />';
				
				if(top.capability.show_video_status)
					str += '<input class="statstyle" style="' + top.style_xy_str(top.mainmon_text_style,(top.arr_monitor_x_offsets[int_monitor_index]+170),top.active_height[top.vo_active_config[int_monitor_index]]-20) + '"';
				else				
					str += '<input class="statstyle" style="' + top.style_xy_str(top.mainmon_text_style+" visibility: hidden;",(top.arr_monitor_x_offsets[int_monitor_index]+170),top.active_height[top.vo_active_config[int_monitor_index]]-20) + '"';
				str += ' type="input" value="LIVE" name="stat' + int_monitor_index +'" id="stat' + int_monitor_index + '" ';
				str += 'onkeypress="return top.keyhand(event);" onfocus="top.statFocused();" readonly />';
				
				str += '<input class="monidentifierstyle" style="' + top.style_xy_str(top.mainmon_text_style+" visibility: hidden; ",(top.active_width[top.vo_active_config[int_monitor_index]]-125),top.active_height[top.vo_active_config[int_monitor_index]]-40) + '"';
				str += ' type="input" value="" name="mon_identifier' + int_monitor_index +'" id="mon_identifier' + int_monitor_index +'"';
				str += 'onkeypress="return top.keyhand(event);" onfocus="top.statFocused();" readonly />';
			}
		}

		str += top.generateTextInImage();
		
		if(top.safemode!="" && top.safemode!="undefined")
		{
			str += '<div style = "' + top.style_xy_str("z-index:1; width:300px; height:20px; background-color:#FFFFFF; text-align:center; padding:5px; ",170,top.active_height[top.vo_active_config[0]]-72) + '">';
			str += '<strong>Currently in Safe Mode [' + top.safemode + ']</strong>';
			str += '</div>';
		}

		str += '<input class="hidden" style="' + top.style_xy_str(top.mainmon_text_style,10,10) + '" type="input" value="--" name="chaninput" />';

		str += '<img style="' + top.style_xy_str("",((top.active_width[top.vo_active_config[0]]/2)-(top.timeline_width/2)),top.timeline_y) + '"';
		str += ' class="hidden" src="viewer/scaleQuarterHrMin.gif" id="timeline" name="timeline" height="20" width="640"';
		str += ' onclick="top.timelineClick(event,top.cur_disp[0]);" />';

		if (top.capability.telem_display == true && !top.sd_controller_mode)
			str += top.telemetry_controls.generateHTML();

		var int_timeout_box_left = ((top.active_width[top.vo_active_config[0]]/2)-200);
		var int_timeout_box_right = (top.active_height[top.vo_active_config[0]]-200);
		var str_timeout_box_style = " z-index:1; visibility:hidden; width:400px; height:100px; border:1px solid #000000; background-color:#FFFFFF; ";
		str += '<div id="dialup_timeout_box" style = "' + top.style_xy_str(str_timeout_box_style,int_timeout_box_left,int_timeout_box_right) + '">';
		str += '	<div style="' + top.style_xy_str(" font-weight:bold; font-size:24px; ",50,5) + '">System due to go into standby</div>';
		str += '	<div id="dialup_timeout_message" style="' + top.style_xy_str("",10,40) + '">Going to standby in 10 seconds...</div>';
		str += '	<div style="' + top.style_xy_str("",10,70) + '">To cancel standby press any coloured button</div>';
		str += '</div>';

		str += top.generate_chan_map();

		debug("DEBUG: setting video object to " + top.active_width[top.vo_active_config[0]] + ", " + top.active_height[top.vo_active_config[0]]);
		str += '<OBJECT TYPE="video/adhbinary" NAME="video" ID="video" WIDTH="' + top.active_width[top.vo_active_config[0]] + '" HEIGHT="' + top.active_height[top.vo_active_config[0]] + '" style="border:0px solid #040404;">\n';
		str += '    <PARAM NAME=transparentcolor VALUE="#040404" >\n';
		str += '    <PARAM NAME=bgcolor VALUE="#040404" >\n';
		str += '    <PARAM NAME=bgdisplay VALUE="on" >\n';
		str += '    <PARAM NAME=displaymode VALUE="FULL" >\n';
		for (i=0; i<16;i++)
		{
			str += '    <PARAM NAME=segcam' + i + ' VALUE="' + (i+1) +'" >\n';
			str += '    <PARAM NAME=info' + i + ' VALUE="" >\n';
		}
		str += '    <PARAM NAME=url VALUE="" >\n';
		str += '    <PARAM NAME=graphicscmd VALUE="" >\n';
		str += '    <PARAM NAME=updatedecfunction VALUE="update_decode" >';
		str += '    <PARAM NAME=updatetextfunction VALUE="update_text" >';
		str += '    <PARAM NAME=updatemessagefunction VALUE="update_message" >';
		if(top.current_product.productBrand()=="TRVU")
			str += '    <PARAM NAME=updatevehiclefunction VALUE="update_vehicle" >';
		if(top.isObjectOrTripWireUnlocked())
		{
			debug("DEBUG: create_display: Adding presentation function param for analytics");
			str += '    <PARAM NAME=presentation_function VALUE="analytics_function" >';
		}

		var str_time_date_format = "dmy24";
		if(top.date_format==0)
		{
			if(top.time_format==0)
				str_time_date_format = "dmy12";
			else
				str_time_date_format = "dmy24";
		}
		else
		{
			if(top.time_format==0)
				str_time_date_format = "mdy12";
			else
				str_time_date_format = "mdy24";
		}
		debug("DEBUG: create_display: Setting video object time format (str_time_date_format) = " + str_time_date_format);
		str += '    <PARAM NAME=tdformat VALUE="' + str_time_date_format + '" >';
		str += '</OBJECT>\n';

		str += '<OBJECT class="hidden" TYPE="text/csv" NAME="notify" ID="notify" WIDTH=0 HEIGHT=0>\n';
		str += '	<PARAM NAME=url VALUE="">\n';
		str += '	<PARAM NAME=output_function VALUE="notify_reply">\n';
		str += '	<PARAM NAME=ending_function VALUE="notify_finished">\n';
		str += '	<PARAM NAME=format VALUE="">\n';
		str += '</OBJECT>\n';

		str += '<OBJECT class="hidden" TYPE="text/csv" NAME="read_event" ID="read_event" WIDTH=0 HEIGHT=0>\n';
		str += '	<PARAM NAME=url VALUE="">\n';
		str += '	<PARAM NAME=output_function VALUE="read_event_reply">\n';
		str += '	<PARAM NAME=ending_function VALUE="read_event_finished">\n';
		str += '	<PARAM NAME=format VALUE="">\n';
		str += '</OBJECT>\n';
		
		str += '<div id="seg_highlight" style="z-index:1; position:absolute; left:0px; top:0px; width:0px; height:0px; border:1px solid #FFFF00; visibility:hidden;"><!--Seg Highlight--></div>'
		str += '<div id="seg_cam_select" class="seg_cam_select" style="left:-200px; top:0px; visibility:hidden;">';
		str += '<div class="seg_cam_select_title">Select camera:</div>';
		str += '<div class="seg_cam_select_up">^</div>';
		str_class_name = "";
		for(int_cam_index=0; int_cam_index<8; int_cam_index++)
		{
			str += '<div id="seg_cam_select_' + int_cam_index + '" class="seg_cam_select_row' + str_class_name + '">Camera ' + (int_cam_index+1) + '</div>';
			if(str_class_name=="") str_class_name = "_alt";
			else str_class_name = "";
		}
		str += '<div class="seg_cam_select_down">v</div>';
		str += '</div>'
		
		str += '<img style="' + top.style_xy_str("z-index:50; visibility:hidden;", 20, 60) + '" id="vkeypad" name="vkeypad" src="/gui/viewer/keypad.jpg" onclick="top.handleVirtualKeypad(event);"/>\n';
		str += '<img style="' + top.style_xy_str("z-index:50; visibility:hidden;", 20, 60) + '" id="vkeypad2" name="vkeypad2" src="/gui/viewer/keypad2.jpg" onclick="top.handleVirtualKeypad(event);"/>\n';
		str += '<div id="helpList" style="z-index:1; visibility:hidden; position:absolute; left:0px; top:0px; width:0px; height:0px;"></div>';
		str += '<div id="helpVideoWindow" style="z-index:2; visibility:hidden; position:absolute; left:0px; top:0px; width:0px; height:0px;"></div>';
		
		// Event basic filtering options
		var int_form_y = 5;
		var int_form_y_space = 22;
		var str_focus_code = 'this.style.color=\'#FFFFFF\'; this.style.backgroundColor=\'#557FFF\';';
		var str_blur_code = 'this.style.color=\'#000000\'; this.style.backgroundColor=\'#FFFFFF;\';';
		
		str += '<div id="event_filter_form" style="z-index:300; visibility:hidden; position:absolute; ';
		str += 'left:' + -400 + 'px; top:' + (top.status_y-200) + 'px; ';
		str += 'width:0px; height:0px; border:1px solid #000000; background-color:#E6E6E6;">';
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">Time</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="" ';
		str += 'id="event_filter_starttime" name="event_filter_starttime" onclick="top.input_click()" ';
		str += 'onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">Date</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="" ';
		str += 'name="event_filter_startdate" onclick="top.input_click()" onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">Cameras</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="1-' + top.sys_cams + '" ';
		str += 'name="event_filter_cameras" onclick="top.input_click()" onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">Text</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="1-' + top.sys_cams + '" ';
		str += 'name="event_filter_text" onclick="top.input_click()" onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">Type</div>';
		str += '<img style="' + top.style_xy_str("", 100, int_form_y) + '" src="/gui/viewer/icon_event_all.gif" onclick="top.eventSetFilterType(\'all\');" />';
		str += '<img style="' + top.style_xy_str("", 140, int_form_y) + '" src="/gui/viewer/icon_event_alarm.gif" onclick="top.eventSetFilterType(\'alm\');" />';
		str += '<img style="' + top.style_xy_str("", 180, int_form_y) + '" src="/gui/viewer/icon_event_activity.gif" onclick="top.eventSetFilterType(\'vmd\');" />';
		str += '<img style="' + top.style_xy_str("", 220, int_form_y) + '" src="/gui/viewer/icon_event_gps.gif" onclick="top.eventSetFilterType(\'gps\');" />';
		str += '<img style="' + top.style_xy_str("", 260, int_form_y) + '" src="/gui/viewer/icon_event_system.gif" onclick="top.eventSetFilterType(\'sys\');" />';
		str += '<img style="' + top.style_xy_str("", 310, int_form_y) + '" src="/gui/viewer/icon_event_security.gif" onclick="top.eventSetFilterType(\'sec\');" />';
		int_form_y += 35;
		str += '<div style="' + top.style_xy_str("", 100, int_form_y) + '">All</div>';
		str += '<div style="' + top.style_xy_str("", 140, int_form_y) + '">Alarm</div>';
		str += '<div style="' + top.style_xy_str("", 180, int_form_y) + '">VMD</div>';
		str += '<div style="' + top.style_xy_str("", 220, int_form_y) + '">GPS</div>';
		str += '<div style="' + top.style_xy_str("", 260, int_form_y) + '">System</div>';
		str += '<div style="' + top.style_xy_str("", 310, int_form_y) + '">Security</div>';
		int_form_y += int_form_y_space;
		str += '<input type="checkbox" style="' + top.style_xy_str("", 100, int_form_y) + '" name="event_filter_type_all" checked onfocus="top.eventSetFilterType(\'all\');" />';
		str += '<input type="checkbox" style="' + top.style_xy_str("", 140, int_form_y) + '" name="event_filter_type_alm" onfocus="top.b_reset_screen_focus=false;" onfocus="top.eventSetFilterType(\'alm\');" />';
		str += '<input type="checkbox" style="' + top.style_xy_str("", 180, int_form_y) + '" name="event_filter_type_vmd" onfocus="top.b_reset_screen_focus=false;" onfocus="top.eventSetFilterType(\'vmd\');" />';
		str += '<input type="checkbox" style="' + top.style_xy_str("", 220, int_form_y) + '" name="event_filter_type_gps" onfocus="top.b_reset_screen_focus=false;" onfocus="top.eventSetFilterType(\'gps\');" />';
		str += '<input type="checkbox" style="' + top.style_xy_str("", 260, int_form_y) + '" name="event_filter_type_sys" onfocus="top.b_reset_screen_focus=false;" onfocus="top.eventSetFilterType(\'sys\');" />';
		str += '<input type="checkbox" style="' + top.style_xy_str("", 310, int_form_y) + '" name="event_filter_type_sec" onfocus="top.b_reset_screen_focus=false;" onfocus="top.eventSetFilterType(\'sec\');" />';
		str += '</div>';
		
		// Activity filtering options
		int_form_y = 5;
		
		str += '<div id="event_activity_form" style="z-index:300; visibility:hidden; position:absolute; ';
		str += 'left:' + -400 + 'px; top:' + (top.status_y-150) + 'px; ';
		str += 'width:0px; height:0px; border:1px solid #000000; background-color:#E6E6E6;">';
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">From Time</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="" ';
		str += 'id="event_activity_starttime" name="event_activity_starttime" onclick="top.input_click()" ';
		str += 'onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">From Date</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="" ';
		str += 'name="event_activity_startdate" onclick="top.input_click()" onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">To Time</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="" ';
		str += 'name="event_activity_endtime" onclick="top.input_click()" ';
		str += 'onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">To Date</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="" ';
		str += 'name="event_activity_enddate" onclick="top.input_click()" onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		int_form_y += int_form_y_space;
		str += '<div style="' + top.style_xy_str("", 5, int_form_y) + '">Camera</div>';
		str += '<input style="' + top.style_xy_str("", 100, int_form_y) + '" type="text" value="1" ';
		str += 'name="event_activity_camera" onclick="top.input_click()" onkeypress="if(top.clickonrcenter(event,this)) return !top.keyhand(event); else return false;" ';
		str += 'onfocus="' + str_focus_code + '" onblur="' + str_blur_code + '" />';
		str += '</div>';
		str += '<div id="event_activity_grid" style="z-index:1; visibility:hidden; position:absolute; left:0px; top:0px; width:0px; height:0px;"></div>';
		
		// Progress form for archives
		str += '<div id="archive_progress" style="z-index:100; visibility:visible; position:absolute; ';
		str += 'left:' + (top.active_width[top.vo_active_config[0]]-230) + 'px; top:-100px; width:150px; height:30px; ';
		str += 'background-color:#000000; font-size:10px; font-weight:bold; color:#FFFFFF;">';
		str += top.check_lang('Archive currently in progress');
		str += '<div id="archive_progress_bar00_back" style="position:absolute; top:18px; left:5px; width:140px; height:5px; background-color:#555555;"></div>';
		str += '<div id="archive_progress_bar00_prog" style="position:absolute; top:18px; left:5px; width:0px; height:5px; background-color:#FFFF00;"></div>';
		str += '</div>';

		str += '</form>\n';
		return(str);
	}
	
 	top.firevu_console_mode_active = false;
	top.displayFrame = top.gui_core;
	top.ui_mode = "viewer";
	top.menu_level = 0;
	var read_event_reply = top.read_event_reply;
	var read_event_finished = top.read_event_finished;
	var update_decode = top.update_decode;
	var update_text = top.update_text;
	var update_message = top.update_message;
	var update_vehicle = top.update_vehicle;
	var notify_reply = top.notify_reply;
	var notify_finished = top.notify_finished;
	var analytics_function = top.processAnalyticsData;
	top.clearGlobalObjectCache();

	top.now_time = 1675981298;
	
	top.time_offset = 0;
	top.image_format = '1';
	top.image_res = '0';
	top.quad_res = '0';
	top.multi_res = '0';
	top.server1_full = '0';
	top.server2_full = '0';
	top.default_multi_layout = '-1';
	top.startup_camera = 2;
	top.startup_multi_layout = 0;
	top.date_format = 0;
	top.time_format = 1;
	
	if(top.date_format==undefined || top.date_format==null)
	{
		if(top.vid_std=="PAL")
			top.date_format = 0;
		else
			top.date_format = 1;
	}
	if(top.time_format==undefined || top.time_format==null)
		top.time_format = 0;
		
	top.rec_prof_res_names = new Array("4CIF","2CIF","CIF","QCIF","VGA","SVGA","UXGA","QVGA","Q2VGA","XGA","XGA+","SXGA+","QXGA","W288P","W576P","HD720","HD1080","Custom","W432P","W144P" ,0);

	top.product = 'EcoSense';
	top.features = 54;
	top.LocalDisplay = false;
	top.RemDisplay = false;
	if(top.softkey_timeout!="Undefined")
		top.button_time = parseInt(top.softkey_timeout)*1000;
	else
		top.button_time = 20000;
	top.telemetry_controls = new top.TelemetryControls(top.active_width[top.vo_active_config[0]]-70,30);	
	top.max_modes = 2;
	top.max_configs = 12;
	top.max_layouts_per_config = 10;
	top.max_segs_per_layout = 24;
	top.layout_name = new Array("FULL","QUAD","6WAY","7WAY","9WAY","10WAY","13WAY","16WAY","PinP","","FULL","QUAD","6WAY","7WAY","9WAY","10WAY","13WAY","16WAY","PinP","" ,"");
	top.active_width = new Array(640 ,640 ,0);
	top.active_height = new Array(512 ,512 ,0);
	top.start_pixel = new Array(40 ,40 ,0);
	top.start_line = new Array(32 ,32 ,0);
	top.video_mode = new Array(0 ,0 ,0);
	top.vo_active_config = new Array(0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0);
	top.layout_segments = new Array(1 ,4 ,6 ,7 ,9 ,10 ,13 ,16 ,2 ,0 ,1 ,4 ,6 ,7 ,9 ,10 ,13 ,16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0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0);
	
	var sw_version = '6.3 (18.0348) M4TP 2014-09-30 10:19';
	var int_sw_version = top.applicationVersion(sw_version);
	top.int_total_monitors = top.countBits(top.decompress_codec_mask);
	if((top.current_product.brand=="ECS" && top.current_product.level=="NVR") || top.current_product.brand=="NVR") top.int_total_monitors = 1;
	if((top.current_product.level=="NV4" || top.current_product.level=="NV8") && int_sw_version<=15)
	{
		debug("DEBUG: Detected software version for NV4/8 <15 so restricting to single monitor");
		top.int_total_monitors = 1;
		top.digital_spot_enabled = 0;
	}
	debug("DEBUG: Total detected monitors = " + top.int_total_monitors + "[decompress_codec_mask=" + top.decompress_codec_mask + "]");
	if(top.int_total_monitors==0) top.int_total_monitors = 1;
	
	if(top.int_total_monitors>1)
		set_popup_centre((top.active_width[top.vo_active_config[0]]/2),(top.active_height[top.vo_active_config[0]]/2));
	
	top.status_y = top.active_height[top.vo_active_config[0]] - 20;
	top.timeline_y = top.active_height[top.vo_active_config[top.int_decoder_current_monitor]] - 47;
	
	if(top.math32BitSupported())
	{
		top.demopoint1_date = 0;
		top.demopoint1_time = 0;
		top.demopoint1_offset = 0;
		top.demopoint2_date = 0;
		top.demopoint2_time = 0;
		top.demopoint2_offset = 0;
	}
	else
	{
		top.demopoint1_date = '0';
		top.demopoint1_time = '0';
		top.demopoint1_offset = '0';
		top.demopoint2_date = '0';
		top.demopoint2_time = '0';
		top.demopoint2_offset = '0';
	}
	top.demopoint1_cam = 0;
	top.demopoint2_cam = 0;
	top.demopoint1_system = 0;
	top.demopoint2_system = 0;
	
	if(top.cur_disp==null)
	{
		top.cur_disp = new Array(top.int_total_monitors);
		for(var int_monitor_index=0; int_monitor_index<top.int_total_monitors; int_monitor_index++)
		{
			top.cur_disp[int_monitor_index] = new top.disp_def(int_monitor_index);
			top.cur_disp[int_monitor_index].layout = top.startup_multi_layout;
			if(int_monitor_index==0)
			{
				if(top.startup_camera<1)
				{
					arr = new Array();
					for(z=0;z<top.max_layouts_per_config;z++)
						arr[z] = -1;
					top.cur_disp[int_monitor_index].show_custom = true;
					top.cur_disp[int_monitor_index].base_camera = arr;
				}
				else
				{
					base = top.startup_camera;
					top.cur_disp[int_monitor_index].cam = base;
					arr = new Array();
					for(z=0;z<top.max_layouts_per_config;z++)
						arr[z] = base;
					top.cur_disp[int_monitor_index].base_camera = arr;
				}
			}
		}
	}
	
	top.ButtonVisible = false;
	top.ChanState = 0;
	top.ChanValue = 0;
	top.io_open=false;
	top.vid_plugin_live = 1;
	
	top.site_name = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url1 = new Array("localhost","","","","","","","","","","","","","","","","","","","" );
	top.server_url2 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url3 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url4 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url5 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url6 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url7 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_url8 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name1 = new Array("Local","","","","","","","","","","","","","","","","","","","" );
	top.server_name2 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name3 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name4 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name5 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name6 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name7 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_name8 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask1 = new Array("65535","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask2 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask3 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask4 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask5 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask6 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask7 = new Array("","","","","","","","","","","","","","","","","","","","" );
	top.server_cam_mask8 = new Array("","","","","","","","","","","","","","","","","","","","" );
	if(top.math32BitSupported())
	{
		for(var int_site_index=0; int_site_index<top.TOTAL_SITES; int_site_index++)
		{
			top.server_cam_mask1[int_site_index] = parseInt(top.server_cam_mask1[int_site_index]);
			top.server_cam_mask2[int_site_index] = parseInt(top.server_cam_mask2[int_site_index]);
			top.server_cam_mask3[int_site_index] = parseInt(top.server_cam_mask3[int_site_index]);
			top.server_cam_mask4[int_site_index] = parseInt(top.server_cam_mask4[int_site_index]);
			top.server_cam_mask5[int_site_index] = parseInt(top.server_cam_mask5[int_site_index]);
			top.server_cam_mask6[int_site_index] = parseInt(top.server_cam_mask6[int_site_index]);
			top.server_cam_mask7[int_site_index] = parseInt(top.server_cam_mask7[int_site_index]);
			top.server_cam_mask8[int_site_index] = parseInt(top.server_cam_mask8[int_site_index]);
		}
	}
	top.system_str = new Array();
	top.system_cam_no = new Array();
	top.system_ip_str = new Array();
	top.system_title = new Array();
	top.system_serv_no = new Array();
	top.system_site_no = new Array();
	top.max_cam = 0; // Total number of cameras on the server
	top.base = 1;
	top.dialup_timeout = 0;
	top.ptz_mode = false;
	
	top.pageload_date = new Date();
	top.pageload_julian = Math.floor(top.pageload_date.getTime()/1000);
	top.gotolive_julian = 0;
	
	top.int_map_mode = top.MAP_HIDDEN;
	top.system_map_hotspot_graphic = '/maps/system-select.gif';
	top.system_map_hotspots = new Array("30x30","61x72x32","155x72x32","249x72x32","343x72x32","437x72x32","61x147x32","155x147x32","249x147x32","343x147x32","437x147x32","61x222x32","155x222x32","249x222x32","343x222x32","437x222x32","61x297x32","155x297x32","249x297x32","343x297x32","437x297x32" );
	top.map_hotspot_graphic1 = '/maps/camera-select-16.gif';
	top.map_hotspots1 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic2 = '/maps/camera-select-16.gif';
	top.map_hotspots2 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic3 = '/maps/camera-select-16.gif';
	top.map_hotspots3 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic4 = '/maps/camera-select-16.gif';
	top.map_hotspots4 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic5 = '/maps/camera-select-16.gif';
	top.map_hotspots5 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic6 = '/maps/camera-select-16.gif';
	top.map_hotspots6 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic7 = '/maps/camera-select-16.gif';
	top.map_hotspots7 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic8 = '/maps/camera-select-16.gif';
	top.map_hotspots8 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic9 = '/maps/camera-select-16.gif';
	top.map_hotspots9 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic10 = '/maps/camera-select-16.gif';
	top.map_hotspots10 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic11 = '/maps/camera-select-16.gif';
	top.map_hotspots11 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic12 = '/maps/camera-select-16.gif';
	top.map_hotspots12 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic13 = '/maps/camera-select-16.gif';
	top.map_hotspots13 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic14 = '/maps/camera-select-16.gif';
	top.map_hotspots14 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic15 = '/maps/camera-select-16.gif';
	top.map_hotspots15 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic16 = '/maps/camera-select-16.gif';
	top.map_hotspots16 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic17 = '/maps/camera-select-16.gif';
	top.map_hotspots17 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic18 = '/maps/camera-select-16.gif';
	top.map_hotspots18 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic19 = '/maps/camera-select-16.gif';
	top.map_hotspots19 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.map_hotspot_graphic20 = '/maps/camera-select-16.gif';
	top.map_hotspots20 = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","","" );
	top.monitor_map_hotspot_graphic = '/maps/monitor-select-16.gif';
	top.monitor_map_hotspots = new Array("30x30","68x71x32","188x71x32","308x71x32","428x71x32","68x146x32","188x146x32","308x146x32","428x146x32","68x221x32","188x221x32","308x221x32","428x221x32","68x296x32","188x296x32","308x296x32","428x296x32" );
	
	top.hs_system_map = new top.HotSpots(top.system_map_hotspots);
	top.hs_camera_map1 = new top.HotSpots(top.map_hotspots1);
	top.hs_camera_map2 = new top.HotSpots(top.map_hotspots2);
	top.hs_camera_map3 = new top.HotSpots(top.map_hotspots3);
	top.hs_camera_map4 = new top.HotSpots(top.map_hotspots4);
	top.hs_camera_map5 = new top.HotSpots(top.map_hotspots5);
	top.hs_camera_map6 = new top.HotSpots(top.map_hotspots6);
	top.hs_camera_map7 = new top.HotSpots(top.map_hotspots7);
	top.hs_camera_map8 = new top.HotSpots(top.map_hotspots8);
	top.hs_camera_map9 = new top.HotSpots(top.map_hotspots9);
	top.hs_camera_map10 = new top.HotSpots(top.map_hotspots10);
	top.hs_camera_map11 = new top.HotSpots(top.map_hotspots11);
	top.hs_camera_map12 = new top.HotSpots(top.map_hotspots12);
	top.hs_camera_map13 = new top.HotSpots(top.map_hotspots13);
	top.hs_camera_map14 = new top.HotSpots(top.map_hotspots14);
	top.hs_camera_map15 = new top.HotSpots(top.map_hotspots15);
	top.hs_camera_map16 = new top.HotSpots(top.map_hotspots16);
	top.hs_camera_map17 = new top.HotSpots(top.map_hotspots17);
	top.hs_camera_map18 = new top.HotSpots(top.map_hotspots18);
	top.hs_camera_map19 = new top.HotSpots(top.map_hotspots19);
	top.hs_camera_map20 = new top.HotSpots(top.map_hotspots20);
	top.hs_monitor_map = new top.HotSpots(top.monitor_map_hotspots);
	
	top.va_region_colour_01 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_02 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_03 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_04 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_05 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_06 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_07 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_08 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_09 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_10 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_11 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_12 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_13 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_14 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_15 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_16 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_17 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_18 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_19 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_20 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_21 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_22 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_23 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_24 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_25 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_26 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_27 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_28 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_29 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_30 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_31 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	top.va_region_colour_32 = new Array(16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 ,16776960 );
	
	top.mainmon_fg_colour = 7;
	top.mainmon_bg_colour = 0;
	top.mainmon_text_style = " z-index:2; background-color:" + top.mainmon_colours[top.mainmon_bg_colour] + "; color:" + top.mainmon_colours[top.mainmon_fg_colour] + "; border:0px; ";
	top.mainmon_seq_dwell = 10;
	if(top.mainmon_seq_dwell<5) top.mainmon_seq_dwell = 5;
	top.mainmon_text = "1";
	top.b_sequence_enabled = 0;
	
	top.ti_text_background = new Array(0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 );
	top.ti_text_colour = new Array(0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 );
	top.ti_min_display = new Array(0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 );
	top.ti_width = new Array(0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 );
	top.text_timeout = 0;
	top.arr_display_ti = new Array(0,0,0,0);
	top.arr_display_timeout_ti = new Array(null,null,null,null);
	top.b_show_text = false;
	if((top.features&2)>0) top.b_show_text = true;
	
	if(top.text_timeout==undefined)
	{
		// Defaults for console as it doesn't have any of the text-in-image variables
		top.ti_text_background = new Array();
		top.ti_text_colour = new Array();
		top.ti_min_display = new Array();
		top.ti_width = new Array();
		for(var int_ti_index=0; int_ti_index<100; int_ti_index++)
		{
			top.ti_text_background[int_ti_index] = 8; //0;
			top.ti_text_colour[int_ti_index] = 9; //7;
			top.ti_min_display[int_ti_index] = 10;
			top.ti_width[int_ti_index] = 40;
		}
		top.text_timeout = 10;
		top.b_show_text = true;
	}
	
	top.str_media_type = "DRIVE";
	top.timer_hide_review_list = null;
	top.alm_zones = 32;
	top.alm_active = 65536;
	top.alm_display_text = new Array(0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 );
	if(typeof(top.alm_display_text) == 'undefined')
	{
		debug("ALM_DISPLAY_TEXT is UNDEFINED");
		top.alm_display_text = new Array(32);
		for(i=0;i<32;i++)
			top.alm_display_text[i] = 0;
	}
	top.zone_active = 0;
	top.alarm_title = new Array("Alarm 1","Alarm 2","Alarm 3","Alarm 4","Alarm 5","Alarm 6","Alarm 7","Alarm 8","Alarm 9","Alarm 10","Alarm 11","Alarm 12","Alarm 13","Alarm 14","Alarm 15","Alarm 16","Keyswitch","Alarm 18","Alarm 19","Alarm 20","Zone 21","Zone 22","Zone 23","Zone 24","Zone 25","Zone 26","Zone 27","Zone 28","Zone 29","Zone 30","Zone 31","Panic" );
	top.alarm_camera = new Array(1 ,2 ,3 ,4 ,5 ,6 ,7 ,8 ,9 ,10 ,11 ,12 ,13 ,14 ,15 ,16 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 ,0 );
	top.alarm_level = new Array("YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","GREEN","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW","YELLOW" );
	top.alm_display_mode = 0;
	top.alm_display_alert = 0;
	top.alm_display_revert = 0;
	
	top.loc_live_cams = 4294967295;
	top.loc_replay_cams = 4294967295;
	top.spot_cam = 1 ,0 ;
	// If the app doesn't have the above svars...
	if(top.loc_live_cams==undefined) top.loc_live_cams = 0xFFFFFFFF;
	if(top.loc_replay_cams==undefined) top.loc_replay_cams = 0xFFFFFFFF;
	if((top.loc_live_cams & Math.pow(2,31))!=0) // Convert to signed 32 bit
	{
		top.loc_live_cams = top.loc_live_cams & 2147483647;
		top.loc_live_cams += Math.pow(2,31);
	}
	
	debug ("DEBUG: Main: got cams "+top.loc_live_cams+" "+top.loc_replay_cams);
	
	top.live_cam_permission = new Array();
	top.replay_cam_permission = new Array();
	
	for (var bitno=0; bitno<top.sys_cams; bitno++)
	{
        top.live_cam_permission[bitno] = (top.loc_live_cams & 1<<bitno) != 0;
        top.replay_cam_permission[bitno] = (top.loc_replay_cams & 1<<bitno) != 0;
        //debug ("DEBUG live cam "+bitno+" = "+top.live_cam_permission[bitno]); 		
       	//debug ("DEBUG replay cam "+bitno+" = "+top.replay_cam_permission[bitno]); 		
	}

	top.calculateMonitorXOffsets(); // For multi-monitor systems

	top.cam_fail_mask = 0;
	top.decoder_mode = '0';
	
	top.aliasCSVCheck();
</script>
</head>
<body bgcolor="#040404" style="border:0px solid #040404;" scrolling="no" id="body" onmousedown="top.bodyClick(event);" onload="top.cons_displ_init();" onunload="unloadPageFunction();">

<script language="JavaScript" type="text/javascript">
var default_decoder_mode = 0;
if(top.current_product.productLevel()=="NV1" && default_decoder_mode == 0)
	self.location.href = '/gui/gui_menu_main.shtml';
else
	document.write(create_display());
top.event_lister = new top.EventLister(document, "top.event_lister", location.host, 10, 30, 270, top.max_event_options, 80);
top.event_lister.event_action = top.playbackCamTime;
top.event_lister.req_list_action = top.getEventCall;

top.obj_progress_bar = document.getElementById("archive_progress_bar00_prog");
top.obj_progress_div = document.getElementById("archive_progress");

top.obj_notification_document = document;
</script>

</body>
</html>