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('zwembadwarmte', 'Light', 60, 10, 250);
        if ($STzwembadwarmte > $eendag) {
            echo '<div style="position:absolute;top:83px;left:285px;">';
            echo strftime("%H:%M", $STzwembadwarmte);
            echo '</div>';
        }
        Schakelaar('water', 'Light', 60, 10, 375);
        if ($STwater > $eendag) {
            echo '<div style="position:absolute;top:83px;left:410px;">';
            echo strftime("%H:%M", $STwater);
            echo '</div>';
        }
        echo '<div style="position:absolute;top:100px;left:375px;width:102px;text-align:center;z-index:500;">		
		<form method="POST"><input type="hidden" name="Schakel" value="' . $SIwater . '"><input type="hidden" name="halfuurwater" value="halfuurwater">';
        echo $Swater == 'Off' ? '<input type="hidden" name="Actie" value="On"><input type="hidden" name="Naam" value="water"><input type="image" src="images/Light_Off.png" height="60px" width="auto">' : '<input type="hidden" name="Actie" value="Off"><input type="hidden" name="Naam" value="water"><input type="image" src="images/Light_On.png" height="60px" width="auto">';
        echo '<br/>water<br/>30min</form></div>';
        Sunscreen('luifel', 60, 175, 50);
        echo '</div>';
        echo '<div style="position:absolute;top:5px;left:5px;z-index:1000;"><a href=\'javascript:navigator_Go("floorplan.php");\'><img src="images/close.png" width="72px" height="72px"/></a></div></div>';
        echo '<div style="position:absolute;top:5px;right:5px;z-index:1000;"><a href=\'javascript:navigator_Go("log.php");\'><img src="images/log.png" width="72px" height="72px"/></a></div></div>';
        echo '</div>';
        echo '<div class="clear"></div><br/><br/><br/>
 Schakelaar('TV', 'TV', 72, 2, 94);
 Schakelaar('Denon', 'Amp', 72, 6, 190);
 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);
 Schakelaar('kookplaat', 'Light', 40, 115, 386);
 Schakelaar('werkblad', 'Light', 40, 208, 434);
 Schakelaar('lichtbadkamer1', 'Light', 70, 420, 390);
 Schakelaar('lichtbadkamer2', 'Light', 40, 463, 349);
 Schakelaar('voordeur', 'Light', 48, 54, 439);
 Schakelaar('hall', 'Light', 52, 410, 252);
 Schakelaar('garage', 'Light', 60, 305, 209);
 Schakelaar('zolderg', 'Light', 48, 315, 140);
 Schakelaar('lichten_auto', 'Clock', 40, 312, 299);
 Schakelaar('weg', 'Home', 70, 257, 417);
 Schakelaar('slapen', 'Sleepy', 70, 331, 417);
 Schakelaar('terras', 'Light', 48, 5, 16);
 Schakelaar('tuin', 'Light', 48, 59, 16);
 Schakelaar('zolder', 'Light', 70, 710, 260);
 Schakelaar('bureeltobi', 'Plug', 40, 730, 400);
 Schakelaar('badkamervuur', 'Plug', 28, 408, 348);
 Thermometer('living_temp', 120, 190);
 Thermometer('badkamer_temp', 403, 440);
 Thermometer('kamer_temp', 530, 440);
 Thermometer('tobi_temp', 433, 90);
 Thermometer('alex_temp', 544, 90);
 Thermometer('zolder_temp', 690, 125);
 Blinds('zoldertrap', 50, 675, 190);
 if ($Sweg == 'On' || $Sslapen == 'On') {
     Secured(52, 88, 250, 196);
     Secured(50, 345, 129, 57);
     Secured(255, 88, 316, 141);
     Secured(114, 345, 129, 134);
 }
 if ($Sweg == 'On') {
     Secured(404, 212, 129, 65);
 Setpoint('tobi', 50, 472, 88);
 Setpoint('julius', 50, 582, 88);
 //Radiator('livingZZ',-90,221,77);
 //Radiator('badkamerZ',0,403,349);
 //Radiator('tobiZ',-90,463,77);
 //Radiator('juliusZ',-90,583,77);
 //Radiator('kamerZ',90,542,456);
 if ($SSirene != 'Off') {
     Schakelaar('Sirene', 'Alarm', 96, 180, 258);
 }
 echo '<div id="Plus" class="dimmer" style="display:none;">';
 echo '<div style="position:absolute;top:100px;left:50px;z-index:1000;">';
 Schakelaar('meldingen', 'Alarm', 48, 0, 5);
 echo '<br><br><br>Meldingen</div>';
 echo '<div style="position:absolute;top:100px;left:150px;z-index:1000;">';
 Schakelaar('heating', 'Fire', 48, 0, 0);
 echo '<br><br><br>Heating</div>';
 echo '<div style="position:absolute;top:300px;left:60px;z-index:1000;"><form method="POST" action="http://home.egregius.be:443/secure/picam1/live.php"><input type="image" src="images/Camera.png" width="48px" height="48px"></form>PiCam1</div>';
 echo '<div style="position:absolute;top:400px;left:60px;z-index:1000;"><form method="POST" action="http://home.egregius.be:443/secure/picam1"><input type="image" src="images/photocamera.png" width="48px" height="48px"></form>PiCam1</div>';
 echo '<div style="position:absolute;top:700px;left:60px;z-index:1000;"><form method="POST"><input type="hidden" name="restart" value="up"><input type="image" src="images/restart.png" width="48px" height="48px"></form>Restart</div>';
 echo '<div style="position:absolute;top:700px;left:160px;z-index:1000;"><form method="POST"><input type="hidden" name="reboot" value="up"><input type="image" src="images/reboot.png" width="48px" height="48px"></form>Reboot</div>';
 echo '<div style="position:absolute;top:700px;left:260px;z-index:1000;"><form method="POST"><input type="hidden" name="healnetwork" value="up"><input type="image" src="images/zwave.png" width="48px" height="48px"></form>Heal<br>network</div>';
 echo '<div style="position:absolute;top:600px;left:360px;z-index:1000;"><form method="POST" action="secure/viewlog.php#Floorplan"><input type="image" src="images/log.png" width="48px" height="48px"></form>Floorplan</div>';
 echo '<div style="position:absolute;top:700px;left:360px;z-index:1000;"><form method="POST" action="secure/viewlog.php#Domoticz"><input type="image" src="images/log.png" width="48px" height="48px"></form>Domoticz</div>';
 echo '<div style="position:absolute;top:5px;right:5px;z-index:1000;"><a href=""><img src="images/close.png" width="72px" height="72px"/></a></div></div>';
 if ($Sweg == 'On' || $Sslapen == 'On') {
     Secured(52, 88, 250, 196);
     Secured(50, 345, 129, 57);
     Secured(255, 88, 316, 141);
     Secured(114, 345, 129, 134);
 }