
pathis=location.pathname;
new_array=pathis.split("/");
var arrlen = new_array.length-2
subdirectory=new_array[arrlen]; // 4 is a guess, try others






document.write(' <nav id="mainNav" class="navbar navbar-default navbar-fixed-top">');
document.write('    <nav class="container">');
document.write('            <div class="navbar-header">');
document.write('                <a class="navbar-brand" href="http://baskabombay.com/default.htm">');
document.write('                    <img src="../images/logo.png" alt="Baska Bombay Carriers" title="Baska Bombay Carriers" />');
document.write('                </a>');
document.write('            <div class="navbar-right text-right">');
document.write('            <div id="offcanvas-overlay"></div>');
document.write('            <button id="offcanvas-toggle" type="button" class="navbar-toggle collapsed offcanvas-toggle" data-toggle="offcanvas" data-target="#navbar" aria-expanded="false" aria-controls="navbar">');
document.write('                <span class="icon-bar"></span>');
document.write('                <span class="icon-bar"></span>');
document.write('                <span class="icon-bar"></span>');
document.write('            </button>');
document.write('            <nav id="navbar" class="navbar-offcanvas-left navbar-main-collapse navbar-offcanvas navbar-offcanvas-touch">');
document.write('                <ul class="nav navbar-nav">');
document.write('                    <li><a href="http://baskabombay.com/default.htm">Home</a></li>');
document.write('                    <li id="about"><a href="../about-us/">About Us</a></li>');
document.write('                    <li id="services"><a href="../services/">Services</a></li>');
document.write('                    <li id="clients"><a href="../clients/">Clients</a></li>');
document.write('                    <li id="contact"><a href="../contact/">Contact Us</a></li>');
document.write('                </ul>');
document.write('            </nav>');
document.write('        </div>');
document.write('        </div>');
document.write('    </nav>');
document.write(' </nav>');