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

<#DontHideAll>
<#ShowLink>
  <#MailLink><#IsActiveCond><#HasUnreadMessages><#NewMailImage /></#HasUnreadMessages><#NoUnreadMessages><#MailImage /></#NoUnreadMessages></#IsActiveCond><#IsInactiveCond><#InactiveMailImage /></#IsInactiveCond></#MailLink>
</#ShowLink>
      
<#HideLink>
  <#IsActiveCond>
    <#HasUnreadMessages>
      <#NewMailImage />
    </#HasUnreadMessages>
    <#NoUnreadMessages>
      <#MailImage />
    </#NoUnreadMessages>
  </#IsActiveCond>
  <#IsInactiveCond>
    <#InactiveMailImage />
  </#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>
