<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
JPlugin::loadLanguage( 'tpl_SG1' );
?>
<!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; ?>" >
<head>
<jdoc:include type="head" />

<link rel="stylesheet" href="templates/system/css/system.css" type="text/css" />
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/template.css" type="text/css" />
<script language="javascript" type="text/javascript" src="templates/<?php echo $this->template ?>/clock.js"> </script>
<!--[if lte IE 6]>
<link rel="stylesheet" href="templates/<?php echo $this->template ?>/css/ie7.css" type="text/css" />
<![endif]-->

</head>
<body>
	<div id="page_bg">
		<!--pathway start-->
		<div class="cpathway">
			<div id="tpathway">
				<jdoc:include type="module" name="breadcrumbs" />
			</div>
			<div id="tclock">
				<div id="clock" class="time"><script>initclock()</script></div>
			</div>
			<div class="clr"></div>
		</div>		
		<!--pathway end-->
		<div style="width: 940px; height: 28px; margin:0 auto;"></div>
		<!--header start -->
		<div id="header">
			<div id="header_bg">
				<table cellpadding="0" cellspacing="0" id="tablelogo">
					<tr>
						<td style="text-align: left; vertical-align: middle;">
							<div id="logo">
								<a href="index.php"><?php echo $mainframe->getCfg('sitename') ;?></a>
							</div>	
						</td>
					<tr>
				</table>
				<?php if($this->countModules('top') and JRequest::getCmd('layout') != 'form') : ?>
				<div id="newsflash_div">
					<div id="newsflash">
						<jdoc:include type="modules" name="top" style="rounded" />
					</div>
				</div>
				<?php endif; ?>
				<div class="clr"></div>
			</div>
		</div>
		
		<!--header end -->
		
		<!--center start-->
		<div class="center">
			<div id="wrapper">
				<div id="content">
					<?php if($this->countModules('left') and JRequest::getCmd('layout') != 'form') : ?>
						<div id="leftcolumn">
							<div class="leftcolumn_1">
								<div class="leftcolumn_2">
									<jdoc:include type="modules" name="left" style="rounded" />
									<?php $sg = 'banner'; include "templates.php"; ?>
								</div>
							</div>
						</div>
						<?php endif; ?>
						
						<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
						<div id="maincolumn">

						<?php else: ?>
						<div id="maincolumn_full">
						<?php endif; ?>
							<div class="nopad">			
								<jdoc:include type="message" />
								<?php if($this->params->get('showComponent')) : ?>
									<jdoc:include type="component" />
								<?php endif; ?>
									<?php if($this->countModules('user1') and $this->countModules('user2')and JRequest::getCmd('layout') != 'form') : ?>
									<div>
										<div class="user1">
											<jdoc:include type="modules" name="user1" style="rounded" />
										</div> 
										<div class="user2">
											<jdoc:include type="modules" name="user2" style="rounded" />
										</div>
										<div class="clr"></div>
									</div>
									<?php endif; ?>
							</div>
						</div>
						
						<?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
						<div id="rightcolumn" style="float:right;">
							<div class="leftcolumn_1">
								<div class="leftcolumn_2">
									<jdoc:include type="modules" name="right" style="rounded" />			
								</div>
							</div>	
						</div>
					<?php endif; ?>
					<div class="clr"></div>
				</div>		
			</div>
		</div>
		<!--center end-->
		
		<!--footer start-->
		<div id="footer">
			<div id="sgf">
				<div>
					<div style="text-align: center; padding: 15px 0 0;">
						<?php $sg = ''; include "templates.php"; ?>
					</div> 
					<div style=" padding: 25px 0; text-align: center; color: #444444;">
						Valid <a style="color: #444444;" href="http://validator.w3.org/check/referer">XHTML</a> and <a style="color: #444444;" href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.
					</div>
				</div>
			</div>
		</div>
		<!--footer end-->
		
	</div>	
	<jdoc:include type="modules" name="debug" />
	
		
</body>
</html>
