<?php
	// get selected language
	$_lang = $this->config->item('lang_selected');
	
	//echo $this->session->userdata('lang_id');
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xmlns:og="http://ogp.me/ns#" 
xmlns:fb="http://www.facebook.com/2008/fbml">
    
<head>
<title>
<?=$title." | Wines2u"?>
</title>
<link href='http://fonts.googleapis.com/css?family=Comfortaa:300&subset=latin,greek' rel='stylesheet' type='text/css'>

<link rel="icon" href="<?=base_url()?>images/favicon.ico" type="image/x-icon" />
<link rel="shortcut icon" href="<?=base_url()?>images/favicon.ico" type="image/x-icon" />
<!--<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" /> -->
<meta http-equiv="X-UA-Compatible" content="IE=EmulateIE7" />
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<? if (($this->uri->segment(1)=='view_product') || ($this->uri->segment(1)=='product')){ ?>
 <? if ($product['description']) { ?>
 <meta name="description" content="<?=strip_tags($product['description'], '')?>" />
 <? } else { ?>
 <meta name="description" content="Το wines2u.gr είναι ένα πόνημα ανθρώπων που, πέρα από την φιλία τους, τους συνδέει η αγάπη για το κρασί." />
 <? } ?>
<? } else { ?>
<meta name="description" content="Το wines2u.gr είναι ένα πόνημα ανθρώπων που, πέρα από την φιλία τους, τους συνδέει η αγάπη για το κρασί." />
<? } ?>
<meta name="keywords" content="wines2u, wines2u.gr, κρασί, αγορά, <?=$keywords; ?>" />
<meta name="generator" content="GetID :: Graphic and Web Deisgn" />
<meta name="language" content="el" />
<meta http-equiv="Content-Language" content="el" />
<meta name="author" content="info@getid.gr" />
<meta name="copyright" content="Copyright © 2011 Sales2u, All rights reserved." />
<meta http-equiv="reply-to" content="info@getid.gr" />
<meta name="robots" content="index,follow" />

<? if (($this->uri->segment(1)=='view_product') || ($this->uri->segment(1)=='product')){ ?>
<meta content="http://www.wines2u.gr/view_product/<?=$product['p_id']?>" property="og:url">
<meta content="Wines2u | <?=$product['name']?>" property="og:title">
<meta content="website" property="og:type">
<meta content="<?=strip_tags($product['description'], '')?>" property="og:description">
<? //preg_match('@<img.+src="(.*)".*>@Uims', $vpost['body'], $matches);
//$src = $matches[1]; ?>
<meta content="http://www.wines2u.gr/images/prds/thumb/<?=$product['image']?>" property="og:image">
<link href="http://www.wines2u.gr/images/prds/thumb/<?=$product['image']?>" type="image/jpeg" rel="image_src">
<meta content="Wines2u.gr" property="og:site_name">
<meta content="el_GR" property="og:locale">
<meta property="fb:admins" content=""/> 
<? } else { ?>
<meta property="og:title" content="Wines2u"/>
    <meta property="og:type" content="website"/>
    <meta property="og:url" content="http://www.wines2u.gr/"/>
    <meta property="og:image" content="http://www.wines2u.gr/images/logo_normal.png"/>
    <meta property="og:site_name" content="Wines2u"/>
    <meta property="og:description" content="Το wines2u.gr είναι ένα πόνημα ανθρώπων που, πέρα από την φιλία τους, τους συνδέει η αγάπη για το κρασί."/>
<? } ?>
                  
<!-- CSS -->
<!-- (en) Add your meta data here -->
<link href="<?= base_url();?>css/layout_2col_left_31_new.css" rel="stylesheet" type="text/css" />
<!--[if lte IE 7]>
	<link href="<?= base_url();?>css/patches/patch_2col_left_31.css" rel="stylesheet" type="text/css" />
<![endif]-->
<noscript>
Javascript is not enabled! Please turn on Javascript to use this site.
</noscript>
<script src="http://www.google.com/jsapi"></script>
<script>google.load("jquery", "1.3.2")</script>
<script type="text/javascript" src="<?=base_url()?>src/adapter/shadowbox-base.js"></script>
<script type="text/javascript" src="<?=base_url()?>src/shadowbox.js"></script>
<script type="text/javascript" src="<?=base_url()?>js/jquery.liveSearch.js"></script>
<script type="text/javascript">


