<?php if($this->session->flashdata('sErrMSG') != '') { ?>

<div class="errorContainer" id="<?php echo $this->session->flashdata('sErrMSGType'); ?>"> 
  <script>setTimeout("hideErrDiv('<?php echo $this->session->flashdata('sErrMSGType'); ?>')", 5000);</script>
  <p><span> <?php echo $this->session->flashdata('sErrMSG');  ?> </span></p>
</div>
<?php } $showShopHead = 0; $shopEditArr = array('admin-edit-product','admin-preview'); $shopAddArr = array('admin-listitem','admin-preview'); $bodyArr2 = array('sell','listitem','name','billing'); ?>
<body <?php if(in_array($this->uri->segment(2),$bodyArr2)){ echo 'class="bodybg"';} ?>>
<header>
  <div class="main">
    <div class="header_top">
      <h1><a class="logo" href="<?php echo base_url(); ?>"><img src="images/logo/<?php echo $this->config->item('logo_image'); ?>" alt="<?php echo $this->config->item('email_title'); ?>" title="<?php echo $this->config->item('email_title'); ?>" /></a></h1>
      <?php if(in_array($this->uri->segment(1),$shopEditArr)){
		  		$showShopHead = 1;
		   }elseif(in_array($this->uri->segment(2),$shopAddArr)){ 
	           $showShopHead = 1;
        } ?>
        <?php  if($showShopHead ==0){ ?>
      <ul class="header_topright">
        <?php if(!empty($this->session->userdata['shopsy_session_user_name'])){?>
        <li><span><?php if($this->lang->line('comm_hi') != '') { echo stripslashes($this->lang->line('comm_hi')); } else echo 'Hi'; ?> </span><a href="view-profile/<?php echo $this->session->userdata['shopsy_session_user_name']?>"><span style="color: #0192B5 !important;" id="display_first_name_header"><?php echo $this->session->userdata['shopsy_session_full_name'];?></span></a></li>
        
        <li><a href="shop/sell"><span style="color: #0192B5 !important;" id="display_first_name_header"><?php if($this->lang->line('temp_yourshop') != '') { echo stripslashes($this->lang->line('temp_yourshop')); } else echo 'Your Shop'; ?></span></a></li>
        
        <li class="account_sub"><a  href="settings/my-account/<?php echo $this->session->userdata['shopsy_session_user_name']; ?>"><?php if($this->lang->line('comm_account') != '') { echo stripslashes($this->lang->line('comm_account')); } else echo 'Your Account'; ?></a>
          <ul class="account_menu_list">
            <span class="menuarrow"></span>
            <li><a  href="purchase-review"><?php if($this->lang->line('purchases-review') != '') { echo stripslashes($this->lang->line('purchases-review')); } else echo 'Purchases & Reviews'; ?></a></li>
            <li><a href="public-profile"><?php if($this->lang->line('user_pub_profile') != '') { echo stripslashes($this->lang->line('user_pub_profile')); } else echo 'Public Profile'; ?></a></li>
            <li><a href="view-profile/<?php echo $this->session->userdata['shopsy_session_user_name']?>"><?php if($this->lang->line('user_settings') != '') { echo stripslashes($this->lang->line('user_settings')); } else echo 'Settings'; ?></a></li>
            <!--<li><a href="javascript: void(0);">Apps</a></li>
            <li><a href="prototypes">Prototype</a></li>-->
            <li><a href="manage-community"><?php if($this->lang->line('comm_community') != '') { echo stripslashes($this->lang->line('comm_community')); } else echo 'Manage Community'; ?></a></li>
            <li><a  href="logout"><?php if($this->lang->line('sign_out') != '') { echo stripslashes($this->lang->line('sign_out')); } else echo 'Sign Out'; ?></a></li>
          </ul>
        </li>
        <?php }else{?>
        <!--<li class="reg-popup"><a href="#">Sign In</a></li>-->
        <?php }?>
        <li><a href="pages/help"><?php if($this->lang->line('comm_help') != '') { echo stripslashes($this->lang->line('comm_help')); } else echo 'Help'; ?></a></li>
      </ul>
     	<?php } ?>
    </div>
    <div class="header_bottom"> </div>
  </div>
