<?php
$action = $_GET['action'];
if(!empty($tpl['event_arr']['map']))
{
	$menu_arr = array(
			'pjActionTickets' => 1,
			'pjActionSeats' => 2,
			'pjActionCheckout' => 3,
			'pjActionPreview' => 4,
			'pjActionComplete' => 5
	);
	$menu_title_arr = array(
			1 => array('text'=> __('front_menu_step_1', true), 'load' => 'loadTickets'),
			2 => array('text'=> __('front_menu_step_2', true), 'load' => 'loadSeats'),
			3 => array('text'=> __('front_menu_step_3', true), 'load' => 'loadCheckout'),
			4 => array('text'=> __('front_menu_step_4', true), 'load' => 'loadPreview'),
			5 => array('text'=> __('front_menu_step_5', true), 'load' => 'loadComplete')
	);
}else{
	$menu_arr = array(
			'pjActionTickets' => 1,
			'pjActionCheckout' => 3,
			'pjActionPreview' => 4,
			'pjActionComplete' => 5
	);
	$menu_title_arr = array(
			1 => array('text'=> __('front_menu_step_1', true), 'load' => 'loadTickets'),
			3 => array('text'=> __('front_menu2_step_2', true), 'load' => 'loadCheckout'),
			4 => array('text'=> __('front_menu2_step_3', true), 'load' => 'loadPreview'),
			5 => array('text'=> __('front_menu2_step_4', true), 'load' => 'loadComplete')
	);
}
$current_item = $menu_arr[$action];
?>
<header class="panel-heading pjTbHeader">
	<div class="btn-group pjTbNav">
		<button class="btn dropdown-toggle" data-toggle="dropdown" aria-haspopup="true" aria-expanded="false">
			<?php echo $menu_title_arr[$current_item]['text'];?>
			<span class="caret"></span>
		</button>
		
		<ul class="dropdown-menu">
			<?php
			foreach($menu_title_arr as $k => $v)
			{
				?><li<?php echo $k <= $current_item ? ($k == $current_item ? ' class="active"' : NULL) : ' class="pjTbDdisabled"'; ?>><a href="#" class="pjEtsMenuItem" data-load="<?php echo $v['load'];?>"><?php echo $v['text'];?></a></li><?php
			} 
			?>
		</ul><!-- /.dropdown-menu -->
	</div><!-- /.btn-group pjTbNav -->
</header><!-- /.panel-heading pjTbHeader -->