{if !isAjax()}
<div id="selListAll">
	{assign var='classspan' value='yes'}
	{assign var='bdrclass' value=''}
	<!--<h2>{$myobj->title}</h2>-->
	{include file='../general/information.tpl'}
	{if $myobj->isShowPageBlock('form_question') OR $myobj->isShowPageBlock('form_answers') OR $myobj->isShowPageBlock('form_add')}
		<div id="selDelMsgConfirm" class="selMsgConfirm" style="display:none;position:absolute;">
			<form name="formDelConfirm" id="formDelConfirm" method="post" action="{$myobj->getCurrentUrl(true)}">
		  		<p id="confirmDelMessage"></p>
		  		<table summary="{$LANG.container_to_get_confirmation}">
					<tr><td>
			  			<input type="button" class="clsPopSubmitButton" name="confirm_del_action" id="confirm_del_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" onClick="hideAllBlocks(); doRemoveAction();"/>
						&nbsp;
						<input type="button" class="clsPopCancelButton" name="del_cancel" id="del_cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
			  		</td></tr>
		  		</table>
		  		{$myobj->populateHidden($myobj->confirm.hidden_arr1)}
			</form>
	  	</div>
	  	<div id="selDelAttachconfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
			<p id="msgAttachConfirmText"></p>
			<form name="msgAttachConfirmform" id="msgAttachConfirmform" method="post" action="{$myobj->confirm.form_action}">
				<table summary="{$LANG.confirm_tbl_summary}">
					<tr><td>
						<input type="button" class="clsPopSubmitButton" name="confirm" id="confirm" onclick="deleteAnswerAttachments('{$myobj->confirm.onclick_url}', '&amp;ajax_page=true&amp;deletemoreattachments=1');chkLimit(); return hideAllBlocks();" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" /> &nbsp;
						<input type="button" class="clsPopCancelButton" name="no" id="no" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
					</td></tr>
				</table>
				<input type="hidden" name="attach_id" id="attach_id" />
				<input type="hidden" name="attach_content_id" id="attach_content_id" />
				<input type="hidden" name="attach_name" id="attach_name" />
				<input type="hidden" name="act" id="act" />
				{$myobj->populateHidden($myobj->confirm.hidden_arr2)}
			</form>
	  	</div>
	{/if}

	{if $myobj->isShowPageBlock('form_question') OR $myobj->isShowPageBlock('form_answers')}
  		<!-- Confirmation Div -->
		<div id="selMsgConfirm" class="selMsgConfirm" style="display:none;position:absolute;">
			<form name="formConfirm" id="formConfirm" method="post" action="{$myobj->getCurrentUrl(true)}">
		  		<p id="confirmMessage"></p>
		  		<table summary="{$LANG.container_to_get_confirmation}">
					<tr><td>
						<input type="submit" class="clsPopSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" />
						&nbsp;
						<input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
			  		</td></tr>
		  		</table>
		  		{$myobj->populateHidden($myobj->confirm.hidden_arr1)}
			</form>
		</div>
  		<!-- Confirmation Div -->
	  	<div id="selMsgAbuseConfirm" class="selMsgAbuseConfirm" style="display:none;position:absolute;">
			<form name="formAbuseConfirm" id="formAbuseConfirm" method="post" action="{$myobj->getCurrentUrl(true)}">
				<p id="confirmAbuseMessage"></p>
			  	<table summary="{$LANG.container_to_get_confirmation}">
					<tr><td>
						<p>{$LANG.common_reason}</p>
						<p><textarea name="reason" id="reason" cols="23" rows="5" tabindex="{smartyTabIndex}">{$myobj->getFormField('reason')}</textarea></p>
						<span id="validReason" class="LV_validation_message LV_invalid"></span>
					</td></tr>
					<tr><td>
						<input type="submit" class="clsPopSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" onClick="return chkIsAbuseReasonExists();" />
						&nbsp;
						<input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="removeReasonErrors(); return hideAllBlocks();" />
				  	</td></tr>
			  	</table>
			  	{$myobj->populateHidden($myobj->confirm.hidden_arr)}
			</form>
	  	</div>
        {if $myobj->form_question.displayQuestionDetails_arr.questionBadgeUrl}
            <div id="selQuestionBadgeEmbed" class="clsAnswerMsgConfirm" style="display:none;position:absolute;">

            	<form name="formQuestionBadge" id="formQuestionBadge" method="post" action="{$myobj->getCurrentUrl(true)}">
		            <p class="">{$myobj->form_question.displayQuestionDetails_arr.answers_badge_embed_hint}</p>
		            <p><input type="text" class="clsBadgeTextBox" value='{$myobj->form_question.displayQuestionDetails_arr.questionBadgeUrl}' READONLY onclick="this.select()" /></p>
			  		<table summary="{$LANG.container_to_get_confirmation}">
						<tr><td>
							<input type="button" class="clsPopSubmitButton" name="badge_ok" id="badge_ok" value="{$LANG.header_ok_button}" tabindex="{smartyTabIndex}" onClick="return hideAllBlocks();" />
				  		</td></tr>
			  		</table>
			  	</form>

            </div>
        {/if}
	{/if}

	{if $myobj->isShowPageBlock('form_question')}
	{if chkIsPaymentAllowed('payment_answers')}
		{$myobj->overRideConfigs(false)}
	{/if}
    	<div id="selQuickLinks">
		<div class="clsClearfix clsQusetionViewHeading">
			<h2 class="clsHeading">{$myobj->title}</h2>
        	<div class="clsAnswersPreviousNext">
            	<div class="clsShowAnotherQuestion">
					<p class="{$myobj->previous_arr.class} clsQusPre">{$myobj->previous_arr.url}</p>
					<p class="{$myobj->next_arr.class} clsQusNxt">{$myobj->next_arr.url}</p>
				</div>
        	</div>
		</div>
        	<div class="">
	          <div class="clsCommonBlogRoundedCorner"><!--rounded corners-->
	            <div class="lbopenquestion">
	              <div class="rbopenquestion">
	                <div class="bbopenquestion">
	                  <div class="blcopenquestion">
	                    <div class="brcopenquestion">
	                      <div class="tbopenquestion">
	                        <div class="tlcopenquestion">
	                          <div class="trcopenquestion">
            					<div class="clsDataContainer clsClearfix">
                        				<div class="clsUserThumbDetails">
                            				<div class="clsUserThumb">
				                                {if $CFG.admin.questions_module.voting}
													<div id="ques{$myobj->question_details.ques_id}">
														{if isMember() && $CFG.user.user_id neq $myobj->question_details.user_id}
															{assign var="chkIfUserVoted" value=$myobj->chkIfUserVoted('question', $myobj->question_details.ques_id, $CFG.user.user_id)}
															{if $chkIfUserVoted eq '0'}
																<div class="clsVotingCount">
					                                            	<div class="clsVotingCountInner">
					                                        			<p class="clsCont" id="vote{$myobj->question_details.ques_id}">{$myobj->question_details.votes}</p>
					                                                    <p class="clsContText" id="langvote{$myobj->question_details.ques_id}">{if $myobj->question_details.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
					                                                </div>
					                                            </div>
					                                            <p class="clsThumpsUp">
																	<span class="clsNoBorder">
																		<a id="ancup{$myobj->question_details.ques_id}" href="javascript:void(0);" onclick="updateVote('{$myobj->getCurrentUrl(true)}', 'vote_type=question&value=1&usrid={$CFG.user.user_id}&id={$myobj->question_details.ques_id}&vote_id=vote{$myobj->question_details.ques_id}&ajax_page=true', 'ques{$myobj->question_details.ques_id}');ajaxUpdateVotingDiv('{$myobj->getCurrentUrl(true)}', 'id={$myobj->question_details.ques_id}&vote_id=vote{$myobj->question_details.ques_id}&ajax_page=true&update=true&vote_for=question', 'vote{$myobj->question_details.ques_id}', 'imgup{$myobj->question_details.ques_id}', 'ancup{$myobj->question_details.ques_id}','ancdown{$myobj->question_details.ques_id}','1');">
																			<img id="imgup{$myobj->question_details.ques_id}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/>
																		</a>
																	</span>
																	<span class="clsNoBorder">
																		<a id="ancdown{$myobj->question_details.ques_id}" href="javascript:void(0);" onclick="updateVote('{$myobj->getCurrentUrl(true)}', 'vote_type=question&value=-1&usrid={$CFG.user.user_id}&id={$myobj->question_details.ques_id}&vote_id=vote{$myobj->question_details.ques_id}&ajax_page=true', 'ques{$myobj->question_details.ques_id}');ajaxUpdateVotingDiv('{$myobj->getCurrentUrl(true)}', 'id={$myobj->question_details.ques_id}&vote_id=vote{$myobj->question_details.ques_id}&ajax_page=true&update=true&vote_for=question', 'vote{$myobj->question_details.ques_id}', 'imgdown{$myobj->question_details.ques_id}', 'ancdown{$myobj->question_details.ques_id}', 'ancup{$myobj->question_details.ques_id}', '-1');">
																			<img id="imgdown{$myobj->question_details.ques_id}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/>
																		</a>
																	</span>
																</p>
													   		{elseif $chkIfUserVoted eq '1'}
														  		<div class="clsVotingCount">
					                                            	<div class="clsVotingCountInner">
					                                        			<p class="clsCont" id="vote{$myobj->question_details.ques_id}">{$myobj->question_details.votes}</p>
					                                                    <p class="clsContText" id="langvote{$myobj->question_details.ques_id}">{if $myobj->question_details.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
					                                                </div>
					                                            </div>
					                                            <p class="clsThumpsUp">
																	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/up-disable.gif" alt="{$LANG.thumbs_up}"/></a></span>
																	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/down-disable.gif" alt="{$LANG.thumbs_down}"/></a></span>
																</p>
														   	{elseif $chkIfUserVoted eq '-1'}
						                                       	<div class="clsVotingCount">
						                                            <div class="clsVotingCountInner">
							                                            <p class="clsCont" id="vote{$myobj->question_details.ques_id}">{$myobj->question_details.votes}</p>
							                                            <p class="clsContText" id="langvote{$myobj->question_details.ques_id}">{if $myobj->question_details.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
						                                            </div>
																</div>
														   		<p class="clsThumpsUp">
																	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
					                                            	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/down-disable.gif" alt="{$LANG.thumbs_down}"/></a></span>
																</p>
															{/if}
														{elseif isMember() && $CFG.user.user_id eq $myobj->question_details.user_id}
					                                      	<div class="clsVotingCount">
					                                            <div class="clsVotingCountInner">
						                                            <p class="clsCont" id="vote{$myobj->question_details.ques_id}">{$myobj->question_details.votes}</p>
						                                            <p class="clsContText" id="langvote{$myobj->question_details.ques_id}">{if $myobj->question_details.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
					                                            </div>
															</div>
														 	<p class="clsThumpsUp">
															 	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.ques_not_allowed_to_vote}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
																<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.ques_not_allowed_to_vote}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
															</p>
													  	{else}
				                                     		<div class="clsVotingCount">
				                                            	<div class="clsVotingCountInner">
				                                                	<p class="clsCont" id="vote{$myobj->question_details.ques_id}">{$myobj->question_details.votes}</p>
				                                                	<p class="clsContText" id="langvote{$myobj->question_details.ques_id}">{if $myobj->question_details.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
				                                                </div>
				                                        	</div>
												   			<p class="clsThumpsUp">
																<span class="clsNoBorder"><a id="ques_vote_plus" href="{$myobj->login}" onclick="{$myobj->getBrowser('ques_vote_plus')}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
																<span class="clsNoBorder"><a id="ques_vote_minus" href="{$myobj->login}" onclick="{$myobj->getBrowser('ques_vote_minus')}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
															</p>
														{/if}
															 <p>
																{if !$myobj->question_details.is_open}
																	<span class="clsResolved clsNoBorder">{$LANG.common_resolved}</span>
																{/if}
																{if $myobj->question_details.user_id == $CFG.user.user_id and $myobj->isQuestionOpen()}
																	<span class="clsResolveIt clsNoBorder"><a href="{$myobj->form_question.displayQuestionDetails_arr.answer.url}" onClick="doActionOnQuestion('resolve', '{$myobj->form_question.displayQuestionDetails_arr.anchor}', '{$LANG.confirm_resolve_message}'); return false;" title="{$LANG.answers_resolve_question}">{$LANG.answers_resolve_it}</a></span>
																{/if}
															</p>
													</div>
												{/if}
			                            	</div>
                            				<div class="clsUserDetails">
				                              <div class="clsClearfix">
												   <div class="clsUserDetailsQuestionLeft">
														<p class="clsAnwerHeadingText">{$myobj->form_question.displayQuestionDetails_arr.question_manual}</p>
													</div>
												</div>

											    <div class="lb-InnerAns">
												  <div class="rb-InnerAns">
													<div class="bb-InnerAns">
													  <div class="blc-InnerAns">
														<div class="brc-InnerAns">
														  <div class="tb-InnerAns">
															<div class="tlc-InnerAns">
															  <div class="trc-InnerAns">
																    <p class="clsQuestionDesc">{$myobj->form_question.displayQuestionDetails_arr.description_manual}</p>
																</div>
															</div>
															</div>
															</div>
															</div>
															</div>
															</div>
															</div>
												<div id="allAttachments">
							                        <div class="clsReplies clsClearfix">
							                        	<ul class="clsReplyAnswerDetails">
															<li class="clsNoBorderReply">
																<span class="clsBoldAnswer">{$myobj->question_details.total_answer}</span>
																{$myobj->form_question.displayQuestionDetails_arr.answer_plural}
															</li>
															{if $myobj->question_details.is_open}
															<li class="clsUserLinkAnswer">
																<!--<span class="clsUserLinkDate"> -->{$myobj->getTimeToGoFormat($myobj->question_details.date_closed)}<!--</span> -->
															</li>
															{/if}
													<!--this comment required for ie-->
															{if (chkIsVideoAllowed('question') and $myobj->question_details.video_id) or (chkIsAudioAllowed('question') and $myobj->question_details.audio_id) or ($myobj->form_question.displayQuestionDetails_arr.has_attachment)
																or (chkExternalVideoAllowed('question') and $myobj->question_details.external_video_id) or (chkExternalAudioAllowed('question') and $myobj->question_details.external_audio_id)}
																<li><span class="clsAttachments">{$LANG.common_attachments}:</span></li>
															{/if}
															{if chkIsVideoAllowed('question') and $myobj->question_details.video_id}
							                                   	<li class="clsNoBorderReply">
																	 <ul class="clsInnerReplyAnswer"><li class="clsByCatogryQuestion clsAnswerAudioImage">
																	  <!-- <span class="{$myobj->form_question.displayQuestionDetails_arr.video_class}"> --><a id="{$myobj->form_question.displayQuestionDetails_arr.ans_view_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.ans_view_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo1.gif" alt="{$LANG.questions_video_available}" title="{$LANG.questions_video_available}" /></a><!--</span> --></li>
							                                  		</ul>
																</li>
															{/if}
															{if chkIsAudioAllowed('question') and $myobj->question_details.audio_id}
								                                <li {if $myobj->question_details.video_id eq 0} class="clsNoBorderReply" {/if}>
																	<ul class="clsInnerReplyAnswer"><li class="{$myobj->form_question.displayQuestionDetails_arr.audio_class}  clsAnswerAudioImage"><a id="{$myobj->form_question.displayQuestionDetails_arr.ans_view_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.ans_view_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.ans_view_audio.on_click)}" ><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio1.gif" alt="{$LANG.common_audio_available}" title="{$LANG.common_audio_available}" /></a></li>
								                                   	</ul>
																</li>
															{/if}
															{if chkExternalVideoAllowed('question') and $myobj->question_details.external_video_id}
																<li {if $myobj->question_details.video_id eq 0 && $myobj->question_details.audio_id eq 0} class="clsNoBorderReply" {/if}><ul class="clsInnerReplyAnswer"><li class="clsAnswerAudioImage"><a id="external_video" href="{$myobj->form_question.displayQuestionDetails_arr.ext_ans_view_video.url}" onClick="{$myobj->getBrowser('external_video')}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalvideo-qus.gif" title="{$LANG.external_video_available}" /></a></li></ul></li>
												            {/if}
						                                  	{if chkExternalAudioAllowed('question') and $myobj->question_details.external_audio_id}
								  								<li {if $myobj->question_details.video_id eq 0 && $myobj->question_details.audio_id eq 0 && $myobj->question_details.external_video_id eq 0} class="clsNoBorderReply" {/if}><ul class="clsInnerReplyAnswer"><li class="clsAnswerAudioImage"><a id="external_audio" href="{$myobj->form_question.displayQuestionDetails_arr.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser('external_audio')}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-externalaudio-qus.gif" title="{$LANG.external_audio_available}" /></a></li></ul></li>
													        {/if}
															{if $myobj->form_question.displayQuestionDetails_arr.has_attachment}
																<li {if $myobj->question_details.video_id eq 0 && $myobj->question_details.audio_id eq 0 && $myobj->question_details.external_video_id eq 0 && $myobj->question_details.external_audio_id eq 0} class="clsNoBorderReply" {/if}>
																	<ul class="clsInnerReplyAnswer">
																		<li class="clsAnswerAudioImage">
																		<a id="{$myobj->form_question.displayQuestionDetails_arr.img_id}" href="{$myobj->form_question.displayQuestionDetails_arr.attachment_path}" onclick="return displayImageGallery('{$myobj->form_question.displayQuestionDetails_arr.img_id}')">
																		<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>

																		</li>
																		<li>
																		&nbsp;({$myobj->form_question.displayQuestionDetails_arr.attachment_count})
																		<img src="{$myobj->form_question.displayQuestionDetails_arr.image_large_path}" alt="" style="display: none;" />
																		</li>
																	</ul>
																</li>
															{/if}
														</ul>
							                        </div>
							                    </div>
												<div class="clsClearfix clsUserSubLinks">
													<ul class="clsReplyAnswerDetails">
													<li class="clsNoBorderReply">

															<a href="{$myobj->getCurrentUrl()}" id="{$myobj->form_question.displayQuestionDetails_arr.anchor}"></a>
															{$LANG.common_in}&nbsp;{$myobj->form_question.displayQuestionDetails_arr.showCategoryName}

													</li>
													<li>
						                                 <ul class="clsInnerReplyAnswer">
															<li>{$LANG.common_question_asked_by}</li>
															<li>
																{if isUserImageAllowed()}
																	{$myobj->displayProfileImage($myobj->question_details, 'tiny')}
																{/if}
															</li>
															<li class="clsUserLinkName">
																<a href="{$myobj->form_question.displayQuestionDetails_arr.myanswers.url}">
																	{$myobj->form_question.displayQuestionDetails_arr.asked_by_manual}
																</a>
															</li>
														</ul>
													</li>
													<li>
														<b>{$myobj->question_details.total_views}</b> {$myobj->form_question.displayQuestionDetails_arr.views_plural}
		 											</li>
													<li class="clsUserLinkAnswer">
														{$myobj->getTimeDiffernceFormat($myobj->question_details.date_asked)}
													</li>
												</ul>
				                               	</div>

				                               	{if $myobj->form_question.displayQuestionDetails_arr.tags}
					                               	<div class="clsClearfix clsUserSubLinks clsTagBlock">
													   	<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_subscribed_tag}:&nbsp; </div>
													   	{foreach key=tagkey item=tagvalue from=$myobj->form_question.displayQuestionDetails_arr.row}
															<div class="clsUserTags clsNoLeftBgPadngMrgn"><a href="{$tagvalue.url}">{$tagvalue.tag}</a>  &nbsp;</div>
													   	{/foreach}
	                            					</div>
				                               	{/if}
                            				</div>
                            			</div>

				               		<!--start-->

				                    <!--end-->

									<div class="clsClearfix clsBookMarkContainer">
										<div class="clsBookmarks">
											{if $myobj->CFG.admin.question.addthis}
												{$myobj->addThisOption()}
											{/if}
										</div>
										<ul class="clsInnerOptions">
											{if $CFG.admin.abuse_questions.allowed AND $myobj->question_details.user_id != $CFG.user.user_id AND $myobj->isQuestionOpen()}
												{if isMember()}
													{if $myobj->chkIsQuestionAbusedAlready($myobj->getFormField('qid'))}
														<li class="clsReportAbuseDetails"><a class="clsNoLink" href="{$myobj->form_question.displayQuestionDetails_arr.answer.url}" onClick="return false;">{$LANG.common_abused}</a></li>
													{else}
														<li class="clsReportAbuseDetails"><a href="{$myobj->form_question.displayQuestionDetails_arr.answer.url}" onClick="abuseContent('abusequestion', '{$myobj->getFormField('qid')}', '{$myobj->form_question.displayQuestionDetails_arr.anchor}', '{$LANG.confirm_abuse_question_message}'); return false;">{$LANG.report_abuse}</a></li>
													{/if}
												{else}
													<li class="clsReportAbuseDetails"><a id="ques_abuse" href="{$myobj->form_question.displayQuestionDetails_arr.login_answer_member.url}" onclick="{$myobj->getBrowser('ques_abuse')}">{$LANG.report_abuse}</a></li>
												{/if}
											{/if}
											{if $CFG.admin.email_to_friend.allowed}
												{if isMember()}
													<li class="clsEmailToFriends"><span><a id="ques_email" href="{$myobj->form_question.displayQuestionDetails_arr.email_answers.url}" onclick="{$myobj->getBrowser('ques_email')}">{$LANG.common_email_to_friends}</a></span></li>
												{else}
													<li class="clsEmailToFriends"><a id="ques_email" href="{$myobj->form_question.displayQuestionDetails_arr.login_answer_member.url}" onclick="{$myobj->getBrowser('ques_email')}">{$LANG.common_email_to_friends}</a></li>
												{/if}
											{/if}
											{if $CFG.admin.favorite.allowed}
												<li id="selShowFavoriteText_Question_{$myobj->getFormField('qid')}" class="clsAddtoFav">
												{if isMember()}
													{if $myobj->isFavoriteContent($myobj->getFormField('qid'), 'Question')}
														<a class="clsRemovFrmFav" href="{$myobj->form_question.displayQuestionDetails_arr.answer_member.url}" onClick="toggleFavorites('{$myobj->form_question.displayQuestionDetails_arr.favorite_answers.url}', 'cid={$myobj->getFormField('qid')}&amp;ctype=Question', 'selShowFavoriteText_Question_{$myobj->getFormField('qid')}'); return false;">{$LANG.answers_remove_favorites}</a>
													{else}
														<a class="clsFavourite" href="{$myobj->form_question.displayQuestionDetails_arr.answer_member.url}" onClick="toggleFavorites('{$myobj->form_question.displayQuestionDetails_arr.favorite_answers.url}', 'cid={$myobj->getFormField('qid')}&amp;ctype=Question', 'selShowFavoriteText_Question_{$myobj->getFormField('qid')}'); return false;">{$LANG.answers_add_to_favorites}</a>
													{/if}
												{else}
													<a id="ques_fav" href="{$myobj->form_question.displayQuestionDetails_arr.login_answer_member.url}" onclick="{$myobj->getBrowser('ques_fav')}">{$LANG.answers_add_to_favorites}</a>
												{/if}
												</li>
											{/if}
											{if $myobj->question_details.user_id == $CFG.user.user_id and $myobj->isQuestionOpen()}
												{if $CFG.admin.question.edit}
													<li class="clsQusetionEdit"><a href="{$myobj->form_question.displayQuestionDetails_arr.questions_member.url}">{$LANG.common_edit}</a></li>
												{/if}
												{if $CFG.admin.question.delete}
													<li class="clsQusetionDelete"><a href="{$myobj->form_question.displayQuestionDetails_arr.answer.url}" onClick="doActionOnQuestion('delete', '{$myobj->form_question.displayQuestionDetails_arr.anchor}', '{$LANG.confirm_delete_message}'); return false;">{$LANG.common_delete}</a></li>
												{/if}
											{/if}

											{if $myobj->form_question.displayQuestionDetails_arr.questionBadgeUrl}
												<li class="clsQuestionBadge clsBackgroundNone"><a href="{$myobj->getCurrentUrl(true)}" onclick="return Confirmation('selQuestionBadgeEmbed', 'formQuestionBadge', Array(), Array(), Array());">{$LANG.question_badge}</a></li>
											{/if}
										</ul>
									</div>
                    		</div>
        					</div>
                         </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
              </div>
            </div>
            <!--end of rounded corners-->
          </div>
    </div>

    {if $myobj->CFG.admin.question.ratings}
        <div id="selQuestionRatingContent">
            <div class="blctitle">
              <div class="brctitle">
                <div class="tlctitle">
                  <div class="trctitle">
                    <p class="clsRatingImg">
                        {if !isMember()}
                              <span class="clsRateStars">{$LANG.rate_now}
                                {foreach key=gqrEndKey item=gqrEndValue from=$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.end}
                                     <a id="{$gqrEndValue.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.login_question.url}" onclick="{$myobj->getBrowser($gqrEndValue.on_click)}"><img id="rate{$gqrEndValue.inc}" title="{$gqrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$gqrEndValue.pointer}" onMouseOver="mouseOverAnswers({$gqrEndValue.inc}, {$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count}, '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif', '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif');" onMouseOut="mouseOutAnswers({$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count});"/></a>
                                {/foreach}
                                </span>
                        {elseif $CFG.user.user_id == $myobj->question_details.user_id}
                            <span class="clsRateStars">{$LANG.you_cant_rate_your_question}</span>
                        {elseif $myobj->form_question.displayQuestionDetails_arr.payQuestionRatings}
                        	  <span class="clsRateStars">{$LANG.rate_now}
                                {foreach key=gqrEndKey item=gqrEndValue from=$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.end}
                                     <a href="{$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.payment_alert_url}" class="lightwindow"><img id="rate{$gqrEndValue.inc}" title="{$gqrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$gqrEndValue.pointer}" /></a>
                                {/foreach}
                              </span>
                        {else}
                            {if $myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.result_PO_RecordCount OR !$myobj->isQuestionOpen()}
                            	<span class="clsRateStars">{$LANG.your_rating}
                                	{foreach key=gqrStartKey item=gqrStartValue from=$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start}
                                        {if $myobj->isQuestionOpen()}
                                            <img id="rate{$gqrStartValue.inc}" title="{$gqrStartValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif" alt="{$gqrStartValue.pointer}" onMouseOver="mouseOverAnswers({$gqrStartValue.inc}, {$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count}, '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif', '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif');" onMouseOut="mouseOutAnswers({$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count});" onClick="getQuestionRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=question&amp;qid={$myobj->getFormField('qid')}&amp;uid={$myobj->question_details.user_id}&amp;rating={$gqrStartValue.pointer}', 'selQuestionRatingContent');" />
                                        {else}
                                            <img id="rate{$gqrStartValue.inc}" title="{$gqrStartValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif" alt="{$gqrStartValue.pointer}" />
                                        {/if}
                                    {/foreach}

                                    {foreach key=gqrEndKey item=gqrEndValue from=$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.end}
                                        {if $myobj->isQuestionOpen()}
                                            <img id="rate{$gqrEndValue.inc}" title="{$gqrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$gqrEndValue.pointer}" onMouseOver="mouseOverAnswers({$gqrEndValue.inc}, {$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count}, '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif', '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif');" onMouseOut="mouseOutAnswers({$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count});" onClick="getQuestionRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=question&amp;qid={$myobj->getFormField('qid')}&amp;uid={$myobj->question_details.user_id}&amp;rating={$gqrEndValue.pointer}', 'selQuestionRatingContent');" />
                                        {else}
                                            <img id="rate{$gqrEndValue.inc}" title="{$gqrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$gqrEndValue.pointer}" />
                                        {/if}
                                	{/foreach}
                                </span>
                            {else}
                                <span class="clsRateStars">{$LANG.rate_now}
                            		{foreach key=gqrEndKey item=gqrEndValue from=$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.end}
                                        <img id="rate{$gqrEndValue.inc}" title="{$gqrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$gqrEndValue.pointer}" onMouseOver="mouseOverAnswers({$gqrEndValue.inc}, {$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count}, '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif', '{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif');" onMouseOut="mouseOutAnswers({$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.start_count});" onClick="getQuestionRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=question&amp;qid={$myobj->getFormField('qid')}&amp;uid={$myobj->question_details.user_id}&amp;rating={$gqrEndValue.pointer}', 'selQuestionRatingContent');" />
                                    {/foreach}
                                </span>
                            {/if}
                        {/if}
        				<span class="clsRateScores">{$LANG.average_rating} <span class="clsScore">{$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.rating} / {$myobj->form_question.displayQuestionDetails_arr.getQuestionRatings.rating_count}</span> {$LANG.ratings} </span> </p>
                  </div>
                </div>
              </div>
            </div>
        </div>
    {/if}
  {if $myobj->isQuestionOpen()}
  		{if isMember() and !$myobj->isAllowedToAsk()}
            <div class="clsFirstQuestionAnswer">
                <div class="clsFirstQuestion"><span><a class="clsNoLink" href="{$myobj->form_question.displayQuestionDetails_arr.answer_member.url}" onclick="return false;">{$LANG.info_not_allowed_to_ask}</a></span></div>
            </div>
        {elseif $myobj->question_details.user_id!= $CFG.user.user_id}
			<form name="selFormReplyAnswers" id="selFormReplyAnswers" method="post" action="{$myobj->form_question.displayQuestionDetails_arr.answer_reply.url}" autocomplete="off">
				<div class="clsClearfix clsShareHeadingContainer">
					<p class="clsSharHeading">{$myobj->form_question.displayQuestionDetails_arr.submit_answer_text}</p>
					<p class="clsSharHeadingMore"><a href="#" onclick="return postShareAnswers();">{$LANG.share_with_more_details} </a></p>
				</div>
            	<div class="clsShareFieldMiddle"><div class="clsShareFieldLeft"><div class="clsShareFieldRight">
				   	<div class="clsClearfix">
						<div class="clsShareField">
							<input type="text" name="share_answer" id="share_answer" value="{$myobj->getFormField('share_answer_session')}" class="{$myobj->getCSSFormFieldElementClass('answer')}" tabindex="{smartyTabIndex}" maxlength="{$CFG.admin.answers.limit}" onFocus="updatelength(this);" onKeyUp="updatelength(this);" />
						</div>
						<div class="clsShareLable" id="shareBtn">
							{if isMember()}
								<input type="button" name="submit_answer" id="submit_answer" tabindex="{smartyTabIndex}" value="{$LANG.common_share}" onclick="return ajaxAnswersSubmitForm('{$myobj->form_question.displayQuestionDetails_arr.answer_reply.url}', 'selFormReplyAnswers', 'answersList');" />
							{else}
								<input type="submit" name="submit_answer" id="submit_answer" tabindex="{smartyTabIndex}" value="{$LANG.common_share}" onclick="location.href='{$myobj->getUrl('login')}'" />
							{/if}
						</div>
						<div id="shareAnswerProcessing" class="clsShareLable clsUpdatingText" style="display:none;"></div>
				  	</div>
				</div>
				<div id="validAnswer" class="LV_validation_message LV_invalid"></div>
                <div id="ss" class="clsZeroColour"><span> {$LANG.header_remainig} :</span> <span class="clsCharacterLimit">{literal}<script language="javascript" type="text/javascript">var c = ans_des_max_length - document.getElementById('share_answer').value.length;document.write(c);</script>{/literal}</span></div>
			</div>
		</div>
			</form>
        {else}
            <div class="clsFirstQuestionAnswer">
                <div class="clsFirstQuestion"><span><a class="clsNoLink" href="{$myobj->form_question.displayQuestionDetails_arr.answer_member.url}" onclick="return false;">{$LANG.you_cant_answer_your_question}</a></span></div>
            </div>
        {/if}
    {else}
        <div class="clsFirstQuestionAnswer">
            <div class="clsFirstQuestion"><span><a class="clsNoLink" href="{$myobj->getCurrentUrl()}" onclick="return false;">{$LANG.question_resolved_cant_answer}</a></span></div>
        </div>
    {/if}
    {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer}
             {if !$CFG.user.user_id }
            	{if chkIsPaymentAllowed('payment_answers')}
					<div id="selMsgAlert">{$LANG.info_limit_login_to_view_bestanswer}</div>
				{/if}
			 {/if}
			 {if isset($CFG.plan.plan_view_bestans) and $CFG.plan.plan_view_bestans eq 'Yes' or $CFG.user.user_id eq $myobj->question_details.user_id or !chkIsPaymentAllowed('payment_answers')}
             <!--rounded corners-->
              <div class="clsFirstBestAnswers" id="selViewBest">  <div class="lbbestanswers">
                  <div class="rbbestanswers">
                    <div class="bbbestanswers">
                      <div class="blcbestanswers">
                        <div class="brcbestanswers">
                          <div class="tbbestanswers">
                            <div class="tlcbestanswers">
                              <div class="trcbestanswers">
                                    <div class="clsBestAnswers"><h3>{$LANG.best_answer}</h3>
                                   <div class="clsDataContainer clsClearfix">
								   <div class="clsUserThumbDetails">
                                            <div class="clsUserThumb">
                                                {if $CFG.admin.answers_module.voting}
													<div id="ans{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">
														{if isMember() && $CFG.user.user_id neq $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.user_id}
															{assign var="chkIfUserVoted" value=$myobj->chkIfUserVoted('answer', $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id, $CFG.user.user_id)}
															{if $chkIfUserVoted eq '0'}
		                                                        <div class="clsVotingCount">
		                                                            <div class="clsVotingCountInner">
			                                                            <p class="clsCont" id="vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes}</p>
			                                                            <p class="clsContText" id="langvote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
		                                                            </div>
																</div>
																<p class="clsThumpsUp">
																	<span class="clsNoBorder">
																		<a id="ancup{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}" href="javascript:void(0);" onclick="updateVote('{$myobj->getCurrentUrl(true)}', 'vote_type=answer&value=1&usrid={$CFG.user.user_id}&id={$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&vote_id=vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&ajax_page=true', 'ans{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}');ajaxUpdateVotingDiv('{$myobj->getCurrentUrl(true)}', 'id={$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&vote_id=vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&ajax_page=true&update=true&vote_for=answer', 'vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','imgup{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','ancup{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','ancdown{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','1');">
																			<img id="imgup{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/>
																		</a>
																	</span>
																	<span class="clsNoBorder">
																		<a id="ancdown{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}" href="javascript:void(0);" onclick="updateVote('{$myobj->getCurrentUrl(true)}', 'vote_type=answer&value=-1&usrid={$CFG.user.user_id}&id={$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&vote_id=vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&ajax_page=true', 'ans{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}');ajaxUpdateVotingDiv('{$myobj->getCurrentUrl(true)}', 'id={$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&vote_id=vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}&ajax_page=true&update=true&vote_for=answer', 'vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','imgdown{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','ancdown{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','ancup{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}','-1');">
																			<img id="imgdown{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_up}"/>
																		</a>
																	</span>
														   		</p>
													   		{elseif $chkIfUserVoted eq '1'}
	                                                   			<div class="clsVotingCount">
	                                                            	<div class="clsVotingCountInner">
	                                                            		<p class="clsCont" id="vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes}</p>
	                                                            		<p class="clsContText" id="langvote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                            	</div>
																</div>
																<p class="clsThumpsUp">
																	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
																	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
																</p>
													   		{elseif $chkIfUserVoted eq '-1'}
																<div class="clsVotingCount">
	                                                            	<div class="clsVotingCountInner">
	                                                            		<p class="clsCont" id="vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes}</p>
	                                                            		<p class="clsContText" id="langvote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                            	</div>
																</div>
	                                                        	<p class="clsThumpsUp">
																	<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
															  		<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/down-disable.gif" alt="{$LANG.thumbs_down}"/></a></span>
																</p>
													   		{/if}
											 			{elseif isMember() && $CFG.user.user_id eq $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.user_id}
															<div class="clsVotingCount">
                                                            	<div class="clsVotingCountInner">
                                                            		<p class="clsCont" id="vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes}</p>
	                                                            	<p class="clsContText" id="langvote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                            </div>
															</div>
                                                			<p class="clsThumpsUp">
																<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.ans_not_allowed_to_vote}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
																<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.ans_not_allowed_to_vote}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
															</p>
													  	{else}
															<div class="clsVotingCount">
	                                                            <div class="clsVotingCountInner">
		                                                            <p class="clsCont" id="vote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes}</p>
		                                                            <p class="clsContText" id="langvote{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.ans_id}">{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                            </div>
															</div>
                                                			<p class="clsThumpsUp">
																<span class="clsNoBorder"><a id="best_vote_plus" href="{$myobj->login}" onclick="{$myobj->getBrowser('best_vote_plus')}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
																<span class="clsNoBorder"><a id="best_vote_minus" href="{$myobj->login}" onclick="{$myobj->getBrowser('best_vote_minus')}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
															</p>
														{/if}
													</div>
										 		{/if}
                                            </div>
                                          	<div class="clsUserDetails">
											<div class="clsAnswers clsBestAnswerDtails">
                                            	<p>{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.row_answer_manual}</p>

	                                            {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.source}
	                                                <p>{$LANG.answers_sources}</p>
	                                                <p>{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.row_source_manual}</p>
	                                            {/if}
                                            	<div class="clsClearfix clsUserSubLinks">
													<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_question_answered_by}</div>
													{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.facebook_user_details}
														<div class="clsUserLinkName clsNoLeftBgPadngMrgn clsFaceBookicon">
															<a href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.facebook_user_details.profile_url}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.facebook_user_details.name}</a>
														</div>
														<div class="clsUserLinkName clsNoLeftBgPadngMrgn clsPaddingLeftFbook"> {$LANG.common_via} <a href="http://www.facebook.com/">{$LANG.common_facebook}</a></div>
													{else}
														<div class="clsUserLinkImage">
			                                            	{if isUserImageAllowed()}
			                                              		{$myobj->displayProfileImage($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record, 'tiny')}
			                                              	{/if}
														</div>
														<div class="clsUserLinkName clsNoLeftBgPadngMrgn">
														<a href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.myanswers.url}">{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.row_answered_by_manual}</a></div>
													{/if}
													<!--<div class="clsUserLinkDate clsUserLinkDate">{$myobj->getTimeDiffernceFormat($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.date_answered)}</div>-->
												</div>
												<ul class="clsReplyAnswerDetails">
												{if (chkIsVideoAllowed('question') and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.video_id) or (chkIsAudioAllowed('question') and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.audio_id) or ($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.has_attachment)}
													<li class="clsNoBorderReply"><span class="clsAttachments">{$LANG.common_attachments}:</span></li>
												{/if}
 											    {if chkIsVideoAllowed('answer') and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.video_id}
 											    	<li class="clsNoBorderReply">
														<ul class="clsInnerReplyAnswer"><li class="clsByCatogryQuestion clsAnswerAudioImage">
	                                                <span class="clsAnswerAudioImage"><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ans_view_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ans_view_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo1.gif" alt="{$LANG.answers_for_video_available}" title="{$LANG.answers_for_video_available}" /></a></span>
		                                                </ul>
													</li>
	                                            {/if}
	                                            {if chkIsAudioAllowed('answer') and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.audio_id}
	                                            	<li {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.video_id eq 0} class="clsNoBorderReply" {/if}>
														<ul class="clsInnerReplyAnswer">  <li class="clsByCatogryQuestion clsAnswerAudioImage">
	                                              <a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ans_view_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ans_view_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio1.gif" alt="{$LANG.answers_for_audio_available}" title="{$LANG.answers_for_audio_available}" /></a>
		                                                </ul>
													</li>
	                                            {/if}
	                                            {if chkExternalVideoAllowed('answer') and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.external_video_id}
													<li {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.video_id eq 0 && $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.audio_id eq 0} class="clsNoBorderReply" {/if}><ul class="clsInnerReplyAnswer"><li class="clsAnswerAudioImage"><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ext_ans_view_video.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.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-qus.gif" title="{$LANG.external_video_available}" /></a></li></ul></li>
									            {/if}
			                                  	{if chkExternalAudioAllowed('question') and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.external_audio_id}
					  								<li {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.video_id eq 0 && $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.audio_id eq 0 && $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.external_video_id eq 0} class="clsNoBorderReply" {/if}><ul class="clsInnerReplyAnswer"><li class="clsAnswerAudioImage"><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ext_ans_view_audio.on_click}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.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-qus.gif" title="{$LANG.external_audio_available}" /></a></li></ul></li>
										        {/if}
											  	{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.has_attachment}
													<li {if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.video_id eq 0 and $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.record.audio_id eq 0} class="clsNoBorderReply" {/if}>
														<ul class="clsInnerReplyAnswer">
														<li class="clsAnswerAudioImage"><a id="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.img_id}" href="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.attachment_path}" onclick="return displayImageGallery('{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.img_id}')">
																<img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a>

															</li>
															<li>
																&nbsp;({$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.attachment_count})
																<img src="{$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.image_large_path}" alt="" style="display: none;" />
															</li>
												  		</ul>
													</li>
											  	{/if}
											  	</ul>
                                          	</div>
											{if $CFG.admin.answers_comment.allowed}
									  			{if $myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.populateCommentList}
												<div>
													{foreach key=farlkey item=farlvalue from=$myobj->form_question.displayQuestionDetails_arr.displayBestAnswer.populateCommentList}
														<div class="clsAnswerCommentDetails clsCommentAnswerDisplay">
														  <div class="clsUserThumbDetails">
															<div class="clsUserDetails">
																<p><span class="clsNoBorder">{$farlvalue.record.comment}</span></p>
																<div class="clsClearfix clsUserSubLinks clsCommentReply">
																	<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_comment_posted_by}:</div>
																	<div class="clsUserLinkImage">
																	{if isUserImageAllowed()}
																		{$myobj->displayProfileImage($farlvalue.user_details, 'tiny', false)}
																	{/if}
																	</div>
																	<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$farlvalue.myanswers.url}">{$farlvalue.user_details.display_name}</a></div>
																	<div class="clsUserLinkDate">{$farlvalue.record.date_added|date_format}</div>
																</div>
											  	   			</div>
										  		 	  	  </div>
											 			</div>
                                	  				{/foreach}
													</div>
												{/if}
											{/if}
										</div></div>
                                	</div>
								</div>
                              </div>
                            </div>
                          </div>
                        </div>
                      </div>
                    </div>
                  </div>
                </div>
                <!--end of rounded corners--></div>
             {/if}
    {/if}
	<div>&nbsp;</div>


