<input type="text" id="remote-users" style="width:156px !important;display:none"/>
<div class="selectedcustomer" style="text-align:<?php echo $this->gSelectedCustomerTextAlign;?>;">
    <?php if ($this->gShowProfileCard) { ?>        
        <span id="activecustomermenuselector" style="padding-top:2px;float:right; <?php echo $this->gMenuSelector;?>"><img src="../templates/admin/images/open_black.gif" /></span>
    <?php } ?>
    <span id="selectedcustomer"><?php echo $this->gActiveProfile;?></span>
</div>

<?php if ($this->showCustomerSubMenu) { ?>
<div class="dropdown">
    <ul>
        <li class="first" onclick="window.location='index.php?fuse=clients&amp;view=Admin_Profile_Contact'">&nbsp;&nbsp;<?php echo $this->lang("Profile");?></li>
        <?php
        if ($this->user->hasPermission('clients_view_domains') && $this->company->supports('products')) {
            echo '<li onclick="window.location=\'index.php?fuse=clients&amp;view=Admin_Profile_Products\'">&nbsp;&nbsp;'.$this->lang("Products").'</li>';
        }
        if ($this->company->supports('billing')) {
            echo '<li onclick="window.location=\'index.php?fuse=clients&amp;view=Admin_Profile_Billing\'">&nbsp;&nbsp;'.$this->lang("Billing").'</li>';
        }
        if ($this->user->hasPermission('billing_recurring_overview') && $this->company->supports('billing')) {
            echo '<li onclick="window.location=\'index.php?fuse=clients&amp;view=Admin_Profile_RecurringCharges\'">&nbsp;&nbsp;'.$this->lang("Recurring").'</li>';
        }
        if ($this->user->hasPermission('billing_view') && $this->company->supports('billing')) {
            echo '<li onclick="window.location=\'index.php?fuse=clients&amp;view=Admin_Profile_Invoices\'">&nbsp;&nbsp;'.$this->lang("Invoices").'</li>';
        }
        ?>
        <li onclick="window.location='index.php?fuse=clients&amp;view=Admin_Profile_Accounts'">&nbsp;&nbsp;<?php echo $this->lang("Alt Accounts");?></li>
        <li onclick="window.location='index.php?fuse=clients&amp;view=Admin_Profile_Notes'">&nbsp;&nbsp;<?php echo $this->lang("Notes");?></li>
        <li onclick="window.location='index.php?fuse=clients&amp;view=Admin_Profile_Password'">&nbsp;&nbsp;<?php echo $this->lang("Password");?></li>
        <?php
        if ($this->user->hasPermission('clients_view_eventlog')) {
            echo '<li onclick="window.location=\'index.php?fuse=clients&amp;view=Admin_Profile_Events\'">&nbsp;&nbsp;'.$this->lang("Events").'</li>';
        }
        ?>

    </ul>
</div>
<?php } ?>

<div id="viewactionitems"></div>		
<div style="padding-left:13px;padding-top:0px; padding-bottom:0px;">
    <ul class="links" style="margin-left:0px !important;">
        <li id='blankforvalidation1' style="display:none">&nbsp;</li>
        <?php
        foreach($this->gOpenItems as $openitem) { ?>
        <li><?php echo $openitem['openitemname'];?></li>
        <?php } ?>
    </ul>
</div>

<div style="padding-left:13px;padding-top:0px; padding-bottom:0px;<?php echo $this->gViewActionsDisplayStyle;?>">
    <h5><?php echo $this->lang("Available Actions");?></h5>
    <ul class="links" style="margin-left:0px !important;">
        <?php foreach($this->viewActions as $viewaction) { ?>
        <li><?php echo $viewaction;?></li>
        <?php } ?>
    </ul>
</div>  


<script type="text/javascript">
	<?php if ($this->gShowCustomerDropDown) { ?>
		clientexec.bindCustomerDropdown();
	<?php } ?>		
	$('#activecustomermenuselector, #selectedcustomernav .dropdown').mouseenter(function(e){
		$('#selectedcustomernav:hover .dropdown').show();
	});
	$('#activecustomermenuselector, #selectedcustomernav .dropdown').mouseleave(function(e){
		$('#selectedcustomernav:hover .dropdown').hide();
	});
	
    ce.lazyLoad("../javascript/ext/ux/fileuploadfield/FileUploadField.js");       

</script>
