<?php
/*
         ACTION TEMPLATE
  
  COPYRIGHT: WWW.JOOMLA-TEMPLATES.COM

*/
?>

<?php echo "<?xml version=\"1.0\"?>"; defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); ?>

<!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">

<head>

<?php defined( '_VALID_MOS' ) or die( 'Direct Access to this location is not allowed.' ); $iso = split( '=', _ISO ); echo '<?xml version="1.0" encoding="'. $iso[1] .'"?' .'>'; ?>

<?php if ( $my->id ) initEditor(); ?>

<meta http-equiv="Content-Type" content="text/html; <?php echo _ISO; ?>" />

<?php mosShowHead(); ?>

<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/templates/<?php echo $cur_template; ?>/css/template_css.css" />

<link rel="stylesheet" type="text/css" href="<?php echo $GLOBALS['mosConfig_live_site']; ?>/templates/<?php echo $cur_template; ?>/css/layout.css" />

</head>
<body> <center><div id="container">
<div id="header">
<?php if (mosCountModules("header") ) { ?>
	<div id="sitename"><?php mosLoadModules ( 'header',-1 ); ?></div>
<?php } ?>
	<div id="banner"><?php mosLoadComponent( "banners" ); ?></div>
	<div id="topmenu"><?php mosLoadModules ( 'user3',-1 ); ?></div>
	<div id="SEARCH"><form action='<?php echo sefRelToAbs("index.php"); ?>' method='post'>                      
				<input class="searchbox" type="text" name="searchword" size="19" value="<?php echo _SEARCH_BOX; ?>"  onblur="if(this.value=='') this.value='<?php echo _SEARCH_BOX; ?>';" onfocus="if(this.value=='<?php echo _SEARCH_BOX; ?>') this.value='';" />
				<input type="hidden" name="option" value="search" />
			</form></div>
</div>
<div id="center">
	<div id="sep1"></div>
	<div id="left"><?php mosLoadModules ( 'left' ); ?></div>
	<div id="sep2"></div>
	<div id="main">
		<?php if (mosCountModules("user1") + mosCountModules("user2") > 0 ) { ?>
		<div class="mainrow">
			<?php if (mosCountModules("user1")) { ?>
			<div class="userbox">
				<div class="userboxtop">
					<div class="userboxbottom">
						<?php mosLoadModules ( 'user1' ); ?>
					</div>
				</div>
			</div>
			<?php } ?>
			<?php if (mosCountModules("user2")) { ?>
			<div class="userboxspacer"></div>
			<div class="userbox">
				<div class="userboxtop">
					<div class="userboxbottom"><?php mosLoadModules ( 'user2' ); ?></div>
				</div>
			</div>
			<?php } ?>
		</div>
		<div class="mainrowspacer"></div><!-- spacer -->
		<?php } ?>
		<?php if (mosCountModules("top")) { ?>
		<div class="mainrow">
			<div class="flashbox">
				<div class="flashboxtop">
					<div class="flashboxbottom">
						<?php mosLoadModules ( 'top' ); ?>
					</div>
				</div>
			</div>
		</div>
		<?php } ?>
		<div class="mainrow">
			<?php mosMainBody(); ?>
		</div>
		<?php if (mosCountModules("user5") + mosCountModules("user6") > 0 ) { ?>
		<div class="mainrowspacer"></div><!-- spacer -->
		<div class="mainrow">
			<?php if (mosCountModules("user5")) { ?>
			<div class="userbox">
				<div class="userboxtop">
					<div class="userboxbottom"><?php mosLoadModules ( 'user5' ); ?></div>
				</div>
			</div>
			<div class="userboxspacer"></div>
			<?php } ?>
			<?php if (mosCountModules("user6")) { ?>
			<div class="userbox">
				<div class="userboxtop">
					<div class="userboxbottom">
						<?php mosLoadModules ( 'user6' ); ?>
					</div>
				</div>
			</div>
			<?php } ?>
		</div>
		<?php } ?>
		<div class="mainrowspacer"></div><!-- spacer -->
		<?php if (mosCountModules("bottom")) { ?>
		<div class="mainrow">
			<div class="flashbox">
				<div class="flashboxtop">
					<div class="flashboxbottom">
						<?php mosLoadModules ( 'bottom' ); ?>
					</div>
				</div>
			</div>
		</div>
		<?php } ?>
	</div>
</div>
<div id="bottom"></div>
<div id="copyRight"><?php mosLoadModules ( 'legals',-1 ); ?></div>
</div>
</center>
</body>
</html>   
