<!--


var section = new Array ("Home", "Loans", "Rates", "Products", "ContactUs", "News", "AboutUs");
var myLink = "";
var mySection = "";
var i;
var pcuLink       = "https://mol.usersonlnet.com/asp/USERS/Common/Login/NetLogin.asp";
var pcuIFrameLink = "https://molokaicfcu.online-cu.com/ISuite5/Features/Auth/MFA/IFrameLoginMFA.aspx";
var pcuSelfEnroll = "https://mol.usersonlnet.com/asp/USERS/Common/SelfEnrollment/SelfEnrollmentDisclosure.asp";
var pcuResetPWD   = "https://mol.usersonlnet.com/asp/USERS/Common/Login/ResetPassword.asp";
var activeSection = "";

function myPreloadImages() {
  preloadImages("/graphics/buttons/AboutUsButton.jpg","/graphics/buttons/AboutUsButtonClick.jpg","/graphics/buttons/AboutUsButtonOver.jpg","/graphics/buttons/ContactUsButton.jpg","/graphics/buttons/ContactUsButtonClick.jpg","/graphics/buttons/ContactUsButtonOver.jpg","/graphics/buttons/HomeButton.jpg","/graphics/buttons/HomeButtonClick.jpg","/graphics/buttons/HomeButtonOver.jpg","/graphics/buttons/LoansButton.jpg","/graphics/buttons/LoansButtonClick.jpg","/graphics/buttons/LoansButtonOver.jpg","/graphics/buttons/NewsButton.jpg","/graphics/buttons/NewsButtonClick.jpg","/graphics/buttons/NewsButtonOver.jpg","/graphics/buttons/ProductsButton.jpg","/graphics/buttons/ProductsButtonClick.jpg","/graphics/buttons/ProductsButtonOver.jpg","/graphics/buttons/RatesButton.jpg","/graphics/buttons/RatesButtonClick.jpg","/graphics/buttons/RatesButtonOver.jpg");
}

function preloadImages() { //v3.0
  var d=document; if(d.images){ if(!d.p) d.p=new Array();
    var i,j=d.p.length,a=preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.p[j]=new Image; d.p[j++].src=a[i];}}
}

function findObj(n, d) { //v4.01
  var p,i,x;  if(!d) d=document; if((p=n.indexOf("?"))>0&&parent.frames.length) {
    d=parent.frames[n.substring(p+1)].document; n=n.substring(0,p);}
  if(!(x=d[n])&&d.all) x=d.all[n]; for (i=0;!x&&i<d.forms.length;i++) x=d.forms[i][n];
  for(i=0;!x&&d.layers&&i<d.layers.length;i++) x=findObj(n,d.layers[i].document);
  if(!x && d.getElementById) x=d.getElementById(n); return x;
}

function swapImgRestore() { //v3.0
  var i,x,a=document.sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function swapImage() { //v3.0
  var i,j=0,x,a=swapImage.arguments; document.sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=findObj(a[i]))!=null){document.sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}

