<!DOCTYPE html>
<html>
    <head>
        <?php include_http_metas() ?>
        <?php include_metas() ?>
        <meta name="viewport" content="initial-scale=1, maximum-scale=1, user-scalable=no">
        <?php include_title() ?>
        <link rel="shortcut icon" href="/favicon.ico" />
        <?php include_stylesheets() ?>
        <?php include_javascripts() ?>

        <!--[if lte IE 7]>
        <script type="text/javascript">
        var ieUpMsg="Your browser is out of date. Upgrade for free for a richer SfClassi experience.",ieCookieName="ieupgradereminder",ieCookieValue="oldIeDetected",ieCookieTime=2592000,ieCookieDomain=".sfclassi.com",ieCookiePath="\/";
        </script>
        <script type="text/javascript" src="/js/ieupdatebanner-895.js"></script>
        <![endif]-->

        <link href='http://fonts.googleapis.com/css?family=Lato:300,400,700' rel='stylesheet' type='text/css' />
        <link rel="shortcut icon" href="/favicon.png" />
    </head>

    <body>
        <div id="wrapper">
            <div class="wrapper_pad">
                <!-- Top --->
                <?php include_partial('global/top') ?>
                <!-- End Top--->
                <!-- Middle--->
                <div id="content">	
                    <div>

                        <!-- Banner --->
                        <div class="add_banner">
                            <div class="adhere728 alignleft">
                                <?php include_component('home', 'adsLeaderboard', array('action' => $sf_request->getParameter('action'), 'position' => 'LEADERBOARD')); ?>
                            </div>
                            <div class="adhere350 alignright">
                                <?php include_component('home', 'adsLeaderboard350', array('action' => $sf_request->getParameter('action'), 'position' => 'LEADERBOARD350')); ?>
                            </div>	                        
                        </div>
                        <!-- End Banner ---> 

                        <?php
                        /*
                          if ($sf_params->get('module') == 'home' && $sf_params->get('action') == 'category') {
                          include_component('home', 'featureads');
                          }
                         */
                        ?>       

                        <div class="breadcrumb clearfix">
                            <?php
                            #--- This is Breadcrumb content ---#
                            $obj = new Breadcrumb();
                            echo @$obj->output();
                            ?>
                        </div>
                    </div>

                    <?php if ($sf_user->hasFlash('worning')) : ?>
                        <div class="globError clearfix">
                            <ul>
                                <li>
                                    <?php
                                    #--- This is Breadcrumb content ---#
                                    echo $sf_user->getFlash('worning');
                                    ?>
                                </li>
                            </ul>
                        </div>
                    <?php endif; ?>


                    <?php
                    #--- This is Middle content ---# 
                    echo $sf_content;

                    #--- This is Right Side Conetn ---#
                    if ($sf_user->isAuthenticated() && $sf_params->get('module') == 'user' && $sf_params->get('action') != 'postads') {
                        include_partial('user/right');
                    } else {
                        include_component('home', 'adsSidebare', array('action' => $sf_request->getParameter('action')));
                    }
                    ?>
                    <div class="alignnone"></div>
                </div>  
            </div>
            <!-- End Middle --->

            <!-- Footer --->
            <div id="footer"><?php include_partial('global/footer') ?></div>
            <!-- End Footer --->
        </div>
    </body>
</html>