Shadowbox.loadSkin('classic', '<?=base_url()?>src/skin');
Shadowbox.loadLanguage('en', '<?=base_url()?>src/lang');
Shadowbox.loadPlayer(['flv', 'html', 'iframe', 'img', 'qt', 'swf', 'wmp'], '<?=base_url()?>src/player');


window.onload = Shadowbox.init;

</script>
<script type="text/javascript">
//<![CDATA[
base_url = '<?= base_url();?>';
//]]>
</script>

<script type="text/javascript">
<!--//---------------------------------+
//  Developed by Roshan Bhattarai 
//  Visit http://roshanbh.com.np for this script and more.
//  This notice MUST stay intact for legal use
// --------------------------------->
$(document).ready(function()
{
	//slides the element with class "menu_body" when paragraph with class "menu_head" is clicked 
	$(".firstpane p.menu_head").click(function()
    {
		$(this).css({backgroundImage:"url("+base_url+"images/new/bullet_prasino_skouro.png)"}).next("div.menu_body").slideToggle(300).siblings("div.menu_body").slideUp("slow");
       	//$(this).siblings().css({backgroundImage:"none"});
	});
	//slides the element with class "menu_body" when mouse is over the paragraph
	$("#secondpane p.menu_head").mouseover(function()
    {
	     $(this).css({backgroundImage:"url(../../images/down.png)"}).next("div.menu_body").slideDown(500).siblings("div.menu_body").slideUp("slow");
         $(this).siblings().css({backgroundImage:"url(../../images/left.png)"});
	});
	$(".firstpane p.menu_head2").click(function()
    {
		$(this).next("div.menu_body2").slideToggle(300).siblings("div.menu_body2").slideUp("slow");
       	//$(this).siblings().css({backgroundImage:"none"});
	});
jQuery('#jquery-live-search-example input[name="term"]').liveSearch({url: ''+base_url+'ajax-search/'});

});
</script>
<script type="text/javascript">

/*** 
    Simple jQuery Slideshow Script
    Released by Jon Raasch (jonraasch.com) under FreeBSD license: free to use or modify, not responsible for anything, etc.  Please link out to me if you like it :)
***/

function slideSwitch() {
    var $active = $('#slideshow IMG.active');

    if ( $active.length == 0 ) $active = $('#slideshow IMG:last');

    // use this to pull the images in the order they appear in the markup
    var $next =  $active.next().length ? $active.next()
        : $('#slideshow IMG:first');

    // uncomment the 3 lines below to pull the images in random order
    
    // var $sibs  = $active.siblings();
    // var rndNum = Math.floor(Math.random() * $sibs.length );
    // var $next  = $( $sibs[ rndNum ] );


    $active.addClass('last-active');

    $next.css({opacity: 0.0})
        .addClass('active')
        .animate({opacity: 1.0}, 1000, function() {
            $active.removeClass('active last-active');
        });
}

$(function() {
    setInterval( "slideSwitch()", 3000 );
});

function smartColumns() { //Create a function that calculates the smart columns

        //Reset column size to a 100% once view port has been adjusted
	$("ul.column").css({ 'width' : "100%"});

	var colWrap = $("ul.column").width(); //Get the width of row
	var colNum = Math.floor(colWrap / 200); //Find how many columns of 200px can fit per row / then round it down to a whole number
	var colFixed = Math.floor(colWrap / colNum); //Get the width of the row and divide it by the number of columns it can fit / then round it down to a whole number. This value will be the exact width of the re-adjusted column

	$("ul.column").css({ 'width' : colWrap}); //Set exact width of row in pixels instead of using % - Prevents cross-browser bugs that appear in certain view port resolutions.
	$("ul.column li").css({ 'width' : colFixed}); //Set exact width of the re-adjusted column	

}	

smartColumns();//Execute the function when page loads

$(window).resize(function () { //Each time the viewport is adjusted/resized, execute the function
	smartColumns();
});
</script>

</head>
<body>
<div id="fb-root"></div>
<script>(function(d, s, id) {
  var js, fjs = d.getElementsByTagName(s)[0];
  if (d.getElementById(id)) return;
  js = d.createElement(s); js.id = id;
  js.src = "//connect.facebook.net/en_GB/all.js#xfbml=1&appId=294076110625434";
  fjs.parentNode.insertBefore(js, fjs);
}(document, 'script', 'facebook-jssdk'));</script>
 	<div id="upper_stripe"> </div>
<div id="easter_bgr">

