{if !isAjax()}
<div id="selIndex">
{/if}
	{include file='../general/information.tpl'}
	{if $myobj->isShowPageBlock('form_recent_questions') || $myobj->isShowPageBlock('form_best_answer')}
		{if !isAjax()}
        	<div class="clsCommonIndexRoundedCorner">
          	<!--rounded corners-->
    			<div class="lbresent">
      				<div class="rbresent">
        				<div class="bbresent">
          					<div class="blcresent">
            					<div class="brcresent">
              						<div class="tbresent">
                						<div class="tlcresent">
                  							<div class="trcresent">
                  								<!-- tabs start -->
												<div class="clsResentLink">
													<ul class="clsClearfix">
														{if $myobj->isShowPageBlock('form_recent_questions')}
															{if chkIsAudioAllowed('question') or chkIsAudioAllowed('answer') or chkIsVideoAllowed('question') or chkIsVideoAllowed('answer')}
																<li id="selRecentQuestionsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink">
																<div class="clsLeftButtonActive clsClearfix">
																	<div id="selRecentQuestionsSPAN" class="" style="overflow:visible;">
																		<div class="clsFloatleft">
																			<a id="selRecentQuestionsA" class="clsResentTab" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selBestAnsweredQuestions');showBlocks('selRecentQuestions'); toggleNavBar(); return false;">
																			<span>{$LANG.common_recent_question_title}</span>
																			</a>
																		</div>
																		{if chkIsAudioAllowed('question') or chkIsAudioAllowed('answer') or chkIsVideoAllowed('question') or chkIsVideoAllowed('answer')}
																		<div id="selFilterOption" class="clsLink" onclick="showHideDiv('selFilterQuestions', 'selFilterOption')" >

																					<div id="selFilterQuestions" style="display:none;" class="clsIndexResentPopup" onmouseover="showRecentFilter();" onmouseout="hideRecentFilter();">
																						<ul>
																							<li><a id="selRecentAll" class="clsInActiveMenuPopup" href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentQuestions', 'all'); selectActive('selRecentAll'); return false;">{$LANG.search_type_all}</a></li>
																							{if chkIsAudioAllowed('question') or chkIsAudioAllowed('answer')}
																								<li><a id="selRecentAudio" class="clsInActiveMenuPopup" href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentQuestions', 'audio'); selectActive('selRecentAudio'); return false;">{$LANG.common_audio_question_title}</a></li>
																							{/if}
																							{if chkIsVideoAllowed('question') or chkIsVideoAllowed('answer')}
																								<li><a id="selRecentVideo" class="clsInActiveMenuPopup" href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentQuestions', 'video'); selectActive('selRecentVideo'); return false;">{$LANG.common_video_question_title}</a></li>
																							{/if}
																						</ul>
																					</div>


																		</div>{/if}
																	</div>
																</div>
																</li>
															{else}
																<li id="selRecentQuestionsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink">
																	<div id="selRecentQuestionsSPAN" class="clsLeftButtonActive">
																		<a id="selRecentQuestionsA" class="clsResentTab" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selBestAnsweredQuestions');showBlocks('selRecentQuestions'); toggleNavBar(); return false;">{$LANG.common_recent_question_title}</a>
																	</div>
																</li>
															{/if}
														{/if}
														{if $myobj->isShowPageBlock('form_best_answer')  && !isAjax()}
															{if !$myobj->form_best_answer.bestQStyle}
																<li id="selBestAnsweredQuestionsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink">
																<div id="selBestAnsweredQuestionsSPAN" class="clsLeftButtonActive"><a id="selBestAnsweredQuestionsA" class="clsBestTab" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentQuestions');showBlocks('selBestAnsweredQuestions'); hideRecentFilter(); toggleNavBar(); return false;">{$LANG.common_best_answered_question}</a></div></li>
															{else}
																<li id="selBestAnsweredQuestionsLI" class="clsLeftInActiveQuestionsLink"><div id="selBestAnsweredQuestionsSPAN" class="clsLeftButtonActive"><a id="selBestAnsweredQuestionsA" class="clsBestTab" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentQuestions');showBlocks('selBestAnsweredQuestions'); hideRecentFilter(); updateContent('selBestAnsweredQuestions'); return false;">{$LANG.common_best_answered_question}</a></div></li>
															{/if}
														{/if}
													</ul>
												</div>
												<!-- tabs end -->

		{/if}
	{/if}
