  	<div class="toggle-bar<?php activehost_displayToggle();?>"><a class="tb-toggle" href="#"></a></div>
    <div class="wrapper<?php activehost_displayTopbar();?>" id="topbar">
    	<div class="container">
        	<ul>
          		<?php if(function_exists( 'ot_get_option' ) && ot_get_option('show_support_dropdown')=="on"){ ?>
            	<li><a href="#" class="dropdown-toggle dropdown-bottom" data-toggle="supportbox"><span class="glyphicon glyphicon-headphones"></span> Support</a>
                	<div class="hiddenbox" id="supportbox">
                    	<?php if(function_exists( 'ot_get_option' ) && ot_get_option('show_live_support_link')=="on"){ ?>	
						<div class="livesupport"><a href="<?php echo esc_url(ot_get_option('live_support_link_url'));?>"><img alt="alt" src="<?php echo esc_url(get_template_directory_uri()); ?>/images/icons/livesupport.png"><?php echo esc_html(ot_get_option('live_support_link'));?></a></div>
                        <?php }?>
                        <div class="row-fluid">
                       		 <?php wp_nav_menu( array('container' => '','menu' => 'support-links')); ?>
                        </div>
                    </div>
                </li>
                <?php }?>
                <?php if(!isset($_SESSION['uid'])){?>
                <?php if(function_exists( 'ot_get_option' ) && ot_get_option('show_log_in')=="on"){ ?>
                <li><a href="#" class="dropdown-toggle dropdown-bottom" data-toggle="signinbox"><span class="glyphicon glyphicon-lock"></span> <?php echo esc_html(ot_get_option('log_in_text'));?></a>
                	<div class="hiddenbox" id="signinbox">
                  <?php echo ot_get_option('log_in_html');?>
                    </div>
                </li>
                <?php } ?>
                <?php if(function_exists( 'ot_get_option' ) && ot_get_option('show_register_link')=="on"){ ?>
                <li><a href="<?php echo esc_url(ot_get_option('register_url'));?>"><span class="glyphicon glyphicon-user"></span> <?php echo esc_html(ot_get_option('register_text'));?></a></li>
                <?php } ?>
                <?php }else{?>
                <?php if(function_exists( 'ot_get_option' ) && ot_get_option('client_area_link')=="on"){ ?>
                <li><a href="<?php echo esc_url(ot_get_option('client_area_url'));?>"><span class="glyphicon glyphicon-lock"></span> <?php echo esc_html(ot_get_option('client_area_text'));?></a></li>
                <?php } ?>
                <?php if(function_exists( 'ot_get_option' ) && ot_get_option('show_log_out')=="on"){ ?>
                <li><a href="<?php echo esc_url(ot_get_option('log_out_url'));?>"><span class="glyphicon glyphicon-lock"></span> <?php echo esc_html(ot_get_option('log_out_text'));?></a></li>
                <?php } ?>
                <?php } ?>
                
            </ul>
            <ul class="toright">
            	<?php if(function_exists( 'ot_get_option' ) && ot_get_option('show_cart_link')=="on"){ ?>
            	<li><a href="<?php echo esc_url(ot_get_option('cart_text_url'));?>"><span class="fa fa-shopping-cart"></span> <?php echo esc_html(ot_get_option('cart_text'));?></a></li>
                <?php } ?>
                <?php 
				if(function_exists( 'ot_get_option' ) && ot_get_option( 'whmcs_url' )){ 
				 $actual_link = "http://$_SERVER[HTTP_HOST]$_SERVER[REQUEST_URI]";
				 if (strpos($actual_link,ot_get_option( 'whmcs_url' )) !== false) {
					 $actual_link = explode("?", $actual_link);
						$linkstart =  $actual_link[0];
				 }else{
					 $linkstart =  ot_get_option( 'whmcs_url' )."/clientarea.php";
				 }
				}
				 ?>
            </ul>
        </div>
    </div>