<footer <?php if($this->uri->segment(1)==''){ echo 'class="homefooter"'; } ?>>
    <div class="main">
    	<div class="footer" >
        	<p><?php echo $this->config->item('footer_content'); ?></p>
            	<ul class="copyrights_1">
                	<li>
                        <a onclick="return activeLanguage();" class="example9">
                        	<?php #if($this->lang->line('comm_english') != '') { echo stripslashes($this->lang->line('comm_english')); } else echo 'English (US)'; ?>
                            <?php echo $languageName; ?>
                        </a>/
                    </li>                    
                    <li>
                    	<a onclick="return activeCurrency();"  class="example9"><?php echo $currencySymbol;?> <?php echo $currencyName;?> </a>
                    </li>				                     
                    <!--<li><a href="javascript:void(0);" class="example9"><?php echo $regionName;?></a></li>-->
                </ul>
                <ul class="copyright_links">
                	<li>
                    	<!-- Win a href="blog"><?php if($this->lang->line('comm_blog') != '') { echo stripslashes($this->lang->line('comm_blog')); } else echo 'Blog'; ?></a -->
                    	<a href="/shop/sell"> Sell </a>
                    </li>
                    <?php foreach($this->data['cmsPages'] as $cmsList) {?>                    
                    <li>
                    	<a href="pages/<?php echo $cmsList['seourl'];?>"><?php echo $cmsList['page_name'];?></a>
                    </li>
                    <?php }?>
                </ul>
            </div>
        </div>
</footer>
    
<!-- Popup_signin_start -->


<div style='display:none'>
    <div id='inline_example4' style='background:#fff;'>
        <form action="currency" method="post" id="preferencesForm" name="preferencesForm">
            <div style="background:#fff;" class="popup_page">
                <div id="TabbedPanels14" class="TabbedPanels">
                    <ul style="float:left;margin:0 0 -1px 0; background:#f5f5f1;padding: 26px 0px 0;width: 100%; border-radius:5px 5px 0 0" class="TabbedPanelsTabGroup">
                    	<li class="TabbedPanelsTab " tabindex="0" id="languageTab">
							<?php if($this->lang->line('user_language') != '') { echo stripslashes($this->lang->line('user_language')); } else echo 'Language'; ?>
                        </li>
                    	<li class="TabbedPanelsTab " tabindex="0" id="currencyTab">
							<?php if($this->lang->line('user_currency') != '') { echo stripslashes($this->lang->line('user_currency')); } else echo 'Currency'; ?>
                        </li>
                    	<!-- <li class="TabbedPanelsTab " tabindex="0">Region</li>-->
                    </ul>
                    <div class="TabbedPanelsContentGroup">
                        <div style="background:#fff;" class="TabbedPanelsContent ">
                            <div class="tab_box">
                                <div style="min-height: 400px;"  class="popup_tab_content">
                                    <div class="footer_popup_left">
                                    	<h2><?php if($this->lang->line('comm_chooselan') != '') { echo stripslashes($this->lang->line('comm_chooselan')); } else echo 'Choose your language'; ?>:</h2>
                                        <div class="verticalslider" id="textExample">
                                            <ul class="preference_split" style="border:none;">                                       
                                                <?php foreach($languagesList->result() as $LList){ ?>
                                                <li class="languageLi  <?php if($LList->lang_code == $languageCode){ echo 'currencyactive';}?>" id="<?php echo $LList->lang_code;?>"  data-name="<?php echo $LList->name;?>">
                                                    <a><?php echo $LList->name; ?></a>
                                                </li>
                                                <?php } ?>
                                            </ul>
                                            <ul class="verticalslider_contents">
                                                <!-- <li><p>Seite auf Deutsch ansehen. </p></li>     -->          
                                            </ul>
                                        </div>
                                    	</div>
                                	</div>
                            	<div>
                    		</div>
                    		</div>
                		</div>
                        <div style="background:#fff;" class="TabbedPanelsContent ">
                            <div class="tab_box">
                                <div style="min-height: 400px;"  class="popup_tab_content">
                                    <div class="footer_popup_left">
                                    	<h2><?php if($this->lang->line('comm_choose_currency') != '') { echo stripslashes($this->lang->line('comm_choose_currency')); } else echo 'Choose your currency'; ?>:</h2>
                                        <div class="pass" >
                                            <ul class="preference_split" style="border:none;">
                                            <?php foreach($currencyList->result() as $crnylist) {?>
                                            	<li class="currencyLi  <?php if($crnylist->currency_code == $currencyType){ echo 'currencyactive';}?>" id="<?php echo $crnylist->currency_code;?>">
                                                    <input type="hidden" id="<?php echo 'cur'.$crnylist->currency_code;?>" value="<?php echo $crnylist->currency_symbol.' '.$crnylist->currency_name;?>" />
                                                    <span><?php echo $crnylist->currency_symbol; ?></span>
                                                    <a class="split_link" ><?php echo $crnylist->currency_name; ?></a>
                                                    <span style="margin:4px 0 0 0px;"> <?php echo $crnylist->currency_code; ?></span>
                                                </li>
                                            <?php } ?>   
                                            </ul>
                                        </div>
                                    </div>
                                </div>
                            <div>
                            </div>
                            </div>
                        </div>
                                  
                        <!--<div class="TabbedPanelsContent ">
                                        <div class="tab_box">
                                 <div  class="popup_tab_content">
                                 <div class="footer_popup_left">
                                 <h2>Choose your region:</h2>
                                 
                                 <div class="pass">
                    
                                <p class="p_text">Set your region to help us show you custom content from your area.</p>
                                    <div class="shipping_field" style="margin-bottom:10px;">
                                        <select class="shipping_fiel" style=" margin-left:0px;" id="region" name="region">
                                        <option value="EV" <?php if($regionCode == 'EV'){ echo 'selected="selected"';}?> >Everywhere</option>
                                        <optgroup label="___________________"></optgroup>
                                        <?php foreach($countryList as $clist) {  if($clist->country_code != 'EV'){?>
                                        <option value="<?php echo $clist->country_code;?>" <?php if($regionCode == $clist->country_code){ echo 'selected="selected"';}?>><?php echo $clist->name; ?></option>
                                        <?php } }?>
                                        </select>
                                    </div>
                                </div>
                                          </div>
                                 
                               
                                   </div>
                                  
                                          <div>
                                          
                                         </div>
                                     
                                  </div>
                                  </div>-->
                    </div>
                <div class="clear"></div>
                <!--end of tab panels-->
                </div>
                <div style="width:94.4%" class="footer_tab_footer">
                    <span id="selectedLanguage"><?php echo $languageName; ?></span>/ 
                    <span id="selectedCurrency"><?php echo $currencySymbol;?> <?php echo $currencyName;?> </span>
                    <!--/ <span id="selectedReligion"><?php echo $regionName;?> </span>-->
                    <div class="popup_button">
                        <input class="submit_btn" type="submit" value="<?php if($this->lang->line('user_save') != '') { echo stripslashes($this->lang->line('user_save')); } else echo 'Save'; ?>">
                        <input class="submit_btn" type="button" id="footerPopCarncel" onclick="javascript:$('#cboxClose').trigger('click');" value="<?php if($this->lang->line('user_cancel') != '') { echo stripslashes($this->lang->line('user_cancel')); } else echo 'Cancel'; ?>">
                        <input type="hidden" name="returnUrl" value="<?php echo current_url();?>">
                        <input type="hidden" name="currency" id="currency" value="<?php echo $currencyType;?>" />  
                        <input type="hidden" name="language" id="language" value="en" />
                    </div>
                </div>
            </div>
        </form>
    </div>
