<?php
/**
 * @copyright	Copyright (C) 2005 - 2008 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

defined('_JEXEC') or die('Restricted access');

$url = clone(JURI::getInstance());
$showRightColumn = $this->countModules('user1 or user2 or right or top');
$showRightColumn &= JRequest::getCmd('layout') != 'form';
$showRightColumn &= JRequest::getCmd('task') != 'edit';
$path = $this->baseurl.'/templates/'.$this->template;

?>
<?php

 $cookies_name = "cookiesBanner";
 $cookies_val = '<img style="height:50px; width:320px; margin-top:10px;" src="<?php echo $path ?>/images/cimg.jpg">';
 setcookie($cookies_name, $cookies_val, time() +(86400 * 30 * 30), "/");
//print_r($cookies_val);
?>
<?php echo '<?xml version="1.0" encoding="utf-8"?'.'>'; ?>
<!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>
	<jdoc:include type="head" />
	<link rel="stylesheet" href="<?php echo $path ?>/css/template.css" type="text/css" />
	<link href="https://fonts.googleapis.com/css?family=Open+Sans:400italic,600italic,700italic,400,600,700" rel="stylesheet" type="text/css">
	<link rel="stylesheet" href="css/template.css" type="text/css" />
</head>
<style type="text/css">
	.logo a {behavior:url(<?php echo $path ?>/css/iepngfix.htc);}
	/*cookie*/
.cookie-banner {
	background-color: hsla(206, 100%, 31%, 0.9);
	bottom: 0;
	color: #fff;
	padding: 20px;
	position: fixed;
	width: 100%;
	z-index: 1;
	font-family: "Open Sans", Helvetica, Arial, sans-serif;
}
.cookie-banner a { text-decoration:underline; display:inline-block; color:#fff; font-family: "Open Sans", Helvetica, Arial, sans-serif;}

.cookies-close-btn::after {
	background-size: 1230px 1230px;
    -webkit-background-size: 1230px 1230px;
    background-repeat: no-repeat;
    background-image: url(<?php echo $path ?>/images/icons.png);
	width: 30px;
	height: 30px;
	background-position: -1110px -720px;
	content: '';
    text-indent: -999em;
    display: inline-block;
    overflow: hidden;
	position: absolute;
	right: 56px;
	top: 50%;
	margin-top: -16px;
	cursor: pointer;
	padding: 10px;
}
</style>
<body style="background:grey;">
	
<div class="bottom"><div align="center" class="main_bg" style=" position:relative;">
	<div class="main" align="left" style="width:100%;">
	    
	        <div    class="putty">
	            
	        </div>
	        <style>
	            .putty{
	                width:100%;
	                background:white;
	                height:60px;
	                position:absolute;
	                   top:148px;
	                left:0;
	            }
	        </style>
	    
                   <div style=" width:900px;  margin:0 auto; display:flex; justify-content:end; align-items:center;">
                       <img style="height:50px; width:320px; margin-top:10px;" src="<?php echo $path ?>/images/cimg.jpg">
			    
			   <?php
				if(!isset($_COOKIE[$cookies_name])) {
					
					
				} else {
				    
					//echo $_COOKIE[$cookies_name];
				} 

			?> 
			    </div>
			    
		   <div id="header"  style="width:900px; margin: 0 auto; position:relative;">
		        
		<jdoc:include type="modules" name="user2" style="user2" />
                         
			<div class="logo"><a href="index.php"></a></div>
			
			<div class="clr"></div> 
			
		</div><!--header-->
		
		   <div id="topmenu"  style="background:#2c3440;;">
		      <div style="width:900px; margin:0 auto; background:#2c3440;;">
		          
		          	<jdoc:include type="modules" name="user1" style="rounded" />
			<jdoc:include type="modules" name="top" />
			<div class="clr"></div>
		          
		      </div>
			
		</div><!--top menu -->
		
		
		<div class="test" style="width:70%; margin:0 auto;">

		<div class="shadow_left">
			<div class="shadow_right">
				<div class="shadow_left_top">
					<div class="shadow_right_top">
						<div class="shadow_bot">
							<div class="shadow_bot_left">
								<div class="shadow_bot_right">
									<div class="indent_2">
										<div id="breadcrumb">	
											<jdoc:include type="modules" name="user3" style="rounded" />
											<div class="bread"><div class="space"><jdoc:include type="modules" name="breadcrumb" /></div></div>
											<div class="clr"></div>
										</div>
										<div id="content">
											<div class="indent_2">
											<table>
												<tr>
													<td>
														<div class="c1"><div class="space"><jdoc:include type="modules" name="left" style="rounded" /></div></div>
													</td>
													<td class="c2">
														<div class="user5"><jdoc:include type="modules" name="user5" style="rounded" /></div>
														<div class="user6"><jdoc:include type="modules" name="user6" style="rounded" /></div>
														<div class="clr"></div>
														<jdoc:include type="component" />
													</td>
												</tr>
											</table>
											</div>
											
										</div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>	
			</div>
		</div>
		<div id="footer">
			<div class="bottom_menu">
												<jdoc:include type="modules" name="bottom_menu" />
											</div>
			<div class="space">
				<?php echo JText::_('Copyright');?> &copy; <?php echo date("Y"); ?> Chatterson Bell. All rights reserved.&nbsp;&nbsp;<!--{%FOOTER_LINK} -->
			</div>
		</div>
	</div>
</div></div>
	
		</div><!--test -->
		
<!--for cookies-->
   <script src="https://code.jquery.com/jquery-1.11.3.min.js"></script>
<script src="<?php echo $path;?>/js/cookieBanner.js"></script>
<script>
//instantiate cookie
var cookieBanner = new namespace.CookieBanner({
    //configure options here - see below
    duration: 28,
});

//when the close element of the cookie banner is clicked
cookieBanner.closeElement.on('click', function(e){

    //dont follow the anchor
    e.preventDefault();

    //remove the banner (setting a cookie to remember)
    cookieBanner.removeMe();
});
</script>
<!--EOF FOR cookies-->
<jdoc:include type="modules" name="debug" />
</body>


</html>