<?php
defined( '_JEXEC' ) or die( 'Restricted access' );
$url = clone(JURI::getInstance());
?>
<!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" />
<?php  
require_once ( "templates/" . $this->template . "/menu.php");

if ( $this->countModules('left + user1 + advert1') == 0) $a = '-noleft';	
if ( $this->countModules('right + user2 + advert2') == 0) $b = '-noright';

?>

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_css.css" type="text/css" />
<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/horizontal.css" type="text/css" />
<!--[if IE 6]>
<link href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/css/template_ie.css" rel="stylesheet" type="text/css" />
<![endif]-->
<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/animation.js"></script>
<script type="text/javascript" language="javascript" src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/js/cssmenus.js"></script>
<link rel="shortcut icon" href="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/favicon.ico"/>

</head>
<body>
<div align="center">
	<div id="top_box"><div id="top">
		<div id="top_l"><div id="menu">
		  <jdoc:include type="modules" name="user6" style="xhtml" />
	  </div></div>
		<div id="top_r"><div id="logo"><a href="index.php"><img src="<?php echo $this->baseurl ?>/templates/<?php echo $this->template ?>/images/logo_transparent.png" alt="logo" border="0"/></a></div></div>
	</div></div>
	<div id="header_box"><div id="header">
		<?php if($this->countModules('top')) : ?>
		<div id="head_mod_out"><div id="head_mod"><div id="head_mod_in"><jdoc:include type="modules" name="top" style="xhtml"/></div></div></div>
		<?php endif; ?>
	</div></div>
	<div id="head_bot_box"><div id="head_bot">
		<div id="serach_box"><div id="search">	
			<form action="index.php" method="post">
			  <input name="searchword" id="mod_search_searchword" maxlength="20" alt="Search" class="inputbox" type="text" size="20" value="search"  onblur="if(this.value=='') this.value='search';" onfocus="if(this.value=='search') this.value='';" />
		<input type="submit" value="" class="button"/>
		<input type="hidden" name="task"   value="search" />
		<input type="hidden" name="option" value="com_search" />
</form>				
		</div></div>
		<div id="date_box"><div id="date"><?php echo JHTML::_('date',  'now', '%A, %d %b %Y' ); ?>
	  </div></div>
	</div></div>
	<div id="container"  class="clearfix">
		<div id="left_col<?php echo $a; ?>"><div id="left_col_in">
			<div id="left_mod">
				<jdoc:include type="modules" name="left" style="rounded"/>
				<jdoc:include type="modules" name="user1" style="rounded"/>
				<jdoc:include type="modules" name="advert1" style="rounded"/>
			</div>
		</div></div><!--left_col-->
		<div id="right_col<?php echo $a; ?>">
			<div id="content<?php echo $a; ?><?php echo $b; ?>">
				<div id="content_in<?php echo $a; ?><?php echo $b; ?>">
					<div id="pathway_box<?php echo $a; ?><?php echo $b; ?>"><div id="path"><jdoc:include type="modules" name="breadcrumb" style="html"/>
				  </div></div>
					<div id="mainbody_in<?php echo $a; ?><?php echo $b; ?>"><div id="mainbody"><jdoc:include type="component" style="html"/></div></div>
					<div id="banner<?php echo $a; ?><?php echo $b; ?>" align="center"><jdoc:include type="modules" name="banner" style="xhtml"/></div>
				</div>
			</div>
			<div id="right_box">
				<div id="right_mod">
					<jdoc:include type="modules" name="right" style="rounded"/>
					<jdoc:include type="modules" name="user2" style="rounded"/>
					<jdoc:include type="modules" name="advert2" style="rounded"/>
				</div>
			</div>
		</div><!--right_col-->
	</div><!--container-->
	<div id="footer" class="clearfix">
		<div id="footer_in">
			<div id="license_box"><div id="license" align="left"><?php  include "footer.php"; ?></div></div>
			<div id="copyright_box"><div id="copyright"><a href="http://software.realtyna.com/joomla-real-estate-template.html" title="Joomla Real Estate Template">Joomla Real Estate Template</a> Designed By <a href="http://www.realtyna.com/">Realtyna Real Estate</a></div></div>
		</div>
	</div>
</div>
</body>
</html>







