// JavaScript Document
  /* This script and the one below may only be used on the subscriber's Web site. All other use is prohibited
   * This comment must appear where the script is used.
   * Copyright 2003 Credit Union National Association Inc.
   */
    var calcWindow;
    var left = (screen.availWidth) ? screen.availWidth - 425 : 10;
    function showCalculators(type) {
      if (calcWindow && !calcWindow.closed)
        calcWindow.close();
      switch (type) {
        case "home":
          calcWindow = window.open('http://cucalc.cuna.org/calc_index_nsh.html?sub_id=32104','calculator','HEIGHT=660,WIDTH=396,MENUBAR=0,TITLEBAR=0,SCROLLBARS=1,STATUS=0,SCREENX='+left+',LEFT='+left+',SCREENY=90,TOP=90,RESIZABLE');
          break;
        case "auto":
          calcWindow = window.open('http://cucalc.cuna.org/calc_index_nsa.html?sub_id=32104','calculator','HEIGHT=595,WIDTH=396,MENUBAR=0,TITLEBAR=0,SCROLLBARS=1,STATUS=0,SCREENX='+left+',LEFT='+left+',SCREENY=90,TOP=90,RESIZABLE');
          break;
        case "loans":
          calcWindow = window.open('http://cucalc.cuna.org/loan_basic.html?sub_id=32104','calculator','HEIGHT=560,WIDTH=396,MENUBAR=0,TITLEBAR=0,SCROLLBARS=1,STATUS=0,SCREENX='+left+',LEFT='+left+',SCREENY=90,TOP=90,RESIZABLE');
          break;
        case "savings":
          calcWindow = window.open('http://cucalc.cuna.org/calc_index_s.html?sub_id=32104','calculator','HEIGHT=560,WIDTH=396,MENUBAR=0,TITLEBAR=0,SCROLLBARS=1,STATUS=0,SCREENX='+left+',LEFT='+left+',SCREENY=90,TOP=90,RESIZABLE');
          break;
        case "s_and_l":
          calcWindow = window.open('http://cucalc.cuna.org/calc_index_nsl.html?sub_id=32104','calculator','HEIGHT=560,WIDTH=396,MENUBAR=0,TITLEBAR=0,SCROLLBARS=1,STATUS=0,SCREENX='+left+',LEFT='+left+',SCREENY=90,TOP=90,RESIZABLE');
          break;
        default:
          calcWindow = window.open('http://cucalc.cuna.org/calc_index.html?sub_id=32104','calculator','HEIGHT=660,WIDTH=396,MENUBAR=0,TITLEBAR=0,SCROLLBARS=1,STATUS=0,SCREENX='+left+',LEFT='+left+',SCREENY=90,TOP=90,RESIZABLE');
          break;
      }
      if(!calcWindow.opener)
       calcWindow.opener = window;
    }