<!--index top resent questions tab started-->
	{if $myobj->isShowPageBlock('form_recent_questions')}
		{if !isAjax()}
		<div id="selRecentQuestions" class="clsCommonIndexSection" {$myobj->form_recent_questions.recentQStyle}>
		{/if}
			<div id="selWidgetRecentQuestions">
				<div class="clsSideBarContents" id="recent_question" style="display: block;">
					{if $myobj->form_recent_questions.displayRecentQuestions.recent_questions}
						{foreach key=inc item=value from=$myobj->form_recent_questions.displayRecentQuestions.row}
							<div>
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
	                                 {if $CFG.admin.questions_module.voting}
										<div class="clsUserThumb clsUserThumbIndex">
									  {else}
										 <div class="clsUserThumb">
									   {/if}
		                                 {if $CFG.admin.questions_module.voting}
		                                     <div class="clsVotingCount">
		                                        <div class="clsVotingCountInner"><a href="{$value.questionDetails.qLink}">
		                                          <span class="clsCont">{$value.questionDetails.votes}</span>
		                                          <span class="clsContText">{if $value.questionDetails.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</span>
		                                        </a></div>
		                                      </div>
		                                      {/if}
		                                </div>
										<div class="clsUserDetails">
										<p class="clsQuestionLink">{$value.questionDetails.question_link}</p>
										<div class="clsClearfix clsUserSubLinks">
											<div class="clsUserLinkBy clsNoLeftBgPadngMrgn clsNoBold">{$LANG.common_in}&nbsp;</div>
											<div class="clsUserCategory clsNoLeftBgPadngMrgn">{$value.questionDetails.showCategoryName}</div>
											<div class="clsUserLinkBy clsNoBold">{$LANG.common_question_asked_by}</div>
										  	<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
	                                        	{$myobj->displayProfileImage($value.questionDetails, 'tiny')}
	                                        {/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.questionDetails.asked_by_link}</div>
										</div>
										<div class="clsClearfix clsUserSubLinks">
											{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
											{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment) or (chkIsAudioAllowed('question') and $value.questionDetails.audio_id) or (chkIsVideoAllowed('question') and $value.questionDetails.video_id)
												or (chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id) or (chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id)}
												{assign var="clsNoLeftBgPadngMrgn" value=""}
												<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
													{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment)}
														<a id="{$value.questionDetails.img_id}" href="{$value.questionDetails.attachment_path}" onclick="return displayImageGallery('{$value.questionDetails.img_id}');">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>
														<img src="{$value.questionDetails.image_large_path}" alt="" style="display: none;" />
													{/if}
													{if chkIsVideoAllowed('question') and $value.questionDetails.video_id}
														<a id="{$value.questionDetails.video_on_click}" href="{$value.questionDetails.video_url}" onClick="{$myobj->getBrowser($value.questionDetails.video_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
													{/if}
													{if chkIsAudioAllowed('question') and $value.questionDetails.audio_id}
														<a id="{$value.questionDetails.audio_on_click}" href="{$value.questionDetails.audio_url}" onClick="{$myobj->getBrowser($value.questionDetails.audio_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
													{/if}
													{if chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_video.on_click}" href="{$value.questionDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
					                            	{if chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_audio.on_click}" href="{$value.questionDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
												</div>
											{/if}
											<div class="clsUserLinkViews {$clsNoLeftBgPadngMrgn}"><b>{$value.questionDetails.total_views} </b> {$value.views_plural}</div>
											<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.questionDetails.date_asked)}</div>
											{if $value.questionDetails.is_open and $value.questionDetails.user_id == $CFG.user.user_id}

											{elseif $value.questionDetails.is_open and !$value.questionDetails.total_answer}
												<div class="clsFirstPerson"><a href="{$value.questionDetails.qLink}">{$LANG.be_the_first_one}</a></div>
											{elseif $value.questionDetails.is_open and $value.questionDetails.total_answer}
												<div class="clsShareAnswer"><a href="{$value.questionDetails.qLink}">{$LANG.common_share_your_answer}</a></div>
											{else}
												<div class="clsIndexResolved">{$LANG.common_resolved}</div>
											{/if}
										</div>
									</div>
									<div class="clsAnswerCount"><p><span>{$value.questionDetails.total_answer} </span>{$value.answer_plural}</p></div>
								</div>
							</div>
						{/foreach}
						{if $myobj->form_recent_questions.displayRecentQuestions.have_questions}
							<p class="clsMoreLink"><a id="selRecentMore" href="{$myobj->form_recent_questions.displayRecentQuestions.questions_url}">{$LANG.common_more}</a></p>
						{/if}
					{/if}
					{if !$myobj->form_recent_questions.displayRecentQuestions.have_questions}
						<div class="clsNoRecords">
							<p>{$LANG.common_no_questions}</p>
						</div>
					{/if}
				</div>
            </div>
        {if !isAjax()}
		</div>
		{/if}
	{/if}


	{if $myobj->isShowPageBlock('form_best_answer')}
		{if !isAjax()}
			<div id="selBestAnsweredQuestions" class="clsCommonIndexSection" {$myobj->form_best_answer.bestQStyle}>
		{/if}
		{if !$myobj->form_best_answer.bestQStyle}
			<div id="selWidgetBestAnsweredQuestions">
				<div class="clsSideBarContents" id="best_answered_questions" style="display:block;">
					{if $myobj->form_best_answer.displayBestAnswers.best_answered_questions}
						{foreach key=inc item=value from=$myobj->form_best_answer.displayBestAnswers.row}
							<div>
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
								 {if $CFG.admin.questions_module.voting}
									<div class="clsUserThumb clsUserThumbIndex">
								  {else}
									 <div class="clsUserThumb">
								  {/if}
										{if $CFG.admin.questions_module.voting}
                                     	<div class="clsVotingCount">
                                        	<div class="clsVotingCountInner"><a href="{$value.questionDetails.qLink}">
                                          		<span class="clsCont">{$value.questionDetails.votes}</span>
                                          		<span class="clsContText">{if $value.questionDetails.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</span>
                                        	</a></div>
                                      	</div>
                                    	{/if}
                                	</div>
									<div class="clsUserDetails">
										<p class="clsQuestionLink">{$value.questionDetails.question_link}</p>
										<div class="clsClearfix clsUserSubLinks">
											<div class="clsUserLinkBy clsNoLeftBgPadngMrgn clsNoBold">{$LANG.common_in}&nbsp;</div>
											<div class="clsUserCategory clsNoLeftBgPadngMrgn">{$value.questionDetails.showCategoryName}</div>
											<div class="clsUserLinkBy clsNoBold">{$LANG.common_question_asked_by}</div>
										  	<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
	                                        	{$myobj->displayProfileImage($value.questionDetails, 'tiny')}
	                                        {/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.questionDetails.asked_by_link}</div>
										</div>
										<div class="clsClearfix clsUserSubLinks">
											{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
											{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment) or (chkIsAudioAllowed('question') and $value.questionDetails.audio_id) or (chkIsVideoAllowed('question') and $value.questionDetails.video_id)
												or (chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id) or (chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id)}
												{assign var="clsNoLeftBgPadngMrgn" value=""}
												<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
													{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment)}
														<a id="{$value.questionDetails.img_id}" href="{$value.questionDetails.attachment_path}" onclick="return displayImageGallery('{$value.questionDetails.img_id}');">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>
														<img src="{$value.questionDetails.image_large_path}" alt="" style="display: none;" />
													{/if}
													{if chkIsVideoAllowed('question') and $value.questionDetails.video_id}
														<a id="{$value.questionDetails.video_on_click}" href="{$value.questionDetails.video_url}" onClick="{$myobj->getBrowser($value.questionDetails.video_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
													{/if}
													{if chkIsAudioAllowed('question') and $value.questionDetails.audio_id}
														<a id="{$value.questionDetails.audio_on_click}" href="{$value.questionDetails.audio_url}" onClick="{$myobj->getBrowser($value.questionDetails.audio_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
													{/if}
													{if chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_video.on_click}" href="{$value.questionDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
					                            	{if chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_audio.on_click}" href="{$value.questionDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
												</div>
											{/if}
											<div class="clsUserLinkViews {$clsNoLeftBgPadngMrgn}"><b>{$value.questionDetails.total_views} </b> {$value.views_plural}</div>
											<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.questionDetails.date_asked)}</div>
											{if $value.questionDetails.is_open and $value.questionDetails.user_id == $CFG.user.user_id}

											{elseif $value.questionDetails.is_open and !$value.questionDetails.total_answer}
												<div class="clsFirstPerson"><a href="{$value.questionDetails.qLink}">{$LANG.be_the_first_one}</a></div>
											{elseif $value.questionDetails.is_open and $value.questionDetails.total_answer}
												<div class="clsShareAnswer"><a href="{$value.questionDetails.qLink}">{$LANG.common_share_your_answer}</a></div>
											{else}
												<div class="clsIndexResolved">{$LANG.common_resolved}</div>
											{/if}
										</div>
									</div>
									<div class="clsAnswerCount">
										<p><span>{$value.questionDetails.total_answer} </span>{$value.answer_plural}</p>
									</div>
								</div>
							</div>
						{/foreach}
						{if $myobj->form_best_answer.displayBestAnswers.have_questions}
						 	<p class="clsMoreLink"><a href="{$myobj->form_best_answer.displayBestAnswers.questions_url}">{$LANG.common_more}</a></p>
						{/if}
					{/if}
					{if !$myobj->form_best_answer.displayBestAnswers.have_questions}
						<div class="clsNoRecords">
							<p>{$LANG.common_no_questions}</p>
					 	</div>
					{/if}
				</div>
			</div>
		{/if}
		{if !isAjax()}
			</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_recent_questions') || $myobj->isShowPageBlock('form_best_answer')}
		{if !isAjax()}
                          					</div>
        	    						</div>
              						</div>
            					</div>
          					</div>
        				</div>
      				</div>
    			</div>
    		<!--end of rounded corners-->
    		</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_popular_videos')}
    	<!-- start of style for popular section in index page -->
            <div class="clsPopularVideoAudio">
                <!--rounded corners-->
                <div class="lbpopular">
                  <div class="rbpopular">
                    <div class="bbpopular">
                      <div class="blcpopular">
                        <div class="brcpopular">
                          <div class="tbpopular">
                            <div class="tlcpopular">
                              <div class="trcpopular">
                                 <div class="clsIndexPopular">
                                    {$myobj->popularVideosOnly()}
                                </div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <!--end of rounded corners-->
            </div>
    	<!-- end of style for popular section in index page -->
    {/if}

	{if $myobj->isShowPageBlock('form_popular_questions') || $myobj->isShowPageBlock('form_recently_answered_questions')}
		{if !isAjax()}
        	<div class="clsCommonIndexRoundedCorner">
				<div class="clsQuestionsLink">
													<ul>
														{if $myobj->isShowPageBlock('form_popular_questions')}
															<li id="selPopularQuestionsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"><span id="selPopularQuestionsSPAN" class="clsRightActiveQuestionsLink"><a id="selPopularQuestionsA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentlyAnswered');showBlocks('selPopularQuestions'); toggleNavBar(); return false;">{$LANG.common_popular_question_title}</a></span></li>
														{/if}
														{if $myobj->isShowPageBlock('form_recently_answered_questions')  && !isAjax()}
															{if !$myobj->form_recently_answered_questions.recentAnsweredQStyle}
																<li id="selRecentlyAnsweredLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"><span id="selRecentlyAnsweredSPAN" class="clsRightActiveQuestionsLink"><a id="selRecentlyAnsweredA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selPopularQuestions');showBlocks('selRecentlyAnswered'); toggleNavBar(); return false;">{$LANG.common_recently_answered_question_title}</a></span></li>
															{else}
																<li id="selRecentlyAnsweredLI" class="clsLeftInActiveQuestionsLink"><span id="selRecentlyAnsweredSPAN" class="clsRightInActiveQuestionsLink"><a id="selRecentlyAnsweredA" class="clsMiddleInActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selPopularQuestions');showBlocks('selRecentlyAnswered'); updateContent('selRecentlyAnswered'); return false;">{$LANG.common_recently_answered_question_title}</a></span></li>
															{/if}
														{/if}
													</ul>
												</div>
          	<!--rounded corners-->
    			<div class="lbindex">
      				<div class="rbindex">
        				<div class="bbindex">
          					<div class="blcindex">
            					<div class="brcindex">
              						<div class="tbindex">
                						<div class="tlcindex">
                  							<div class="trcindex">
                  								<!-- tabs start -->

												<!-- tabs end -->
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_popular_questions')}
		{if !isAjax()}
			<div id="selPopularQuestions" class="clsCommonIndexSection" {$myobj->form_popular_questions.popularQStyle}>
		{/if}
		{if !$myobj->form_popular_questions.popularQStyle}
			<div id="selWidgetPopularQuestions">
				<div class="clsSideBarContents" id="popular_questions" style="display:block;">
					{if $myobj->form_popular_questions.displayPopularQuestions.popular_questions}
						{foreach key=inc item=value from=$myobj->form_popular_questions.displayPopularQuestions.row}
							<div>
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
									{if $CFG.admin.questions_module.voting}
										<div class="clsUserThumb clsUserThumbIndex">
								  	{else}
										<div class="clsUserThumb">
								   	{/if}
                                  	{if $CFG.admin.questions_module.voting}
                                     	<div class="clsVotingCount">
                                        	<div class="clsVotingCountInner"><a href="{$value.questionDetails.qLink}">
                                          		<span class="clsCont">{$value.questionDetails.votes}</span>
                                          		<span class="clsContText">{if $value.questionDetails.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</span>
                                        	</a></div>
                                      	</div>
                                	{/if}
                                	</div>
									<div class="clsUserDetails">
										<p class="clsQuestionLink">{$value.questionDetails.question_link}</p>
										<div class="clsClearfix clsUserSubLinks">
											<div class="clsUserLinkBy clsNoLeftBgPadngMrgn clsNoBold">{$LANG.common_in}&nbsp;</div>
											<div class="clsUserCategory clsNoLeftBgPadngMrgn">{$value.questionDetails.showCategoryName}</div>
											<div class="clsUserLinkBy clsNoBold">{$LANG.common_question_asked_by}</div>
										  	<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
	                                        	{$myobj->displayProfileImage($value.questionDetails, 'tiny')}
	                                        {/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.questionDetails.asked_by_link}</div>
										</div>
										<div class="clsClearfix clsUserSubLinks">
											{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
											{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment) or (chkIsAudioAllowed('question') and $value.questionDetails.audio_id) or (chkIsVideoAllowed('question') and $value.questionDetails.video_id)
												or (chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id) or (chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id)}
												{assign var="clsNoLeftBgPadngMrgn" value=""}
												<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
													{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment)}
														<a id="{$value.questionDetails.img_id}" href="{$value.questionDetails.attachment_path}" onclick="return displayImageGallery('{$value.questionDetails.img_id}');">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>
														<img src="{$value.questionDetails.image_large_path}" alt="" style="display: none;" />
													{/if}
													{if chkIsVideoAllowed('question') and $value.questionDetails.video_id}
														<a id="{$value.questionDetails.video_on_click}" href="{$value.questionDetails.video_url}" onClick="{$myobj->getBrowser($value.questionDetails.video_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
													{/if}
													{if chkIsAudioAllowed('question') and $value.questionDetails.audio_id}
														<a id="{$value.questionDetails.audio_on_click}" href="{$value.questionDetails.audio_url}" onClick="{$myobj->getBrowser($value.questionDetails.audio_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
													{/if}
													{if chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_video.on_click}" href="{$value.questionDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
					                            	{if chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_audio.on_click}" href="{$value.questionDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
												</div>
											{/if}
											<div class="clsUserLinkViews {$clsNoLeftBgPadngMrgn}"><b>{$value.questionDetails.total_views} </b> {$value.views_plural}</div>
											<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.questionDetails.date_asked)}</div>
											{if $value.questionDetails.is_open and $value.questionDetails.user_id == $CFG.user.user_id}

											{elseif $value.questionDetails.is_open and !$value.questionDetails.total_answer}
												<div class="clsFirstPerson"><a href="{$value.questionDetails.qLink}">{$LANG.be_the_first_one}</a></div>
											{elseif $value.questionDetails.is_open and $value.questionDetails.total_answer}
												<div class="clsShareAnswer"><a href="{$value.questionDetails.qLink}">{$LANG.common_share_your_answer}</a></div>
											{else}
												<div class="clsIndexResolved">{$LANG.common_resolved}</div>
											{/if}
										</div>
									</div>
									<div class="clsAnswerCount">
										<p><span>{$value.questionDetails.total_answer}</span> {$value.answer_plural}</p>
									</div>
								 </div>
							</div>
						{/foreach}
						{if $myobj->form_popular_questions.displayPopularQuestions.found}
							<p class="clsMoreLink"><a href="{$myobj->form_popular_questions.displayPopularQuestions.questions_url}">{$LANG.common_more}</a></p>
						{/if}
					{/if}
					{if !$myobj->form_popular_questions.displayPopularQuestions.found}
						<div class="clsNoRecords">
							<p>{$LANG.common_no_questions}</p>
						</div>
					{/if}
				</div>
			</div>
		{/if}
		{if !isAjax()}
			</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_recently_answered_questions')}
		{if !isAjax()}
			<div id="selRecentlyAnswered" class="clsCommonIndexSection" {$myobj->form_recently_answered_questions.recentAnsweredQStyle}>
		{/if}
		{if !$myobj->form_recently_answered_questions.recentAnsweredQStyle}
		  <div id="selWidgetRecentlyAnswered">
			<div class="clsSideBarContents" id="recently_answered" style="display: block;">
				{if $myobj->form_recently_answered_questions.displayRecentlyAnsweredQuestions.recently_answered}
					{foreach key=inc item=value from=$myobj->form_recently_answered_questions.displayRecentlyAnsweredQuestions.row}
						<div>
							<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
								{if $CFG.admin.questions_module.voting}
									<div class="clsUserThumb clsUserThumbIndex">
								  {else}
									 <div class="clsUserThumb">
								   {/if}
                                		{if $CFG.admin.questions_module.voting}
	                                     	<div class="clsVotingCount">
	                                        	<div class="clsVotingCountInner"><a href="{$value.questionDetails.qLink}">
		                                          	<span class="clsCont">{$value.questionDetails.votes}</span>
		                                          	<span class="clsContText">{if $value.questionDetails.votes eq '1'}{$LANG.vote}{else}{$LANG.helpful}{/if}</span>
		                                        </a></div>
	                                      	</div>
                                    	{/if}
                                	</div>
									<div class="clsUserDetails">
										<p class="clsQuestionLink">{$value.questionDetails.question_link}</p>
										<div class="clsClearfix clsUserSubLinks">
											<div class="clsUserLinkBy clsNoLeftBgPadngMrgn clsNoBold">{$LANG.common_in}&nbsp;</div>
											<div class="clsUserCategory clsNoLeftBgPadngMrgn">{$value.questionDetails.showCategoryName}</div>
											<div class="clsUserLinkBy clsNoBold">{$LANG.common_question_asked_by}</div>
										  	<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
	                                        	{$myobj->displayProfileImage($value.questionDetails, 'tiny')}
	                                        {/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.questionDetails.asked_by_link}</div>
										</div>
										<div class="clsClearfix clsUserSubLinks">
											{assign var="clsNoLeftBgPadngMrgn" value="clsNoLeftBgPadngMrgn"}
											{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment) or (chkIsAudioAllowed('question') and $value.questionDetails.audio_id) or (chkIsVideoAllowed('question') and $value.questionDetails.video_id)
												or (chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id) or (chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id)}
												{assign var="clsNoLeftBgPadngMrgn" value=""}
												<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
													{if ($CFG.admin.attachments_questions.allowed and $value.questionDetails.has_attachment)}
														<a id="{$value.questionDetails.img_id}" href="{$value.questionDetails.attachment_path}" onclick="return displayImageGallery('{$value.questionDetails.img_id}');">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>
														<img src="{$value.questionDetails.image_large_path}" alt="" style="display: none;" />
													{/if}
													{if chkIsVideoAllowed('question') and $value.questionDetails.video_id}
														<a id="{$value.questionDetails.video_on_click}" href="{$value.questionDetails.video_url}" onClick="{$myobj->getBrowser($value.questionDetails.video_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
													{/if}
													{if chkIsAudioAllowed('question') and $value.questionDetails.audio_id}
														<a id="{$value.questionDetails.audio_on_click}" href="{$value.questionDetails.audio_url}" onClick="{$myobj->getBrowser($value.questionDetails.audio_on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
													{/if}
													{if chkExternalVideoAllowed('question') and $value.questionDetails.external_video_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_video.on_click}" href="{$value.questionDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
					                            	{if chkExternalAudioAllowed('question') and $value.questionDetails.external_audio_id}
					                                	<a id="{$value.questionDetails.ext_ans_view_audio.on_click}" href="{$value.questionDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.questionDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
												</div>
											{/if}
											<div class="clsUserLinkViews {$clsNoLeftBgPadngMrgn}"><b>{$value.questionDetails.total_views} </b> {$value.views_plural}</div>
											<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.questionDetails.date_asked)}</div>
												{if $value.questionDetails.is_open and $value.questionDetails.user_id == $CFG.user.user_id}

												{elseif $value.questionDetails.is_open and !$value.questionDetails.total_answer}
													<div class="clsFirstPerson"><a href="{$value.questionDetails.qLink}">{$LANG.be_the_first_one}</a></div>
												{elseif $value.questionDetails.is_open and $value.questionDetails.total_answer}
													<div class="clsShareAnswer"><a href="{$value.questionDetails.qLink}">{$LANG.common_share_your_answer}</a></div>
												{else}
													<div class="clsIndexResolved">{$LANG.common_resolved}</div>
												{/if}
										</div>
									</div>
									<div class="clsAnswerCount">
										<p><span>{$value.questionDetails.total_answer}</span> {$value.answer_plural}</p>
									</div>
							</div>
						</div>
					{/foreach}
					{if $myobj->form_recently_answered_questions.displayRecentlyAnsweredQuestions.have_recently_answered}
						<p class="clsMoreLink"><a href="{$myobj->form_recently_answered_questions.displayRecentlyAnsweredQuestions.questions_url}">{$LANG.common_more}</a></p>
					{/if}
				{/if}
				{if !$myobj->form_recently_answered_questions.displayRecentlyAnsweredQuestions.have_recently_answered}
					<div class="clsNoRecords">
						<p>{$LANG.common_no_questions}</p>
					</div>
				{/if}
			</div>
		  </div>
		{/if}
		{if !isAjax()}
			</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_popular_questions') || $myobj->isShowPageBlock('form_recently_answered_questions')}
		{if !isAjax()}
                          					</div>
        	    						</div>
              						</div>
            					</div>
          					</div>
        				</div>
      				</div>
    			</div>
    		<!--end of rounded corners-->
    		</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_recent_forums') || $myobj->isShowPageBlock('form_recent_blogs') || $myobj->isShowPageBlock('form_featured_analyst')}
		{if !isAjax()}
        	<div class="clsCommonIndexRoundedCorner">
			<div class="clsQuestionsLink">
													<ul>
		{/if}
														{if $myobj->isShowPageBlock('form_recent_forums') && !isAjax()}
															<li id="selRecentForumsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"><span id="selRecentForumsSPAN" class="clsRightActiveQuestionsLink"><a id="selRecentForumsA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentBlogs','selFeaturedAnalysts');showBlocks('selRecentForums'); return false;">{$LANG.forums}</a></span></li>
														{/if}
														{if $myobj->isShowPageBlock('form_recent_blogs') && !isAjax()}
															{if !$myobj->form_recent_blogs.recentBStyle}
																<li id="selRecentBlogsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"><span id="selRecentBlogsSPAN" class="clsRightActiveQuestionsLink"><a id="selRecentBlogsA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentForums','selFeaturedAnalysts');showBlocks('selRecentBlogs'); toggleNavBar(); return false;">{$LANG.blogs}</a></span></li>
															{else}
																<li id="selRecentBlogsLI" class="clsLeftInActiveQuestionsLink"><span id="selRecentBlogsSPAN" class="clsRightInActiveQuestionsLink"><a id="selRecentBlogsA" class="clsMiddleInActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentForums','selFeaturedAnalysts');showBlocks('selRecentBlogs'); updateContent('selRecentBlogs'); return false;">{$LANG.blogs}</a></span></li>
															{/if}
														{/if}
														{if $myobj->isShowPageBlock('form_featured_analyst') && !isAjax()}
															{if !$myobj->form_featured_analyst.featuredBStyle}
																<li id="selFeaturedAnalystsLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"><span id="selFeaturedAnalystsSPAN" class="clsRightActiveQuestionsLink"><a id="selFeaturedAnalystsA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentForums','selRecentBlogs');showBlocks('selFeaturedAnalysts'); toggleNavBar(); return false;">{$LANG.common_analyst_title}</a></span></li>
															{else}
																<li id="selFeaturedAnalystsLI" class="clsLeftInActiveQuestionsLink"><span id="selFeaturedAnalystsSPAN" class="clsRightInActiveQuestionsLink"><a id="selFeaturedAnalystsA" class="clsMiddleInActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentForums','selRecentBlogs');showBlocks('selFeaturedAnalysts'); updateContent('selFeaturedAnalysts'); return false;">{$LANG.common_analyst_title}</a></span></li>
															{/if}
														{/if}
		{if !isAjax()}
													</ul>
												</div>
          	<!--rounded corners-->
    			<div class="lbindex">
      				<div class="rbindex">
        				<div class="bbindex">
          					<div class="blcindex">
            					<div class="brcindex">
              						<div class="tbindex">
                						<div class="tlcindex">
                  							<div class="trcindex">

												<!-- tabs start -->

		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_recent_forums')}
		{if !isAjax()}
			<div id="selRecentForums" class="clsCommonIndexSectionBlog" {$myobj->form_recent_forums.recentFStyle}>
		{/if}
			<div class="clsBlogHeadingContainer">
				<div class="clsClearfix">
					{if $myobj->getFormField('filter') == 'most_replied'}
						<h2 class="clsIndexBlogHead">{$LANG.common_most_replied_forum_title}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone"><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentForums', 'recent_forums'); return false;">{$LANG.common_recent}</a></span>
							<span>{$LANG.common_most_replied_forum_subtitle}</span>
						</div>
					{else}
						<h2 class="clsIndexBlogHead">{$LANG.common_recent_forum_title}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone">{$LANG.common_recent}</span>
							<span><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentForums', 'most_replied'); return false;">{$LANG.common_most_replied_forum_subtitle}</a></span>
						</div>
					{/if}
				</div>
			</div>
			<div id="selWidgetRecentForums">
				<div class="clsSideBarContents" id="recent_forums" style="display:block;">
					{if $myobj->form_recent_forums.displayRecentForums.recent_forums}
						{foreach key=inc item=value from=$myobj->form_recent_forums.displayRecentForums.row}
							<div>
						  		<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
									<div class="clsUserDetails">
										<p class="clsQuestionLink">{$value.forumDetails.forum_link}</p>
										<div class="clsClearfix clsUserSubLinks">
											<div class="clsUserLinkBy clsNoLeftBgPadngMrgn clsNoBold">{$LANG.common_forum_started_by}</div>
											<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
												{$myobj->displayProfileImage($value.forumDetails, 'tiny')}
											{/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.forumDetails.topic_user_name_link}</div>
											<div class="clsUserLinkViews">{$value.forumDetails.total_views} {$value.view_plural}</div>
											<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.forumDetails.date_added)}</div>
										</div>
									</div>
									<div class="clsAnswerCount"><p><span>{$value.forumDetails.total_response} </span>{$value.resp_plural}</p></div>
						  		</div>
							</div>
						{/foreach}
						{if $myobj->form_recent_forums.displayRecentForums.have_forums}
							{if $myobj->form_recent_forums.displayRecentForums.isUser}
								<p class="clsMoreLink"><a href="{$myobj->form_recent_forums.displayRecentForums.forumsearch_url}">{$LANG.common_more}</a></p>
							{else}
								<p class="clsMoreLink"><a href="{$myobj->form_recent_forums.displayRecentForums.forumsearch_url}">{$LANG.common_more}</a></p>
							{/if}
						{/if}
					{/if}
					{if !$myobj->form_recent_forums.displayRecentForums.have_forums}
						<div class="clsNoRecords">
							<p>{$LANG.common_no_forums}</p>
						</div>
					{/if}
				</div>
		  	</div>
		{if !isAjax()}
			</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_recent_blogs')}
		{if !isAjax()}
			<div id="selRecentBlogs" class="clsCommonIndexSectionBlog" {$myobj->form_recent_blogs.recentBStyle}>
		{/if}
		{if !$myobj->form_recent_blogs.recentBStyle}
			<div class="clsBlogHeadingContainer">
				<div class="clsClearfix">
					{if $myobj->getFormField('filter') == 'most_commented'}
						<h2 class="clsIndexBlogHead">{$LANG.common_most_commented_blog_title}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone"><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentBlogs', 'recent_blogs'); return false;">{$LANG.common_recent}</a></span>
							<span>{$LANG.common_most_commented_blog_subtitle}</span>
						</div>
					{else}
						<h2 class="clsIndexBlogHead">{$LANG.common_recent_blog_title}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone">{$LANG.common_recent}</span>
							<span><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selRecentBlogs', 'most_commented'); return false;">{$LANG.common_most_commented_blog_subtitle}</a></span>
						</div>
					{/if}
				</div>
			</div>
			<div id="selWidgetRecentBlogs">
				<div class="clsSideBarContents" id ="recent_blogs" style="display:block;">
					{if $myobj->form_recent_blogs.displayRecentBlogs.recent_blogs}
						{foreach key=inc item=value from=$myobj->form_recent_blogs.displayRecentBlogs.row}
							<div>
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
									<div class="clsUserDetails">
								  		<p class="clsQuestionLink">{$value.blogDetails.blog_link}</p>

								  		<div class="clsClearfix clsUserSubLinks">
											{if $myobj->showVideoAudio}
												<div class="clsUserUploaded clsNoLeftBgPadngMrgn">
													{if chkVideoModuleAllowed('blog') and $value.blogDetails.video_id}
														<a id="{$value.blogDetails.ans_view_video.on_click}" href="{$value.blogDetails.ans_view_video.url}" onClick="{$myobj->getBrowser($value.blogDetails.ans_view_video.on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo.gif" /></a>
													{/if}
													{if chkAudioModuleAllowed('blog') and $value.blogDetails.audio_id}
														<a id="{$value.blogDetails.ans_view_audio.on_click}" href="{$value.blogDetails.ans_view_audio.url}" onClick="{$myobj->getBrowser($value.blogDetails.ans_view_audio.on_click)}">
														<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio.gif" /></a>
													{/if}
													{if chkExternalVideoModuleAllowed('blog') and $value.blogDetails.external_video_id}
					                                	<a id="{$value.blogDetails.ext_ans_view_video.on_click}" href="{$value.blogDetails.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($value.blogDetails.ext_ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
					                            	{if chkExternalAudioModuleAllowed('blog') and $value.blogDetails.external_audio_id}
					                                	<a id="{$value.blogDetails.ext_ans_view_audio.on_click}" href="{$value.blogDetails.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($value.blogDetails.ext_ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio.gif" alt="{$LANG.external_video_available}" title="{$LANG.external_video_available}" /></a>
					                            	{/if}
												</div>
											{/if}
											<div class="clsUserLinkBy {$value.blogDetails.separator_class} clsNoBold">{$LANG.common_in}&nbsp;</div>
											<div class="clsUserCategoryBlog clsNoLeftBgPadngMrgn">
				                            	{$value.blogDetails.blogcategoryname}
				                            </div>
											<div class="clsUserLinkBy">{$LANG.common_forum_started_by}</div>
											<div class="clsUserLinkImage">
											{if isUserImageAllowed()}
												{$myobj->displayProfileImage($value.blogDetails, 'tiny')}
											{/if}
											</div>
											<div class="clsUserLinkName clsNoLeftBgPadngMrgn">{$value.blogDetails.blog_user_name}</div>
											<div class="clsUserLinkViews">{$value.blogDetails.total_views} {$value.view_plural}</div>
											<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.blogDetails.date_added)}</div>
										</div>
									</div>
									<div class="clsAnswerCount"><p><span>{$value.blogDetails.total_comments} </span>{$value.comment_plural}</p></div>
							  	</div>
							</div>
						{/foreach}
						{if $myobj->form_recent_blogs.displayRecentBlogs.have_blogs}
							{if $myobj->form_recent_blogs.displayRecentBlogs.is_user}
								  <p class="clsMoreLink"><a href="{$myobj->form_recent_blogs.displayRecentBlogs.blogs_url}">{$LANG.common_more}</a></p>
							{else}
								 <p class="clsMoreLink"><a href="{$myobj->form_recent_blogs.displayRecentBlogs.blogs_url}">{$LANG.common_more}</a></p>
							{/if}
						{/if}
					{/if}
					{if !$myobj->form_recent_blogs.displayRecentBlogs.have_blogs}
						<div class="clsNoRecords">
							<p>{$LANG.common_no_blogs}</p>
						</div>
					{/if}
				</div>
			</div>
		{/if}
		{if !isAjax()}
			</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_featured_analyst')}
		{if !isAjax()}
			<div id="selFeaturedAnalysts" class="clsCommonIndexSectionBlog" {$myobj->form_featured_analyst.featuredBStyle}>
		{/if}
		{if !$myobj->form_featured_analyst.featuredBStyle}
			<div class="clsBlogHeadingContainer">
				<div class="clsClearfix">
					{if $myobj->getFormField('filter') == 'all_time'}
						<h2 class="clsIndexBlogHead">{$LANG.common_top_analyst_title} - {$LANG.analysts_all_time}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone"><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selFeaturedAnalysts', 'featured'); return false;">{$LANG.common_featured_analyst_title}</a></span>
							<span>{$LANG.common_top_analyst_title} - {$LANG.analysts_all_time}</span>
							<span><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selFeaturedAnalysts', 'this_week'); return false;">{$LANG.common_top_analyst_title} - {$LANG.analysts_this_week}</a></span>
						</div>
					{elseif $myobj->getFormField('filter') == 'this_week'}
						<h2 class="clsIndexBlogHead">{$LANG.common_top_analyst_title} - {$LANG.analysts_this_week}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone"><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selFeaturedAnalysts', 'featured'); return false;">{$LANG.common_featured_analyst_title}</a></span>
							<span><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selFeaturedAnalysts', 'all_time'); return false;">{$LANG.common_top_analyst_title} - {$LANG.analysts_all_time}</a></span>
							<span>{$LANG.common_top_analyst_title} - {$LANG.analysts_this_week}</span>
						</div>
					{else}
						<h2 class="clsIndexBlogHead">{$LANG.common_featured_analyst_title}</h2>
						<div class="clsRightOptionTab">
							<span class="clsBackgroundNone">{$LANG.common_featured_analyst_title}</span>
							<span><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selFeaturedAnalysts', 'all_time'); return false;">{$LANG.common_top_analyst_title} - {$LANG.analysts_all_time}</a></span>
							<span><a href="{$myobj->getCurrentUrl()}" onclick="updateContent('selFeaturedAnalysts', 'this_week'); return false;">{$LANG.common_top_analyst_title} - {$LANG.analysts_this_week}</a></span>
						</div>
					{/if}
				</div>
			</div>
			{if $myobj->isShowPageBlock('form_top_analyst')}
				<div id="selWidgetTopAnalyst" class="clsTopAnalyst">
					<div class="clsSideBarContents" id="top_analysts" style="display:block;">
						{if $myobj->form_top_analyst.displayTopAnalyst.top_analysts}
							{foreach key=inc item=value from=$myobj->form_top_analyst.displayTopAnalyst.row}
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails ">
									{if isUserImageAllowed()}
										<div class="clsFeaturedUserThumb"><p>{$myobj->displayProfileImage($value.userDetails, 'small', false)}</p></div>
									{/if}
									 <div class="clsFeaturedUserDetails">
										<h3 class="clsTitleLink"><a href="{$value.myanswers_url}">{$value.userDetails.display_name}</a></h3>
										<p class="clsOtherInfo">{$LANG.common_question_asked} <a href="{$value.questions_ques_url}">{$value.userLog.total_ques}</a></p>
										<p class="clsOtherInfo">{$LANG.common_resolved_questions} <a href="{$value.questions_resolve_url}">{$value.getResolvedQuestions}</a></p>
										<p class="clsOtherInfo clsBackgroundNone">{$LANG.total_answers} <a href="{$value.questions_ans_url}">{$value.userLog.total_ans}</a></p>
									 </div>
									 <div class="clsFeatured3rdDiv">
										 <div class="clsFeaturedRating">
										 	<span class="clsFeaturedRatingValue">{$value.userLevelNumber}</span>
											 <p><span>{$value.userLog.total_points}</span>{$LANG.common_points}</p>
										 </div>
									 </div>
								</div>
							{/foreach}
							{if $myobj->form_top_analyst.displayTopAnalyst.have_analysts}
								<p class="clsMoreLink"><a href="{$myobj->form_top_analyst.displayTopAnalyst.topanalysts_url}">{$LANG.common_more}</a></p>
							{/if}
						{/if}
						{if !$myobj->form_top_analyst.displayTopAnalyst.have_analysts}
							<div class="clsNoRecords">
								<p>{$LANG.common_no_analysts}</p>
							</div>
						{/if}
					</div>
				</div>
			{elseif $myobj->isShowPageBlock('form_week_experts')}
				<div id="selWidgetTopAnalyst" class="clsTopAnalyst">
					<div class="clsSideBarContents" id="week_experts" style="display:block;">
						{if $myobj->form_week_experts.createAndShowWeekExperts.top_analysts}
							{foreach key=inc item=value from=$myobj->form_week_experts.createAndShowWeekExperts.row}
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails ">
									{if isUserImageAllowed()}
										<div class="clsFeaturedUserThumb"><p>{$myobj->displayProfileImage($value.userDetails, 'small', false)}</p></div>
									{/if}
									 <div class="clsFeaturedUserDetails">
										<h3 class="clsTitleLink"><a href="{$value.myanswers_url}">{$value.userDetails.display_name}</a></h3>
										<p class="clsOtherInfo">{$LANG.common_question_asked} <a href="{$value.questions_ques_url}">{$value.userLog.total_ques}</a></p>
										<p class="clsOtherInfo">{$LANG.common_resolved_questions} <a href="{$value.questions_resolve_url}">{$value.getResolvedQuestions}</a></p>
										<p class="clsOtherInfo clsBackgroundNone">{$LANG.total_answers} <a href="{$value.questions_ans_url}">{$value.userLog.total_ans}</a></p>
									 </div>
									 <div class="clsFeatured3rdDiv">
										 <div class="clsFeaturedRating">
										 	<span class="clsFeaturedRatingValue">{$value.userLevelNumber}</span>
											 <p><span>{$value.userLog.total_points}</span>{$LANG.common_points}</p>
										 </div>
									 </div>
								</div>
							{/foreach}
							{if $myobj->form_week_experts.createAndShowWeekExperts.have_analysts}
								<p class="clsMoreLink"><a href="{$myobj->form_week_experts.createAndShowWeekExperts.topanalysts_url}">{$LANG.common_more}</a></p>
							{/if}
						{/if}
						{if !$myobj->form_week_experts.createAndShowWeekExperts.have_analysts}
							<div class="clsNoRecords">
								<p>{$LANG.common_no_analysts}</p>
							</div>
						{/if}
					</div>
				</div>
			{else}
				<div id="selWidgetFeaturedAnalyst" class="clsFeaturedAnalyst">
					<div class="clsSideBarContents" id="featured_analysts" style="display:block;">
						{if $myobj->form_featured_analyst.displayFeaturedAnalyst.featured_analysts}
							{foreach key=inc item=value from=$myobj->form_featured_analyst.displayFeaturedAnalyst.row}
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails ">
									{if isUserImageAllowed()}
										<div class="clsFeaturedUserThumb"><p>{$myobj->displayProfileImage($value.userDetails, 'small', false)}</p></div>
									{/if}
									 <div class="clsFeaturedUserDetails">
										<h3 class="clsTitleLink"><a href="{$value.myanswers_url}">{$value.userDetails.display_name}</a></h3>
										<p class="clsOtherInfo">{$LANG.common_question_asked} <a href="{$value.questions_ques_url}">{$value.userLog.total_ques}</a></p>
										<p class="clsOtherInfo">{$LANG.common_resolved_questions} <a href="{$value.questions_resolve_url}">{$value.getResolvedQuestions}</a></p>
										<p class="clsOtherInfo clsBackgroundNone">{$LANG.total_answers} <a href="{$value.questions_ans_url}">{$value.userLog.total_ans}</a></p>
									 </div>
									 <div class="clsFeatured3rdDiv">
										 <div class="clsFeaturedRating">
										 	<span class="clsFeaturedRatingValue">{$value.userLevelNumber}</span>
											 <p><span>{$value.userLog.total_points}</span>{$LANG.common_points}</p>
										 </div>
									 </div>
								</div>
							{/foreach}
						{/if}
						{if !$myobj->form_featured_analyst.displayFeaturedAnalyst.have_users}
							<div class="clsNoRecords">
								<p>{$LANG.common_no_analysts}</p>
							</div>
						{/if}
					</div>
				</div>
			{/if}
		{/if}
		{if !isAjax()}
			</div>
		{/if}
	{/if}

	{if $myobj->isShowPageBlock('form_recent_forums') || $myobj->isShowPageBlock('form_recent_blogs') || $myobj->isShowPageBlock('form_featured_analyst')}
		{if !isAjax()}
          									</div>
        	    						</div>
              						</div>
            					</div>
          					</div>
        				</div>
      				</div>
    			</div>
    		<!--end of rounded corners-->
    		</div>
		{/if}
	{/if}
