<!-- #page-wrapper -->
<div id="page-wrapper">

    <!--#header-->
    <div id="header">
        <!--#header-inside-->
        <div id="header-inside" class="container_12">
            
            <?php if ($page['header'] && !$page['content_top']) { ?>
            <div class="grid_9">
            <?php } elseif (($page['header'] && $page['content_top']) || ($page['content_top'])) { ?>
            <div class="grid_4">    
            <?php } else { ?>
            <div class="grid_12">
            <?php } ?>

                <!-- #header-inside-left -->
                <div id="header-inside-left">
					<?php if ($logo): ?>
                    <div id="logo" class="clearfix">
                    <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>" rel="home"> <img src="<?php print $logo; ?>" alt="<?php print t('Home'); ?>" /> </a>
                    </div>
                    <?php endif; ?>

                    <?php if ($site_name || $site_slogan): ?>
                        <!-- #name-and-slogan -->
                        <div id="name-and-slogan">
						<?php if ($site_name):?>
                        <div id="site-name">
                        <a href="<?php print $front_page; ?>" title="<?php print t('Home'); ?>"><?php print $site_name; ?></a>
                        </div>
                        <?php endif; ?>
                        
                        <?php if ($site_slogan):?>
                        <div id="site-slogan">
                        <?php print $site_slogan; ?>
                        </div>
                        <?php endif; ?>
                        </div> 
                        <!-- EOF:#name-and-slogan -->
                    <?php endif; ?>
                </div>
                <!--EOF:#header-inside-left-->
            </div>
            
            <?php if ($page['content_top']) :?>
                <div class="grid_5">
                    <!-- #header-inside-right -->
                    <div id="content-top" class="clearfix">
                        <?php print render($page['content_top']); ?>
                    </div>
                    <!--EOF:#header-inside-right-->
                </div>
            <?php endif; ?>

            <?php if ($page['header']) :?>
                <div class="grid_3">
                    <!-- #header-inside-right -->
                    <div id="header-inside-right" class="clearfix">
                        <?php print render($page['header']); ?>
                    </div>
                    <!--EOF:#header-inside-right-->
                </div>
            <?php endif; ?>

        </div>
        <!--EOF:#header-inside-->
    </div>
    <!--EOF:#header-->

    <!--#main-menu-->
    <div id="main-menu" class="container_12">

        <div class="grid_12">
            <!--#main-menu-inside-->
            <div id="main-menu-inside">
                <!--#menu-->
                <div id="menu" class="clearfix">
                    <?php if ($page['navigation']) :?>
                    <?php print drupal_render($page['navigation']); ?>
                    <?php else :
                    if (module_exists('i18n_menu')) {
                    $main_menu_tree = i18n_menu_translated_tree(variable_get('menu_main_links_source', 'main-menu'));
                    } else { $main_menu_tree = menu_tree(variable_get('menu_main_links_source', 'main-menu')); }
                    print drupal_render($main_menu_tree);
                    endif; ?>
                </div>
                <!--EOF:#menu-->
            </div>
            <!--EOF:#main-menu-inside-->
        </div>

    </div>
    <!--EOF:#main-menu-->

    <!--#banner-->
    <div id="banner">
        <!--#banner-inside-->
        <div id="banner-inside" class="container_12">

            <?php if ($page['banner']) : ?>
            <div class="grid_12">
            <?php print render($page['banner']); ?>
            </div>
            <?php endif; ?>

            <?php if (theme_get_setting('slideshow_display','corkedscrewer')): ?>
                    
            <?php if ($is_front): ?>

            <div class="grid_12">
<!--#slideshow-->
<div id="slideshow">

<!--slides-->
<div class="slides">
<!--slider-item-->
<div class="slider-item">
<div class="slider-item-image"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/slider-img1.png"/></div>
<div class="slider-item-title">Corked Screwer</div>
<div class="slider-item-body">Unique resource for wine lovers</div>
</div>
<!--EOF:slider-item-->

<!--slider-item-->
<div class="slider-item">
<div class="slider-item-image"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/slider-img1.png"/></div>
<div class="slider-item-title light">Wine Lovers </div>
<div class="slider-item-body">Monaco restaurants</div>
</div>
<!--EOF:slider-item-->

