{literal}
	<script language="javascript">
		function calcHeight(vars)
			{
	  			var tes = vars;
	  			var the_height = document.getElementById(tes).contentWindow.document.body.scrollHeight;
	  			document.getElementById(tes).height = the_height;
				document.getElementById(tes).contentWindow.document.body.style.backgroundColor = 'transparent';
			}
	</script>
{/literal}
<div class="clsTitleLinkRoundedCorner">
    <div class="clsClearfix">
        <div class="clsTitleLeft">
            <h2>{$LANG.mailread_page_title}</h2>
        </div>
        <div class="clsTitleRight">
            <ul class="clsTitleLink clsFloatright">
                <li class="{$myobj->displaytabs.inbox}"><span><a href="{$myobj->mailcompose.populateMailNavigation.inbox}"> {$myobj->LANG.nav_mail_inbox} ({$myobj->mailcompose.countUnReadMail.mail_count}) </a></span></li>
                <li class="{$myobj->displaytabs.sentbox}"><span><a href="{$myobj->mailcompose.populateMailNavigation.sent}"> {$myobj->LANG.nav_mail_sent} </a></span></li>
                <li class="{$myobj->displaytabs.compose}"><span><a href="{$myobj->mailcompose.populateMailNavigation.compose}"> {$myobj->LANG.nav_mail_compose} </a></span></li>
            </ul>
        </div>
    </div>
    {if $myobj->isShowPageBlock('block_form_show_message')}
        <!-- Confirmation Div -->
        <div id="selMsgConfirm" class="clsPopupAlert" style="display:none;position:absolute;">
            <form name="msgConfirmform" id="msgConfirmform" method="post" action="{$myobj->getCurrentUrl(true)}">
                <p id="confirmMessage"></p>
                <!-- clsFormSection - starts here -->
                {include file='../general/box.tpl' opt='form_top'}
                    <div class="clsFormSection">
                        <div class="clsFormRow">
                            <div class="clsFormLabelCellDefault">
                                <input type="submit" class="clsPopSubmitButton" name="confirm" id="confirm" value="{$LANG.common_confirm}" tabindex="{smartyTabIndex}" />
                                &nbsp;
                                <input type="button" class="clsPopCancelButton" name="cancel" id="cancel" value="{$LANG.common_cancel}" tabindex="{smartyTabIndex}" onclick="return hideAllBlocks();" />
                                <input type="hidden" name="action" />
                            </div>
                        </div>
                    </div>
                {include file='../general/box.tpl' opt='form_bottom'}
                <!-- clsFormSection - ends here -->
            </form>
        </div>
    {/if}
    {include file='../general/box.tpl' opt='topanalyst_top'}
        {include file='../general/information.tpl'}
        {if $myobj->isShowPageBlock('block_form_show_message')}
            <div class="clsInboxReadTbl">
                {include file='mail_message_header.tpl'}
            </div>
            <div class="clsInboxContent">
                <table class="clsInboxContenTable">
                    <tr>
                        <td>
                        	<p class="clsMailInfoTitle">{$mail_details_arr.subject}</p>
                            <p class="clsMailInfoDetails">
                                <span>
                                    {if $myobj->getFormField('folder') ne 'sent'}
                                    	{$LANG.mailread_from}
                                    {else}
                                    	{$LANG.common_to}:
                                    {/if}
                                </span>
                            	<a href="{$mail_details_arr.user_profiles_link}">{$mail_details_arr.display_user_name}</a> | {$mail_details_arr.mess_date}&nbsp;&nbsp;{$mail_details_arr.mess_time}
                            </p>
                            <div class="clsFckoverwrite">
                            	<iframe src="{$CFG.site.url}iframe.php?mid={$mail_details_arr.message_id}" id="fck{$mail_details_arr.message_id}" height="25" frameborder="0" allowtransparency="transparent" onLoad="calcHeight('fck{$mail_details_arr.message_id}');" scrolling="no">
                                </iframe>
                            </div>
                        </td></tr>
                </table>
                {include file='mail_message_header.tpl'}
            </div>
        {/if}
    {include file='../general/box.tpl' opt='topanalyst_bottom'}
</div>
