<?php
defined('_JEXEC') or die;

/**
 * Template for Joomla! CMS, created with Artisteer.
 * See readme.txt for more details on how to use the template.
 */



require_once dirname(__FILE__) . DIRECTORY_SEPARATOR . 'functions.php';

// Create alias for $this object reference:
$document = & $this;

// Shortcut for template base url:
$templateUrl = $document->baseurl . '/templates/' . $document->template;

// Initialize $view:
$view = $this->artx = new ArtxPage($this);

// Decorate component with Artisteer style:
$view->componentWrapper();
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $document->language; ?>" lang="<?php echo $document->language; ?>" dir="ltr">
<head>
<jdoc:include type="head" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $document->baseurl; ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $templateUrl; ?>/style.css" type="text/css" media="screen" />
<link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/template.css" type="text/css" media="all" />

<link rel="stylesheet" href="<?php echo $templateUrl; ?>/css/<?php echo $this->params->get('style');?>.css" type="text/css" media="screen" />

<link rel="stylesheet" href="<?php echo $templateUrl; ?>/prettyPhoto/css/prettyPhoto.css" type="text/css" media="screen" charset="utf-8" />
<script type='text/javascript' src='<?php echo $templateUrl; ?>/js/jquery.js'></script>
<script src="<?php echo $templateUrl; ?>/prettyPhoto/js/jquery.prettyPhoto.js" type="text/javascript" charset="utf-8"></script>
<script type='text/javascript' src='<?php echo $templateUrl; ?>/js/custom.js'></script>
<script type="text/javascript">if ('undefined' != typeof jQuery) document._artxJQueryBackup = jQuery;</script>
<script type="text/javascript" src="<?php echo $templateUrl; ?>/jquery.js"></script>
<script type="text/javascript">jQuery.noConflict();</script>
<script type="text/javascript" src="<?php echo $templateUrl; ?>/script.js"></script>
<script type="text/javascript">if (document._artxJQueryBackup) jQuery = document._artxJQueryBackup;</script>
<!--[if IE 6]>
<script type='text/javascript' src='<?php echo $templateUrl; ?>/js/dd_belated_png.js'></script>
<script>DD_belatedPNG.fix('.ie6fix');</script>
<![endif]-->

</head>

<body id="<?php echo $this->params->get('page');?>">
<div class="wrap_all">
<div id="top">
  <div id="head">
