<div id="loadengine"></div>
<div id="iframeHolder" class="ui-dialog ui-widget ui-widget-content ui-corner-all ui-front ui-draggable ui-resizable"
style="width:100%;height:100%;margin-top: 2.5%;display:none
"></div>
<div id="map"></div>
<div class="map-layer-control">
	<div class="row4">
		<select id="map_layer" class="select" onChange="switchMapLayer($(this).val());"></select>
	</div>
</div>

<script>
	function crearlocal(varChat){
		localStorage.setItem('chat', varChat);
	}
</script>
<?php 
	echo "<script>localStorage.removeItem('user');</script>";
	echo  "<script>localStorage.setItem('user', '".$_SESSION["username"]."')</script>"; 
?>

<div id="history_view_control" class="history-view-control">
	<a href="#" onclick="historyRouteRouteToggle();" title="<? echo $la['ENABLE_DISABLE_ROUTE'];?>">
		<span class="icon-route-route"id="history_view_control_route"></span>
	</a>
	<a href="#" onclick="historyRouteSnapToggle();" title="<? echo $la['ENABLE_DISABLE_SNAP'];?>">
		<span class="icon-route-snap disabled" id="history_view_control_snap"></span>
	</a>
	<a href="#" onclick="historyRouteArrowsToggle();" title="<? echo $la['ENABLE_DISABLE_ARROWS'];?>">
		<span class="icon-route-arrow disabled" id="history_view_control_arrows"></span>
	</a>
	<a href="#" onclick="historyRouteDataPointsToggle();" title="<? echo $la['ENABLE_DISABLE_DATA_POINTS'];?>">
		<span class="icon-route-data-point disabled" id="history_view_control_data_points"></span>
	</a>
	<a href="#" onclick="historyRouteStopsToggle();" title="<? echo $la['ENABLE_DISABLE_STOPS'];?>">
		<span class="icon-route-stop" id="history_view_control_stops"></span>
	</a>
	<a href="#" onclick="historyRouteEventsToggle();" title="<? echo $la['ENABLE_DISABLE_EVENTS'];?>">
		<span class="icon-route-event" id="history_view_control_events"></span>
	</a>
	<a href="#" onclick="historyHideRoute();" title="<? echo $la['HIDE'];?>">
		<span class="icon-close"></span>
	</a>
</div>

<div id="street_view_control" class="street-view-control">
	<? echo $la['STREET_VIEW']; ?>
</div>

<div id="loading_panel">
	<div class="table">
		<div class="table-cell center-middle">
			<div id="loading_panel_text">
				<div class="row">
					<img class="logo" src="<? echo $gsValues['URL_ROOT'].'/img/'.$gsValues['LOGO']; ?>" />
				</div>
				<div class="row">
					<div class="loader">
						<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
					</div>
				</div>
			</div>
		</div>
	</div>
</div>

<div id="loading_data_panel" style="display: none;">
	<div class="table">
		<div class="table-cell center-middle">
			<div class="loader">
				<span></span><span></span><span></span><span></span><span></span><span></span><span></span>
			</div>
		</div>
	</div>
</div>

<div id="blocking_panel">
	<div class="table">
		<div class="table-cell center-middle">
			<div id="blocking_panel_text">
				<div class="row">
					<img class="logo" src="<? echo $gsValues['URL_ROOT'].'/img/'.$gsValues['LOGO']; ?>" />
				</div>
				<? echo sprintf($la['SESSION_HAS_EXPIRED'], $gsValues['URL_LOGIN']); ?>
			</div>
		</div>
	</div>
</div>