{/if}
{/if}
{if $myobj->isShowPageBlock('form_answers')}
   	{if $myobj->isResultsFound()}
        <div class="clsUsersAnswers" id="answersList">
            <h2>{$LANG.answers}</h2>
            	{if isAjax()}
					{assign var='classspan' value='yes'}
					{include file='../general/information.tpl'}
				{/if}
        <div>
            <table class="clsDataTable" summary="{$LANG.answers_details_tbl}">
			{foreach key=fAkey item=fAvalue  from=$myobj->form_answers.displayAllAnswers_arr}
				{if $CFG.comments.expand_collapse}
                	{literal}
						<script type="text/javascript" language="javascript">
                            commentsArray['{/literal}{$fAkey}{literal}'] = '{/literal}{$fAvalue.ansId}{literal}';
                        </script>
                	{/literal}
                {/if}
					<!-- answer code -->
                <tr>
                    <td>
                        <div><!-- answers div start-->
                            <!-- answermore div start-->
                            <div id="answermore{$fAvalue.ansId}">
				  <div class="lb-ansOuter">
				  <div class="rb-ansOuter">
					<div class="bb-ansOuter">
					  <div class="blc-ansOuter">
						<div class="brc-ansOuter">
						  <div class="tb-ansOuter">
							<div class="tlc-ansOuter">
							  <div class="trc-ansOuter">
							    <div class="{$fAvalue.clsOddOrEvenQuestion} clsClearfix">
                                    <div id="answeruser{$fAvalue.ansId}" class="clsUserThumb">
                                        {if $CFG.admin.answers_module.voting}
											<div id="ans{$fAvalue.record.ans_id}">
												{if isMember() && $CFG.user.user_id neq $fAvalue.record.user_id}
													{assign var="chkIfUserVoted" value=$myobj->chkIfUserVoted('answer', $fAvalue.record.ans_id, $CFG.user.user_id)}
													{if $chkIfUserVoted eq '0'}
	                                                	<div class="clsVotingCount">
	                                                        <div class="clsVotingCountInner">
	                                                            <p class="clsCont" id="vote{$fAvalue.record.ans_id}">{$fAvalue.record.votes}</p>
	                                                            <p class="clsContText" id="langvote{$fAvalue.record.ans_id}">{if $fAvalue.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                        </div>
														</div>
														<p class="clsThumpsUp">
															<span class="clsNoBorder">
																<a id="ancup{$fAvalue.record.ans_id}" href="javascript:void(0);" onclick="updateVote('{$myobj->getCurrentUrl(true)}', 'vote_type=answer&value=1&usrid={$CFG.user.user_id}&id={$fAvalue.record.ans_id}&vote_id=vote{$fAvalue.record.ans_id}&ajax_page=true', 'ans{$fAvalue.record.ans_id}');ajaxUpdateVotingDiv('{$myobj->getCurrentUrl(true)}', 'id={$fAvalue.record.ans_id}&vote_id=vote{$fAvalue.record.ans_id}&ajax_page=true&update=true&vote_for=answer', 'vote{$fAvalue.record.ans_id}','imgup{$fAvalue.record.ans_id}','ancup{$fAvalue.record.ans_id}','ancdown{$fAvalue.record.ans_id}', '1');">
																	<img id="imgup{$fAvalue.record.ans_id}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/>
																</a>
															</span>
															<span class="clsNoBorder">
																<a id="ancdown{$fAvalue.record.ans_id}" href="javascript:void(0);" onclick="updateVote('{$myobj->getCurrentUrl(true)}', 'vote_type=answer&value=-1&usrid={$CFG.user.user_id}&id={$fAvalue.record.ans_id}&vote_id=vote{$fAvalue.record.ans_id}&ajax_page=true', 'ans{$fAvalue.record.ans_id}');ajaxUpdateVotingDiv('{$myobj->getCurrentUrl(true)}', 'id={$fAvalue.record.ans_id}&vote_id=vote{$fAvalue.record.ans_id}&ajax_page=true&update=true&vote_for=answer', 'vote{$fAvalue.record.ans_id}','imgdown{$fAvalue.record.ans_id}','ancdown{$fAvalue.record.ans_id}','ancup{$fAvalue.record.ans_id}', '-1');">
																	<img id="imgdown{$fAvalue.record.ans_id}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/>
																</a>
															</span>
														</p>
											   		{elseif $chkIfUserVoted eq '1'}
	                                               		<div class="clsVotingCount">
	                                                        <div class="clsVotingCountInner">
	                                                            <p class="clsCont" id="vote{$fAvalue.record.ans_id}">{$fAvalue.record.votes}</p>
	                                                            <p class="clsContText" id="langvote{$fAvalue.record.ans_id}">{if $fAvalue.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                        </div>
														</div>
														<p class="clsThumpsUp">
	                                                        <span  class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/up-disable.gif" alt="{$LANG.thumbs_up}"/></a></span>
															<span  class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/down-disable.gif" alt="{$LANG.thumbs_down}"/></a></span>
														</p>
											   		{elseif $chkIfUserVoted eq '-1'}
														<div class="clsVotingCount">
	                                                        <div class="clsVotingCountInner">
	                                                            <p class="clsCont" id="vote{$fAvalue.record.ans_id}">{$fAvalue.record.votes}</p>
	                                                            <p class="clsContText" id="langvote{$fAvalue.record.ans_id}">{if $fAvalue.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
	                                                        </div>
														</div>
	                                                    <p class="clsThumpsUp">
															<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/up-disable.gif" alt="{$LANG.thumbs_up}"/></a></span>
													   		<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.voted_already}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/down-disable.gif" alt="{$LANG.thumbs_down}"/></a></span>
														</p>
											   		{/if}
										   		{elseif isMember() && $CFG.user.user_id eq $fAvalue.record.user_id}
													<div class="clsVotingCount">
                                                        <div class="clsVotingCountInner">
                                                            <p class="clsCont" id="vote{$fAvalue.record.ans_id}">{$fAvalue.record.votes}</p>
                                                            <p class="clsContText" id="langvote{$fAvalue.record.ans_id}">{if $fAvalue.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
                                                        </div>
													</div>
                                                	<p class="clsThumpsUp">
														<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.ans_not_allowed_to_vote}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
														<span class="clsNoBorder"><a href="javascript:void(0);" onclick="alert_manual('{$LANG.ans_not_allowed_to_vote}');"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
													</p>
										  		{else}
                                          			<div class="clsVotingCount">
                                                        <div class="clsVotingCountInner">
                                                            <p class="clsCont" id="vote{$fAvalue.record.ans_id}">{$fAvalue.record.votes}</p>
                                                            <p class="clsContText" id="langvote{$fAvalue.record.ans_id}">{if $fAvalue.record.votes eq 1}{$LANG.vote}{else}{$LANG.helpful}{/if}</p>
                                                        </div>
													</div>
													<p class="clsThumpsUp">
														<span class="clsNoBorder"><a id="{$fAvalue.ans_votes.on_click_plus}" href="{$myobj->login}" onclick="{$myobj->getBrowser($fAvalue.ans_votes.on_click_plus)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-up.gif" alt="{$LANG.thumbs_up}"/></a></span>
														<span class="clsNoBorder"><a id="{$fAvalue.ans_votes.on_click_minus}" href="{$myobj->login}" onclick="{$myobj->getBrowser($fAvalue.ans_votes.on_click_minus)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-down.gif" alt="{$LANG.thumbs_down}"/></a></span>
													</p>
												{/if}
										   </div>
										{/if}
                                    </div>

                                   <div class="clsUserDetails">
                                       <div class="clsAnswers">

											<p class="clsAnswerDetailsText">{$fAvalue.row_answer_manual}</p>

                                            {if $fAvalue.record.source}
                                                <p>{$LANG.answers_sources}:</p>
                                                <p>{$fAvalue.row_source_manual}</p>
                                            {/if}
                                            <div class="clsClearfix clsUserSubLinks">
                                                <a href="{$myobj->getCurrentUrl()}" id="{$fAvalue.anchor}"></a>
                                                <div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_question_answered_by}</div>
                                                {if $fAvalue.facebook_user_details}
                                                	<div class="clsUserLinkName clsNoLeftBgPadngMrgn clsFaceBookicon"><a href="{$fAvalue.facebook_user_details.profile_url}">{$fAvalue.facebook_user_details.name}</a></div>
                                                	<div class="clsUserLinkName clsNoLeftBgPadngMrgn clsPaddingLeftFbook"> {$LANG.common_via} <a href="http://www.facebook.com/">{$LANG.common_facebook}</a></div>
                                                {else}
													<div class="clsUserLinkImage">
														{if isUserImageAllowed()}
															{$myobj->displayProfileImage($fAvalue.record, 'tiny')}
														{/if}
													</div>
													<div class="clsUserLinkName clsNoLeftBgPadngMrgn"><a href="{$fAvalue.myanswers.url}">{$fAvalue.row_answered_by_manual}</a></div>
												{/if}
												{if ($CFG.admin.abuse_answers.allowed AND $CFG.user.user_id != $fAvalue.record.user_id AND $myobj->isQuestionOpen()) or ($fAvalue.record.user_id == $CFG.user.user_id and $myobj->isQuestionOpen())}
													<div class="clsUserLinkDate">{$myobj->getTimeDiffernceFormat($fAvalue.record.date_answered)}</div>
												{else}
													<div class="clsUserLinkDate clsUserLinkAnswer">{$myobj->getTimeDiffernceFormat($fAvalue.record.date_answered)}</div>
												{/if}

                                                {if $CFG.admin.abuse_answers.allowed AND $CFG.user.user_id != $fAvalue.record.user_id AND $myobj->isQuestionOpen()}
                                                    {if isMember()}
                                                        {if $myobj->chkIsAnswerAbusedAlready($fAvalue.ansId)}
                                                            <div class="clsReportAbuse"><a class="clsNoLink" href="{$fAvalue.answer.url}" onClick="return false;">{$LANG.common_abused}</a></div>
                                                        {else}
                                                             <div class="clsReportAbuse"><a href="{$fAvalue.answer.url}" onClick="abuseContent('abuseanswer', '{$fAvalue.record.ans_id}', '{$fAvalue.anchor}', '{$LANG.confirm_abuse_answer_message}'); return false;">{$LANG.report_abuse}</a></div>
                                                        {/if}
                                                    {else}
                                                         <div class="clsReportAbuse"><a id="{$fAvalue.report.on_click}" href="{$fAvalue.report.url}" onclick="{$myobj->getBrowser($fAvalue.report.on_click)}">{$LANG.report_abuse}</a></div>
                                                    {/if}
                                                {/if}

												{if $CFG.user.user_id == $myobj->question_details.user_id AND $fAvalue.record.status == 'ToActivate'}
	                                            	<div class="clsUserBestAnswer"><a href="{$fAvalue.answer.url}"  onClick="doActionOnAnswer('publishanswer', '{$fAvalue.anchor}', '{$LANG.publish_answer_confirm_message}', '{$fAvalue.record.ans_id}'); return false;">{$LANG.answers_publish_answer}</a></div>
	                                            {/if}

												{if $fAvalue.record.user_id == $CFG.user.user_id and $myobj->isQuestionOpen()}
													{if $CFG.admin.answer.edit}
														<div class="clsAnsEdit"><a href="{$fAvalue.answer_edit.url}">{$LANG.common_edit}</a></div>
													{/if}
													{if $CFG.admin.answer.delete}
														<div class="clsAnsDelete"><a href="{$fAvalue.answer_delete.url}" onClick="doActionOnAnswer('deleteanswer', '{$fAvalue.anchor}', '{$LANG.confirm_delete_message_answer}', '{$fAvalue.record.ans_id}'); return false;">{$LANG.common_delete}</a></div>
													{/if}
												{/if}
												{if $CFG.admin.best_answers.allowed AND $CFG.user.user_id == $myobj->question_details.user_id  AND $myobj->question_details.best_ans_id == 0 AND $fAvalue.record.status == 'Active'}
													{assign var='classspan' value=''}
													<div class="clsUserBestAnswer"><a href="{$fAvalue.answer.url}"  onClick="doActionOnAnswer('bestanswers', '{$fAvalue.anchor}', '{$LANG.best_answer_confirm_message}', '{$fAvalue.record.ans_id}'); return false;">{$LANG.best_answer}</a></div>
												{/if}
											</div>
											<ul class="clsReplyAnswerDetails clsClearfix">
												{if (chkIsVideoAllowed('answer') and $fAvalue.record.video_id) or (chkIsAudioAllowed('answer') and $fAvalue.record.audio_id) or (chkExternalVideoAllowed('answer') and $fAvalue.record.external_video_id) or (chkExternalAudioAllowed('answer') and $fAvalue.record.external_audio_id) or ($fAvalue.has_attachment)}
													<li class="clsNoBorderReply"><span class="clsAttachments">{$LANG.common_attachments}:</span></li>
												{/if}
												{if chkIsVideoAllowed('answer') and $fAvalue.record.video_id}
													<li class="clsNoBorderReply">
														<ul class="clsInnerReplyAnswer">  <li class="clsByCatogryQuestion clsAnswerAudioImage">
			                                                <span><a id="{$fAvalue.ans_view_video.on_click}" href="{$fAvalue.ans_view_video.url}" onClick="{$myobj->getBrowser($fAvalue.ans_view_video.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo1.gif" alt="{$LANG.answers_for_video_available}" title="{$LANG.answers_for_video_available}" /></a></span>
			                                            </ul>
													</li>
	                                            {/if}
	                                            {if chkIsAudioAllowed('answer') and $fAvalue.record.audio_id}
	                                            	<li {if $fAvalue.record.video_id eq 0} class="clsNoBorderReply" {/if}>
														<ul class="clsInnerReplyAnswer">  <li class="clsByCatogryQuestion clsAnswerAudioImage">
	                                                	<span><a id="{$fAvalue.ans_view_audio.on_click}" href="{$fAvalue.ans_view_audio.url}" onClick="{$myobj->getBrowser($fAvalue.ans_view_audio.on_click)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio1.gif" alt="{$LANG.answers_for_audio_available}" title="{$LANG.answers_for_audio_available}" /></a></span>
	                                                	</ul>
													</li>
	                                            {/if}
	                                            {if chkExternalVideoAllowed('answer') and $fAvalue.record.external_video_id}
													<li {if $fAvalue.record.video_id eq 0 && $fAvalue.record.audio_id eq 0} class="clsNoBorderReply" {/if}><ul class="clsInnerReplyAnswer"><li class="clsAnswerAudioImage"><a id="{$fAvalue.ext_ans_view_video.on_click}" href="{$fAvalue.ext_ans_view_video.url}" onClick="{$myobj->getBrowser($fAvalue.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-qus.gif" title="{$LANG.external_video_available}" /></a></li></ul></li>
									            {/if}
			                                  	{if chkExternalAudioAllowed('question') and $fAvalue.record.external_audio_id}
					  								<li {if $fAvalue.record.video_id eq 0 && $fAvalue.record.audio_id eq 0 && $fAvalue.record.external_video_id eq 0} class="clsNoBorderReply" {/if}><ul class="clsInnerReplyAnswer"><li class="clsAnswerAudioImage"><a id="{$fAvalue.ext_ans_view_audio.on_click}" href="{$fAvalue.ext_ans_view_audio.url}" onClick="{$myobj->getBrowser($fAvalue.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-qus.gif" title="{$LANG.external_audio_available}" /></a></li></ul></li>
										        {/if}
												{if $fAvalue.has_attachment}
													<li {if $fAvalue.record.video_id eq 0 and $fAvalue.record.audio_id eq 0} class="clsNoBorderReply" {/if}>
														<ul class="clsInnerReplyAnswer">
										            	<li><a id="{$fAvalue.img_id}" href="{$fAvalue.attachment_path}" onclick="return displayImageGallery('{$fAvalue.img_id}')"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusimage.gif" /></a></li>
														<li>&nbsp;({$fAvalue.attachment_count})
															<img src="{$fAvalue.image_large_path}" alt="" style="display: none;" />
														</li>
														</ul>
													</li>
												{/if}
											</ul>
                                       		<div class="clsClearfix">

										{if $classspan != ''}
											{assign var='bdrclass' value='clsNoBorder'}
										{/if}
										{if $myobj->isQuestionOpen() && $CFG.admin.answers_comment.allowed && $CFG.admin.number_of_comments.allowed != 0 && $myobj->getTotalAnswerComments($fAvalue.record.ans_id)}

												<span class="{$bdrclass}" id="addComment_{$fAvalue.record.ans_id}"><a href="{$fAvalue.answer.url}"  onClick="ajaxUpdateDiv('{$fAvalue.answer.url}', 'ajax_page=true&showOptionToComment=1&c_ans_id={$fAvalue.record.ans_id}&c_seo_title={$myobj->getFormField('seo_title')}&c_qid= {$myobj->getFormField('qid')}', '{$fAvalue.commentSpanIDId}'); return false;">{$LANG.comment_for_answer}</a></span>

										{/if}
									</div>
								 	<div id="{$fAvalue.commentSpanIDId}"><!----></div>
									{if $CFG.admin.answers_comment.allowed}
									<div class="clsBubInfoTitle" id="msg{$fAvalue.commentSpanIDId}">
										{if $fAvalue.populateCommentList}
											{foreach key=farlkey item=farlvalue from=$fAvalue.populateCommentList}
												<div class="clsAnswerCommentDetails clsCommentAnswerDisplay">
													<div class="clsUserThumbDetails">
														<div class="clsUserDetails">
															<p><span class="clsNoBorder">{$farlvalue.record.comment}</span></p>
															<div class="clsClearfix clsUserSubLinks clsCommentReply">
																<div class="clsUserLinkBy clsNoLeftBgPadngMrgn">{$LANG.common_comment_posted_by}:</div>
																<div class="clsUserLinkImage">
																	{if isUserImageAllowed()}
																		{$myobj->displayProfileImage($farlvalue.user_details, 'tiny')}
																	{/if}
																</div>
																<div class="clsUserLinkName clsNoLeftBgPadngMrgn">
																	<a href="{$farlvalue.myanswers.url}">{$farlvalue.user_details.display_name}</a>
																</div>
																<div class="clsUserLinkDate"> {$LANG.common_date_added} : {$farlvalue.record.date_added|date_format}</div>
																{if $myobj->isQuestionOpen()}
																	{if $CFG.user.user_id == $farlvalue.record.user_id  && $CFG.admin.delete_comment.allowed}
																		<div class="clsAnsDelete"><a href="{$fAvalue.answer.url}" onClick="doActionOnComment('deletecomment', '{$farlvalue.anchor}', '{$LANG.confirm_delete_message_comment}', '{$farlvalue.record.comment_id}'); return false;">{$LANG.common_delete}</a></div>
																	{/if}
																{/if}
															</div>
												  	   </div>
										  		 	</div>
											 	</div>
                                	  		{/foreach}
										{/if}
                              	 	</div>
								{/if}
							 </div>

                           </div>
                         </div>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
        </div><!-- answermore div end-->
                <!-- answerless div start-->
                <div id="answerless{$fAvalue.ansId}" style="display:none;">
                    <div class="{$fAvalue.clsOddOrEvenQuestion} clsUserThumbDetails">
                        <div class="clsUserDetails">
                            <div class="clsAnswers">
                                <p><span class="clsForumAuthor clsNoBorder">{$LANG.common_question_answered_by} <a href="{$fAvalue.myanswers.url}">{$fAvalue.record.answered_by}</a></span> <span>{$myobj->getTimeDiffernceFormat($fAvalue.record.date_answered)} </span></p>
                            </div>
                        </div>
                    </div>
                </div><!-- answerless div end-->

            </div><!-- answers div end-->
                    </td>
                </tr>

            {/foreach}

        </table>
		{if isMember() && chkIsPaymentAllowed('payment_answers') && $myobj->question_details.total_allowed_answers gt 0}
				<div class="lbmoreans">
				<div class="rbmoreans">
				<div class="bbmoreans">
				<div class="blcmoreans">
				<div class="brcmoreans">
				<div class="tbmoreans">
				<div class="tlcmoreans">
				<div class="trcmoreans">
				<div class="clsMoreAnswerTab">
					<div><p class="clsExceedLimit">{$LANG.exceeded_limit_msg}</p></div>
					<div class="clsExceedLimitCount"><p>{$LANG.remaining_answers_text} : <span>{$myobj->question_details.total_allowed_answers}</span>.</p> {$LANG.upgrade_answers_msg}</div>
				</div>
				</div>
				</div>
				</div>
				</div>
				</div>
				</div>
				</div>
				</div>
            {/if}
        {if $CFG.admin.navigation.bottom}
            {include file='../general/pagination.tpl'}
        {/if}
		</div>
   </div>
        {else}
        <!--<div id="answersList"></div>-->
		<div class="clsUsersAnswers" id="answersList">
            <h2>{$LANG.answers}</h2>
            	{if isAjax()}
					{assign var='classspan' value='yes'}
					{include file='../general/information.tpl'}
				{/if}
            <div id="selMsgAlert">
              <p>{$LANG.answers_not_added}</p>
            </div>
			</div>
		{/if}

		{if !isAjax() and $CFG.admin.question_related.allowed}
			{$myobj->relatedQuestion()}
		{/if}
{/if}

{if $myobj->isShowPageBlock('form_add')}
	{$myobj->postAnswersForm('main')}
{/if}
</div>
{if $myobj->isShowPageBlock('form_add') and $CFG.admin.attachments_answers.allowed}
	{literal}
	<script language="javascript" type="text/javascript">
		function chkLimit()
			{
				var uploaded_images = document.getElementById("uploaded_images");
				if(uploaded_images == null)
					var d = 0;
				else
					{
						items_uploaded = uploaded_images.getElementsByTagName("img");
						var d  =  items_uploaded.length;
					}
				if(d >= file_upload_limit)
					{
						document.getElementById("image_uploads").style.display = "none";
					}
				else
					{
						document.getElementById("image_uploads").style.display = "block";
					}
			}
		chkLimit();
	</script>
	{/literal}
{/if}
