{$myobj->getTpl('general', 'header.tpl')}
<div id="hideScreen" style="z-index:100;display:none;position:absolute;" class="VeilStyle1c">&nbsp;</div>
<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/loading.gif" alt="{$LANG.header_loading}" style="display:none;" />
{if $CFG.admin.module.facebook && isMember() && $header->IsFacebookUser()}
	<iframe name="facebook_logout" id="facebook_logout" style="display:none"></iframe>
{/if}
<!-- starting of clsBodyContent -->
<div id="{$CFG.html.page_id}" class="clsBodyContent">
	<!-- starting of clsInnerBodyContent -->
	<div class="clsInnerBodyContent">
		<!-- for deactivate the page start -->

		<!-- for deactivate the page end -->
		<!-- only ajax window start -->
		<div id="selAjaxWindow"  style="display:none;position:absolute;">
			<div>
				<p class="clsPopupClose"><a href="#" onclick="return hideAllBlocks()">{$LANG.close}</a></p>
				<span id="selAjaxWindowInnerDiv">

				</span>
				<form name="frmAjaxWindow" action="">
				</form>
			</div>
		</div>
		<!-- only ajax window end -->
		<!-- alert box start -->
		<div id="selAlertbox" class="clsMsgAlert" style="display:none;position:absolute;">
  			<p id="selAlertMessage"></p>
  			<form name="formAlertBox" id="formAlertBox" action="">
    			<input type="button" class="clsPopSubmitButton" name="selAlertOkButton" id="selAlertOkButton" value="{$LANG.header_ok_button}" onclick="return hideAllBlocks();" />
  			</form>
		</div>
		<!-- alert box end -->
		<div id="selPageBody">
			<!-- Accessibility Links start -->
			<div id="top">
	  			<ul>
	    			<li><a href="#main">{$LANG.header_skip_main_content}</a></li>
	    			<li><a href="#selSubHeader">{$LANG.header_skip_navigation_links}</a></li>
	    			<li><a href="#footer">{$LANG.header_skip_footer}</a></li>
	  			</ul>
			</div>
			<!-- Accessibility Links end -->
			<!-- Header starts-->
			<div id="header">
				<div class="clsTopHeader clsClearfix">
					<div class="clsLeftHeader">
						<h1><a href="{$header->getUrl('index')}" title="{$LANG.header_browse_to_homepage}">{$CFG.site.name}</a></h1>
					</div>
					<div class="clsRightHeader">
						<div class="clsClearfix">
							{include file='../general/styleSheetChooser.tpl'}
							{include file='../general/multiLanguage.tpl'}
						</div>
                        <!-- Start Header options -->
		  				<div id="selHeaderWelcome" class="clsHeaderOptions">
		  					{if !isMember()}
		  						<div id="selRootWelcome" class="clsHeaderWelcomeSection">
                                	<div class="clsHeaderWelcomeLinks">
										{if $header->chkAllowedModule(array('registration'))}
						  					<div class="clsSignup">
											  	{$LANG.header_new_user}
                                    			<a href="{$header->getUrl('signup', '', '', 'root')}"><span>{$LANG.header_signup_link}</span></a>
											</div>
										{/if}
                                    </div>
								</div>
							{/if}
							{if isMember()}
	    						<div id="selMembersWelcome" class="clsHeaderOptions">
	  								<ul class="clsHeaderWelcomeLinks clsClearfix">
										{if isAdmin()}
        									<li class="clsAdmin"><a class="clsHighlightHeaderLink" href="{$CFG.site.url}admin/">{$LANG.common_user_access_admin}</a></li>
        								{/if}
      									<li class="clsMyCon {$header->headerBlock.myanswersClass}"><a href="{$header->headerBlock.myanswers_link}">{$LANG.header_my_contribution}</a></li>

                                        <li class="clsMySet {$header->headerBlock.managesettingsClass}"><a href="{$header->getUrl('managesettings', '', '', 'members')}">{$LANG.header_manage_settings}</a></li>
									</ul>
	 							</div>
							{/if}
						</div>
						<!-- end Header options -->
                    </div>
					<div class="clsMiddleHeader">
						<div class="clsHeaderBannerTemplate">
							<div id="selHeaderBanner">{php}getAdvertisement('top_banner1'){/php}</div>
						 </div>
					</div>
				</div>

                 <div id="selSubHeader">
					{$header->populateTopMenu()}
				</div>
               </div>
			<!-- End of Header -->
			<!-- Side Bar -->

			<!-- Start of Side Bar -->
			{if $CFG.site.script_name neq 'error.php'}
				<div id="sideBar" class="sideBar1">
					<div id="toggleDiv">
						{if $CFG.site.script_name neq 'index.php'}
							<div class="clsAskQuestionBanner">
								<a href="{$header->ask_question_link}"><span class="clsFirstAsk">{$LANG.header_ask}</span><span class="clSecondQues">{$LANG.header_ask_own_question}</span></a>
							</div>
						{/if}
						{if $CFG.site.script_name eq 'myanswers.php'}
							{$myobj->showUserStatistics()}
						{else}
							{$header->showAnswerSearchOption()}
							{$header->showForumsSearchOption()}
							{$header->showBlogsSearchOption()}
							{$header->showMemberSearchOption()}
							{$header->showDebateSearchOption()}

							<div id="selSidebarBanner" class="clsBanner clsHeaderBanner">{php}getAdvertisement('side_bar1'){/php}</div>
							{$header->rightBarSettings($header->LANG_LIST_ARR.paging_list)}
							<div id="selSidebarBanner" class="clsBanner clsHeaderBanner">{php}getAdvertisement('side_bar2'){/php}</div>
						{/if}
   					</div>
  				</div>
			{/if}
			<!-- End of Side Bar -->
				<!-- Main -->
				{if $CFG.site.script_name neq 'error.php'}
					<div id="main">
					{if $CFG.site.script_name eq 'index.php'}
						<div class="clsSubMain clsClearfix">
						<form name="frmIndexAskQuestion" id="frmIndexAskQuestion" method="post" action="{$header->getUrl('questions', '?view=ask', 'ask/', 'members')}">
							<div class="clsAskQuestionBlockLeft">
								<div class="clsAskQuestionBlockRight">
									<div class="clsAskQuestionBlockHeading">
										<span class="clsAskUrQuestion">{$LANG.ask_your_question}</span>
										{if $CFG.admin.index.resolved_count AND $header->solvedQuestionsCount()}
											<span class="clsSolveUrQuestion">{$LANG.solved_questions_count_info_1} <span>{$solved_question_count}</span> {$LANG.solved_questions_count_info_2}</span>
										{/if}
									</div>
									<div class="clsAskQuestionBlockForm">
										<input type="text" name="question" id="question" maxlength="250" tabindex="{smartyTabIndex}" value="{$LANG.enter_your_question}" onBlur="displayDefaultValue(this, '{$LANG.enter_your_question}')" onclick="clearDefaultValue(this, '{$LANG.enter_your_question}')" />
									</div>
								</div>
							</div>
							<div class="clsAskIndexBlockLeft">
								<div class="clsAskIndexBlockRight">
									<input type="submit" name="askquestion" id="askquestion" value="{$LANG.ask}" />
								</div>
							</div>
							</form>
						</div>
					{/if}
				{/if}