<div id="top_panel" style="z-index: 9999;">
	<div class="tp-menu left-menu">
		<div class="about-btn">
			<a href="#" onclick="$('#dialog_about').dialog('open');" title="<? echo $la['ABOUT']; ?>">
				<img src="<? echo $gsValues['URL_ROOT'].'/img/'.$gsValues['LOGO_SMALL']; ?>" border="0"/>
			</a>
		</div>
		<div class="help-btn">
			<a href="<? echo $gsValues['URL_HELP']; ?>" target="_blank" title="<? echo $la['HELP']; ?>">
				<img src="theme/images/info.svg" border="0"/>
			</a>
		</div>
		<?php if ($_SESSION["username"] == "admin" || $_SESSION["username"] == "leonel@stech.cl" || $_SESSION["username"] == "claudio_leivaa@yahoo.es"  || $_SESSION["username"] == "cristian"){ ?>
		<div class="map-btn" style="background-color:#2B82D4">
			<a id="mapa_inicio"  href="#"  title="mapa">
				<img src="theme/images/globe.svg" border="0"/>
			</a>
		</div>
		<?php } ?>
		<div class="settings-btn">
			<a id="settingsmap"  href="#" onclick="settingsOpen();" title="<? echo $la['SETTINGS']; ?>">
				<img src="theme/images/settings.svg" border="0"/>
			</a>
		</div>
	<?php if ($_SESSION["privileges"] == 'super_admin') { ?>
		<div class="point-btn">
			<a id="pointmap" href="#" onclick="$('#dialog_show_point').dialog('open');" title="<? echo $la['SHOW_POINT']; ?>">
				<img src="theme/images/marker.svg" border="0"/>
			</a>
		</div>
	<?php } ?>
		<div class="search-btn">
			<a id="searchbtns" href="#" onclick="$('#dialog_address_search').dialog('open');" title="<? echo $la['ADDRESS_SEARCH']; ?>">
				<img src="theme/images/search.svg" border="0"/>
			</a>
		</div>

	<?php if ($_SESSION["privileges"] != 'viewer') { ?>
		<? if ($_SESSION["privileges_reports"] == true){?>
		<div class="report-btn">
			<a id="reportbook" href="#" onclick="reportsOpen();" title="<? echo $la['REPORTS']; ?>">
				<img src="theme/images/report.svg" border="0"/>
			</a>
		</div>
		
		<? } ?>
	<?php if ($_SESSION["privileges_dtc"] == true ) { ?>
	
		<div class="dtc-btn">
			<a id="dtcdiag" href="#" onclick="dtcOpen();" title="<? echo $la['DIAGNOSTIC_TROUBLE_CODES']; ?>">
				<img src="theme/images/dtc.svg" border="0"/>
			</a>
		</div>
	<? } ?>
	<? if ($_SESSION["privileges_chat"] == true){?>
		<div class="chat-btn">
			<a id="chatbox" href="masivoAct/gpsMasivo/index.php" target="_blank" onclick="crearlocal(1)">
				<img class="float-left" src="theme/images/upload.svg" border="0"/>
			</a>
			<!-- <a id="chatbox"
			    href="#" onclick="chatOpen();" title="<? echo $la['CHAT']; ?>">
				<img class="float-left" src="theme/images/chat.svg" border="0"/>
				<span id="chat_msg_count">0</span>
			</a> -->
		</div>
		<?php } ?>
		
	
		<? if ($_SESSION["privileges_rilogbook"] == true){?>
		<div class="rilogbook-btn">
			<a id="rfidbook" href="#" onclick="rilogbookOpen();" title="<? echo $la['RFID_AND_IBUTTON_LOGBOOK']; ?>">
				<img src="theme/images/logbook.svg" border="0"/>
			</a>
		</div>
		<? } ?>
		
		<? if ($_SESSION["privileges_object_control"] == true){?>
		<div class="cmd-btn">
			<a id="envcomando" href="#" onclick="cmdOpen();" title="<? echo $la['OBJECT_CONTROL']; ?>">
				<img src="theme/images/cmd.svg" border="0"/>
			</a>
		</div>
		<? } ?>
		<? } ?>

	

        
		<?
			
			$q = "SELECT id FROM gpsimple.gs_users where username = 'europcar';";
			$s = mysqli_query($ms, $q); //or print_r(mysqli_error($con));
			$r = mysqli_fetch_array($s);
			$valid = false;
			
			if(isset($r['id'])){
				$q2 = "SELECT username FROM gpsimple.gs_users where manager_id = ".$r['id'];
				$s2 = mysqli_query($ms, $q2); //or print_r(mysqli_error($con));
				
				while($r2 = mysqli_fetch_array($s2)){
					if($r2['username'] == $_SESSION["username"]){
						$valid = true;
					}
				}
			}
			
		if(	$_SESSION["privileges"] == 'admin' || 
			$_SESSION["privileges"] == 'super_admin' || 
			$_SESSION["privileges"] == 'subuser' || 
			$_SESSION["privileges"] == 'user' || $valid == true){
	
			if (
				$_SESSION["username"] == "admin" || 
				$_SESSION["username"] == "leonel@stech.cl" || 
				$_SESSION["username"] == "cristian@prueba.cl" || 
				$_SESSION["username"] == "claudio_leivaa@yahoo.es" || 
				$_SESSION["username"] == "sucursalcalama" || 
				$_SESSION["username"] == "mlizana@tattersall.cl" || 
				$_SESSION["username"] == "dromero" ||
				$_SESSION["username"] == "europcar" ||
				$_SESSION["username"] == "agarate@tattersall.cl" ||
				$_SESSION["username"] == "clientesIquique@tattersall.cl" ||
				$valid == true
                        ){

			?>
		<div class="search-btn2">
			<a id="certificado"
			 href="#" title="<? echo "Certificado" ?>">
				<img src="theme/images/email.svg" border="0"/>
			</a>
		</div>
		<?php } ?>
		<?php if ($_SESSION["privileges_image_gallery"] == true){ ?>
        <div class="search-btn" id="opendash">
                <a href="#"  title="dashboard">
                    <img src="theme/images/theme.svg" border="0"/>
                </a>
        </div>
		<?php } ?>
 		<style>
#loadengine {
    position: fixed;
    left: 0px;
    top: 0px;
    width: 100%;
    height: 100%;
    z-index: 9999;
    background: url('cargadash.gif') 50% 50% no-repeat rgb(249,249,249);
    opacity: .8;
	display: none;
}
</style>
<!-- <iframe src="startmin/pages/index.php" width="100%" heig="" scrolling="yes" frameborder="0" style="height: 100%;"></iframe> -->
<script type="text/javascript">
$(function(){
	var ancla = 1;
    $('#opendash').click(function(){
		ancla = 0;
		document.getElementById("iframeHolder").style.display = "block";
		document.getElementById("loadengine").style.display = "block";
        if(!$('#iframe').length) {
                $('#iframeHolder').html('<iframe onload="closeProgressIndicator()" id="iframe" src="startmin/pages/index.php" width="100%" scrolling="yes" frameborder="0" height="100%"></iframe>');
		}else{
			document.getElementById("loadengine").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();		
		}
		
		
		// document.getElementById("side_panel_dragbar").style.display = "none";
	});  
	// $(window).load(function() {
    // 	$("#loadengine").fadeOut("slow");
	// });


	$('#certificado').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			ancla=1;   
		}
	}); 
	$('#chatbox').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#imgfotos').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#envcomando').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#dtcdiag').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#rfidbook').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#reportbook').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#searchbtns').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#pointmap').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#settingsmap').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	$('#mapa_inicio').click(function(){ 
		if(ancla==1){
		}else{
			document.getElementById("iframeHolder").style.display = "none";
			var getframe = document.getElementById("iframe");
       		getframe.remove();
			   ancla=1;
		}
	});
	
	
});
function closeProgressIndicator() {
		document.getElementById("loadengine").style.display = "none";
    }  
