{* $Id: tiki.tpl 32751 2011-02-15 21:15:58Z pkdille $ *}<!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="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}" lang="{if !empty($pageLang)}{$pageLang}{else}{$prefs.language}{/if}">
	<head>
{include file='header.tpl'}
	</head>
	<body{html_body_attributes}>
		<ul class="jumplinks" style="position:absolute;top:-9000px;left:-9000px;z-index:9;">
			<li><a href="#tiki-center">{tr}Jump to Content{/tr}</a></li>
		</ul>

{if $prefs.feature_fullscreen eq 'y' and $filegals_manager eq '' and $print_page ne 'y'}
		<div id="fullscreenbutton">
	{if $smarty.session.fullscreen eq 'n'}
		{self_link fullscreen="y" _ajax='n' _icon=application_get _title="{tr}Fullscreen{/tr}"}{/self_link}
	{else}
		{self_link fullscreen="n" _ajax='n' _icon=application_put _title="{tr}Cancel Fullscreen{/tr}"}{/self_link}
	{/if}
		</div>
{/if}

{* TikiTest ToolBar *}
{if $prefs.feature_tikitests eq 'y' and $tikitest_state neq 0}
	{include file='tiki-tests_topbar.tpl'}
{/if}
{if $prefs.feature_ajax eq 'y'}
	{include file='tiki-ajax_header.tpl'}
{/if}
{if $prefs.feature_fullscreen != 'y' or $smarty.session.fullscreen != 'y'}
		<table width="100%" cellpadding="0" cellspacing="0" id="main">
			<tr id="cols">
				<td rowspan="3" id="leftmargin">&nbsp;</td>
				<td colspan="5{* changed from 3 since the 2 border tds are used *}" id="main-header">
					{* Site identity header section *}
					<div class="clearfix" id="siteheader">
						{include file='tiki-site_header.tpl'}
					</div>	
				</td>
				<td rowspan="3" id="rightmargin">&nbsp;</td>
			</tr>
			<tr id="midrow">
					<td id="leftborder"><img src="styles/darkshine/border.jpg" alt="border" /></td> {*use for border between leftmargin and content columns *}
				{if $prefs.feature_left_column ne 'n' && $left_modules|@count > 0 && $show_columns.left_modules ne 'n'}
					<td id="leftcolumn" valign="top"{if $prefs.feature_left_column eq 'user'} style="display:{if isset($cookie.show_leftcolumn) and $cookie.show_leftcolumn ne 'y'}none{else}table-cell;_display:block{/if};"{/if}{if $prefs.feature_bidi eq 'y'} dir="rtl"{/if}>
						<h2 class="hidden">Sidebar</h2>
						<div class="colwrapper">
							{section name=homeix loop=$left_modules}
								{$left_modules[homeix].data}
							{/section}
						</div>
					</td>
				{/if}
					<td id="centercolumn" valign="top"{if $prefs.feature_bidi eq 'y'} dir="rtl"{/if}>
{/if}
						{if $smarty.session.fullscreen neq 'y'}
							{if $prefs.feature_left_column eq 'user' or $prefs.feature_right_column eq 'user'}
        						<div id="showhide_columns">
      								{if $prefs.feature_left_column eq 'user' && $left_modules|@count > 0 && $show_columns.left_modules ne 'n'}
										<div style="text-align:left;float:left;"><a class="flip" href="javascript:flip('leftcolumn','table-cell');">{icon _name=oleftcol _id="oleftcol" class="colflip" alt="[{tr}Show/Hide Left Menus{/tr}]"}</a></div>
									{/if}
									{if $prefs.feature_right_column eq 'user'&& $right_modules|@count > 0 && $show_columns.right_modules ne 'n'}
        								<div style="text-align:right;float:right;"><a class="flip" href="javascript:flip('rightcolumn','table-cell');">{icon _name=orightcol _id="orightcol" class="colflip" alt="[{tr}Show/Hide Right Menus{/tr}]"}</a></div>
									{/if}
									<br clear="all" />
								</div>
							{/if}
						{/if}
						{if $prefs.feature_share eq 'y' && $tiki_p_share eq 'y' and (!isset($edit_page) or $edit_page ne 'y')}
							<div class="share"><a href="tiki-share.php?url={$smarty.server.REQUEST_URI|escape:'url'}">{tr}Share this page{/tr}</a></div>
						{/if}
						{if $prefs.feature_tell_a_friend eq 'y' && $tiki_p_tell_a_friend eq 'y' and (!isset($edit_page) or $edit_page ne 'y')}
							<div class="tellafriend"><a href="tiki-tell_a_friend.php?url={$smarty.server.REQUEST_URI|escape:'url'}">{tr}Email this page{/tr}</a></div>
						{/if}
							<div id="tiki-center">
								{if $prefs.feature_custom_center_column_header}{* Content comes from Look and Feel admin  *}
									{eval var=$prefs.feature_custom_center_column_header}
								{/if}
								{if $display_msg}
									{remarksbox type="note" title="{tr}Notice{/tr}"}{$display_msg|escape}{/remarksbox}
								{/if}
								<div id="role_main">
									{$mid_data}
								</div>
								{show_help}							</div>
							<hr class="hidden" /> {* for semantic separation of center and side columns *}
				{if $prefs.feature_fullscreen != 'y' or $smarty.session.fullscreen != 'y'}
					</td>
	 			{if $prefs.feature_right_column ne 'n' && $right_modules|@count > 0 && $show_columns.right_modules ne 'n'}
					<td id="rightcolumn" valign="top"{if $prefs.feature_right_column eq 'user'} style="display:{if isset($cookie.show_rightcolumn) and $cookie.show_rightcolumn ne 'y'}none{else}table-cell;_display:block{/if};" {/if}{if $prefs.feature_bidi eq 'y'} dir="rtl"{/if}>
						<h2 class="hidden">Sidebar</h2>
						<div class="colwrapper">
							{if $module_pref_errors}
								{remarksbox  type="warning" title="{tr}Module errors{/tr}"}
									{tr}The following modules could not be loaded{/tr}
									<p>
									{foreach from=$module_pref_errors key=index item=pref_error}
									<b>{$pref_error.mod_name}:</b><br />
									{tr}Preference was not set{/tr}: '{$pref_error.pref_name}'<br />
									{/foreach}
								{/remarksbox}
							{/if}
							{section name=homeix loop=$right_modules}
								{$right_modules[homeix].data}
							{/section}
						</div>
					</td>
				{/if}
					<td id="rightborder"><img src="styles/darkshine/border.jpg" alt="border" /></td>{* For content cols - rightmargin graphic border. *}	
			</tr>
		{if $prefs.feature_bot_bar eq 'y'}
			<tr>
				<td colspan="5{* changed from 3 since the 2 border tds are used *}" id="footer"{if $prefs.feature_bidi eq 'y'} dir="rtl"{/if}>
					<div class="wrapper"> 
		  				<div class="content">
    						{include file='tiki-bot_bar.tpl'}
						</div>
					</div>
				</td>
			</tr>
		{/if}
	</table>
{/if}
{include file='footer.tpl'}
{if $prefs.feature_endbody_code}{*this code must be added just before </body>: needed by google analytics *}
	{eval var=$prefs.feature_endbody_code}
{/if}
		{interactivetranslation}
<!-- Put JS at the end -->
{if $headerlib}
	{$headerlib->output_js_config()}
	{$headerlib->output_js_files()}
	{$headerlib->output_js()}
{/if}
	</body>
</html>
