<?php $url = substr_replace($_SERVER ['SCRIPT_URL'], '', 0, 6);$nav = str_replace("/","-",$url);?>
<script>$('#Nav<?= $nav; ?>').addClass("active");</script>