</script>
		<script>
		$(document).ready(function () {
			$("#certificado").click(function () {
			$("#dialog_certificado").dialog();
			$("#dialog_certificado").dialog('open').show();
			return false;
			});
		});
		</script>
		<? } ?>
		
	</div>

	<div class="tp-menu right-menu">
		<div class="select-language <? if ($_SESSION["cpanel_privileges"]){?>cp<? }?>">
			<select id="system_language" onChange="switchLanguageTracking();" class="select">
			<? echo getLanguageList(); ?>
			</select>
		</div>
		<? if ($_SESSION["privileges"] == 'super_admin'){?>
		<div class="cpanel-btn">
			<a href="cpanel.php" title="<? echo $la['CONTROL_PANEL']; ?>">
				<img src="theme/images/cogs-white.svg" border="0"/>
			</a>
		</div>
		<? }?>
		<? if ($_SESSION["billing"] == true){?>
		<div class="billing-btn">
			<a href="#" onclick="billingOpen();" title="<? echo $la['BILLING']; ?>">
				<img class="float-left" src="theme/images/cart-white.svg" border="0"/>
				<span id="billing_plan_count">0</span>
			</a>
		</div>
		<? }?>
		<div class="user-btn">
			<a href="#" onclick="settingsOpenUser();" title="<? echo $la['MY_ACCOUNT']; ?>">
				<img src="theme/images/user.svg" border="0"/>
				<span><? echo $_SESSION["username"];?></span>
			</a>
		</div>
		<? if ($_SESSION["privileges"] == 'super_admin'){?>
		<div class="mobile-btn">
			<a href="mobile/tracking.php" title="<? echo $la['MOBILE_VERSION']; ?>">
				<img src="theme/images/mobile.svg" border="0"/>
			</a>
		</div>
		<? }?>
		<div class="logout-btn">
			<a href="#" onclick="connectLogout();" title="<? echo $la['LOGOUT']; ?>">
				<img src="theme/images/logout.svg" border="0"/>
			</a>
		</div>
	</div>
