
//------------------------------
// Documentation can be found at
// //20714/Pork_Soda/library
//------------------------------

// 010 Configure the FI name
var selstate = 'FL';
var FIname = "Mission";
var FIOnlinename="Mission Link"
var welcomeMsg = "live";
var imageset="signon";
var setvar = "first";
//var EchoUser = "";
//var EchoPin = "";

// 020 Configure the sign off page
var signOffPage = "http://www.missionfcu.org";

// 030 Configure the frame names
var mastheadFrame = "top.Masthead";
var bodyFrame = "top.Body";
var navigationFrame = "top.Body.Navigation";
var mainFrame = "top.Body.Main";
var headerFrame = "top.Body.Main.Header";
var workspaceFrame = "top.Body.Main.WorkSpace";

// 040 Configure the home page
var homePage = "main.htm";

// 050 Configure the relative paths
var relPath = "./";
var relPathNS = "../";

// 060 Configure detection varaibles
var isNew = 0;
var isNS3 = 0;
var isNS4 = 0;
var isIE4 = 0;
var isNone = 0;
var isMac = 0;
var isWin = 0;
var isOther = 0;
var brow = ((navigator.appName) + (parseInt(navigator.appVersion)));
var sys = navigator.userAgent.toLowerCase();
// 061 Configure platform conditionals
if (sys.indexOf('mac') != -1) { isMac = 1; }
else if (sys.indexOf('win') != -1) { isWin = 1; }
else { isOther = 1; }
// 062 Configure browser conditionals
if (parseInt(navigator.appVersion) >= 5) { isNew = 1; }
else if (brow == "Netscape3") { isNS3 = 1; }
else if (brow == "Netscape4") { isNS4 = 1; }
else if (brow == "Microsoft Internet Explorer4") { isIE4 = 1; }
else { isNone = 1; }

// 070 Configure custom DOM
if (isNS4 || isIE4 || isNew) {
  docObj = (isNS4) ? "document" : "document.all";
  styleObj = (isNS4) ? "" : ".style";
}

// 080 Configure image manipulation
var mastheadImageName =  "headerImg";

// 090 Congifure timers
var ctimerValue = 600;
var timerValue0 = 600;
var timeDelay = 1500;
var xfercount = 0;

// 100 Configure the bullet images and info style
var bulletTag = "<img src='../pics/Bullet.gif' height='14' width='14'>";
var infoTag = "<h2 class='green'>Helpful Hints</h2>";

// 101 Configure the pop up file and sign on success page
var popupMailPage = "../WorkSpace/HTML_Workspace_NewMailPopUp.html";
var signOnSuccess = "../FrameSet/FS_Body_Balances.html";

// 102 Configure the ledger table rows
var tableRowOdd = "<tr bgcolor='#D7D6D2'>";
var tableRowEven = "<tr bgcolor='white'>";
var tableFooter = "<tr class='black'>";

// ***** END OF CONFIGURATION *****

var isRel
if (isNS4 || isNS3) { isRel = relPathNS; }
else { isRel = relPath; }

function loadMain() {
  if (isNS4 || isNS3) {
    location.href = homePage;
  }
  else {
    location.replace(homePage);
  }
}

if(top.location != self.location){
  top.location = self.location;
}

function openWindow() {
  popupWin = window.open(popupMailPage, 'remote', 'width=300,height=200');
  eval(bodyFrame + ".location.href = '" + signOnSuccess + "'");
}

function buttonDown(whichFrame, buttonName) {
  eval(whichFrame + ".document." + buttonName + ".src = " + whichFrame + "." + buttonName + "2.src");
}

function buttonUp(whichFrame, buttonName) {
  eval(whichFrame + ".document." + buttonName + ".src = " + whichFrame + "." + buttonName + ".src");
}

function rowClass(rownum) {
  if (((rownum + 1) % 2) < 1) { return tableRowOdd; }
  else { return tableRowEven; }
}


