<?php
/*---------------------------------------------------------------
# Package - Joomla Template  
# ---------------------------------------------------------------
# Author - joomla2you http://www.joomla2you.com
# Copyright (C) 2008 - 2019 joomla2you.com. All Rights Reserved.
# Websites: http://www.joomla2you.com
-----------------------------------------------------------------*/
//no direct accees
defined ('_JEXEC') or die ('resticted aceess');
require_once(dirname(__FILE__).'/lib/stools.php');
$jversion = new JVersion;
?>
<!DOCTYPE html>
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $this->language; ?>" lang="<?php echo $this->language;?>" >
<head>
<?php
$stools->loadHead();
$stools->addCSS('template.css,joomla.css,override.css,modules.css');
$stools->getStyle();
if ($stools->isRTL()) $stools->addCSS('template_rtl.css');
?>
<?php if($this->params->get('float')=='1') : ?>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/slide.css" rel="stylesheet" type="text/css" />
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/js/slide.js"></script> 
<?php endif; ?>
<?php if($this->params->get('fadeslider')=='1') : ?>
<script type="text/javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/js/scrollme/jquery.scrollme.js"></script>  
<?php endif; ?>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/font-awesome.css" rel="stylesheet" type="text/css" />
<style type="text/css">
<?php if ($this->params->get('HeColor') != ''): ?>
#slides { background-color: <?php echo htmlspecialchars($this->params->get('HeColor')); ?>;  }
<?php endif; ?>
#pge3{ <?php if ($this->params->get('Bgpg') != '') : ?>background-image: url(<?php echo $this->baseurl; ?>/<?php echo htmlspecialchars($this->params->get('Bgpg')); ?> ); background-repeat: no-repeat; background-position: top left;background-size:cover;background-attachment:fixed;<?php endif; ?>background-color:#666;}
<?php if ($this->params->get('BgImage') != '' ): ?>
body.bg {<?php if ($this->params->get('BgText') != ''){ ?> color: <?php echo htmlspecialchars($this->params->get('BgText')); ?>; <?php } ?><?php if ($this->params->get('BgColor') != ''){ ?> background-color: <?php echo htmlspecialchars($this->params->get('BgColor')); ?>; <?php } ?><?php if ($this->params->get('BgImage') != '') : ?>background-image: url(<?php echo $this->baseurl; ?>/<?php echo htmlspecialchars($this->params->get('BgImage')); ?> ); background-repeat: no-repeat; background-position: top left;background-size:cover;background-attachment:fixed;<?php endif; ?>  }
<?php else: ?>
body.bg { <?php if ($this->params->get('BgText') != ''){ ?> color: <?php echo htmlspecialchars($this->params->get('BgText')); ?>; <?php } ?><?php if ($this->params->get('BgColor') != ''){ ?> background-color: <?php echo htmlspecialchars($this->params->get('BgColor')); ?>; <?php } ?><?php if ($this->params->get('BgPattern') != '') : ?>background-image: url(<?php echo $this->baseurl; ?>/templates/<?php echo $this->template?>/images/patterns/<?php echo htmlspecialchars($this->params->get('BgPattern')); ?>.png ); background-repeat: repeat;<?php endif; ?> }
<?php endif; ?>
#tops {<?php if ($this->params->get('ToText') != ''){ ?> color: <?php echo htmlspecialchars($this->params->get('ToText')); ?>; <?php } ?><?php if ($this->params->get('ToColor') != ''){ ?> background-color: <?php echo htmlspecialchars($this->params->get('ToColor')); ?>; <?php } ?><?php if ($this->params->get('ToImage') != '') : ?>background-image: url(<?php echo $this->baseurl; ?>/<?php echo htmlspecialchars($this->params->get('ToImage')); ?> ); background-repeat: no-repeat; background-position: top left;background-size:cover;background-attachment:fixed;<?php endif; ?> }
#bott_main {<?php if ($this->params->get('BtText') != ''){ ?> color: <?php echo htmlspecialchars($this->params->get('BtText')); ?>; <?php } ?><?php if ($this->params->get('BtColor') != ''){ ?> background-color: <?php echo htmlspecialchars($this->params->get('BtColor')); ?>; <?php } ?><?php if ($this->params->get('BtImage') != '') : ?>background-image: url(<?php echo $this->baseurl; ?>/<?php echo htmlspecialchars($this->params->get('BtImage')); ?> ); background-repeat: no-repeat; background-position: top left;background-size:cover;background-attachment:fixed;<?php endif; ?>  }
.bott_col {color:<?php echo htmlspecialchars($this->params->get('BoText')); ?>;background-color: <?php echo htmlspecialchars($this->params->get('BoColor')); ?>;}
</style>
<!--[if lte IE 7.0]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template;?>/css/IE7_only.css" rel="stylesheet" type="text/css" />
<![endif]-->
</head>
<?php $stools->addFeatures('ie6warn'); ?>
<body class="bg <?php echo $stools->direction . ' ' . $stools->style ?> clearfix">
<?php $stools->addFeatures('cpanel'); ?>	
<div id="ju-header" class="ju-header">
<div class="ju-base">	
<?php 
$stools->addFeatures('logo');//Logo
$stools->addFeatures('navmenu'); //Main navigation
?>
</div>
<div class="clearfix">
</div>	
</div>