</div>

<div id="side_panel">
	<ul>
		<li><a href="#side_panel_objects"><? echo $la['OBJECTS']; ?></a></li>
		<li <?php if ($_SESSION["privileges"] == 'viewer') { echo  'style="visibility: hidden;"'; } ?>><a href="#side_panel_history"><? echo $la['HISTORY']; ?></a></li>
		<li <?php if ($_SESSION["privileges"] == 'subuser' || $_SESSION["privileges"] == 'viewer') { echo  'style="visibility: hidden;"'; } ?>><a href="#side_panel_events"><? echo $la['EVENTS']; ?></a></li>
		<li <?php if ($_SESSION["privileges"] == 'admin' || $_SESSION["privileges"] == 'super_admin') {
}else{
    echo  'style="visibility: hidden;"';
} ?>><a href="#side_panel_places" id="side_panel_places_tab"><? echo $la['PLACES']; ?></a></li>
	</ul>

	<div id="side_panel_objects">
		<div id="side_panel_objects_object_list">
			<table id="side_panel_objects_object_list_grid"></table>
		</div>
		<div id="side_panel_objects_dragbar">
		</div>
		<div id="side_panel_objects_object_data_list">
			<table id="side_panel_objects_object_data_list_grid"></table>
		</div>
	</div>

	<?php if ($_SESSION["privileges"] != 'super_admin') { ?>
		<style>
			#gview_side_panel_objects_object_list_grid .ui-widget-header a[onclick*="settingsObjectAdd('open');"] {
				visibility: hidden;
			}
		</style>
	<?php } ?>

	<div id="side_panel_events">
		<div id="side_panel_events_event_list">
		       <table id="side_panel_events_event_list_grid"></table>
		       <div id="side_panel_events_event_list_grid_pager"></div>
	       </div>
	       <div id="side_panel_events_dragbar">
	       </div>
	       <div id="side_panel_events_event_data_list">
		       <table id="side_panel_events_event_data_list_grid"></table>
	       </div>
	</div>

	<div id="side_panel_places" <?php if ($_SESSION["privileges"] == 'viewer' || $_SESSION["privileges"] == 'user') { echo  'style="visibility: hidden;"'; } ?>>
		<ul>
			<li><a href="#side_panel_places_zones" id="side_panel_places_zones_tab"><span><? echo $la['ZONES']; ?> </span><span id="side_panel_places_zones_num"></span></a></li>
			<li><a href="#side_panel_places_markers" id="side_panel_places_markers_tab"><span><? echo $la['MARKERS']; ?> </span><span id="side_panel_places_markers_num"></span></a></li>
			<li><a href="#side_panel_places_routes" id="side_panel_places_routes_tab"><span><? echo $la['ROUTES']; ?> </span><span id="side_panel_places_routes_num"></span></a></li>
		</ul>

		<div id="side_panel_places_markers">
			<div id="side_panel_places_marker_list">
				<table id="side_panel_places_marker_list_grid"></table>
				<div id="side_panel_places_marker_list_grid_pager"></div>
			</div>
		</div>

		<div id="side_panel_places_routes">
			<div id="side_panel_places_route_list">
				<table id="side_panel_places_route_list_grid"></table>
				<div id="side_panel_places_route_list_grid_pager"></div>
			</div>
		</div>

		<div id="side_panel_places_zones">
			<div id="side_panel_places_zone_list">
				<table id="side_panel_places_zone_list_grid"></table>
				<div id="side_panel_places_zone_list_grid_pager"></div>
			</div>
		</div>
	</div>

	<div id="side_panel_history" <?php if ($_SESSION["privileges"] == 'viewer') { echo  'style="visibility: hidden;"'; } ?>>
		<div id="side_panel_history_parameters">
			<div class="row2">
			    <div class="width35"><? echo $la['OBJECT']; ?></div>
			    <div class="width65"><select id="side_panel_history_object_list" class="select-search width100"></select></div>
			</div>
			<div class="row2">
				<div class="width35"><? echo $la['FILTER'];?></div>
				<div class="width65">
				    <select id="side_panel_history_filter" class="select width100" onchange="switchHistoryReportsDateFilter('history');">
					<option value="0" selected></option>
					<option value="1"><? echo $la['LAST_HOUR'];?></option>
					<option value="2"><? echo $la['TODAY'];?></option>
					<option value="3"><? echo $la['YESTERDAY'];?></option>
					<option value="4"><? echo $la['BEFORE_2_DAYS'];?></option>
					<option value="5"><? echo $la['BEFORE_3_DAYS'];?></option>
					<option value="6"><? echo $la['THIS_WEEK'];?></option>
					<option value="7"><? echo $la['LAST_WEEK'];?></option>
					<option value="8"><? echo $la['THIS_MONTH'];?></option>
					<option value="9"><? echo $la['LAST_MONTH'];?></option>
				    </select>
				</div>
			</div>
			<div class="row2">
				<div class="width35"><? echo $la['TIME_FROM']; ?></div>
				<div class="width31">
					<input readonly class="inputbox-calendar inputbox width100" id="side_panel_history_date_from" type="text" value=""/>
				</div>
				<div class="width2"></div>
				<div class="width15">
					<select id="side_panel_history_hour_from" class="select width100">
					<? include ("inc/inc_dt.hours.php"); ?>
					</select>
				</div>
				<div class="width2"></div>
				<div class="width15">
					<select id="side_panel_history_minute_from" class="select width100">
					<? include ("inc/inc_dt.minutes.php"); ?>
					</select>
				</div>
			</div>
			<div class="row2">
				<div class="width35"><? echo $la['TIME_TO']; ?></div>
				<div class="width31">
					<input readonly class="inputbox-calendar inputbox width100" id="side_panel_history_date_to" type="text" value=""/>
				</div>
				<div class="width2"></div>
				<div class="width15">
					<select id="side_panel_history_hour_to" class="select width100">
					<? include ("inc/inc_dt.hours.php"); ?>
					</select>
				</div>
				<div class="width2"></div>
				<div class="width15">
					<select id="side_panel_history_minute_to" class="select width100">
					<? include ("inc/inc_dt.minutes.php"); ?>
					</select>
				</div>
			</div>

			<div class="row3">
				<div class="width35"><? echo $la['STOPS']; ?></div>
				<div class="width31">
					<select id="side_panel_history_stop_duration" class="select width100">
						<option value=1>> 1 min</option>
						<option value=2>> 2 min</option>
						<option value=5>> 5 min</option>
						<option value=10>> 10 min</option>
						<option value=20>> 20 min</option>
						<option value=30>> 30 min</option>
						<option value=60>> 1 h</option>
						<option value=120>> 2 h</option>
						<option value=300>> 5 h</option>
					</select>
				</div>
			</div>

			<div class="row3">
				<input style="width: 100px; margin-right: 3px;" class="button" type="button" value="<? echo $la['SHOW']; ?>" onclick="historyLoadRoute();"/>
				<input style="width: 100px; margin-right: 3px;" class="button" type="button" value="<? echo $la['HIDE']; ?>" onclick="historyHideRoute();"/>
				<input <?php if ($_SESSION["history_import"] === '0') {
					echo  'style="visibility: hidden; width: 134px;"';
				}else {
					echo  'style="width: 134px;"';
				} ?> id="side_panel_history_import_export_action_menu_button" class="button" type="button" value="<? echo $la['IMPORT_EXPORT']; ?>"/>
			</div>
		</div>

		<div id="side_panel_history_route">
			<table id="side_panel_history_route_detail_list_grid"></table>
		</div>

		<div id="side_panel_history_dragbar">
		</div>

		<div id="side_panel_history_route_data_list">
			<table id="side_panel_history_route_data_list_grid"></table>
		</div>
	</div>