function makePCU () {
  //Main PCU iFrame
  document.write ("<div style=\"position: absolute; left: 0px; top: 199px; z-index: 100; width: 210px;  display: inline;\">");
  document.write ("  <div style=\"position: absolute; left: 0px; top: 0px\">");
  document.write ("<br>");
  document.write ("    <iframe src='" + pcuIFrameLink + "' height='100%' width='210px' scrolling='no' frameborder='0' style='overflow: hidden;'>Your browser does not support IFrames.  Please upgrade your browser.</iframe>");
  document.write ("  </div>");
//  document.write ("  <div style=\"position: absolute; background-color: white; width: 130px; height: 40px; top: 75px; left: 95px; \">");
//  document.write ("    &nbsp;");
//  document.write ("    <a style=\"font-size: 10pt; \"href=\"" + pcuSelfEnroll + "\">Enroll now!</a><br>");
//  document.write ("    &nbsp;");
//  document.write ("    <a style=\"font-size: 10pt; \"href=\"" + pcuResetPWD + "\">Forgot password</a>");
//  document.write ("  </div>");
  if (navigator.appName == "Netscape") {
    document.write ("  <div style=\"position: absolute; background-color: white; width: 79px; height: 58px; top: 115px; left: 0px;\"></div>");
    document.write ("  <div style=\"position: absolute; background-color: white; width: 151px; height: 58px; top: 115px; left: 79px;\"><a href='https://molokaicfcu.online-cu.com/ISuite5/Features/Auth/SelfEnrollment/SelfEnrollmentDisclosure.aspx'><span style='font-size:9pt; color:#000000;'><font color='black'>Sign up now!</font></span></a></div>");
  } else {
    document.write ("  <div style=\"position: absolute; background-color: white; width: 77px; height: 58px; top: 115px; left: 0px;\"></div>");
    document.write ("  <div style=\"position: absolute; background-color: white; width: 153px; height: 58px; top: 115px; left: 77px;\"><a href='https://molokaicfcu.online-cu.com/ISuite5/Features/Auth/SelfEnrollment/SelfEnrollmentDisclosure.aspx'><span style='font-size:9pt; color:#000000;'><font color='black'>Sign up now!</font></span></a></div>");
  }
  document.write ("  <div style=\"position: absolute; top: 130px; left: 0px;\"><img src=\"/graphics/leafBorderBottom.gif\"></div>");
  document.write ("  <div style=\"background-color: white; position: absolute; top: -20px; left: 202px;\"><img src=\"/graphics/leafBorderRight.gif\"></div>");
  document.write ("</div>");

  //Green Curve
  document.write ("<div style=\"position: absolute; left: 0px; top: 173px; z-index: 101; width: 200px;\"><img src=\"/graphics/header/greenCurvePCU.gif\"></div>");
}


function makeTopNavigation (activeSection, backgroundColor) {
  this.activeSection = activeSection;



  document.write ("<table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"128px\" style=\"background-color: " + backgroundColor + ";\">");
  document.write ("  <tr style=\"background-image: url(/graphics/leafTile.gif); background-position: top left; background-repeat: repeat-x;\">");
  document.write ("    <td width=\"1000px\">");
  document.write ("      <table cellpadding=\"0\" cellspacing=\"0\" width=\"1000px\" height=\"128px\">");
  document.write ("        <tr><td>&nbsp</td></tr>");
  document.write ("      </table>");
  document.write ("    </td><td rowspan=\"2\" style=\"background-image: url(/graphics/leafTile1.gif); background-position: bottom left; background-repeat: repeat-x;\">");
  document.write ("      <table cellpadding=\"0\" cellspacing=\"0\" width=\"100%\" height=\"128px\">");
  document.write ("        <tr><td>&nbsp</td></tr>");
  document.write ("      </table>");
  document.write ("    </td>");
  document.write ("  </tr><tr style=\"background-color: " + backgroundColor + "; background-image: url(/graphics/leafTile2.gif); background-position: bottom left; background-repeat: repeat-x;\">");
  document.write ("    <td align=\"left\">");
  document.write ("      <table cellpadding=\"0\" cellspacing=\"0\" width=\"1000px\" height=\"45px\" style=\"background-color: " + backgroundColor + ";\">");
  document.write ("        <tr>");


                            for (i = 0; i <= section.length - 1; i++) {
                              mySection = section [i];
                              if (i == 0) { myLink = "/index.html"; } else {myLink = "/" + mySection + "/index.html"; }
                              if (activeSection == mySection) {
                                if(activeSection == "Home") {
                                  document.write ("<td><img src=\"/graphics/buttons/HomeButton.jpg\"></td>");
                                } else {
                                  document.write ("<td><a href=\"" + myLink + "\" onClick=\"swapImage('" + mySection + "','','/graphics/buttons/" + mySection + "ButtonClick.jpg',1);\"><img src=\"/graphics/buttons/" + mySection + "ButtonOver.jpg\" name=\"" + mySection + "\"  border=\"0\" id=\"" + mySection + "\"></a></td>");
                                }
                              } else {
                                document.write ("<td><a href=\"" + myLink + "\" onMouseOut=\"swapImgRestore();\" onMouseOver=\"swapImage('" + mySection + "','','/graphics/buttons/" + mySection + "ButtonOver.jpg',1)\" onClick=\"swapImage('" + mySection + "','','/graphics/buttons/" + mySection + "ButtonClick.jpg',1);\"><img src=\"/graphics/buttons/" + mySection + "Button.jpg\" name=\"" + mySection + "\"  border=\"0\" id=\"" + mySection + "\"></a></td>");
                              }
                            }
  document.write ("      <td width=\"265\" style=\"text-align: right; background-image: url(/graphics/leafTile3.gif); background-position: bottom left; background-repeat: repeat-x;\"><div id=\"dtField\">&nbsp</div></td>");

  document.write ("        </tr>");
  document.write ("      </table>");
  document.write ("    </td>");

  document.write ("  </tr>");
  document.write ("</table>");

}


