<link href="catalog/template/beststoreitems/css/footer.css" type="text/css" rel="stylesheet" />
<div class="footer-container">
<div class="footer container">
	<div class="row footer_top">
    	<div class="col-md-16 col-sm-24 f-right">
        	<div class="row">
            <?php if(is_array($knowledge_base_list)){?>
                <?php foreach($knowledge_base_list as $v){?>
                	<div class="col-sm-6 col-xs-12">
                    	<h2 class="footer_list_title"><?php echo $v['title']?></h2>
                        <ul class="footer_list">
                           <?php foreach($v['child'] as $cv){?>
                            <li><a href="/index.php?controller=knowledge_base&knowledge_id=<?php echo $cv['knowledge_id']?>"><i class="<?php echo $cv['class'];?>"></i><?php echo $cv['title'];?></a></li>
                           <?php }?>
                        </ul>
                     </div>
                <?php }?>
            <?php }?>
            </div>
         </div>
         
    <div class="col-md-8 col-sm-24 f-left">
    	<div class="footer-block-newsletter">
   	    	<h3 class="block-title">Newsletter</h3>
            <div class="block-content">
            <form method="POST" name="subForm" id="subForm" action="index.php?controller=subscribe" class="form-inline">
                  <div class="form-group"><input type="text" maxlength="100" id="newsletter" name="email" class="input-text required-entry validate-email" onblur="if (this.value=='')this.value='ENTER YOUR EMAIL'" onfocus="if (this.value=='ENTER YOUR EMAIL')this.value=''" value="ENTER YOUR EMAIL" autocomplete="off"></div>
                  <input type="submit" class="btn btn-primary" name="button" onclick="return subMail_Two();" value="SUBSCRIBE">
            </form> 
          <p>Subscribe to our newsletter and keep up with the latest beststoreitems products and offers.</p>
        </div>
		</div>
    </div>
	</div>
    <div class="row footer_bottom">
        <div class="col-sm-12">
            <div class="pay_methods">
                <span title="SSL Secure" class="pay_method pay_ssl">SSL Secure</span>
                <span title="VISA" class="pay_method pay_visa">VISA</span>
                <span title="MasterCard" class="pay_method pay_master">MasterCard</span>
                <span title="American Express" class="pay_method pay_american">American Express</span>
                <span title="Western Union" class="pay_method icon pay_wu"><i class="icon-wu-logo">&nbsp;</i></span>
        	</div>			
		</div>
        <div class="col-sm-12">
            <a class="footer_logo" href="/">
                <i class="icon-logo">beststoreitems</i>
            </a>
        </div>
    </div>
  </div>
</div>

<div id="roll">
    <div title="Back to top" id="roll_top"></div>
</div>
<script type="text/javascript">

			function subMail_Two()

			{

				var mail = document.getElementById('newsletter').value;

				if(!/^([\w-\.]+)@((\[[0-9]{1,3}\.[0-9]{1,3}\.[0-9]{1,3}\.)|(([\w-]+\.)+))([a-zA-Z]{2,4}|[0-9]{1,3})(\]?)$/.test(mail))

				{

					alert('Please check your email address.\nYour email addresses should look like "myname@gmail.com"');

					return false;

				}

				else

				{

					document.getElementById('subForm').submit();

				}

			}

	$(document).ready(function(){
		// Back to top	
		$('#roll').hide();
	
		$(window).scroll(function() {
	
			if($(window).scrollTop() >= 100){
	
				$('#roll').fadeIn(400);
		}
		else
		{
			$('#roll').fadeOut(200);
		}
	
	  });
	
	  $('#roll_top').click(function(){$('html,body').animate({scrollTop: '0px'}, 800);});
	
	  $('#roll_bottom').click(function(){$('html,body').animate({scrollTop:$('#bottombox').offset().top}, 800);});
	
	});

	//Mobile Sidebar
	$.ajaxSetup({
		cache:false
	});
	$( '.mp_sidebar' ).simplemp_sidebar({
		settings: {
			opener: '#open-sb',
			wrapper: '.wrapper',
			btn:'.btn',
			caret:'.caret',
			animation: {
				duration: 500,
				easing: 'easeOutQuint'
			}
		},
		mp_sidebar: {
			align: 'left',
			width: 300,
			closingLinks: 'a',
		}
	});
</script>
<script src="http://s11.cnzz.com/z_stat.php?id=1258677938&web_id=1258677938" language="JavaScript"></script>