<div class="page_margins">
    <div class="page">
       <div id="header">
      <div class="subcolumns">
        <div class="c62l">
      <?=anchor("home",'<div id="logo"></div>')?>
      <div style="height:30px"></div>
        <? include ('navigation_new.php'); ?>
      </div>
        <div class="c38r">
      <div style="height:10px"></div>
        <div id="lang_layer">
            <? include ('lang_new.php'); ?>
         </div>
      <div style="height:10px"></div>
<? if ($this->cart->contents()) { ?>
<?php $total_qty = 0; ?>
<?php foreach($this->cart->contents() as $items): ?>
<? $total_qty = $items['qty'] + $total_qty; ?>
<?php endforeach; ?>

<div style="font-size:15px; width:200px; float:left; margin-top:12px; color:#56540b;">
  <img src="<?=base_url()?>images/new/kala8i_agorwn_skouro.png" align="absmiddle" />&nbsp;<strong>
    <?=anchor('view_cart', $this->lang->line('shopping_cart')."&nbsp;(".$total_qty.")");?></strong>
</div>
<? } else { ?>
<div style="font-size:15px; width:200px; float:left; margin-top:12px; color:#56540b;">
  <img src="<?=base_url()?>images/new/kala8i_agorwn_skouro.png" align="absmiddle" />&nbsp;<strong>
    <?=$this->lang->line('shopping_cart')?>
    </strong>
</div>
<? } ?>
<div style="float:right;">
<a href="https://www.facebook.com/Wines2u" target="_blank" ><?= img(array('src' => 'images/new/fb_icon.png','alt' =>'Find us on Facebook bar','title' =>'Find us on Facebook bar', 'width'=>'37','style'=>'margin-top:10px; float:left;' ));?></a>
<a href="http://twitter.com/#!/Wines2u" target="_blank" ><?= img(array('src' => 'images/new/twitter_icon.png','alt' =>'Follow us on Twitter','title' =>'Follow us on Twitter', 'width'=>'37','style'=>'margin-top:10px; float:left;' ));?></a>
</div>
<div class="clear">&nbsp;</div>
<div style="height:15px;"></div>
 <? include ('search_bar_new_live.php'); ?>
 		</div>
      </div>
      <div id="slideshow">          
            <? if ($this->session->userdata('lang_id')=='1') { ?>
				<img src="<?=base_url()?>images/new/slider001.png" alt="Slideshow Image 1" class="active" />
                <img src="<?=base_url()?>images/new/slider002.png" alt="Slideshow Image 2" />
                <img src="<?=base_url()?>images/new/slider003.png" alt="Slideshow Image 3" />
                <img src="<?=base_url()?>images/new/slider005.png" alt="Slideshow Image 4" />
                 <img src="<?=base_url()?>images/new/slider007.png" alt="Slideshow Image 5" />
                 <img src="<?=base_url()?>images/new/slider008.png" alt="Slideshow Image 6" />
				<? } else { ?>
                <img src="<?=base_url()?>images/new/slider001_en.png" alt="Slideshow Image 1" class="active" />
                <img src="<?=base_url()?>images/new/slider002_en.png" alt="Slideshow Image 2" />
                <img src="<?=base_url()?>images/new/slider003_en.png" alt="Slideshow Image 3" />
                <img src="<?=base_url()?>images/new/slider005_en.png" alt="Slideshow Image 4" />
                <img src="<?=base_url()?>images/new/slider007_en.png" alt="Slideshow Image 5" />
                 <img src="<?=base_url()?>images/new/slider008_en.png" alt="Slideshow Image 6" />
           <? } ?>
	 </div>
</div>
</div>
</div>
</div>
 	<div id="middle_stripe"> 
        <div class="page_margins">
            <div class="page">
            <div style="float:left; color:#ffffff; font-size:14px; width:600px; line-height:35px;">
            <?=$this->lang->line('welcome_txt')?>
            </div>
            <div style="float:right; color:#ffffff; font-size:16px; line-height:35px; width:280px;">
            <strong><?=$this->lang->line('search_price')?></strong>&nbsp;&nbsp;
              <? $attributes = array('class' => '','AUTOCOMPLETE'=>'off', 'style'=>'float:right;'); ?>
  <?=form_open('by_price_new',$attributes); ?>
        <? echo "<label for='price'></label>";
			$options = array(''=>'Select one...', 'offers' => $this->lang->line('offers_txt'), '0-10' => '0 &euro; - 10 &euro;', '10-15' => '10 &euro; - 15 &euro;', '15-20' => '15 &euro; - 20 &euro;', '20' => '20 &euro; +');
			echo form_dropdown('price',$options, ''); ?>
            <INPUT TYPE="image" SRC="<?=base_url()?>images/new/GO.png" HEIGHT="20" WIDTH="33" BORDER="0" ALT="Submit Form" align="absmiddle">
 <?=form_close();?>

            </div>
            </div>
        </div>    
    </div>

