<div id="selListAll">
 <div class="clsClearfix clsProfilePageDetails">
   <div class="clsForumTitleHeading clsFloatleft">
      <h2>{$myobj->title}</h2>
   </div>
   <div class="clsDebatesPreviousNext">
   <div>{$myobj->showAnotherDebate()}</div>
   <div>{$myobj->showAnotherDebate(1)}</div>
  </div>
   <!-- <div class="clsFloatRight">
    {*$myobj->displayDebatesTopLinks()*}
   </div> -->
</div>

{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()}">
      <p id="confirmDelMessage"></p>
      <table summary="{$LANG.container_to_get_confirmation}" class="clsAlignCenter">
        <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->hidden_arr1)}
    </form>
  </div>
{/if}

{if $myobj->isShowPageBlock('form_question') OR $myobj->isShowPageBlock('form_answers')}
   <!-- Confirmation Div -->
  <div id="selMsgConfirmResponse" class="selMsgConfirm" style="display:none;position:absolute;">
    <form name="formConfirmResponse" id="formConfirmResponse" method="post" action="{$myobj->getCurrentUrl(true)}">
      <p id="confirmMessageResponse"></p>
      <table summary="{$LANG.container_to_get_confirmation}" class="clsAlignCenter">
        <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();" />
            <input type="hidden" name="action" id="action" value="delete">
          </td>
        </tr>
      </table>
      {$myobj->populateHidden($myobj->hidden_arr2)}
    </form>
  </div>
  <!-- Confirmation Div -->
  <div id="selMsgConfirmResolve" class="selMsgConfirm" style="display:none;position:absolute;">
    <form name="formConfirmResolve" id="formConfirmResolve" method="post" action="{$myobj->getCurrentUrl(true)}">
      <p id="confirmMessageResolve"></p>
      <table summary="{$LANG.container_to_get_confirmation}" class="clsAlignCenter">
        <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();" />
            <input type="hidden" name="action" id="action" value="resolve">
          </td>
        </tr>
      </table>
      {$myobj->populateHidden($myobj->hidden_arr2)}
    </form>
  </div>
  <!-- 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}" class="clsAlignCenter">
        <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->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}" class="clsAlignCenter">
        <tr>
          <td><p>{$LANG.debatesResponse_reason}</p>
            <p>
              <textarea name="reason" id="reason" cols="35" rows="5" tabindex="{smartyTabIndex}">{$myobj->getFormField('reason')}</textarea>
            </p>
            <p id="validReason"></p></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->hidden_arr3)}
    </form>
  </div>
  <div id="selMsgUpdateConfirm" class="selMsgUpdateConfirm" style="display:none;position:absolute;">
    <form name="formUpdateConfirm" id="formUpdateConfirm" method="post" action="{$myobj->getCurrentUrl(true)}">
      <p id="confirmUpdateMessage"></p>
      <table summary="{$LANG.container_to_get_confirmation}" class="clsAlignCenter">
        <tr>
          <td><p>{$LANG.debatesResponse_response}</p>
            <p>
              <textarea name="response" id="response" cols="35" rows="5" tabindex="{smartyTabIndex}"></textarea>
            </p>
            <p id="validResponse"></p></td>
        </tr>
        <tr>
          <td>
		  <input type="submit" class="clsPopSubmitButton" name="confirm_action" id="confirm_action" value="{$LANG.common_yes_option}" tabindex="{smartyTabIndex}" onClick="return chkIsDebateResponseExists();" />
            &nbsp;
            <input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_no_option}" tabindex="{smartyTabIndex}" onClick="removeResponseErrors(); return hideAllBlocks();" />
          </td>
        </tr>
      </table>
    {$myobj->populateHidden($myobj->hidden_arr3)}
    </form>
  </div>
  <div id="selDelCommentconfirm" class="clsPopupConfirmation" style="display:none;position:absolute;">
		<p id="msgConfirmText"></p>
      	<form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl(true)}">
        	<input type="hidden" name="ans_id" id="ans_id" />
			<input type="hidden" name="main_ans_id" id="main_ans_id" />
			<input type="hidden" name="act" id="act" />
			<input type="hidden" name="type" id="type" />
            {$myobj->populateHidden($myobj->hidden_arr4)}

			<table summary="{$LANG.confirm_tbl_summary}" class="clsAlignCenter">
	          	<tr>
	            	<td>
					  	<input type="button" class="clsPopSubmitButton" name="confirm" id="confirm" onclick="deleteAnswerReplies('{$myobj->deleteAnswerReplies_onclick}', '&amp;ajax_page=true&amp;deleteReplies=1'); 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>
      	</form>
  </div>
{/if}


