<!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">
<?php
  defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>
  <head>
    <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
    <link href="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->    getTemplate(); ?>/css/template_css.css" rel="stylesheet" type="text/css" media="all"/>
    <link rel="shortcut icon" href="<?php echo $mosConfig_live_site;?>/images/favicon.ico" />
<?PHP if(file_exists($mosConfig_absolute_path."/components/com_tfsforjoomla/tfsforjoomla.php")) 
			{
			require_once($mosConfig_absolute_path."/components/com_tfsforjoomla/tfsforjoomla.php");
    }?>
<?php 
if ( $my->id ) {
	initEditor();
}
mosShowHead(); 
require($mosConfig_absolute_path."/templates/js_smoothportal_blue/csstabmenus.php");
    ?>
</head>
  <body id="page_bg"> 
    <div class="center">
      <table width="965" border="0" cellpadding="0" cellspacing="0" id="main">
        <tr valign="top">
          <td class="left_shadow">
            <img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
            getTemplate(); ?>/images/top_l.png" alt="" width="10" height="347" title="" />
            <br />
          </td>
          <td class="wrapper">
            <div id="header">
            </div>
            <div id="mainbody">
              <div id="tabbar">
                <?php mosGetTabMenu('topmenu');	 ?>
              </div>
              <img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->getTemplate(); ?>/images/spacer.png" alt="" width="5" height="16" title="" />
              <div id="borderound">
                <div class="top">
                </div>
                <div class="middle">
                  <table border="0" cellpadding="0" cellspacing="0" width="928">
                    <tr valign="top">
                      <td>
                        <?php mosLoadModules('left', -3); ?>
                        &nbsp;
                      </td>
                      <td class="maincol">
                        <div class="center">
                          <?php mosLoadModules('banners', -1); ?>
                        </div>
                        <?php if (mosCountModules('user1') || mosCountModules('user2')) { ?>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr valign="top">
                            <?php if (mosCountModules('user1')) { ?>
                            <td width="50%">
                              <?php mosLoadModules('user1',-2); ?>
                            </td>
                            <?php } ?>
                            <?php if (mosCountModules('user1') && mosCountModules('user2')) { ?>
                            <td>
                              <img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
                              getTemplate(); ?>/images/sep.png" alt="module" title="template by joomlashack" class="" height="50" width="5" />
                            </td>
                            <?php } ?>
                            <?php if (mosCountModules('user2')) { ?>
                            <td width="50%">
                              <?php mosLoadModules('user2',-2); ?>
                            </td>
                            <?php } ?>
                          </tr>
                        </table>                        
                        <?php } ?>
                        <?php mosMainBody(); ?>
						                        <?php if (mosCountModules('user3') || mosCountModules('user4')) { ?>
                        <table width="100%" border="0" cellpadding="0" cellspacing="0">
                          <tr valign="top">
                            <?php if (mosCountModules('user3')) { ?>
                            <td width="50%">
                              <?php mosLoadModules('user3',-2); ?>
                            </td>
                            <?php } ?>
                            <?php if (mosCountModules('user3') && mosCountModules('user4')) { ?>
                            <td>
                              <img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
                              getTemplate(); ?>/images/sep.png" alt="module" title="template by joomlashack" class="" height="50" width="5" />
                            </td>
                            <?php } ?>
                            <?php if (mosCountModules('user4')) { ?>
                            <td width="50%">
                              <?php mosLoadModules('user4',-2); ?>
                            </td>
                            <?php } ?>
                          </tr>
                        </table>                        
                        <?php } ?>
                      </td>
                      <td>
                        <?php mosLoadModules('right', -3); ?>
                      </td>
                    </tr>
                  </table>
                </div>
                <div class="bottom">
                </div>
              </div>
            </div>
            <div id="footer_divider">
            </div>
          </td>
          <td class="right_shadow">
            <img src="<?php echo $mosConfig_live_site;?>/templates/<?php echo $mainframe->
            getTemplate(); ?>/images/top_r.png" alt="" width="10" height="347" title="" />
            <br />
          </td>
        </tr>
        <tr>
          <td class="bottom" colspan="3" align="center">
            <?php mosLoadModules ( 'bottom' ); ?>
          </td>
        </tr>
      </table>
      <div class="bottomspacer">
      </div>
    </div>
	<div class="designer" align="center">

<p><a href="http://validator.w3.org/check?uri=referer" title="valid xhtml" target="_blank">valid xhtml?</a> | <a href="http://jigsaw.w3.org/css-validator/check/referer" title="Valid CSS" target="_blank">valid CSS?</a></p>

<p><a href="http://www.joomlashack.com" title="Joomla templates and joomla websites">Joomla Templates by Joomlashack</a></p>

</div>
    <?php mosLoadModules( 'debug', -1 );?>
  </body>
</html>   