<?php
/**
 * @copyright	Copyright (C) 2005 - 2007 Open Source Matters. All rights reserved.
 * @license		GNU/GPL, see LICENSE.php
 * Joomla! is free software. This version may have been modified pursuant
 * to the GNU General Public License, and as distributed it includes or
 * is derivative of works licensed under the GNU General Public License or
 * other free or open source software licenses.
 * See COPYRIGHT.php for copyright notices and details.
 */

// no direct access
defined( '_JEXEC' ) or die( 'Restricted access' );



?>

<!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 if($my->id){
  initEditor();
}?>

<link rel="stylesheet" href="<?php echo $this->baseurl ?>/templates/insanity/css/template.css" type="text/css" />

</head>


<body>

<div align=center>

  <div id=contener>

	<div id=header>
		<div id=menu>
	<jdoc:include type="modules" name="menu" style="xhtml" />
		</div>
	</div>

	<div id=content>

		<?php if ($this->countModules('news')): ?>
		<div id=news>
		<jdoc:include type="modules" name="news" style="xhtml" />
		</div>
		<?php endif; ?>

		<div id=text>
		<jdoc:include type="component" />
		</div>
	</div>

	<div id=context>

		<?php if ($this->countModules('logo')): ?>
		<div id=logo>
		<jdoc:include type="modules" name="logo" style="xhtml" />
		</div>
		<?php endif; ?>

		<?php if ($this->countModules('box')): ?>
		<div id=box>
		<jdoc:include type="modules" name="box" style="xhtml" />
		</div>
		<?php endif; ?>

		<?php if ($this->countModules('figure')): ?>
		<div id=figure>
		<jdoc:include type="modules" name="figure" style="xhtml" />
		</div>
		<?php endif; ?>

	</div>

  </div>
	<div id=footer>
		<jdoc:include type="modules" name="footer" style="xhtml" />
		<div id=login>
		<jdoc:include type="modules" name="login" style="xhtml" /></div>
		<div id=links>
		<jdoc:include type="modules" name="links" style="xhtml" /></div>
	</div>

</div>



</body>
</html>