<div id="mainbody_bgr">
<div class="page_margins">
    <div class="page">
      <div id="main">
        <div id="col1">
          <div id="col1_content" class="clearfix">
            <!-- add your content here -->
            <? $this->load->view('left_nav_new');
			//$this->load->view($left_nav);?>
          </div>
        </div>
        <div id="col2">
          <div id="col2_content" class="clearfix">
            <!-- add your content here -->
            <? $this->load->view('right_nav_new');
			//$this->load->view($right_nav);?>
          </div>
        </div>
        <div id="col3">
          <div id="col3_content" class="clearfix">
            <!-- add your content here -->
            <div id="main_cont">
                <? $get_nameday = $this->MFuncs->getNameDays(); ?>
                <? if ($get_nameday) { ?>
				<a href="<?=base_url()?>nameday_res"><img src="<?=base_url()?>images/giortes/<?=$get_nameday['image']?>" style="padding-top:5px;" /></a>
                <?php /*?><img src="<?=base_url()?>images/giortes/<?=$get_nameday['image']?>" style="padding-top:5px;" /><?php */?>
				<? } ?>
              <? $this->load->view($main);?>
            </div>
          </div>
          <!-- IE Column Clearing -->
          <div id="ie_clearing"> &#160; </div>
        </div>
      </div>
     </div>
    </div>
   </div>
 <?php /*?><div class="page_margins">
    <div class="page">
   <div style="background-image:url(../../../images/new/plaisio_like_fb.png); background-repeat:no-repeat; height:115px; background-position:right; margin-top:-115px;"><center>
   <div class="fb-like" data-href="https://www.facebook.com/Wines2u" data-send="false" data-layout="box_count" data-width="170" data-show-faces="false" data-font="verdana" style="float:right; margin-top:40px; margin-right:20px;"></div>
</center>
</div>
    </div>
  </div><?php */?>
<div id="footer_bgr">
 <div class="page_margins">
    <div class="page">
       <? $this->load->view('footer_new');?>
<div class="clear">&nbsp;</div>
    </div>
  </div>
</div>
<div style="background-color:#ffffff; height:55px;">
 <div class="page_margins">
    <div class="page">
    <div style="float:right; padding-top:7px;">
<img src="<?=base_url()?>images/new/best_price_small.jpg" alt="visa" width="65px" />&nbsp;&nbsp;
<img src="<?=base_url()?>images/new/visa.jpg" alt="visa" width="63px" />&nbsp;&nbsp;
<img src="<?=base_url()?>images/new/master_card.jpg" alt="mastercard" width="53px"/>&nbsp;&nbsp;
<img src="<?=base_url()?>images/new/eurobank.jpg" alt="eurobank" width="148px"/>&nbsp;&nbsp;
<img src="<?=base_url()?>images/new/pay_pal.jpg" alt="paypal" width="85px"/>&nbsp;&nbsp;
<img src="<?=base_url()?>images/new/elta.jpg" alt="elta" width="64px"/>&nbsp;&nbsp;
<img src="<?=base_url()?>images/new/tnt.jpg" alt="tnt" width="82px"/>
    </div>
    </div>
 </div>

</div>
<div id="footer_bgr">
 <div class="page_margins">
    <div class="page">
       <? $this->load->view('footer_lower_new');?>
    </div>
  </div>
</div> 
<script type="text/javascript">
jQuery(function($){$("#facebook_iframe").hover(function(){$(this).stop().animate({right:0},500);},function(){$(this).stop().animate({right:-320},500);});
</script>

<script type="text/javascript">
var gaJsHost = (("https:" == document.location.protocol) ? "https://ssl." : "http://www.");
document.write(unescape("%3Cscript src='" + gaJsHost + "google-analytics.com/ga.js' type='text/javascript'%3E%3C/script%3E"));
</script>
<script type="text/javascript">
try {
var pageTracker = _gat._getTracker("UA-948071-37");
pageTracker._trackPageview();
} catch(err) {}</script>
</body>

</body>
</html>