</div>

<div id="bottom_panel">
	<div id="bottom_panel_tabs" style="height: 100%;">
		<ul>
		    <li><a href="#bottom_panel_graph"><? echo $la['GRAPH']; ?></a></li>
		    <li><a href="#bottom_panel_msg"><? echo $la['MESSAGES']; ?></a></li>
		</ul>

		<div id="bottom_panel_graph">
			<div class="graph-controls">
				<div class="graph-controls-left">
					<select id="bottom_panel_graph_data_source" class="select" style="width:120px;" onchange="historyRouteChangeGraphSource();"></select>
					<a href="#" onclick="historyRoutePlay();">
						<div class="panel-button" title="<? echo $la['PLAY'];?>">
							<img src="theme/images/play.svg" width="12px" border="0"/>
						</div>
					</a>
					<a href="#" onclick="historyRoutePause();">
						<div class="panel-button" title="<? echo $la['PAUSE'];?>">
							<img src="theme/images/pause.svg" width="12px" border="0"/>
						</div>
					</a>
					<a href="#" onclick="historyRouteStop();">
						<div class="panel-button" title="<? echo $la['STOP'];?>">
							<img src="theme/images/stop.svg" width="12px" border="0"/>
						</div>
					</a>
					<select id="bottom_panel_graph_play_speed" class="select" style="width:50px;">
						<option value=1>x1</option>
						<option value=2>x2</option>
						<option value=3>x3</option>
						<option value=4>x4</option>
						<option value=5>x5</option>
						<option value=6>x6</option>
					</select>
				</div>
				<div class="graph-controls-right">
					<div id="bottom_panel_graph_label" class="graph-label"></div>

					<a href="#" onclick="graphPanLeft();">
						<div class="panel-button" title="<? echo $la['PAN_LEFT'];?>">
							<img src="theme/images/arrow-left.svg" width="12px" border="0"/>
						</div>
					</a>

					<a href="#" onclick="graphPanRight();">
						<div class="panel-button" title="<? echo $la['PAN_RIGHT'];?>">
							<img src="theme/images/arrow-right.svg" width="12px" border="0"/>
						</div>
					</a>

					<a href="#" onclick="graphZoomIn();">
						<div class="panel-button" title="<? echo $la['ZOOM_IN'];?>">
							<img src="theme/images/plus.svg" width="12px" border="0"/>
						</div>
					</a>

					<a href="#" onclick="graphZoomOut();">
						<div class="panel-button" title="<? echo $la['ZOOM_OUT'];?>">
							<img src="theme/images/minus.svg" width="12px" border="0"/>
						</div>
					</a>
				</div>
			</div>

			<div id="bottom_panel_graph_plot"></div>
		</div>

		<div id="bottom_panel_msg">
			<table id="bottom_panel_msg_list_grid"></table>
			<div id="bottom_panel_msg_list_grid_pager"></div>
		</div>
	</div>
</div>

<a href="#" onclick="showHideLeftPanel();">
	<div id="side_panel_dragbar">
	</div>
</a>

<a href="#" onclick="showBottomPanel();">
	<div id="bottom_panel_dragbar">
	</div>
</a>


<script>
    // setInterval(function(){
    //     $( ".object-list-item" ).load(window.location.href + " .object-list-item" );
    //     console.log('ref');
    // }, 10000);
</script>
