<?php
/**
 * @package     Joomla.Site
 * @subpackage  Templates.beez3
 * @copyright   Copyright (C) 2005 - 2013 Open Source Matters, Inc. All rights reserved.
 * @license     GNU General Public License version 2 or later; see LICENSE.txt
 */

// No direct access.
defined('_JEXEC') or die;

JLoader::import('joomla.filesystem.file');




JHtml::_('behavior.framework', true);

$doc				= JFactory::getDocument();








$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/jquery.mmenu.all.css', $type = 'text/css', $media = 'screen,projection');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/jquery.mmenu.positioning.css', $type = 'text/css', $media = 'screen,projection');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/owl.carousel.css', $type = 'text/css', $media = 'screen,projection');
$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/template.css', $type = 'text/css', $media = 'screen,projection');

$doc->addStyleSheet(JUri::base() . 'templates/' . $this->template . '/css/responsive.css', $type = 'text/css', $media = 'screen,projection');
if ($this->direction == 'ltr')
{
	$doc->addStyleSheet($this->baseurl . '/templates/' . $this->template . '/css/template_ltr.css');
	
}

// $doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/jquery-1.10.2.min.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/jquery.mmenu.min.all.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/owl.carousel.min.js', 'text/javascript');
$doc->addScript($this->baseurl . '/templates/' . $this->template . '/javascript/template.js', 'text/javascript');
?>

<!DOCTYPE html>
<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>


		<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=3.0, user-scalable=yes"/>
		<meta name="HandheldFriendly" content="true" />
		<meta name="apple-mobile-web-app-capable" content="YES" />
		
		<script src="https://use.fontawesome.com/8e4b1b6a2c.js"></script>

		<jdoc:include type="head" />

		<!--[if IE 7]>
		<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template; ?>/css/ie7only.css" rel="stylesheet" type="text/css" />
		<![endif]-->
		<?php 
		$asd='';

		if($this->countModules("right") && $this->countModules("left")){
		$asd= "gr8";
		}elseif($this->countModules("right") && $this->countModules("left2")){
		$asd= "gr10";
		}elseif ($this->countModules("right") || $this->countModules("left2")) {
		$asd= "gr14";
		}elseif($this->countModules("right") || $this->countModules("left")) {
		$asd= "gr16";
		}else{
		$asd= "gr20";
		}

		;
		?>
	</head>
	<body>

		<?php	if ($this->countModules("mainmenu")):	?>
		<nav id="menus"><jdoc:include type="modules" name="mainmenu" style="xhtmld" /> </nav>
		<?php endif; ?>

	<!-- Start Logo & MainMenu -->
	<div id="top" class="row">
		<div class="container">

			<!-- Start Logo -->
			<div id="logo" class="hidden">
				<a href="<?php echo $this->baseurl; ?>"></a>
			</div>
			<!-- End Logo -->

			<!-- Start MainMenu -->
			<?php	if ($this->countModules("mainmenu")):	?>
		   		<div id="mainmenu"><a class="mmenu" href="#menus"></a>
					<jdoc:include type="modules" name="mainmenu" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End MainMenu -->


		</div>
	</div>
	<!-- End Logo & MainMenu -->

	<!-- Start News & Search -->
	<div id="top-news" class="row">
		<div class="container">

			<!-- Start search -->
			<?php	if ($this->countModules("search")):	?>
		   		<div id="search"><jdoc:include type="modules" name="search" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End search -->

			<!-- Start newsh -->
			<?php	if ($this->countModules("newsh")):	?>
		   		<div id="newsh"><jdoc:include type="modules" name="newsh" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End newsh -->

		</div>
	</div>
	<!-- End News & Search -->

	<!-- Start Main Content -->
	<div id="main" class="row">
		<div class="container">

			<!-- Start left -->
			<?php	if ($this->countModules("left")):	?>
		   		<div id="left"><jdoc:include type="modules" name="left" style="custom" /> </div>
			<?php endif; ?>
			<!-- End left -->

			<div id="content">

				<!-- Start slider -->
				<?php	if ($this->countModules("slider")):	?>
			   		<div id="slider"><jdoc:include type="modules" name="slider" style="xhtml" /> </div>
				<?php endif; ?>
				<!-- End slider -->

				<!-- Start carousel -->
				<?php	if ($this->countModules("carousel")):	?>
			   		<div id="carousel"><jdoc:include type="modules" name="carousel" style="custom" /> </div>
				<?php endif; ?>
				<!-- End carousel -->

				<!-- Start lastcat -->
				<?php	if ($this->countModules("lastcat")):	?>
			   		<div id="lastcat"><jdoc:include type="modules" name="lastcat" style="custom" /> </div>
				<?php endif; ?>
				<!-- End lastcat -->

				<jdoc:include type="component" />



			</div>

		</div>
	</div>

	<!-- End Main Contanet -->

	<!-- Start Footer -->
	<div id="footer" class="row">
		<div class="container">

			<!-- Start foot1 -->
			<?php	if ($this->countModules("foot1")):	?>
		   		<div id="foot1"><jdoc:include type="modules" name="foot1" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End foot1 -->

			<!-- Start foot2 -->
			<?php	if ($this->countModules("foot2")):	?>
		   		<div id="foot2"><jdoc:include type="modules" name="foot2" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End foot2 -->

			<!-- Start foot3 -->
			<?php	if ($this->countModules("foot3")):	?>
		   		<div id="foot3"><jdoc:include type="modules" name="foot3" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End foot3 -->

			<!-- Start foot4 -->
			<?php	if ($this->countModules("foot4")):	?>
		   		<div id="foot4"><jdoc:include type="modules" name="foot4" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End foot4 -->

		</div>
	</div>
	<!-- End Footer -->

	<!-- Start Copyright -->
	<div id="copyright" class="row">
		<div class="container">
			<!-- Start copy -->
			<?php	if ($this->countModules("copy")):	?>
		   		<div id="copy"><jdoc:include type="modules" name="copy" style="xhtml" /> </div>
			<?php endif; ?>
			<!-- End copy -->
		</div>
	</div>
	<!-- End Copyright -->


				
	
	</body>
</html>
