{if {$_CONF['rows']['group_info']['use_pm']} == 1}
	<script type='text/javascript'>
//<![CDATA[
    var agtbrw=navigator.userAgent.toLowerCase();
    var operaaa=(agtbrw.indexOf('opera')!=-1);
    var head="display:''";
    var folder='';
    function expandit(curobj)
    {
        if(document.getElementById(curobj))
        {
            folder=document.getElementById(curobj).style;
        }
        else
        {
            if(ns6==1||operaaa==true)
            {
                folder=curobj.nextSibling.nextSibling.style;
            }
            else
            {
                folder=document.all[curobj.sourceIndex+1].style;
            }
        }
        if (folder.display=="none")
        {
            folder.display="";
        }
        else
        {
            folder.display="none";
        }
    }
//]]>
</script>
<div id="pm_popup" style="position: absolute; left: 230px; top: 99px">
    <table border="0" cellspacing="1" class="border" width="100%">
        <tr>
            <td class="tcat">
                <span class="smallfont" style="float:right">

                    <a href="#" onclick="switchBlock('pm_popup');">{$lang['Close_window1']}</a>
                </span>
         			<a class="new_pm" href="index.php?page=pm_list&amp;list=1&amp;folder=inbox">{$lang['you_have']}
         			 {$_CONF['rows']['member_row']['unread_pm']}
         			  {$lang['new_messages']}</a>
         	</td>
        </tr>
        <tr>
            <td class="row1" align="center">
                <div class="row1">
                    <div align="center">
                        <table border="0" cellspacing="1" class="info_bar" width="100%">
                            <tr>
                                <td>
                                      <div class="r-right"> {$lang['Title_Massege']}
                                       <b> '{$Massege['title']}'</b></div>
                                     <div class="l-left"> {$lang['Sent_by']}
                                     <b>{$Massege['user_from']}</b></div>

                                    <br />
                                </td>
                            </tr>
                            <tr>
                                <td class="row2">
                                    {$Massege_text} ..
                                    <br />
                                   <div class="r-right"><a href="index.php?page=pm_show&amp;show=1&amp;id={$Massege_id}">
                                   {$lang['Read_the_message']}</a></div>
                                </td>
                            </tr>
                            <tr>
                                <td align="center">
                                       <div class="r-right">  (<a href="index.php?page=pm_show&amp;show=1&amp;id={$Massege_id}" target="_blank"><span class="smallfont">
                                       {$lang['Open_in_new_window']}</span></a>)
                                    <a href="index.php?page=pm_list&list=1&folder=inbox"></a></div>
                                    <div class="l-left"><a href="index.php?page=pm_list&list=1&folder=inbox"><span class="smallfont">{$lang['Go_To_folder_messages']}</span></a></div>

                                </td>
                            </tr>
                        </table>
                    </div>
                </div>
                <div style="margin-top:10px">
                    <form>
                        <input type="button" class="button" value="{$lang['Close_window2']}" onclick="switchBlock('pm_popup')" />
                    </form>
                </div>
            </td>
        </tr>
    </table>
</div>
{/if}