<div id="selQuickLinks">
{if $myobj->isShowPageBlock('form_question')}
	{if $myobj->debate_details}
      <div class="clsDebateMain clsDebateResponseMain">
		<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="lbopenquestion">
                                 <div class="rbopenquestion">
                                  <div class="bbopenquestion">
                                   <div class="blcopenquestion">
                                    <div class="brcopenquestion">
                                     <div class="tbopenquestion">
                                      <div class="tlcopenquestion">
                                       <div class="trcopenquestion">
                                <div class="clsDebatesTable clsDataContainer">
                                <table summary="{$LANG.debate_details_tbl}" id="selAuthorTbl" class="clsDataTable">
                                      <tr>
                                        <td class="clsForumTitle clsDataContainer">
                                           <div class="clsUserThumbDetails">
                                            <div class="clsClearfix">
                                             <div class="clsFloatleft">
                                              {if $displayDebateDetails_arr.earn_points_details_info neq ''}
                                               <p class="clsEarnPoint">{$displayDebateDetails_arr.earn_points_details_info}</p>
                                              {/if}
                                              </div>
                                             </div>
                                                <!-- div debate details start here -->
                                            <div id="selDisplayDebate">
                                             <div class="">
                                                <!--  start of chart-->
                                                <div class="shadow clsPieChart">
                                                  <div id="example" class="clsPaddingBottom10">
                                                    <div class="pieLarge L{$displayDebateDetails_arr.size}"></div>
                                                    <div class="clsPercentage">
                                                    {if $myobj->getDebateTotalCount()}
                                                        <div class="clsForPercentage">{$myobj->debate_for}%</div>
                                                        <div class="clsAgainstPercentage">{$myobj->debate_againsts}%</div>
                                                    {/if}
                                                  </div>
                                                  </div>
                                                <!--  end of chart-->
                                               {if $myobj->debate_details.user_id == $CFG.user.user_id and $myobj->isDebatesOpen()}
                                                <p><span class="clsResolveIt">
                                                  <a href="{$displayDebateDetails_arr.debatesresponse_debateOpen.url}" onClick="doActionOnDebateResolve('resolve', '{$displayDebateDetails_arr.anchor}', '{$LANG.confirm_resolve_message}'); return false;">{$LANG.debatesResponse_resolve_debate}</a>
                                                </span></p>
                                               {/if}
                                              </div>
                                            </div>
                                            <!-- div debate details start here -->
                                                <div id="selDebateDescription">
													<div class="clsUserDetails">
														<div class="clsClearfix">
															<h3 class="clsDebatesHeading">{$displayDebateDetails_arr.subject_manual}</h3>
														</div>
														<p class="clsDebateDescription">{$displayDebateDetails_arr.description_manual}</p>
														<div class="clsClearfix clsUserSubLinks">
															<div class="clsClearfix clsBgLine">
																<ul class="clsReplyAnswerDetails">
																{if $myobj->debate_details.is_open}
																	<li class="clsUserLinkAnswer clsNoLeftBgPadngMrgn">{$myobj->getTimeToGoFormat($myobj->debate_details.date_closed)}</li>
																{else}
																	<li class="clsUserLinkAnswer clsNoLeftBgPadngMrgn">{$LANG.debatesResponse_resolved}</li>
																{/if}

																{if (chkIsVideoAllowed('debate') and $myobj->debate_details.video_id) or (chkIsAudioAllowed('debate') and $myobj->debate_details.audio_id)}
																	<li class="clsAttachments"><span>{$LANG.common_attachments}:</span></li>
																{/if}
																{if chkIsVideoAllowed('debate') and $myobj->debate_details.video_id}
								                                   <li class="clsByCatogryQuestion clsAnswerAudioImage clsNoLeftBgPadngMrgn">
																		  <a id="{$displayDebateDetails_arr.ans_view_video.id}" href="{$displayDebateDetails_arr.ans_view_video.url}" onClick="{$myobj->getBrowser($displayDebateDetails_arr.ans_view_video.id)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusvideo1.gif" alt="{$LANG.debates_video_available}" title="{$LANG.debates_video_available}" /></a><!--</span> -->
																	</li>
																{/if}
																{if chkIsAudioallowed('debate') and $myobj->debate_details.audio_id}
								                                   <li class="clsByCatogryQuestion clsAnswerAudioImage">
																		  <a id="{$displayDebateDetails_arr.ans_view_audio.id}" href="{$displayDebateDetails_arr.ans_view_audio.url}" onClick="{$myobj->getBrowser($displayDebateDetails_arr.ans_view_audio.id)}"><img src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/root/images/{$CFG.html.stylesheet.screen.default}/icon-qusaudio1.gif" alt="{$LANG.debates_audio_available}" title="{$LANG.debates_audio_available}" /></a><!--</span> --></li>
																{/if}
                                                               </ul>
															</div>
														<div class="clsClearfix clsUserSubLinks">
															<div id="selDebateUserDetails" class="clsUserLinkBy clsNoLeftBgPadngMrgn">
																{$displayDebateDetails_arr.showDebateCategoryName}
															</div>
															<div class="clsNoBorder clsForumAuthor clsDebateCreater">
																<div class="clsUserLinkBy">{$LANG.debatesResponse_asked_by}</div>
																{if isUserImageAllowed()}
																	<div class="clsUserLinkImage">
																	<span class="clsImageBorder">
																	{$myobj->displayProfileImage($myobj->debate_details, 'tiny', false, false)}
																	</span>
																	</div>
																{/if}
																<div class="clsUserLinkName clsNoLeftBgPadngMrgn">
																<a href="{$displayDebateDetails_arr.myanswers.url}">{$displayDebateDetails_arr.asked_by_manual}</a>
																</div>
															</div>
															<div class="clsNoBorder clsDebateTime clsUserLinkDate">
															{$myobj->getTimeDiffernceFormat($myobj->debate_details.date_asked)}
															<a href="#" id="{$displayDebateDetails_arr.anchor}"></a>
																</div>
															</div>
														</div>
													</div>
														</div>
													</div>
												</div>
                                                     <div class="clsClearfix clsBookMarkContainer">
                                                        <ul class="clsInnerOptions">
                                                        {if $myobj->debate_details.is_open AND $CFG.admin.abuse_debates.allowed AND $myobj->debate_details.user_id != $CFG.user.user_id}
                                                         {if isMember()}
                                                              {if $myobj->chkIsDebateAbusedAlready($myobj->debate_details.debate_id)}
                                                                    <li class="clsAbusedDebate clsReportAbuseDetails">{$LANG.already_abused_debateResponse}</li>
                                                               {else}
                                                                    <li class="clsReportAbuseDetails"><a href="{$displayDebateDetails_arr.debatesresponse.url}" onClick="abuseContent('abuseDebate', '{$myobj->debate_details.debate_id}', '{$displayDebateDetails_arr.anchor}', '{$LANG.confirm_abuse_debate_message}'); return false;">{$LANG.debatesResponse_report_abuse}</a></li>
                                                                {/if}
                                                            {else}
                                                              <li class="clsReportAbuseDetails"><a href="{$displayDebateDetails_arr.login.url}" class="lightwindow">{$LANG.debatesResponse_report_abuse}</a></li>
                                                            {/if}
                                                         {/if}
			                                           	 {if $CFG.admin.email_to_friend.allowed}
			                                               {if isMember()}
			                                                    <li class="clsEmailToFriends"> <span><a id="email_debates" href="{$displayDebateDetails_arr.emaildebates.url}" onClick="{$myobj->getBrowser('email_debates')}">{$LANG.debatesResponse_email_to_friends}</a> </span></li>
			                                                {else}
			                                                    <li class="clsEmailToFriends"><a href="{$displayDebateDetails_arr.emaildebates.url}" class="lightwindow">{$LANG.debatesResponse_email_to_friends}</a></li>
			                                               {/if}
			                                             {/if}
                                                           {if $CFG.admin.debates_favorite.allowed}
                                                               <li id="selShowFavoriteText_Debate_{$myobj->getFormField('qid')}" class="clsAddtoFav clsBackgroundNone">
                                                                    {if isMember()}
                                                                       {if $myobj->isFavoriteContent($myobj->getFormField('qid'), 'Debate')}
                                                                           <a class="clsFavourite" href="{$displayDebateDetails_arr.debateresponse_favorite_content.url}" onClick="toggleFavorites('{$CFG.site.relative_url}favoriteAnswers.php', 'cid={$myobj->getFormField('qid')}&amp;ctype=Debate', 'selShowFavoriteText_Debate_{$myobj->getFormField('qid')}'); return false;">{$LANG.debateResponse_remove_favorites}</a>
                                                                       {elseif $myobj->debate_details.user_id != $CFG.user.user_id}
                                                                           <a class="clsFavourite" href="{$displayDebateDetails_arr.debateresponse_favorite_content.url}" onClick="toggleFavorites('{$CFG.site.relative_url}favoriteAnswers.php', 'cid={$myobj->getFormField('qid')}&amp;ctype=Debate', 'selShowFavoriteText_Debate_{$myobj->getFormField('qid')}'); return false;">{$LANG.debateResponse_add_to_favorites}</a>
                                                                       {/if}
                                                                   {else}
                                                                        <a href="{$displayDebateDetails_arr.debateresponse_favorite_content.url}" class="lightwindow">{$LANG.answers_add_to_favorites}</a>
                                                                   {/if}
                                                               </li>
                                                           {/if}
                                                           {if $myobj->debate_details.user_id == $CFG.user.user_id and $myobj->isDebatesOpen()}
                                                              {if $CFG.admin.debate.edit}
                                                                  <li class="clsQusetionEdit">
                                                                   <a href="{$displayDebateDetails_arr.debate_edit.url}">{$LANG.debatesResponse_edit_debate}</a>
                                                                  </li>
                                                              {/if}
                                                             {if $CFG.admin.debate.delete}
                                                                <li class="clsQusetionDelete clsBackgroundNone">
                                                                 <a href="{$displayDebateDetails_arr.debate_delete.url}" onClick="doActionOnQuestion('delete', '{$displayDebateDetails_arr.anchor}', '{$LANG.confirm_delete_message}'); return false;">{$LANG.debatesResponse_delete_debate}</a>
                                                                </li>
                                                             {/if}
                                                         	{/if}
                                                        </ul>
                                                        <div class="clsBookmarks">
                                                            {if $CFG.admin.debate.bookmarking}
                                                                {if $CFG.admin.debate.addthis}
                                                                        {$myobj->addThisOption()}
                                                                {else}
                                                                    {$myobj->populateBookmarkOptions($displayDebateDetails_arr.bookmark_url, $myobj->debate_details.subject)}
                                                                {/if}
                                                            {/if}
                                                       </div>
                                                     </div>
                                                   </td>
                                                  </tr>
                                               </table>
                                            </div>
                                           </div>
                                          </div>
                                         </div>
                                        </div>
                                       </div>
                                      </div>
                                     </div>
                                    </div>
                            {/if}
                        {/if}

                        {if $myobj->isShowPageBlock('form_answers')}
                            <div id="selPostResponse" class="clsMargintop25">
                                {*getResponseCommentShow starts here*}
                                {if isMember() and $myobj->isDebatesOpen() and $myobj->isAlreadyPosted() and $CFG.user.user_id != $myobj->debate_details.user_id}
                                        <div id="selResponseDisplay">
                                            <form name="form_response" id="frm_response" method="post" action="{$getDebateResponses_arr.getResponseCommentShow_arr.debateUrl}">
                                                <table cellspacing="0" cellpading="0" width="100%">
                                                    {$myobj->populateHidden($getDebateResponses_arr.getResponseCommentShow_arr.hidden_arr)}
                                                        <tr>
                                                            <td width="49%">
                                                             <div class="clsVoteForIt">{$LANG.iam_for_it}</div>
                                                              <div class="clsDebateTextMiddle">
                                                               <div class="clsDebateTextLeft">
                                                                <div class="clsDebateTextRight">
                                                                 <textarea  maxlength="{$CFG.admin.responses.limit}" class="clsCommentItTextBox" name="for" id="for" rows="5" cols="10"  onFocus="updatelength(this);" onKeyUp="updatelength(this);" tabindex="{smartyTabIndex}"></textarea>
                                                                </div>
                                                                </div>
                                                               </div>
                                                                <p>{$myobj->getFormFieldErrorTip('for')}</p>
                                                            </td>
                                                            <td width="1%">&nbsp;</td>
                                                            <td width="50%">
                                                             <div class="clsVoteAgainstIt">{$LANG.iam_Against_it}</div>
                                                              <div class="clsDebateTextMiddle">
                                                               <div class="clsDebateTextLeft">
                                                                <div class="clsDebateTextRight">
                                                                 <textarea  maxlength="{$CFG.admin.responses.limit}" class="clsCommentItTextBox" name="against" id="against" rows="5" cols="10"  onFocus="updatelength(this, 'ss1');" onKeyUp="updatelength(this, 'ss1');" tabindex="{smartyTabIndex}"></textarea>
                                                                 </div>
                                                                </div>
                                                               </div>
                                                                <p>{$myobj->getFormFieldErrorTip('against')}</p>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td width="51%" class="clsZeroColour">
                                                             {$LANG.debatesResponse_total_charaters_entered} <span id="ss">0 (Limit {$CFG.admin.responses.limit})</span>
                                                            </td>
                                                            <td width="1%">&nbsp;</td>
                                                            <td width="49%" class="clsZeroColour">
                                                             {$LANG.debatesResponse_total_charaters_entered} <span id="ss1">0 (Limit{$CFG.admin.responses.limit})</span>
                                                            </td>
                                                        </tr>
                                                        <tr>
                                                            <td><div id='responseFor' style="display: block;">
                                                             <div class="clsDebateSubmitRight">
                                                              <div class="clsDebateSubmitLeft">
                                                               <input type="submit" onclick="showButton('responseAgainst');" class="clsSubmitButton" name="for_submit" id="submit" value="{$LANG.debatesResponse_submit_debate}"></div></div>
                                                              <div class="clsDebateCancelRight">
                                                               <div class="clsDebateCancelLeft">
                                                                <input type="button" id="reset" value="{$LANG.common_reset}" class="clsCancelButton" onclick="clearAndFocus(document.getElementById('for'), document.getElementById('ss'));" /></div></div>
                                                                </div></td>
                                                            <td width="1%">&nbsp;</td>
                                                            <td><div id='responseAgainst' style="display: block;">
                                                            <div class="clsDebateSubmitRight">
                                                             <div class="clsDebateSubmitLeft">
                                                              <input type="submit" onclick="showButton('responseFor');" class="clsSubmitButton" name="against_submit" id="submit" value="{$LANG.debatesResponse_submit_debate}"></div></div>
                                                            <div class="clsDebateCancelRight">
                                                             <div class="clsDebateCancelLeft">
                                                             <input type="button" class="clsCancelButton" id="reset" value="{$LANG.common_reset}" onclick="clearAndFocus(document.getElementById('against'),document.getElementById('ss1'));" /></div></div>

                                                            </div></td>
                                                        </tr>
                                                        <tr>
                                                            <td colspan="2"></td>
                                                        </tr>
                                                </table>
                                            </form>
                                            {literal}
                                                <!-- live validation for response -->
                                                <script language="javascript" type="text/javascript">
                                                    //needLiveValidation('for',Array('Presence'));
                                                    //needLiveValidation('against',Array('Presence'));
                                                </script>
                                                <!-- live validation end here -->
                                            {/literal}
                                        </div>
                                 {/if}
                                {*getResponseCommentShow ends here*}
                            </div>
                            <div id="selDebateResponseDetails">
                                    {if $myobj->getDebateResponseAuthority()}
                                          <div class="clsFirstQuestionAnswer">
                                            <div class="clsFirstQuestion"><span><a class="clsNoLink" href="{$myobj->getCurrentUrl()}" onclick="return false;">{$myobj->getDebateResponseAuthority()}</a></span></div>
                                          </div>
                                    {/if}

                                    {if !isMember() AND $myobj->debate_details.total_responses == 0 AND $myobj->isDebatesOpen()}
                                          <div class="clsFirstQuestionAnswer">
                                            <div class="clsFirstQuestion"><span><a href="{$getDebateResponses_arr.login_debateResponse.url}" class="lightwindow">{$LANG.be_the_first_to_answer}</a></span></div>
                                          </div>
                                    {/if}
                                          {if $myobj->getDebateTotalCount()}
                                          {php}setTemplateFolder('general/', 'anova');{/php}
                                           <div id="selDebateResponses">
                                            <!-- Debate percentage -->
                                            <div class="clsClearfix clsMargintop25">
                                             <div class="clsDebateFor">
                                              <div class="lbdebatefor">
                                                <div class="rbdebatefor">
                                                  <div class="bbdebatefor">
                                                    <div class="blcdebatefor">
                                                      <div class="brcdebatefor">
                                                        <div class="tbdebatefor">
                                                          <div class="tlcdebatefor">
                                                            <div class="trcdebatefor">
                                                              <div class="clsClearfix">
                                                               <div id="selDebatePercentage">
                                                                 <div id="selForTitle">
                                                                   <div class="clsForTitle">{$LANG.debatesResponse_for} ({$myobj->debate_for}%)</div>
                                                                 </div>
                                                                 <div id="selForsResponses">
                                                                    {if $myobj->debate_details.total_againsts > $myobj->debate_details.total_fors}
                                                                        {assign var=displayDebateResponse_arr value=$getDebateResponses_arr.displayForResponse.result}
                                                                    {else}
                                                                        {assign var=displayDebateResponse_arr value=$getDebateResponses_arr.displayDebateResponse_fors_arr}
                                                                    {/if}
                                                                    {include file='../general/displayDebateResponse.tpl'}
                                                                 </div>
                                                               </div>
                                                              </div>
                                                             </div>
                                                           </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                             </div>

                                             <div class="clsAgainst">
                                              <div class="lbagainst">
                                                <div class="rbagainst">
                                                  <div class="bbagainst">
                                                    <div class="blcagainst">
                                                      <div class="brcagainst">
                                                        <div class="tbagainst">
                                                          <div class="tlcagainst">
                                                            <div class="trcagainst">
                                                              <div class="clsClearfix">
                                                               <div id="selDebatePercentage">
                                                                 <div id="selAgainstTitle">
                                                                   <div class="clsAgainstTitle">{$LANG.debatesResponse_against} ({$myobj->debate_againsts}%)</div>
                                                                 </div>
                                                               </div>
                                                               <div id="selAgaintsResponses">
                                                                    {if $myobj->debate_details.total_againsts > $myobj->debate_details.total_fors}
                                                                        {assign var=displayDebateResponse_arr value=$getDebateResponses_arr.displayDebateResponse_againsts_arr}
                                                                    {else}
                                                                        {assign var=displayDebateResponse_arr value=$getDebateResponses_arr.displayAgainstResponse_arr.result}
                                                                    {/if}
                                                                    {include file='../general/displayDebateResponse.tpl'}
                                                                </div>
                                                             </div>
                                                           </div>
                                                        </div>
                                                      </div>
                                                    </div>
                                                  </div>
                                                </div>
                                              </div>
                                             </div>
                                           </div>
                                            </div>
                                           </div>
                                                {/if}
                                           </div>

                            {if $CFG.admin.navigation.bottom}
                                {include file='../general/pagination.tpl'}
                            {/if}
                        {/if}

                        {if $myobj->isShowPageBlock('form_add')}
                            {$myobj->postAnswersForm('main')}
                        {/if}
        			 </div>
                   </div>
                 </div>
               </div>
             </div>
           </div>
         </div>
       </div>
     </div>
    </div>
</div>
{literal}
<script type="text/javascript">
function clearAndFocus( el,e2 )
	{
		 var b= '';
		 el.value = '';
	  	 var a = e2.firstChild.data;
		 b = (a.split("("));
		 b[0] = 0;
		 e2.firstChild.data = b[0] + ' (' +b[1];
		 el.focus();

    }
</script>
{/literal}