<!DOCTYPE html>
<html>

<head>
  <link data-require="bootstrap@*" data-semver="4.0.5" rel="stylesheet" href="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/css/bootstrap.min.css" integrity="sha384-AysaV+vQoT3kOAXZkl02PThvDr8HYKPZhNT5h/CXfBThSRXQ6jW5DO2ekP5ViFdi" />
  <script data-require="bootstrap@*" data-semver="4.0.5" src="https://maxcdn.bootstrapcdn.com/bootstrap/4.0.0-alpha.5/js/bootstrap.min.js"></script>
  <script data-require="jquery@*" data-semver="3.0.0" src="https://cdnjs.cloudflare.com/ajax/libs/jquery/3.0.0/jquery.js"></script>
  <link rel="stylesheet" href="style.css" />
  <script src="script.js"></script>
</head>

<body>
  <div class="col-xs-12 col-md-3 col-lg-3 servicesub" id="servicesub">
    <ul>
      <li class="servicesubitem"> <span class="subitem">Communications
								<br>
								&amp; Airtime</span><span class="fa1 fa-phone"> </span>

      </li>
      <div class="servicesubli">
        <ul>
          <li>VSAT</li>
          <li>IRIDIUM</li>
          <li>GSM</li>
          <li>INMARSAT</li>
          <li>IDIRECT</li>
        </ul>
      </div>
      <li class="servicesubitem"> <span class="subitem">IT &amp;
								<br>
								Networking</span><span class="fa1 fa-sitemap"> </span>

      </li>
      <div class="servicesubli">
        <ul>
          <li>Built/Refit Consultancy</li>
          <li>Managed IT Support</li>
          <li>Networking (Wired &amp; Wireless)</li>
          <li>Backup &amp; Disaster Recovery</li>
          <li>Antivirus</li>
        </ul>
      </div>
    </ul>
  </div>
  <div id="serviceinfo"></div>
  <div style="clear:both;"></div>
  <div id="footer"></div>
</body>

</html>
// Code goes here

// Code goes here

$(document).ready(function ($) {
    $('.servicesub').find('.servicesubitem').click(function () {

        if ($(this).next().is(':visible')) {
            //Collapse
            $(this).next().slideToggle('fast');
            $(this).removeClass('active');
            
            $("#footer").animate({marginTop: "0px"}, 'fast');
        } else {
            //Expand
            $(this).next().slideToggle('fast');
            $(this).siblings().removeClass('active');
            $(this).addClass('active');

            //hide other panels
            $(".servicesubli").not($(this).next()).slideUp('fast');
            
            $("#footer").animate({marginTop: "260px"}, 'fast');

        }

    });
    $('.servicesub').find('.servicesubitem .active'); {
        //Expand
        $(this).addClass('active');
    }
});
/* Styles go here */

/* Styles go here */

.servicesub {
    width: 200px;
    margin: 20px 0px;
    padding:10px;
    position: absolute;
}
.servicesub ul {
    list-style-type: none;
    padding: 0px;
    color: #fff;
}
.servicesub li {
    font-size: 14px;
    height: 70px;
    padding: 17px 0px 10px 20px;
    margin-top: 10px;
    text-transform: uppercase;
}
.servicesub li a {
    text-decoration: none;
}
.servicesub li a:hover {
    color:#fff;
}
.servicesub li {
    background-color: #017CEB;
}
.servicesub li:hover {
    background-color: #015BAC;
}
.servicesub li.active {
    background-color: #015BAC;
}
.servicesub span:after {
    color:#fff;
    font-family: FontAwesome;
    display: inline-block;
    width: 1.2em;
    font-size: 40px;
    position: absolute;
    text-align: center;
    margin-top: -9px;
}
.subitem {
    color:#fff;
    height:58px;
    width: 215px;
    position: absolute;
    right: 10px;
    text-align: center;
}
.servicesubitem {
    cursor: pointer;
}
.servicesubli {
    cursor: pointer;
    display: none;
}
.servicesubli.default {
    display: block;
}
.servicesubli ul {
    width: 100%;
    font-size: 14px;
}
.servicesubli li {
    padding: 8px;
    margin-top: 1px;
    text-transform: uppercase;
    height: 35px;
    text-align: center;
}
.servicesubli a {
    text-decoration: none;
    color: #fff;
}
#serviceinfo {
    width: 300px;
    height: 280px;
    border: 1px solid blue;
    float: right;
}
#footer {
    width: 100%;
    height: 200px;
    background-color: black;
}