function makeFooter(activeSection, backgroundColor) {
  makeAlert ("ncua.gov", "http://www.ncua.gov");

  activeSection = activeSection;

  document.write("<table cellspacing=\"0\" width=\"100%\">");
  document.write("  <tr style=\"background-color: " + backgroundColor + ";\">");
  document.write("    <td>");
  document.write("      <img src=\"/graphics/icus.gif\">");
  document.write("    </td>");
  document.write("    <td style=\"text-align; center;\">");
  document.write("      &nbsp;&nbsp;");
  document.write("      <span style=\"font-size: 10pt; color: white;\">");

  for (i=0; i<= section.length -1; i++) {
    activeSection = section [i];
    if(activeSection == "Home"){
      document.write ("<a style=\"text-decoration:none\" href=\"/" + "index.html\"><font color=\"white\">" + activeSection + "</font></a>&nbsp&nbsp&nbsp<font color=\"white\">|</font>&nbsp&nbsp&nbsp");
    } else if(activeSection == "ContactUs") {
      document.write ("<a style=\"text-decoration:none\" href=\"/" + activeSection + "/index.html\"><font color=\"white\">Contact Us</font></a>&nbsp&nbsp&nbsp<font color=\"white\">|</font>&nbsp&nbsp&nbsp");
    } else if(activeSection == "AboutUs") {
      document.write ("<a style=\"text-decoration:none\" href=\"/" + activeSection + "/index.html\"><font color=\"white\">About Us</font></a>&nbsp&nbsp&nbsp<font color=\"white\"></font>&nbsp&nbsp&nbsp");
    } else {
      document.write ("<a style=\"text-decoration:none\" href=\"/" + activeSection + "/index.html\"><font color=\"white\">" + activeSection + "</font></a>&nbsp&nbsp&nbsp<font color=\"white\">|</font>&nbsp&nbsp&nbsp");
    }

  }

  document.write("      </span>");
  document.write("    </td>");
  document.write("    <td align=\"right\">");
  document.write("      <table border=\"0\" cellpadding=\"3\" height=\"45px\" width=\"225px\" style=\"vertical-align: middle;\">");
  document.write("        <tr>");
  document.write("          <td>");
  document.write("            <a style=\"font-size: 8pt; vertical-align: top;\" href=\"/security/privacy.html\">");
  document.write("              Privacy Notice");
  document.write("            </a>");
  document.write("          </td>");
  document.write("          <td width=\"37px\">");
  document.write("            <img src=\"/graphics/equalHousingLender2.jpg\">");
  document.write("          </td>");
  document.write("          <td width=\"82px\">");
  document.write("            <a href=\"#\" onclick=\"changeDiv('disableScreen', 'inline'); changeDiv('ncua.gov','inline')\">");
  document.write("              <img src=\"/graphics/ncua.jpg\" border=\"0\" />");
  document.write("            </a>");
  document.write("          </td>");
  document.write("        </tr>");
  document.write("      </table>");
  document.write("    </td>");
  document.write("  </tr>");
  document.write("</table>");
}

document.write ("<link rel=\"apple-touch-icon\" href=\"/apple-touch-icon.png\"/>");
//-->