</header>
 <?php if($showShopHead ==0){ ?>
<div class="add_shop">
  <div class="main">
    <ul class="add_steps">
      
      <li  class="step_1"> <a title="Choose Your Shop Name" href="shop/name" class="<?php if($this->uri->segment(2)=='name'){ echo 'shop_active_tab';} ?> tooltip">
        <div class="name-inner"><?php if($this->lang->line('comm_shopname') != '') { echo stripslashes($this->lang->line('comm_shopname')); } else echo 'Shop Name'; ?><span class="complete-indicator"></span></div>
        </a></li>
      <li  class="step_2">
        <?php if($selectSellershop_details[0]['seller_businessname'] != '') { ?>
        	<a title="What are you going to sell? Add and edit listings here." href="shop/listitem" class="<?php if($this->uri->segment(2)=='listitem'){ echo 'shop_active_tab';} if($this->uri->segment(1)=='edit-product'){ echo 'shop_active_tab';} ?> tooltip"> <div class="name-inner"><?php if($this->lang->line('comm_listitems') != '') { echo stripslashes($this->lang->line('comm_listitems')); } else echo 'List Items'; ?></div></a>
        <?php } else { ?>
        	<a class="shop_active"  style="cursor:default;"><div class="name-inner"><?php if($this->lang->line('comm_listitems') != '') { echo stripslashes($this->lang->line('comm_listitems')); } else echo 'List Items'; ?></div></a>
         <?php } ?>
        </li>
      <li class="step_3">
        <?php if(count($shopProduc)!= 0) { ?>
        <a title="Choose your shop payment methods." href="shop/payment" class="<?php if($this->uri->segment(2)=='payment'){ echo 'shop_active_tab';} ?>  tooltip" ><div class="name-inner"><?php if($this->lang->line('comm_getpaid') != '') { echo stripslashes($this->lang->line('comm_getpaid')); } else echo 'Get Paid'; ?></div></a>
        <?php } else{ ?>
         <a class="shop_active"  style="cursor:default;"><div class="name-inner"><?php if($this->lang->line('comm_getpaid') != '') { echo stripslashes($this->lang->line('comm_getpaid')); } else echo 'Get Paid'; ?></div></a>
		 <?php } ?>
		</li>
        <?php if($loginCheck != 1){ ?>
      	<li  class="step_4">
        <?php if($selectSellershop_details[0]['payment_mode']!= '') { ?>
        	<a title="Enter the credit card you want to use to pay your bill." href="shop/billing" class="<?php if($this->uri->segment(2)=='billing'){ echo 'shop_active_tab';} ?> tooltip"> <div class="name-inner"><?php if($this->lang->line('comm_billing') != '') { echo stripslashes($this->lang->line('comm_billing')); } else echo 'Billing'; ?></div></a>
        <?php } else { ?>
			<a   class="shop_active"  style="cursor:default;"> <div class="name-inner"><?php if($this->lang->line('comm_billing') != '') { echo stripslashes($this->lang->line('comm_billing')); } else echo 'Billing'; ?></div></a>
        <?php } ?>
       
        </li>
        
      <li class="step_5 tooltip"><a href="javascript: void(0);">
        <div class="name-inner"><?php if($this->lang->line('comm_openshop') != '') { echo stripslashes($this->lang->line('comm_openshop')); } else echo 'Open Shop'; ?></div>
        </a></li>
      <li  class="preview "><a class="tooltip" title="Preview your shop page." href="shop/sell" >
        <div class="name-inner" ><?php if($this->lang->line('comm_preview') != '') { echo stripslashes($this->lang->line('comm_preview')); } else echo 'Preview'; ?></div>
        </a></li>
        <?php }else{ ?>
        <li  class="step_4">
        	<a title="Preview your shop page." href="shop/sell" class="tooltip" <?php if($this->uri->segment(2)=='sell'){ echo 'style="background-position:-540px -88px !important"';} ?>>
        <div class="name-inner"><?php if($this->lang->line('comm_preview') != '') { echo stripslashes($this->lang->line('comm_preview')); } else echo 'Preview'; ?></div>
        </a></li>
        <?php } ?>
      
    </ul>
    <?php if($this->session->userdata['shopsy_session_user_confirm'] == 'No') { 
	  			  $this->load->view('site/templates/mail_confirmation');
	   }?>
  </div>
</div>
<?php } ?>
<script>
function hideErrDiv(arg) {
    document.getElementById(arg).style.display = 'none';
}
</script> 
<script src="js/site/main.js" type="text/javascript"></script>



<script>
$(document).ready(function(){

		$(".cboxClose1").click(function(){
			$("#cboxOverlay,#colorbox").hide();
			});
		//class="welcome-popup"
			$(".welcome-popup").colorbox({width:"580px", height:"auto", inline:true, href:"#inline"});
		
			//Example of preserving a JavaScript event for inline calls.
			$("#onLoad").click(function(){ 
				$('#onLoad').css({"background-color":"#f00", "color":"#fff", "cursor":"inherit"}).text("Open this window again and this message will still be here.");
				return false;
			});

});
</script>




<div style='display:none'>
  <div id='inline' style='background:#F5F5F1; border-radius:5px'> 
  <div style="padding: 20px 30px; border-radius:5px 5px 0 0" class="global-header"><h2 style="color: #555555;"><?php if($this->lang->line('comm_welcome') != '') { echo stripslashes($this->lang->line('comm_welcome')); } else echo 'Welcome to our Global Community of Sellers!'; ?></h2></div>
   <div style="background:#fff; border-radius:0 0 5px 5px" class="global-section glob-sugession">
   <p><?php if($this->lang->line('comm_shopsybuyers') != '') { echo stripslashes($this->lang->line('comm_shopsybuyers')); } else echo 'Reach Shopsy Buyers, I already sell full time'; ?></p>
   <p><?php if($this->lang->line('comm_quitmyday') != '') { echo stripslashes($this->lang->line('comm_quitmyday')); } else echo 'Quit my day job to sell full time'; ?></p>
    <p><?php if($this->lang->line('comm_sparetime') != '') { echo stripslashes($this->lang->line('comm_sparetime')); } else echo 'Sell in my spare time'; ?></p>
     <p><?php if($this->lang->line('comm_other') != '') { echo stripslashes($this->lang->line('comm_other')); } else echo 'other'; ?></p><input type="text" placeholder="<?php if($this->lang->line('comm_other') != '') { echo stripslashes($this->lang->line('comm_other')); } else echo 'other'; ?>"></div>
    
    
  </div>
</div>







<style>

#tooltip{
	position:absolute;
	border:1px solid #333;
	background:#333333;
	padding:2px 5px;
	color:#FFFFFF;
	display:none;
    
    top:40px;
	border-radius: 3px;
	width:200px;
	float:left;
	padding: 3px 6px;
	
	font-size: 13px;
	z-index:9999;
    font-weight: normal;
}




</style>