</div>

<!-- Popup_signin_end -->

<script src="js/jquery.colorbox.js"></script>
<script>
$(document).ready(function(){

		$(".cboxClose1").click(function(){
			$("#cboxOverlay,#colorbox").hide();
			});
		
			
			$(".reg-popup").colorbox({width:"580px", height:"auto", inline:true, href:"#inline_reg1"});
			$(".example9").colorbox({width:"750px", height:"auto", inline:true, href:"#inline_example4"});
			$(".reg-popupnxt").colorbox({width:"748px", height:"auto", inline:true, href:"#inline_nxt"});
		
		//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>

<script type="text/javascript">
            <!--
            var TabbedPanels14 = new Spry.Widget.TabbedPanels("TabbedPanels14");
            //-->
</script>

<script>
$(document).ready(function(e) {
    $('.currencyLi').each(function() {
       $(this).click(function(e) {
		   $('.currencyLi').removeClass('currencyactive');
		   var curId=$(this).attr('id');
		   $('#'+curId).addClass('currencyactive');
		   var changeVal=$('#cur'+curId).val();
		   $('#selectedCurrency').html(changeVal);
		   $('#currency').val(curId);// alert(changeVal);
    	});
	  
    });
	$('.languageLi').each(function() {
       $(this).click(function(e) {
		   $('.languageLi').removeClass('currencyactive');
		   var langId=$(this).attr('id');
		   $('#'+langId).addClass('currencyactive');
		   var changeVal=$('#'+langId).data('name');
		   $('#selectedLanguage').html(changeVal);
		   $('#language').val(langId);
    	});
	  
    });
	
   /*$('#region').change(function(e) {
	   if($('#region').val())
	   alert($('#region').val());
	  $('#selectedReligion').html($('#region').val());
    
   });*/
   
   $('#footerPopCancel').click(function(e) {
    $('#cboxClose').trigger('click');
   });
   
	if(currUrls == 'shop'){
		$('body').attr('class','');	
	}
   
});

function activeCurrency(){  
$('#currencyTab').trigger('click');
}

function activeLanguage(){  
//$('#languageTab').addClass('TabbedPanelsTabSelected');
$('#languageTab').trigger('click');
}

</script>

<script type="text/javascript">
    $(function(){
      SyntaxHighlighter.all();
    });
    $(window).load(function(){
      $('.flexslider').flexslider({
        animation: "slide",
        controlNav: "thumbnails",
        start: function(slider){
          $('body').removeClass('loading');
        }
      });
    });
	
	
 </script>

</body>
</html>