<script type="text/javascript">
    $(document).ready(function(){
	     $("#the-sticky-div").jScroll();
	});
	//remove ability to login when going through signup
	$('#loginLink').parent().html('&nbsp;');
	<?php if ($this->showTimer) { ?>
    $(document).ready(function(){	
		sc_minutes = <?php echo $this->timerMinutes; ?>;
		setStockCountDown();
	});
	<?php } ?>
		
</script>

<div id="the-sticky-div" class="right" style="background:#ffffee; border:1px solid #efefbb; margin-bottom:20px; padding:10px; width:180px;-moz-border-radius: 5px;-webkit-border-radius: 5px;">
  <h3><?php echo $this->lang('Cart Summary');?></h3>
   <div id="remain"></div>

  <?php if(is_array($this->cartItems)) { ?>

    <?php foreach($this->cartItems AS $item) { ?>
      <div style="border-top:1px solid #eee; padding-top:10px; margin-bottom:10px;">
        <?php if($item['groupType'] == '3') { ?>
        	<strong><?php echo $item['name'];?></strong><br />
        	<i><?php echo $item['domainName']; ?></i><br />
        <?php } else { ?>
        	<strong><?php echo $item['name'];?></strong><br />
        	<?php if($item['associatedDomain'] != false) { ?> <i><?php echo $item['associatedDomain'];?></i><br /><?php } ?>
        <?php } ?>
        <?php echo $this->lang(@$item['term']);?> @ <?php echo @$item['totalFormatted'];?>
      </div>
    <?php } // end foreach ?>
  
    <?php if(isset($this->cartCancel)) { ?>
		<div style="border-top:1px solid #eee; padding-top:10px; text-align:right;font-size:smaller;">
			<a href="order.php?step=0"><?php echo $this->lang('Continue Shopping');?></a>
			/
			<a href="#" onclick="confirmCartCancel();"><?php echo $this->lang('Cancel Order');?></a>
		</div>
    <?php } else { ?>
		<div style="border-top:1px solid #eee; padding-top:10px; text-align:right;"><?php echo $this->lang('Current total');?>: <strong><?php echo $this->cartTotal;?></strong>
			<br>
			<a href="order.php?step=4" <?php if ($_REQUEST["step"] < 2) echo "class='nopopupalert'"; else echo "class='showcancelalert'"; ?> style="font-size:smaller;"><?php if ($_REQUEST["step"] < 2) echo $this->lang('View Order Summary'); else echo $this->lang('Cancel Current Item');?></a>
		</div>
	<?php } ?>

  <?php } else {  ?>
    <div style="border-top:1px solid #eee; padding-top:10px; margin-bottom:10px;">
      <i><?php echo $this->lang('Your cart is empty');?>.</i>
    </div>
  <?php } // end if ?>
  
</div>