<?php /**  * @copyright	Copyright (C) 2011 themegoat.com - All Rights Reserved. **/
defined( '_JEXEC' ) or die( 'Restricted access' );
define( 'YOURBASEPATH', dirname(__FILE__) );
?>
<!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" />
<?php require(YOURBASEPATH . DS . "functions.php"); ?>
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/styles.css" type="text/css" />

</head>

<body class="background">
<div id="main">
<div id="header-w">
    	<div id="header">
        	<?php if ($this->countModules('logo')) : ?>
                <div class="logo">
                	<jdoc:include type="modules" name="logo" style="none" />
                </div>
            <?php else : ?>        
            	<a href="<?php echo $this->baseurl ?>/">
				<center> <img src="<?php echo $this->baseurl; ?>/templates/<?php echo $this->template; ?>/images/logo.png" border="0" class="logo"> </center>
				</a>
            <?php endif; ?>
		<div class="tguser">
		<jdoc:include type="modules" name="position-0" style="none" />
		</div>
            <?php if ($this->countModules('top')) : ?> 
                <div class="top">
                    <jdoc:include type="modules" name="top" style="none"/>
                </div>
            <?php endif; ?>                         
		</div>        
</div>
	<div id="wrapper">
        	<div id="navr">
			<div id="navl">
			<div id="nav">
					<div id="nav-left">
	<jdoc:include type="modules" name="menu" style="none" /></div><div id="nav-right"><?php include "html/com_content/archive/component.php"; ?><div id="topimage"><div id="topimage-nf"><jdoc:include type="modules" name="newsflashload"  style="none"/>
	</div></div>
		<?php if ($this->countModules('breadcrumb')) : ?>
        	<jdoc:include type="modules" name="breadcrumb"  style="none"/>
        <?php endif; ?>
	<div class="clearpad"></div>
		<div id="message">
		    <jdoc:include type="message" />
		</div>    
            <?php if($this->countModules('left')) : ?>
	<div id="leftbar-w">
	<div id="addthis"><!-- AddThis Button BEGIN -->
<div class="addthis_toolbox addthis_default_style addthis_32x32_style">
<a class="addthis_button_preferred_1"></a>
<a class="addthis_button_preferred_2"></a>
<a class="addthis_button_preferred_3"></a>
<a class="addthis_button_preferred_4"></a>
<a class="addthis_button_compact"></a>
</div>
<script type="text/javascript" src="http://s7.addthis.com/js/250/addthis_widget.js#pubid=xa-4dd788572198c717"></script>
<!-- AddThis Button END --></div>
    <div id="sidebar">
        <jdoc:include type="modules" name="left" style="jaw" /></div></div>
    <?php endif; ?>
    <?php if($this->countModules('left') xor $this->countModules('right')) $maincol_sufix = '_md';
		  elseif(!$this->countModules('left') and !$this->countModules('right'))$maincol_sufix = '_bg';
		  else $maincol_sufix = ''; ?>
	<div id="centercontent<?php echo $maincol_sufix; ?>">
    	<div class="clearpad"><jdoc:include type="component" /></div>
    </div>
    <?php if($this->countModules('right') and JRequest::getCmd('layout') != 'form') : ?>
	<div id="rightbar-w">
    <div id="sidebar">
         <jdoc:include type="modules" name="right" style="jaw" />
    </div>
    </div>
    <?php endif; ?>
	<div class="clr"></div>
        </div>   		
        </div>     
  </div>
</div>
<div id="user-bottom">
	<div class="user1"><jdoc:include type="modules" name="user1" style="xhtml" /></div>
	<div class="user2"><jdoc:include type="modules" name="user2" style="xhtml" /></div>
</div>
<?php if ($this->countModules('user7 or user8 or user9 or user10')) : ?>
<div id="footer">
	<div class="footer-pad">
    	<div class="top1"><div class="top2"><div class="top3"></div></div></div>
        <div class="bot1"><div class="bot2"><div class="bot3"></div></div></div> 
  </div>    
</div>        
<?php endif; ?>
<div id="bottom">
            <div class="tg">
                <jdoc:include type="modules" name="copyright"/>Copyright 2011 <?php  ?><?php echo $mytitle; ?>. <!-- You are not allowed to remove or modify this --> By <a href="http://www.themegoat.com" rel="follow" target="_blank">Joomla 1.7 templates</a> and hosting service by <a href="http://webhostingtop.org/justhost-review" target="_blank" title="just host coupon">justhost reviews</a>. All Rights Reserved.
            </div>
</div>
</div>
</body>
</html>