<?php
require('startinclude.php');
$totalcamaras=-1;
include "lecturadb_slow.php";
leer_configuracion($conf);
//debug($conf);
?>
<head>
<title>No title</title>
<meta name="generator" content="Namo WebEditor">

	<!-- miniventana-->
	<link rel="stylesheet" href="ajaxlib/dhtmlwindow.css" type="text/css" />
	<script type="text/javascript" src="ajaxlib/dhtmlwindow.js"></script>
	


	<script type='text/javascript' src='ajaxlib/utils/southprojects.js'></script>
	<script type='text/javascript' src='ajaxlib/spwin/src/window.js'></script>
	<script type='text/javascript' src='ajaxlib/spform/src/form.js'></script>	
	<script type='text/javascript' src='ajaxlib/utils/progress.js'></script>
	<script type='text/javascript' src='jscriptlib.js'></script>
	<script type='text/javascript' src='cookies.js'></script>
	<!--speed up-->
	<script type='text/javascript' src='ajaxlib/utils/stylesheet.js'></script>	
	<script type='text/javascript' src='ajaxlib/utils/preloadimages.js'></script>	
	 
	
	
	<!-- usado para todos los rpc -->
	<script type='text/javascript' src='jscriptrpc.js'></script>
	<!-- usado solo para esta ventana -->
	<script type='text/javascript' src='jscriptwin.js'></script>
	
	<!-- ALL demos need these css -->
	<link href="ajaxlib/spwin/themes/silverxp.css" rel="stylesheet" type="text/css">
	<link href="ajaxlib/spwin/themes/winxp.css" rel="stylesheet" type="text/css">
	<link href="ajaxlib/spwin/themes/redxp.css" rel="stylesheet" type="text/css">
	<link href="ajaxlib/spwin/themes/greyxp.css" rel="stylesheet" type="text/css">

	<script src="ajaxlib/genmove.js" type="text/javascript"></script>
	
	<!-- sonido -->
	<script type="text/javascript" src="script/soundmanager.js"></script>

	<link rel="stylesheet" type="text/css" href="style2.css" />
<style type="text/css">

/*
USAGE: All you have to do is include this one line in your CSS file, with the
tag names to which you want the script applied:
*/

img, div { behavior: url(iepngfix.htc) }

/*
Alternatively, you can specify that this will apply to all tags like so:
* { behavior: url(iepngfix.htc) }
*/

</style>
	
	 
	
	
<link href="style.css" rel="stylesheet" type="text/css">
	
	<script type="text/javascript">
		if (self.parent.frames) 
			var frameinferior = self.parent.frames.frameinferior; //.document; // iexplorer
		else
			var frameinferior = window.parent.frameinferior; //.document; // firefox
	
	function modiframe(destino) {
		if(document.frames)
			var bodyIframe = document.frames.ifrmmensaje //.iexplorer			
		else
			if (ifrmmensaje.contentDocument)
				var bodyIframe =  ifrmmensaje.contentDocument; //firefox
			else
				var bodyIframe =  frames['ifrmmensaje']; //.safari					
		bodyIframe.location=destino;
	}	
	
	
		var googlewin=dhtmlwindow.open("googlebox", "iframe", "vacio.htm", "Alerta", "width=900px,height=105px,top=0px,left=10px,resize=0,scrolling=1,center=0,display=none", "recal")
		//googlewin.show();
		googlewin.hide();
		googlewin.onclose=function(){ //Run custom code when window is being closed (return false to cancel action):
		return true; //window.confirm("Close window 1?")
		}
	</script>	
	
	
	<!-- Custom includes -->	
	<style type="text/css">
		body {margin:0px;}

		.bg_image {
		/*	width: 100%;
			height: 100%;*/

			left: 0px;
			top: 0px;
			position: absolute;
			z-index: 0;
		}

		.bg_text {
		/*	width: 100%;
			height: 100%;*/
			left: 0px;
			top: 0px;
			position: absolute;
			z-index: 1;
		}

		.caming_texto {
			font-family:  Tahoma,Verdana, Helvetica;
			font-size:9px;
		}

		#contents {
		z-index: 1;
		position: absolute;
		}
	</style>

	

</head>

<body bgcolor="white" text="black" link="blue" vlink="purple" alink="red">
<div id="body">
		<div id="header">
			<img src="img/logo.png" title="<?
echo "DB:(".leer_version().") Web: (".$version.")";
			?>" id="logo"/>
			<a href="#"><img src="img/modulos.png" alt="modulos" id="sensor" title='Ok.' width=276 height=37 /></a>
			<!--<img src="img/unifrutti-copiapo.png" alt="unifrutti" id="unifrutti" width=240 height=65/>-->
			<img src="img/ruta_lite.png" title="<?  
				echo $conf["nombre_planta"];
			?>" id="unifrutti" width=291 height=64/>
			<div id="menu">
				<ul>
					<li><a href="#" onclick='guardarvalores2();' ><img src="img/save.png" alt="menu"/><br/>GUARDAR VALORES</a></li>
					<li><a href="#" onclick='alinearvalores2();'><img src="img/alinear.png" alt="menu"/><br/>ALINEAR VENTANAS</a></li>
					<li><a href="#" onclick='cascadavalores2();'><img src="img/cascada.png" alt="menu"/><br/>ALINEAR EN CASCADA</a></li>
					<li><a href="#" onclick='logout2();'><img src="img/logout.png" alt="menu"/><br/>CERRAR SESION</a></li>
				</ul>
			</div>
		</div>
		<div id="content">
<!-- aquí iría el frame -->
		</div>
	</div>
	<!-- document.getElementById('layermensaje').style.visibility='visible' o show? -->
	<!--document.getElementById('layermensaje').style.visibility='hidden' -->
  <div id="layermensaje" style="width:800px; height:120px; position:absolute; left:106px; top:0px; z-index:1; visibility:hidden;"> <!-- hidden-->
		<iframe  id='ifrmmensaje' src="vacio.htm" scrolling="no" frameborder="1" width=800 height=120></iframe>
  </div>	

</body>