<!--slider-item-->
<div class="slider-item">
<div class="slider-item-image"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/slider-img1.png"/></div>
<div class="slider-item-title light">Best Blog</div>
<div class="slider-item-body">Best wine ideas</div>
</div>
<!--EOF:slider-item-->

<!--slider-item-->
<div class="slider-item">
<div class="slider-item-image"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/slider-img1.png"/></div>
<div class="slider-item-title">Wine Lovers </div>
<div class="slider-item-body">Monaco restaurants</div>
</div>
<!--EOF:slider-item-->
</div> 
<!--EOF:slides-->

<!--slide-control-->
<div class="slide-control">
<div id="prev" href="#"><span class="websymbols"><</span></div>
<div id="next" href="#"><span class="websymbols">></span></div>
</div>
<!--EOF:slide-control-->

<!--#slide-nav-->
<ul id="slide-nav">
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
<li><a href="#"></a></li>
</ul> 
<!--EOF:#slide-nav-->                

</div>
<!--EOF:#slideshow-->
            </div>    

            <?php endif; ?>

            <?php endif; ?>

        </div>
        <!--EOF:#banner-inside-->
    </div>
    <!--EOF:#banner-->

    <!--#content-->
    <div id="content" class="container_12">
        <!--#content-inside-->
        <div id="content-inside" class="clearfix">

            <?php if ($page['highlighted']): ?>
            <div class="grid_12">
                <div id="highlighted"><?php print render($page['highlighted']); ?></div>
            </div>
            <?php endif; ?>

            <?php if (theme_get_setting('highlighted_display','corkedscrewer')): ?>
                    
            <?php if ($is_front): ?>            
            <div class="grid_12">
                <!--#featured-->
                <div id="featured" class="clearfix">
                
                <div class="grid_3 alpha">
                <!--featured-teaser-->
                <div class="featured-teaser">
                <div class="featured-teaser-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img1.png"/></a></div>
                <div class="featured-teaser-title">Monaco restaurants</div>
                <div class="featured-teaser-body">25</div>
                </div>
                <!--EOF:featured-teaser-->
                
                <!--featured-teaser-->
                <div class="featured-teaser">
                <div class="featured-teaser-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img2.png"/></a></div>
                <div class="featured-teaser-title">Wine & Meat</div>
                <div class="featured-teaser-body">25</div>
                </div>
                <!--EOF:featured-teaser-->
                
                <!--featured-teaser-->
                <div class="featured-teaser">
                <div class="featured-teaser-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img3.png"/></a></div>
                <div class="featured-teaser-title">Best wine deals</div>
                <div class="featured-teaser-body">25</div>
                </div> 
                <!--EOF:featured-teaser-->
                </div>
                
                <div class="grid_6">
                <!--featured-->
                <div class="featured">
                <div class="featured-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img.png"/></a></div>
                <div class="featured-title"><h2><a href="#">The spirit of Italy</a> <span class="comments">12</span></h2></div>
                <div class="featured-body">Italian wine is wine produced in Italy, a country which is home to some of the oldest wine-producing regions in the world. Italy is one of the world's foremost producers, responsible for approximately one-fifth of world wine production in 2005.</div>
                </div>
                <!--EOF:featured-->
                </div>
                
                <div class="grid_3 omega">
                <!--featured-teaser-->
                <div class="featured-teaser">
                <div class="featured-teaser-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img4.png"/></a></div>
                <div class="featured-teaser-title">Cheese</div>
                <div class="featured-teaser-body">25</div>
                </div>
                <!--EOF:featured-teaser-->
                
                <!--featured-teaser-->
                <div class="featured-teaser">  
                <div class="featured-teaser-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img5.png"/></a></div>
                <div class="featured-teaser-title">Red wine</div>
                <div class="featured-teaser-body">25</div>
                </div>  
                <!--EOF:featured-teaser-->
                
                <!--featured-teaser-->
                <div class="featured-teaser">  
                <div class="featured-teaser-image"><a href="#"><img src="<?php print base_path() . drupal_get_path('theme', 'corkedscrewer') ;?>/images/local/ft-img6.png"/></a></div>
                <div class="featured-teaser-title">The best in the world</div>
                <div class="featured-teaser-body">25</div>
                </div>  
                <!--EOF:featured-teaser-->
                </div>   
                
                </div>
                <!--EOF:#featured-->
            </div>

            <?php endif; ?>

            <?php endif; ?>    

            <div class="grid_12">
                <div class="breadcrumb-wrapper">
                <?php if (theme_get_setting('breadcrumb_display','corkedscrewer')): print $breadcrumb; endif; ?>
                </div>
                <?php print $messages; ?>
            </div>

            <?php if ($page['sidebar_first']) :?>
                <!--.sidebar first-->
                <div class="grid_3">
                    <div class="sidebar">
                    <?php print render($page['sidebar_first']); ?>
                    </div>
                </div>
                <!--EOF:.sidebar first-->
            <?php endif; ?>


            <?php if ($page['sidebar_first'] && $page['sidebar_second']) { ?>
            <div class="grid_6">
            <?php } elseif ($page['sidebar_first'] || $page['sidebar_second']) { ?>
            <div class="grid_9">
            <?php } else { ?>
            <div class="grid_12">    
            <?php } ?>
                <!--#main-content-->
                <div id="main-content">
                <?php print render($title_prefix); ?>
                <?php if ($title): ?><h1 class="title" id="page-title"><?php print $title; ?></h1><?php endif; ?>
                <?php print render($title_suffix); ?>
                <?php if ($tabs): ?><div class="tabs"><?php print render($tabs); ?></div><?php endif; ?>
                <?php print render($page['help']); ?>
                <?php if ($action_links): ?><ul class="action-links"><?php print render($action_links); ?></ul><?php endif; ?>
                <?php print render($page['content']); ?>
                </div>
                <!--EOF:#main-content-->
            </div>


            <?php if ($page['sidebar_second']) :?>
                <!--.sidebar second-->
                <div class="grid_3">
                    <div class="sidebar">
                    <?php print render($page['sidebar_second']); ?>
                    </div>
                </div>
                <!--EOF:.sidebar second-->
            <?php endif; ?>
            
        </div>
        <!--EOF:#content-inside-->
    </div>
    <!--EOF:#content-->

    <!--#footer-->
    <div id="footer">
        <!--#footer-top-->
        <div id="footer-top" class="container_12">
            <div class="grid_4">
                <div class="footer-area">
                <?php if ($page['footer_featured']) :?>
                <?php print render($page['footer_featured']); ?>
                <?php endif; ?>
                </div>           
            </div>
            <div class="grid_2">
                <div class="footer-area">
                <?php if ($page['footer_first']) :?>
                <?php print render($page['footer_first']); ?>
                <?php endif; ?>
                </div>
            </div>
            <div class="grid_2">
                <div class="footer-area">
                <?php if ($page['footer_second']) :?>
                <?php print render($page['footer_second']); ?>
                <?php endif; ?>
                </div>
            </div>
            <div class="grid_2">
                <div class="footer-area">
                <?php if ($page['footer_third']) :?>
                <?php print render($page['footer_third']); ?>
                <?php endif; ?> 
                </div>
            </div>
            <div class="grid_2">
                <div class="footer-area">
                <?php if ($page['footer_fourth']) :?>
                <?php print render($page['footer_fourth']); ?>
                <?php endif; ?> 
                </div>
            </div>
        </div>
        <!--EOF:#footer-top-->   
        <!--#footer-bottom-->
        <div id="footer-bottom" class="container_12">
            <div class="grid_12">
                <!--#footer-bottom-inside-->
                <div id="footer-bottom-inside">
                <?php print theme('links__system_secondary_menu', array('links' => $secondary_menu, 'attributes' => array('class' => array('menu', 'secondary-menu', 'links', 'clearfix')))); ?>
                <?php if ($page['footer']) :?>
                <?php print render($page['footer']); ?>
                <?php endif; ?>
                </div>
                <!--EOF:#footer-bottom-inside-->
            </div>
        </div>
    </div>
    <!--EOF:#footer-->

</div>  
<!--EOF:#page-wrapper-->