<h1 class="logo"><a href="<?php echo $document->baseurl; ?>" title="">Nicelya</a></h1>
    <div class="navwrap"> <?php echo $view->position('position-1'); ?> </div>
    <!--end navwrap-->
    <?php
   if ($this->params->get('page') == 'subpage') { ?>
  <p class="breadcrumb"> <span class="breadcrumb_info"></span> </p></div>
 
  <!-- end head-->
  
  <div id="main">
    <?php } else { ?>
    </div>
    <div id="main">
      <div id="featured">
        <div class="featured_item current">
          <div class="featured_image"><!--an image only slide --> 
            <a href="#"><img src="<?php echo $templateUrl; ?>/files/<?php echo $this->params->get('style');?>.jpg" alt="" /></a> </div>
          <!-- end featured_image--> 
          
        </div>
        <!-- end featured_item-->
        
        <div class="featured_item">
          <div class="featured_text">
            <div class="entry"> <span class="meta"><?php echo $this->params->get('theme');?></span>
              <h2><?php echo $this->params->get('theme2');?></h2>
              <p><?php echo $this->params->get('theme3');?></p>
            </div>
            <a href="<?php echo $this->params->get('link1');?>" class="read-more"><?php echo $this->params->get('more1');?></a><a href="#" class="show-next"><?php echo $this->params->get('next1');?> »</a> </div>
          <!-- end featured_text-->
          
          <div class="featured_image"> <a href="#"><img src="<?php echo $templateUrl; ?>/files/featured_image_2.jpg" alt="" /></a> </div>
          <!-- end featured_image--> 
          
        </div>
        <!-- end featured_item-->
        
        <div class="featured_item">
          <div class="featured_text">
            <div class="entry"> <span class="meta"><?php echo $this->params->get('2theme');?></span>
              <h2><?php echo $this->params->get('2theme2');?></h2>
              <p><?php echo $this->params->get('3theme3');?></p>
            </div>
            <a href="<?php echo $this->params->get('link2');?>" class="read-more"><?php echo $this->params->get('more2');?></a><a href="#" class="show-next"><?php echo $this->params->get('next2');?> »</a> </div>
          <!-- end featured_text-->
          
          <div class="featured_image"> <a href="#"><img src="<?php echo $templateUrl; ?>/files/featured_image_3.jpg" alt="" /></a> </div>
          <!-- end featured_image--> 
          
        </div>
        <!-- end featured_item-->
        <div id="featured_bottom">
                        	<div class="ticker">
                    <span class="active_ticker"><a href="#"><strong>Latest News:</strong> <?php echo $this->params->get('news1');?></a></span>
                    <span><a href="#"><strong>Latest News:</strong> <?php echo $this->params->get('news2');?></a></span>
                    <span><a href="#"><strong>Latest News:</strong> <?php echo $this->params->get('news3');?></a></span>
                    </div>
          <div class="preview_images"> <a href="#" class="current_prev"><img src="<?php echo $templateUrl; ?>/files/featured_image_1_small.jpg" alt="" height="30px" width="44px" /></a> <a href="#"><img src="<?php echo $templateUrl; ?>/files/featured_image_2_small.jpg" alt="" height="30px" width="44px" /></a> <a href="#"><img src="<?php echo $templateUrl; ?>/files/featured_image_3_small.jpg" alt="" height="30px" width="44px" /></a> </div>
        </div>
      </div>
      <!-- end featured-->
      
      <div class="content_top"></div>
            <?php } ?>

      <div id="content" class="bg_sidebar">
        <div id="inner_content">
        <?php
  echo $view->position('position-19', 'awp-nostyle');
  if ($view->containsModules('position-2'))
    echo artxPost($view->position('position-2'));
  echo $view->positions(array('position-20' => 50, 'position-21' => 50), 'awp-article');
  echo $view->position('position-12', 'awp-nostyle');
  if ($view->hasMessages())
    echo artxPost('<jdoc:include type="message" />');
  echo '<jdoc:include type="component" />';
  echo $view->position('position-22', 'awp-nostyle');
  echo $view->positions(array('position-23' => 50, 'position-24' => 50), 'awp-article');
  echo $view->position('position-25', 'awp-nostyle');
?>
            
        </div>
        <!-- end inner_content-->
        
        <div id="sidebar">
          <div class="small_box widget_pages">
            <?php if ($view->containsModules('position-7', 'position-4', 'position-5')) : ?>
        <?php echo $view->position('position-7', 'awp-block'); ?> <?php echo $view->position('position-4', 'awp-block'); ?> <?php echo $view->position('position-5', 'awp-block'); ?>
        <?php endif; ?>
          </div>
        </div>
        <!--end sidebar--> 
        
      </div>
      <!-- end content--> 
      
    </div>
    <!--end main-->
    
    <div id="footer"><?php echo $view->position('position-14'); ?>
        <?php if ($view->containsModules('position-27')): ?>
        <?php echo $view->position('position-27', 'awp-nostyle'); ?>
        <?php else: ?>
        <?php ob_start(); ?>
        <p>Template Design by: <a href="http://www.ablewebpro.com/search-engine-optimization-solutions/search-engine-optimization" target="_blank">SEO</a> Friendly <a href="http://www.ablewebpro.com/web-design-development-services" target="_blank">Web Design</a>..</p>
        <?php echo str_replace('%YEAR%', date('Y'), ob_get_clean()); ?>
        <?php endif; ?></div>
    <!--end footer--> 
    
  </div>
  <!--end top--> 
</div>
<!--end wrapp_all-->

</body>
</html>