<?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] .'"?' .'>';?>
<!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 require("ms_split.php"); ?>
<?php require("ms_topmenu.php"); ?>
<head>
<?php mosShowHead(); ?>
<meta http-equiv="Content-Type" content="text/html;><?php echo _ISO; ?>" />
<?php if ( $my->id ) { initEditor(); } ?>
<?php echo "<link rel=\"stylesheet\" href=\"$GLOBALS[mosConfig_live_site]/templates/$GLOBALS[cur_template]/css/template_css.css\" type=\"text/css\"/>" ; ?><?php echo "<link rel=\"shortcut icon\" href=\"$GLOBALS[mosConfig_live_site]/images/favicon.ico\" />" ; ?>
</head>
<body> 
<div align="center">
<div id="outline_outer">
<div id="outline_inner">

<div id="topmost">
<div id="search"><?php mosLoadModules ( 'user4',-1 ); ?></div>
<div id="topmenu"><?php echo $ms_topmenu_content; ?></div>
</div>

<div id="header"></div>

<div id="mainmenu"><?php echo $ms_split_main; ?></div>


<div id="left_outline">


<div id="submenu"><?php echo $ms_split_sub; ?></div>


<?php if(mosCountModules("top")){ ?>
<div id="top"><?php mosLoadModules ( 'top',-3 ); ?></div>
<?php } ?>

<?php if(mosCountModules("left")){ ?>
<div id="left"><?php mosLoadModules ( 'left',-2 ); ?></div>
<?php } ?>

</div>

<?php if ( mosCountModules( 'right' ) and ( mosCountModules( 'left' ))){  // if both modules are loaded?> 
<div id="middle_both" class="middle"><?php mosMainBody(); ?></div>
<?php } else { //if only one of the positions are loaded ?>
<div id="middle_single" class="middle"><?php mosMainBody(); ?></div>
<?php } ?>

<?php if(mosCountModules("right")){ ?>
<div id="right"><?php mosLoadModules ( 'right',-2 ); ?></div>
<?php } ?>

</div>
</div>
</div>
</body>
</html>   