<!-- header -->

<?php 
	$pageName = basename($_SERVER['PHP_SELF']);
	$prefixIndustries = "industries/";
	$prefixServices = "services/";
	

	if (strpos($pageName, $prefixServices) !== false || strpos($pageName, $prefixIndustries) !== false)
	{
		$backToRoot = "../"; 
	}
	else 
	{
    	$backToRoot = "";
	}

?>

	<div id="header-wrap">
		<header id="header" class="general-section">
			<div id="logo"><a class="clear_storage" href="<?php $backToRoot; ?>index.php"><div class="dinamic-logo"></div></a></div><!-- end Logo -->
			<a class="mobile-nav-toggle deactive" href="#"><i class="fa-bars"></i></a>
			<nav id="navigation">
				<ul>
					<?php 	
						if($pageName == 'index.php')
						{
							echo '<li data-id ="intro-section" class="clear_storage intro-section active"><a href="'. $backToRoot. 'index.php">home</a><span class="nav-active-mark"></span></li>';
						}
						else
						{
							echo '<li data-id ="intro-section" class="clear_storage intro-section "><a href="' . $backToRoot . 'index.php">home</a></li>';
						}
					?>
					
					<li data-id ="about-section" class="about-section"><a  class="clear_storage " href="<?php echo  $backToRoot; ?>index.php">about us</a></li>
					<li data-id="our_partners-section" class="our_partners-section"><a  class="clear_storage " href="<?php $backToRoot; ?>index.php">our partners</a></li>
					<!-- <li><a href="#team-wrap">our team</a></li> -->
					<!-- <li class="services-section"><a  class="clear_storage " href="#services-section">services</a></li> -->
					
					<!--<li class="teams-wrap"><a data-id ="teams_wrap" class="clear_storage" href="#teams-wrap">teams</a></li>-->
					
					
					<!-- <li><a href="#gallery-wrap">gallery</a></li>
					<li><a href="#events-wrap">events</a></li>
					<li><a href="#stats-wrap">stats</a></li>
					<li><a href="#news-wrap">news</a></li> -->
					<li  data-id ="contact-section" class="contact-section"><a  class="clear_storage " href="<?php echo  $backToRoot; ?>index.php">contact us</a></li>


					<?php	
						if($pageName == '')
						{
							echo '<li class="service-link active"><a>Services</a> <span class="nav-active-mark"></span></li>';
						}
						else
						{
							echo '<li class="service-link"><a>Services</a></li>';
						}

						if($pageName == '')
						{
							echo '<li class="industries-link active"><a>Industries</a> <span class="nav-active-mark"></span></li>  ';
						}
						else
						{
							echo '<li class="industries-link"><a>Industries</a></li>  ';
						}

						if($pageName == 'careers.php' || $pageName == 'apply.php' )
						{
							echo '<li ><a class="clear_storage active" href="' . $backToRoot . 'careers.php">careers</a> <span class="nav-active-mark"></span></li>';
						}
						else
						{
							echo '<li class="industries-link"><a>Industries</a></li>  ';
						}

						if($pageName == 'careers.php')
						{
							echo '<li ><a class="clear_storage active" href="' .$backToRoot .'careers.php">careers</a> <span class="nav-active-mark"></span></li>';
						}
						else
						{
							echo '<li class="industries-link"><a>Industries</a></li>  ';
						}

						if($pageName == 'portfolio.php')
						{
							echo '<li><a  class="clear_storage active"  href="' . $backToRoot .'portfolio.php">portfolio</a> <span class="nav-active-mark"></span></li>';
						}
						else
						{
							echo '<li><a  class="clear_storage" href="' . $backToRoot . 'portfolio.php">portfolio</a></li>';
						}
					?>										
					
				</ul>

				
			</nav><!-- end Navigation -->
			<nav id="mobile-navigation">
				<ul>
					<li data-id ="intro_link" class="clear_storage active"><a href="<?php echo $backToRoot;?>index.php">home</a></li>
					<li><a data-id ="aboutus_link" class="clear_storage" href="<?php echo $backToRoot;?>index.php">about us</a></li>
					<li data-id="our_partners-section" class="our_partners-section"><a  class="clear_storage " href="<?php echo $backToRoot;?>index.php">our partners</a></li>
					<li><a data-id ="contact_link" class="clear_storage" href="<?php echo $backToRoot;?>index.php">contact us</a></li>
					<!-- <li><a href="#team-wrap">our team</a></li> -->
					<!-- <li><a data-id ="services_link" class="clear_storage" href="#services-section">services</a></li> -->

					<!--<li><a data-id ="teams_link" class="clear_storage" href="#teams-wrap">teams</a></li>-->

					<!-- <li><a href="#gallery-wrap">gallery</a></li>
					<li><a href="#events-wrap">events</a></li>
					<li><a href="#stats-wrap">states</a></li>
					<li><a href="#news-wrap">news</a></li> -->
					<li class="service-link"><a>Services</a>
						<ul class="mobile-submenu">
							<li>
								<a href='<?php echo $prefixServices; ?>dedicatedDevelopmentTeam.php'>Dedicated Development Team</a>
							</li>
							<li>
								<a href="<?php echo $prefixServices; ?>sofwareProductDevelopment.php">Software Product Development</a>
							</li>
							<li>
								<a href="<?php echo $prefixServices; ?>softwareTesting.php">Software Testing and QA</a>
							</li>
							<li>
								<a href="<?php echo $prefixServices; ?>mobileApplicationDevelopment.php">Mobile Aplication Development</a>
							</li>
							<li>
								<a href="<?php echo $prefixServices; ?>apiDevelopmentIntegration.php">API Development and Integration</a>
							</li>
						</ul>
					</li>					
					<li class="industries-link"><a>Industries</a>
						<ul class="mobile-submenu">
							<li>
								<a href="<?php $prefixIndustries; ?>financeBanking.php">Finance & Banking</a>
							</li>
							<li>
								<a href="<?php $prefixIndustries; ?>healthcare.php">Healthcare</a>
							</li>
						</ul>
					</li>
					
					<li><a class="clear_storage" href="careers.php">careers</a></li>
					<li><a class="clear_storage" href="portfolio.php">portfolio</a></li>
				</ul>
			</nav><!-- end Navigation -->	
			<div class="dropdown_wrap general-section">
				<div class="dropdown_menu" id="servicesMenu">
					<div class="dropdown-container">
						<div class="row">
							<div class="col-md-7 dropdown-half dropdown-left">
								<img src="images/services.jfif" >
							</div>
							<div class="col-md-5 dropdown-half dropdown-right">
								<ul class="expand-menu">
									<li>
										<a href="<?php echo $prefixServices; ?>dedicatedDevelopmentTeam.php">Dedicated Development Team</a>
									</li>
									<li>
										<a href="<?php echo $prefixServices; ?>sofwareProductDevelopment.php">Software Product Development</a>
									</li>
									<li>
										<a href="<?php echo $prefixServices; ?>softwareTesting.php">Software Testing and QA</a>
									</li>
									<li>
										<a href="<?php echo $prefixServices; ?>mobileApplicationDevelopment.php">Mobile Aplication Development</a>
									</li>
									<li>
										<a href="<?php echo $prefixServices; ?>apiDevelopmentIntegration.php">API Development and Integration</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div> 
				<div class="dropdown_menu" id="industriesMenu">
					<div class="dropdown-container">
						<div class="row">
							<div class="col-md-7 dropdown-half dropdown-left">
								<img src="<?php echo $backToRoot;?>images/industries.png">
							</div>
							<div class="col-md-5 dropdown-half dropdown-right">
								<ul class="expand-menu">
									<li>
										<a href="<?php $prefixIndustries; ?>financeBanking.php">Finance & Banking</a>
									</li>
									<li>
										<a href="<?php $prefixIndustries; ?>healthcare.php">Healthcare</a>
									</li>
								</ul>
							</div>
						</div>
					</div>
				</div> 
		</header>
	</div><!-- end header -->