echo '</div>';
 echo '<div class="box" style="top:230px;left:10px;height:160px;width:470px">';
 echo '<div style="position:absolute;top:5px;left: 10px;z-index:1000;"><form method="POST" action="picam1/index.php"><input type="image" src="images/Camera.png" width="48px" height="48px"></form>Voordeur<br/>Oprit</div>';
 echo '<div style="position:absolute;top:5px;left: 90px;z-index:1000;"><form method="POST" action="picam2/index.php"><input type="image" src="images/Camera.png" width="48px" height="48px"></form>Alex</div>';
 echo '<div style="position:absolute;top:85px;left: 10px;z-index:1000;"><form method="POST"><input type="hidden" name="imacpicam1" value="imacpicam1"><input type="image" src="images/Camera.png" width="48px" height="48px"></form>Voordeur<br/>iMac</div>';
 echo '<div style="position:absolute;top:85px;left:310px;z-index:1000;"><form method="POST"><input type="hidden" name="imacsleep" value="imacsleep"><input type="image" src="images/imacsleep_On.png" width="48px" height="48px"></form>iMac<br/>sleep now</div>';
 Schakelaar('meldingen', 'Alarm', 60, 5, 385);
 Schakelaar('sony', 'Ampgrey', 60, 5, 285);
 Schakelaar('imacslapen', 'imacsleep', 60, 85, 385);
 if ($Ssirene != 'Off') {
     Schakelaar('sirene', 'Alarm', 60, 85, 385);
 }
 $items = array('SDliving', 'SDkamer', 'SDbadkamer', 'SDtobi', 'SDalex', 'SDzolder');
 foreach ($items as $item) {
     if (${'S' . $item} != 'Off') {
         Smokedetector($item, 60, 85, 385);
     }
 }
 echo '</div>';
 echo '<div class="box" style="top:410px;left:10px;height:250px;width:470px">';
 Schakelaar('regenpomp', 'Light', 60, 10, 0);
 if ($STregenpomp > $eendag) {
     echo '<div style="position:absolute;top:83px;left:34px;">';
     echo strftime("%H:%M", $STregenpomp);
     echo '</div>';
 }
 Schakelaar('zwembadfilter', 'Light', 60, 10, 125);
 if ($STzwembadfilter > $eendag) {
     echo '<div style="position:absolute;top:83px;left:159px;">';
     echo strftime("%H:%M", $STzwembadfilter);
     echo '</div>';
 Schakelaar('Licht_Inkom', 'Light', 60, 65, 550);
 Schakelaar('Licht_Voordeur', 'Light', 60, 65, 700);
 Schakelaar('Licht_Hall', 'Light', 63, 500, 370);
 Schakelaar('Licht_Hall_Auto', 'Clock', 54, 504, 445);
 Schakelaar('Licht_Garage', 'Light', 72, 345, 350);
 Schakelaar('Licht_Garage_Auto', 'Clock', 54, 352, 250);
 Schakelaar('Pluto', 'Laptop', 45, 430, 300);
 Schakelaar('Thuis', 'Home', 72, 320, 675);
 Schakelaar('Slapen', 'Sleepy', 72, 400, 675);
 Schakelaar('Meldingen', 'Alarm', 72, 10, 7);
 Schakelaar('Terras', 'Light', 72, 90, 5);
 Schakelaar('Brander', 'Fire', 72, 890, 360);
 Schakelaar('Licht_Zolder', 'Light', 72, 805, 360);
 Schakelaar('Bureel_Tobi', 'Plug', 54, 910, 560);
 Smokedetector('SD_Hall_General', 54, 500, 325);
 Smokedetector('SD_Zolder_General', 54, 830, 500);
 Thermometer('Buiten', 130, 175, 13);
 Thermometer('Living', 100, 150, 310);
 Thermometer('Badkamer', 100, 500, 690);
 Thermometer('Slaapkamer', 100, 660, 690);
 Thermometer('Slaapkamer_Tobi', 100, 540, 150);
 Thermometer('Slaapkamer_Tobi', 100, 670, 150);
 Thermometer('SD_Hall_Temperatuur', 100, 540, 320);
 Thermometer('SD_Zolder_Temperatuur', 100, 850, 150);
 Setpoint('Living', 50, 183, 240);
 Setpoint('Badkamer', 50, 533, 620);
 Setpoint('Slaapkamer', 50, 693, 620);
 Setpoint('Slaapkamer_Tobi', 50, 573, 95);
 Setpoint('Slaapkamer_Tobi', 50, 703, 95);
 Radiator('LivingZE', 90, 200, 487);
 Radiator('LivingZZ', -90, 273, 81);