LeftPosition=(screen.width)?(screen.width-550)/2:100;
TopPosition=(screen.height)?(screen.height-600)/2:100;
LgTopPosition=(screen.height)?(screen.height-700)/2:100;
SmTopPosition=(screen.height)?(screen.height-500)/2:100;

var popupLinkConfig = new Array;
popupLinkConfig["popup"] = new Array ( "standard", "width=550,height=600,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no,top="+TopPosition+",left="+LeftPosition);
popupLinkConfig["popupLg"] = new Array ( "standard", "width=550,height=700,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no,top="+LgTopPosition+",left="+LeftPosition);
popupLinkConfig["popupSm"] = new Array ( "standard", "width=550,height=500,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no,top="+SmTopPosition+",left="+LeftPosition);
popupLinkConfig["popupExLg"] = new Array ( "standard", "width=570,height=600,scrollbars=yes,resizable=no,status=no,toolbar=no,location=no,menubar=no,top="+TopPosition+",left="+LeftPosition);
popupLinkConfig["popupMd"] = new Array ( "standard", "width=550,height=610,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no,top="+TopPosition+",left="+LeftPosition);
popupLinkConfig["popupVd"] = new Array ( "standard", "width=353,height=343,scrollbars=no,resizable=no,status=no,toolbar=no,location=no,menubar=no,top="+SmTopPosition+",left="+LeftPosition);
/*popupLinkConfig["popup"]    = new Array ( "standard", "width=550,height=600,scrollbar=no,menubar=no,top="+TopPosition+",left="+LeftPosition", "center");
popupLinkConfig["glossary"] = new Array ( "help", "width=550,height=350,resizable=yes,top="+TopPosition+",left="+LeftPosition");*/



// ==========================================================================
window.onload = initPage;  
// Note: Make sure that no other javscripts assign a fuction to window.onload
// There can be only one function tied to window.onload at a time.

function initPage() {
  initPopupLinks();
  // place here any other code you wish to run when the page loads.
}

function initPopupLinks()
{
  if (!document.getElementsByTagName) return true;
  var pageLinks = document.getElementsByTagName("a");
  for (var i = 0; i < pageLinks.length; i++) 
  {
    if (((pageLinks[i].className != null) && 
         (pageLinks[i].className != "")) ||
        ((pageLinks[i].parentNode.className != null) && 
         (pageLinks[i].parentNode.className != "")))
    {
      var linkClass = " " + pageLinks[i].className + " ";
      if ((linkClass == "  ") && (pageLinks[i].parentNode.className != ""))
      {
        linkClass = " " + pageLinks[i].parentNode.className + " ";
      }
      for (var theKey in popupLinkConfig) 
      {
        if (linkClass.indexOf(" " + theKey + " ") > -1)
        {
          if ((pageLinks[i].target == "") || (pageLinks[i].target == null))
          {
            pageLinks[i].target = (popupLinkConfig[theKey][0] != "") ? popupLinkConfig[theKey][0] : theKey;
          }
          pageLinks[i].settings = popupLinkConfig[theKey][1];
          pageLinks[i].onclick = popUp;
        }
      }
    }
  }
  return true;
}

function popUp()
{
  newWin = window.open(this.href, this.target, this.settings);
  newWin.focus();
  return false;
}