<!-- $Id: LSWImapDockView.html,v 1.3 2004/05/06 12:33:03 helge Exp $ -->

<#DontHideAll>
<#ShowLink>
  <#MailLink><#IsActiveCond><#HasUnreadMessages><#NewMailFont><#NewMailLabel
/></#NewMailFont></#HasUnreadMessages><#NoUnreadMessages><#MailLabel
/></#NoUnreadMessages></#IsActiveCond><#IsInactiveCond><#InactiveMailFont><#InactiveMailLabel
/></#InactiveMailFont></#IsInactiveCond></#MailLink>
</#ShowLink>
      
<#HideLink>
  <#IsActiveCond>
    <#HasUnreadMessages>
      <#NewMailFont><#NewMailLabel /></#NewMailFont>
    </#HasUnreadMessages>
    <#NoUnreadMessages>
      <#ActiveMailFont><#MailLabel /></#ActiveMailFont>
    </#NoUnreadMessages>
  </#IsActiveCond>
  <#IsInactiveCond>
    <#InactiveMailFont><#InactiveMailLabel /></#InactiveMailFont>
  </#IsInactiveCond>
</#HideLink>
</#DontHideAll>

<#ShowPanelCond><#MailPanel /></#ShowPanelCond>
<script language="JavaScript">
function mailsPopUp(page, focus) {
  var width  = 250;
  var height = 100;
  var winx = 100;
  var winy = 100;
  if (screen.width) {
    winx = (screen.width-width)/2;
    winy = (screen.height-height)/2;
  }
  var parameters = 'height='+height+',width='+width+
    ',top='+winy+',left='+winx;

  if ((!window.name) || (window.name.length == 0)) 
    window.name = "OGoMainBrowserFrame";
  win = window.open(page+'&parentWindowName='+window.name, 
                    "OGoMailsPopUp", parameters);
  if (focus == true) {
    win.window.focus();
  }
  else {
    window.focus();
  }
}
</script>
<#ShowPopUp>
  <script language="JavaScript">
    mailsPopUp("<#PopUpAction />", true);
  </script>
</#ShowPopUp>