<?php if ($stools->showSlideItem()): ?>
<div id="slides" class="scrollme">
<div class="animateme" data-when="span" data-from="0" data-to="0.75" data-easing="linear" data-translatey="300" data-opacity="0.01">
<?php include 'slider/slider.php'; ?> 
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules( 'top1 or top2 or top3 or top4 or top5 or top6' )) : ?>
<div id="tops">
<div class="ju-base">
<?php
$stools->addModules('top1, top2, top3, top4, top5, top6', 'ju_block', 'ju-userpos'); //positions top1-top6 
?>
</div>
</div>
<?php endif; ?>	
<?php 
$stools->addModules("header"); //position header
?>
<div id="ju-mbase">
<div class="ju-base main-bg clearfix">	
<?php 
$stools->addModules("breadcrumbs"); //breadcrumbs
?>
<?php if($this->params->get('socialCode')=='1') : ?>	
<?php $stools->addFeatures('social'); //social ?>	
<?php endif; ?>
<div class="clearfix">
<?php $stools->loadLayout(); //mainbody ?>
</div>
</div>
</div>
<?php if ($this->countModules( 'extra' )) : ?>
<div id="extra_main">
<?php
$stools->addModules('extra', 'ju_xhtml'); //bottom 
?>
</div>
<?php endif; ?> 
<?php if ($this->countModules( 'service' )) : ?>
<div id="serv_main">
<div class="ju-base">
<?php
$stools->addModules('service', 'ju_xhtml'); //bottom 
?>
</div>
</div>
<?php endif; ?> 
<?php if($this->countModules ( 'page' )) : ?>
<div id="pge3" class="clearfix">
<div class="col-md-4">
<?php $stools->addModules("page1", 'ju_xhtml'); //position page1 ?>
<br></div>
<div class="col-md-8">
<?php $stools->addModules("page", 'mx_block'); //position page ?>
</div>
</div>
<?php endif; ?>
<?php if ($this->countModules( 'map' )) : ?>
<div id="map_main">
<?php
$stools->addModules('map', 'ju_xhtml'); //bottom 
?>

</div>
<?php endif; ?> 
<?php if ($this->countModules( 'bottom' )) : ?>
<div id="bott_main">
<div class="ju-base">
<?php
$stools->addModules('bottom', 'ju_xhtml'); //bottom 
?>
</div>
</div>
<?php endif; ?> 
<?php if ($this->countModules( 'bottom1 or bottom2 or bottom3 or bottom4 or bottom5 or bottom6' )) : ?>
<div class="bott_col">
<?php
$stools->addModules('bottom1, bottom2, bottom3, bottom4, bottom5, bottom6', 'ju_block', 'ju-bottom', '', false, true); //positions bottom1-bottom6 
?>
</div>
<?php endif; ?> 

<!--Start Footer-->
<div id="ju-footer" class="clearfix">
<div class="ju-base">
<div class="cp">
<?php $stools->addFeatures('copyright,designed')  ?>					
</div>
<?php 
$stools->addFeatures('colors');//Template colors
?>
<?php 
$stools->addFeatures('gotop');			
$stools->addModules("footer-nav"); 
?>
</div>
</div>
<!--End Footer-->

<?php 
$stools->addFeatures('analytics,jquery,ieonly'); /*--- analytics, jquery features ---*/
$stools->compress(); /* --- Compress CSS and JS files --- */
?>
<jdoc:include type="modules" name="debug" />
</body>
</html>