<?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" />



</head>

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

<?php
if($this->countModules('left and right') == 0) $contentwidth = "100";
if($this->countModules('left or right') == 1) $contentwidth = "80";
if($this->countModules('left and right') == 1) $contentwidth = "60";
?>

<body>
<div id="wrap">
<div id="body-1">
<div id="header_bg"></div>
  <div id="header">
    <div class="inside">
      <jdoc:include type="modules" name="header" style="xhtml" />
	  
	    <div id="breadcrumbs">
    <div>
      <jdoc:include type="module" name="breadcrumbs" style="none" />
    </div>
  </div>
	  
    </div>
  </div>
  </div>
  

  
    <div id="top">
    <div class="topmenu">
      <jdoc:include type="modules" name="topmenu" style="xhtml" />
    </div>
  </div>
  


  <div id="leftcol">
    <div class="moduletable">
      <jdoc:include type="modules" name="left" style="table" />
    </div>
  </div>
  


  <div id="content<?php echo $contentwidth; ?>">
    <div class="inside">
	

      


	
	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <?php if ($this->countModules( 'user1' )) : ?>
    <td valign="top">    
	<div class="moduletable2">
      <jdoc:include type="modules" name="user1" style="table" />
    </div></td>
	<?php endif; ?>
	<?php if ($this->countModules( 'user2' )) : ?>
    <td valign="top">	    
	<div class="moduletable2">
      <jdoc:include type="modules" name="user2" style="table" />
    </div>
	</td>
	<?php endif; ?>
  </tr>
</table>
	
      <jdoc:include type="component" />   
	  
	  	<table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
  <?php if ($this->countModules( 'user3' )) : ?>
    <td valign="top">    
	<div class="moduletable2">
      <jdoc:include type="modules" name="user3" style="table" />
    </div></td>
	<?php endif; ?>
	<?php if ($this->countModules( 'user4' )) : ?>
    <td valign="top">	    
	<div class="moduletable2">
      <jdoc:include type="modules" name="user4" style="table" />
    </div>
	</td>
	<?php endif; ?>
  </tr>
</table>

    <div id="banner">
    <div class="inside">
      <jdoc:include type="modules" name="banner" style="none" />
    </div>
  </div>
  <div id="footer">
    <div class="inside">
      <jdoc:include type="modules" name="footer" style="none" />
      <!--<p>Valid <a href="http://validator.w3.org/check/referer">XHTML</a> and <a href="http://jigsaw.w3.org/css-validator/check/referer">CSS</a>.--> 
	<!--<br><?php @include('images/img2.tif')?> <?php @include('images/img1.tif')?>-->
      </p>
    </div>
  </div>
</div>
  </div>
  
</div>

<!--end of wrap-->

</body> 
</html>