<!-- >>>>>>>>>>>>>>>>>>>>>>>>> debate module start from here >>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> -->
     {if  $myobj->isShowPageBlock('form_recent_debates') || $myobj->isShowPageBlock('form_popular_debates') || $myobj->isShowPageBlock('form_video_debates') || $myobj->isShowPageBlock('form_audio_debates')}
		{if !isAjax()}
		   <div class="clsCommonIndexRoundedCorner">
           <div class="clsQuestionsLink">
									<ul>
								{/if}
										{if $myobj->isShowPageBlock('form_recent_debates')}
											<li id="selRecentDebatesLI" class="clsFirstQuestionLink clsLeftActiveQuestionsLink"><span id="selRecentDebatesSPAN" class="clsRightActiveQuestionsLink"><a id="selRecentDebatesA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selPopularDebates','selVideoDebates','selAudioDebates');showBlocks('selRecentDebates'); toggleNavBar(); return false;">{$LANG.common_recent_debates_title}</a></span></li>
										{/if}
										{if  $myobj->isShowPageBlock('form_popular_debates') && !isAjax()}
											{if !$myobj->form_popular_debates.popularDStyle}
												<li id="selPopularDebatesLI" class="clsLeftActiveQuestionsLink"><span id="selPopularDebatesSPAN" class="clsRightActiveQuestionsLink"><a id="selPopularDebatesA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentDebates','selVideoDebates','selAudioDebates');showBlocks('selPopularDebates'); toggleNavBar(); return false;">{$LANG.common_popular_debate_title}</a></span></li>
											{else}
												<li id="selPopularDebatesLI" class="clsLeftInActiveQuestionsLink"><span id="selPopularDebatesSPAN" class="clsRightInActiveQuestionsLink"><a id="selPopularDebatesA" class="clsMiddleInActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentDebates','selVideoDebates','selAudioDebates');showBlocks('selPopularDebates'); updateContent('selPopularDebates'); return false;">{$LANG.common_popular_debate_title}</a></span></li>
											{/if}
										{/if}
										{if  $myobj->isShowPageBlock('form_video_debates')  && !isAjax()}
											{if !$myobj->form_video_debates.videoDStyle}
												<li id="selVideoDebatesLI" class="clsLeftActiveQuestionsLink"><span id="selVideoDebatesSPAN" class="clsRightActiveQuestionsLink"><a id="selVideoDebatesA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentDebates','selPopularDebates','selAudioDebates');showBlocks('selVideoDebates'); toggleNavBar(); return false;">{$LANG.common_video_debates_title}</a></span></li>
											{else}
												<li id="selVideoDebatesLI" class="clsLeftInActiveQuestionsLink"><span id="selVideoDebatesSPAN" class="clsRightInActiveQuestionsLink"><a id="selVideoDebatesA" class="clsMiddleInActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentDebates','selPopularDebates','selAudioDebates');showBlocks('selVideoDebates'); updateContent('selVideoDebates'); return false;">{$LANG.common_video_debates_title}</a></span></li>
											{/if}
										{/if}
										{if  $myobj->isShowPageBlock('form_audio_debates')  && !isAjax()}
											{if  !$myobj->form_audio_debates.audioDStyle}
												<li id="selAudioDebatesLI" class="clsLeftActiveQuestionsLink"><span id="selAudioDebatesSPAN" class="clsRightActiveQuestionsLink"><a id="selAudioDebatesA" class="clsMiddleActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentDebates','selPopularDebates','selVideoDebates');showBlocks('selAudioDebates'); toggleNavBar(); return false;">{$LANG.common_audio_debates_title}</a></span></li>
											{else}
												<li id="selAudioDebatesLI" class="clsLeftInActiveQuestionsLink"><span id="selAudioDebatesSPAN" class="clsRightInActiveQuestionsLink"><a id="selAudioDebatesA" class="clsMiddleInActiveQuestionsLink" href="{$myobj->getCurrentUrl()}" onclick="hideBlocks('selRecentDebates','selPopularDebates','selVideoDebates');showBlocks('selAudioDebates'); updateContent('selAudioDebates'); return false;">{$LANG.common_audio_debates_title}</a></span></li>
											{/if}
										{/if}
								{if !isAjax()}
									</ul>

								</div>
			<div class="lbindex">
      				<div class="rbindex">
        				<div class="bbindex">
          					<div class="blcindex">
            					<div class="brcindex">
              						<div class="tbindex">
                						<div class="tlcindex">
                  							<div class="trcindex">
                                            <div class="clsIndexDebatePopUp">


		{/if}
	{/if}
	{if  $myobj->isShowPageBlock('form_recent_debates')}
		<div id="selRecentDebates" class="clsCommonIndexSectionDebate" {$myobj->form_recent_debates.recentDStyle}>
			<div class="clsSideBarContents" id="recent_debate" style="display: block;">
					{if $myobj->form_recent_debates.displayRecentDebates.recent_debates}
						{foreach key=inc item=value from=$myobj->form_recent_debates.displayRecentDebates.row}
							<div class="clsIndexPieChart">
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
									<div class="shadow clsPieChart">
									  	<div id="example">
									      	<div class="pie {$value.debateDetails.size}"></div>
									      	<div class="clsSmallPercentage">
												<div class="clsForPercentage">{$value.debateDetails.debateRatio_for}</div>
											 	<div class="clsAgainstPercentage">{$value.debateDetails.debateRatio_againsts}</div>
                                        	</div>
									  	</div>
									</div>

									<div class="clsUserDetails clsUserSubLinks">
									  <p class="clsQuestionLink"><a href="{$value.debateDetails.debate_link}">{$value.debateDetails.subject}</a></p>
									  <div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_debate_created_by}</div>
                                      <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                        {if  isUserImageAllowed()}
										 {$myobj->displayProfileImage($value.debateDetails, 'tiny')}
										{/if}
                                       </div>
                                      <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                       <a href="{$value.debateDetails.asked_by_link}">{$value.debateDetails.asked_by}</a>
                                     </div>
                                     <div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.debateDetails.date_asked)}</div>
                                    </div>

                                    <div class="clsAnswerCount">
                                    <p><span>{$value.debateDetails.total_response}</span> {$value.answer_plural}</p>
                                   </div>
								 </div>
								</div>
						{/foreach}
						{if $myobj->form_recent_debates.displayRecentDebates.have_debates}
							<p class="clsMoreLink"><a href="{$myobj->form_recent_debates.displayRecentDebates.MyDebates_url}">{$LANG.common_more}</a></p>
						{/if}
					{/if}
					{if !$myobj->form_recent_debates.displayRecentDebates.have_debates}
						<div class="clsNoRecords">
							<p>{$LANG.no_debates_added}</p>
						</div>
					{/if}
				</div>
			</div>
	  {/if}
	{if  $myobj->isShowPageBlock('form_popular_debates')}
		{if !isAjax()}
			<div id="selPopularDebates" class="clsCommonIndexSectionDebate"  {$myobj->form_popular_debates.popularDStyle}>
		 {/if}

					<div class="clsSideBarContents" id = "popular_debates" style="display:block;">
						{if $myobj->form_popular_debates.displayPopularDebates.popular_debates}
							{foreach key=inc item=value from=$myobj->form_popular_debates.displayPopularDebates.row}
							<div class="clsIndexPieChart">
								<div class="{$value.clsOddOrEvenQuestion} clsUserThumbDetails">
									<div class="shadow clsPieChart">
									  	<div id="example">
									      	<div class="pie {$value.debateDetails.size}"></div>
									      	<div class="clsSmallPercentage">
												<div class="clsForPercentage">{$value.debateDetails.debateRatio_for}</div>
											 	<div class="clsAgainstPercentage">{$value.debateDetails.debateRatio_againsts}</div>
                                        	</div>
									  	</div>
									</div>

									<div class="clsUserDetails clsUserSubLinks">
									  <p class="clsQuestionLink"><a href="{$value.debateDetails.debate_link}">{$value.debateDetails.subject}</a></p>
									  <div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_debate_created_by}</div>
                                      <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                      {if  isUserImageAllowed()}
                                        {$myobj->displayProfileImage($value.debateDetails, 'tiny')}
                                      {/if}
                                      </div>
                                      <div class="clsUserLinkName clsNoLeftBgPadngMrgn">
                                       <a href="{$value.debateDetails.asked_by_link}">{$value.debateDetails.asked_by}</a>
                                     </div>
                                      <div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($value.debateDetails.date_asked)}</div>
									</div>

                                    <div class="clsAnswerCount">
                                    <p><span>{$value.debateDetails.total_response}</span> {$value.answer_plural}</p>
                                   </div>
								 </div>
								</div>
							{/foreach}
							{if $myobj->form_popular_debates.displayPopularDebates.have_debates}
								<p class="clsMoreLink"><a href="{$myobj->form_popular_debates.displayPopularDebates.PopularDebates_url}">{$LANG.common_more}</a></p>
							{/if}
						{/if}
						{if !$myobj->form_popular_debates.displayPopularDebates.have_debates}
							<div class="clsNoRecords">
								<p>{$LANG.no_debates_added}</p>
							</div>
						{/if}
					</div>
				</div>

		{if !isAjax()}
		 	</div>
		 {/if}
	{/if}
     {if  $myobj->isShowPageBlock('form_recent_debates') || $myobj->isShowPageBlock('form_popular_debates')}

		{if !isAjax()}              </div>
								  </div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>
		{/if}
	{/if}

     <!-- <<<<<<<<<<<<<<<<<<<<<<<<< debate module end here <<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<<< -->
{if !isAjax()}
</div>
{/if}
{if $CFG.admin.module.facebook}
	{literal}
	<script src="http://static.ak.connect.facebook.com/js/api_lib/v0.4/FeatureLoader.js.php" type="text/javascript"></script>
		<script language="javascript">
			FB_RequireFeatures(["XFBML"], function()
				{
				  FB.Facebook.init("{/literal}{$CFG.facebook.api_key}{literal}", "{/literal}{$CFG.site.url}{literal}facebook/xd_receiver.htm");
							  //8e1eac6825a150fe4831b9b55163e0ab
				});

		</script>
	{/literal}
{/if}