{if $myobj->isShowPageBlock('answer_rating')}
    <div class="blctitle">
        <div class="brctitle">
        <div class="tlctitle">
        <div class="trctitle">
            <p class="clsRatingImg">
            <span class="clsRateStars">{$LANG.your_rating}
            	{foreach key=anrStartKey item=anrStartValue from=$myobj->answer_rating.addAnswerRating.start}
                    <img id="rate{$anrStartValue.inc}" title="{$anrStartValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif" alt="{$anrStartValue.inc}" onMouseOver="mouseOverAnswers({$anrStartValue.inc}, {$myobj->answer_rating.addAnswerRating.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->answer_rating.addAnswerRating.start_count});" onClick="getRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=answers&aid={$myobj->getFormField('aid')}&uid={$CFG.user.user_id}&rating={$anrStartValue.pointer}&id_cnt={$myobj->getFormField('id_cnt')}', 'selAnswersRatingContent{$myobj->getFormField('id_cnt')}');" />
                {/foreach}
                {foreach key=anrEndKey item=anrEndValue from=$myobj->answer_rating.addAnswerRating.end}
                    <img id="rate{$anrEndValue.inc}" title="{$anrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$anrEndValue.inc}" onMouseOver="mouseOverAnswers({$anrEndValue.inc}, {$myobj->answer_rating.addAnswerRating.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->answer_rating.addAnswerRating.start_count});" onClick="getRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=answers&aid={$myobj->getFormField('aid')}&uid={$CFG.user.user_id}&rating={$anrEndValue.pointer}&id_cnt={$myobj->getFormField('id_cnt')}', 'selAnswersRatingContent{$myobj->getFormField('id_cnt')}');" />
                {/foreach}

			</span>
			<span class="clsRateScores">{$LANG.average_rating}
				 <span class="clsScore">{$myobj->answer_rating.addAnswerRating.avg_rating} / {$myobj->answer_rating.addAnswerRating.rating_count}</span>
				 {$LANG.ratings}
			</span>
            </p>
            </div>
            </div>
          </div>
        </div>
{/if}

{if $myobj->isShowPageBlock('question_rating')}
    <div class="blctitle">
        <div class="brctitle">
        <div class="tlctitle">
        <div class="trctitle">
            <p class="clsRatingImg">
            <span class="clsRateStars">{$LANG.your_rating}

			{foreach key=aqrStartKey item=aqrStartValue from=$myobj->question_rating.addQuestionRating.start}
            	<img id="rate{$aqrStartValue.inc}" title="{$aqrStartValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-ratehover.gif" alt="{$aqrStartValue.inc}" onMouseOver="mouseOverAnswers({$aqrStartValue.inc}, {$myobj->question_rating.addQuestionRating.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->question_rating.addQuestionRating.start_count})" onClick="getQuestionRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=question&qid={$myobj->getFormField('qid')}&uid={$CFG.user.user_id}&rating={$aqrStartValue.pointer}', 'selQuestionRatingContent');" />
            {/foreach}
            {foreach key=aqrEndKey item=aqrEndValue from=$myobj->question_rating.addQuestionRating.end}
	            <img id="rate{$aqrEndValue.inc}" title="{$aqrEndValue.title}" src="{$CFG.site.url}design/templates/{$CFG.html.template.default}/images/icon-rate.gif" alt="{$aqrEndValue.inc}" onMouseOver="mouseOverAnswers({$aqrEndValue.inc}, {$myobj->question_rating.addQuestionRating.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->question_rating.addQuestionRating.start_count});" onClick="getQuestionRatingDetails('{$CFG.site.relative_url}ratingAnswer.php', 'action=question&qid={$myobj->getFormField('qid')}&uid={$CFG.user.user_id}&rating={$aqrEndValue.pointer}', 'selQuestionRatingContent');" />
            {/foreach}

			</span>
		<span class="clsRateScores">{$LANG.average_rating}

		<span class="clsScore">{$myobj->question_rating.addQuestionRating.avg_rating} / {$myobj->question_rating.addQuestionRating.rating_count}</span>
		 {$LANG.ratings}
		</span>
            </p>
            </div>
            </div>
          </div>
        </div>
{/if}

{if $myobj->isShowPageBlock('blog_rating')}
        <div class="blctitle">
            <div class="brctitle">
                <div class="tlctitle">
                    <div class="trctitle">
                        <p class="clsRatingImg">
                            <span class="clsRateStars">
                                {$LANG.your_rating}
                                {foreach key=inc item=value from=$myobj->blogs.addBlogRating.i}
                                     <img id="rate{$value.inc}" title="{$value.ratingsTitle}" src="{$value.img_src}" alt="{$value.pointer}" onMouseOver="{$value.mouseOverAnswers}" onMouseOut="{$value.mouseOutAnswers}" onClick="{$value.onclick}" />
                                {/foreach}
                                {foreach key=inc item=value from=$myobj->blogs.addBlogRating.j}
                                    <img id="rate{$value.jnc}" title="{$value.ratingsTitle1}" src="{$value.img_src1}" alt="{$value.pointer}" onMouseOver="{$value.mouseOverAnswers1}" onMouseOut="{$value.mouseOutAnswers1}" onClick="{$value.onclick1}" />
                                {/foreach}
                            </span>
                            <span class="clsRateScores">
                                {$LANG.average_rating}
                                <span class="clsScore">
                                {$myobj->blogs.addBlogRating.rating} / {$myobj->blogs.addBlogRating.rating_count}
                                 </span>
                                {$LANG.ratings}
                            </span>
                        </p>
                    </div>
                </div>
             </div>
        </div>
{/if}