document.body.appendChild = function(){return false;}
var intDisappearDelay = 300;
var pageLoaded = false;
var ie = navigator.userAgent.toLowerCase().indexOf("msie") >= 0;
if(navigator.userAgent.toLowerCase().indexOf("opera") >= 0){ie = false;}
var mac = navigator.platform.toLowerCase().indexOf("mac") >= 0;
function makeNavImage(name, width, height){
	this.name_on = name + "_on.gif";
	this.name_off = name + "_off.gif";
	this.width = width;
	this.height = height;
	this.newimage_on = new Image(width,height);
	this.newimage_on.src = strRelDirPath + "images/" + this.name_on;
	this.newimage_off = new Image(width,height);
	this.newimage_off.src = strRelDirPath + "images/" + this.name_off;
	if(name == "nav_checkingsavings" && strDir == "checking"){this.newimage_off.src = strRelDirPath + "images/" + this.name_on;}
	if(name == "nav_convenienceservices" && strDir == "convenience"){this.newimage_off.src = strRelDirPath + "images/" + this.name_on;}
	if(name == "nav_loansvisa" && strDir == "loans"){this.newimage_off.src = strRelDirPath + "images/" + this.name_on;}
	if(name == "nav_mortgageequities" && strDir == "mortgage"){this.newimage_off.src = strRelDirPath + "images/" + this.name_on;}
	if(name == "nav_eslcareers" && strDir == "careers"){this.newimage_off.src = strRelDirPath + "images/" + this.name_on;}
	if(name == "nav_investmentinsurance" && strDir == "investment"){this.newimage_off.src = strRelDirPath + "images/" + this.name_on;}
}
var navitems = new Array();
	navitems["nav_checkingsavings"] = new makeNavImage("nav_checkingsavings",121,32);
	navitems["nav_convenienceservices"] = new makeNavImage("nav_convenienceservices",135,32);
	navitems["nav_loansvisa"] = new makeNavImage("nav_loansvisa",85,32);
	navitems["nav_mortgageequities"] = new makeNavImage("nav_mortgageequities",123,32);
	navitems["nav_eslcareers"] = new makeNavImage("nav_eslcareers",80,32);
	navitems["nav_investmentinsurance"] = new makeNavImage("nav_investmentinsurance",148,32);
function highlight(imgId){
	imgId = 'nav_' + imgId;
	document.getElementById(imgId).src = navitems[imgId].newimage_on.src;
}
function unHighlight(imgId){
	window.status = "";
	imgId = 'nav_' + imgId;
	document.getElementById(imgId).src = navitems[imgId].newimage_off.src;
}
var intTopZIndex = 5;
function showDropDown(dropmenuID, strStatus){
	window.status = strStatus;
	highlight(dropmenuID);
	if(pageLoaded){
		var objMenu = document.getElementById(dropmenuID + "_menu");
		if(objMenu.delayhide != null){clearTimeout(objMenu.delayhide);}
		if(intTopZIndex > 98){intTopZIndex = 5;}
		intTopZIndex++;
		objMenu.style.zIndex = intTopZIndex;
		objMenu.style.visibility = "visible";
		objMenu.onmouseout = function(){delayHideMenu(objMenu);}
		objMenu.onmouseover = function(){clearHideMenu(objMenu);}
	}
}
function clearHideMenu(obj){if(obj.delayhide != "undefined"){clearTimeout(obj.delayhide);}}
function HideMenu(strId){document.getElementById(strId).style.visibility = "hidden";}
function delayHideMenu(obj){obj.delayhide = setTimeout("HideMenu('" + obj.id + "');", intDisappearDelay);}
function hideDropDown(dropmenuID){
	unHighlight(dropmenuID);
	var objMenu = document.getElementById(dropmenuID + "_menu");
	delayHideMenu(objMenu);
}
document.write("<div><img src=\""+strRelDirPath+"images/nav_leftbumper.gif\" id=\"nav_leftbumper\" alt=\"\" />");
if(strDir == "checking"){
	document.write("<a href=\""+strRelDirPath+"checking/index.html\" onmouseover=\"showDropDown(\'checkingsavings\', \'Checking and Savings\'); return true;\" onmouseout=\"hideDropDown(\'checkingsavings\');\"><img src=\""+strRelDirPath+"images/nav_checkingsavings_on.gif\" id=\"nav_checkingsavings\" alt=\"Checking and Savings\" /></a>");
}else{
	document.write("<a href=\""+strRelDirPath+"checking/index.html\" onmouseover=\"showDropDown(\'checkingsavings\', \'Checking and Savings\'); return true;\" onmouseout=\"hideDropDown(\'checkingsavings\');\"><img src=\""+strRelDirPath+"images/nav_checkingsavings_off.gif\" id=\"nav_checkingsavings\" alt=\"Checking and Savings\" /></a>");
}
if(strDir == "convenience"){
	document.write("<a href=\""+strRelDirPath+"convenience/index.html\" onmouseover=\"showDropDown(\'convenienceservices\', \'Convenience Services\'); return true;\" onmouseout=\"hideDropDown(\'convenienceservices\');\"><img src=\""+strRelDirPath+"images/nav_convenienceservices_on.gif\" id=\"nav_convenienceservices\" alt=\"Convenience Services\" /></a>");
}else{
	document.write("<a href=\""+strRelDirPath+"convenience/index.html\" onmouseover=\"showDropDown(\'convenienceservices\', \'Convenience Services\'); return true;\" onmouseout=\"hideDropDown(\'convenienceservices\');\"><img src=\""+strRelDirPath+"images/nav_convenienceservices_off.gif\" id=\"nav_convenienceservices\" alt=\"Convenience Services\" /></a>");
}
if(strDir == "loans"){
	document.write("<a href=\""+strRelDirPath+"loans/index.html\" onmouseover=\"showDropDown(\'loansvisa\', \'Loans and Visa\'); return true;\" onmouseout=\"hideDropDown(\'loansvisa\');\"><img src=\""+strRelDirPath+"images/nav_loansvisa_on.gif\" id=\"nav_loansvisa\" alt=\"Loans and Visa\" /></a>");
}else{
	document.write("<a href=\""+strRelDirPath+"loans/index.html\" onmouseover=\"showDropDown(\'loansvisa\', \'Loans and Visa\'); return true;\" onmouseout=\"hideDropDown(\'loansvisa\');\"><img src=\""+strRelDirPath+"images/nav_loansvisa_off.gif\" id=\"nav_loansvisa\" alt=\"Loans and Visa\" /></a>");
}
if(strDir == "mortgage"){
	document.write("<a href=\""+strRelDirPath+"mortgage/index.html\" onmouseover=\"showDropDown(\'mortgageequities\', \'Mortgage and Equities\'); return true;\" onmouseout=\"hideDropDown(\'mortgageequities\');\"><img src=\""+strRelDirPath+"images/nav_mortgageequities_on.gif\" id=\"nav_mortgageequities\" alt=\"Mortgage and Equities\" name=\"mortgageequities\" /></a>");
}else{
	document.write("<a href=\""+strRelDirPath+"mortgage/index.html\" onmouseover=\"showDropDown(\'mortgageequities\', \'Mortgage and Equities\'); return true;\" onmouseout=\"hideDropDown(\'mortgageequities\');\"><img src=\""+strRelDirPath+"images/nav_mortgageequities_off.gif\" id=\"nav_mortgageequities\" alt=\"Mortgage and Equities\" name=\"mortgageequities\" /></a>");
}
if(strDir == "investment"){
	document.write("<a href=\""+strRelDirPath+"investment/index.html\" onmouseover=\"showDropDown(\'investmentinsurance\', \'Investments and Insurance\'); return true;\" onmouseout=\"hideDropDown(\'investmentinsurance\');\"><img src=\""+strRelDirPath+"images/nav_investmentinsurance_on.gif\" id=\"nav_investmentinsurance\" alt=\"Investments and Insurance\" /></a>");
}else{
	document.write("<a href=\""+strRelDirPath+"investment/index.html\" onmouseover=\"showDropDown(\'investmentinsurance\', \'Investments and Insurance\'); return true;\" onmouseout=\"hideDropDown(\'investmentinsurance\');\"><img src=\""+strRelDirPath+"images/nav_investmentinsurance_off.gif\" id=\"nav_investmentinsurance\" alt=\"Investments and Insurance\" /></a>");
}
if(strDir == "careers"){
	document.write("<a href=\""+strRelDirPath+"careers/index.html\" onmouseover=\"showDropDown(\'eslcareers\', \'ESL Careers\'); return true;\" onmouseout=\"hideDropDown(\'eslcareers\');\"><img src=\""+strRelDirPath+"images/nav_eslcareers_on.gif\" id=\"nav_eslcareers\" alt=\"ESL Careers\" /></a>");
}else{
	document.write("<a href=\""+strRelDirPath+"careers/index.html\" onmouseover=\"showDropDown(\'eslcareers\', \'ESL Careers\'); return true;\" onmouseout=\"hideDropDown(\'eslcareers\');\"><img src=\""+strRelDirPath+"images/nav_eslcareers_off.gif\" id=\"nav_eslcareers\" alt=\"ESL Careers\" /></a>");
}
document.write("<img src=\""+strRelDirPath+"images/nav_rightbumper.gif\" id=\"nav_rightbumper\" alt=\"\" /></div>");
if(!(ie && mac)){
	document.write("<ul id=\"checkingsavings_menu\"><li><a href=\""+strRelDirPath+"checking/index.html\">- Checking &amp; Savings Home -</a></li><li><a href=\""+strRelDirPath+"checking/aba.html\">ABA Routing Number</a></li><li><a href=\""+strRelDirPath+"checking/atmCard.html\">ATM &amp; Check Cards</a></li><li><a href=\""+strRelDirPath+"checking/CashReserveCheckOk.html\">Cash Reserve/CheckOK</a></li><li><a href=\""+strRelDirPath+"checking/certificates.html\">Certificates</a></li><li><a href=\""+strRelDirPath+"checking/checking.html\">Checking Accounts</a></li><li><a href=\""+strRelDirPath+"checking/ira.html\">IRAs</a></li><li><a href=\""+strRelDirPath+"checking/savings.html\">Savings Accounts</a></li></ul>");
	document.write("<ul id=\"convenienceservices_menu\"><li><a href=\""+strRelDirPath+"convenience/index.html\">- Convenience Services Home -</a></li><li><a href=\""+strRelDirPath+"checking/atmCard.html\">ATM &amp; Check Cards</a></li><li><a href=\""+strRelDirPath+"convenience/autoSweep.html\">Auto Transfer/Auto Sweep</a></li><li><a href=\""+strRelDirPath+"checking/aba.html\">Direct Deposit</a></li><li><a href=\""+strRelDirPath+"infodesk/locations.html\">ESL Branch &amp; ATM Locations</a></li><li><a href=\""+strRelDirPath+"convenience/ib.html\">Internet Banking</a></li><li><a href=\""+strRelDirPath+"convenience/bp.html\">Internet Bill Pay</a></li><li><a href=\""+strRelDirPath+"convenience/onlineStatements.html\">Online Statements</a></li><li><a href=\""+strRelDirPath+"convenience/telEsl.html\">Telephone Banking (TEL-E$L)</a></li></ul>");
	document.write("<ul id=\"loansvisa_menu\"><li><a href=\""+strRelDirPath+"loans/index.html\">- Loans &amp; Visa Home -</a></li><li><a href=\""+strRelDirPath+"loans/auto.html\">Auto Loans</a></li><li><a href=\""+strRelDirPath+"convenience/autoSweep.html\">Auto Transfer/Auto Sweep</a></li><li><a href=\""+strRelDirPath+"checking/CashReserveCheckOk.html\">Cash Reserve/CheckOK</a></li><li><a href=\""+strRelDirPath+"loans/personalDebt.html#education\">Education Loans</a></li><li><a href=\""+strRelDirPath+"loans/eslVisa.html\">ESL Visa Credit Card</a></li><li><a href=\""+strRelDirPath+"mortgage/equities.html\">Home Equity Loans</a></li><li><a href=\""+strRelDirPath+"loans/personalDebt.html#home\">Home Improvement</a></li><li><a href=\""+strRelDirPath+"loans/instantLoans.html\">Instant Loans</a></li><li><a href=\""+strRelDirPath+"loans/leisureVehicle.html\">Leisure Vehicle Loans</a></li><li><a href=\""+strRelDirPath+"loans/personalDebt.html\">Personal/Debt Consolidation Loans</a></li></ul>");
	document.write("<ul id=\"mortgageequities_menu\"><li><a href=\""+strRelDirPath+"mortgage/index.html\">- Mortgage &amp; Equities Home -</a></li><li><a href=\""+strRelDirPath+"mortgage/originators.html\">Contact Consultant</a></li><li><a href=\""+strRelDirPath+"mortgage/calculators.html\">Calculators/Worksheets</a></li><li><a href=\""+strRelDirPath+"mortgage/equities.html\">Home Equity Products</a></li><li><a href=\""+strRelDirPath+"mortgage/mortgageCenter.html\">Mortgage Center</a></li><li><a href=\""+strRelDirPath+"mortgage/mortgageProcess.html\">Mortgage Process</a></li><li><a href=\""+strRelDirPath+"mortgage/mortgageProducts.html\">Mortgage Products</a></li><li><a href=\""+strRelDirPath+"mortgage/refinance.html\">Refinance</a></li></ul>");
	document.write("<ul id=\"investmentinsurance_menu\"><li><a href=\""+strRelDirPath+"investment/index.html\">- Investments &amp; Insurance Home -</a></li><li><a href=\""+strRelDirPath+"investment/annuities.html\">Annuities</a></li><li><a href=\""+strRelDirPath+"investment/consultants.html\">Consultants</a></li><li><a href=\""+strRelDirPath+"investment/contactIsllc.html\">Contact Investment Specialist</a></li><li><a href=\""+strRelDirPath+"investment/insurance.html\">Insurance</a></li></ul>");
	document.write("<ul id=\"eslcareers_menu\"><li><a href=\""+strRelDirPath+"careers/index.html\">- ESL Careers Home -</a></li><li><a href=\""+strRelDirPath+"careers/about_esl.html\">About ESL</a></li><li><a href=\""+strRelDirPath+"careers/benefits.html\">Benefits</a></li><li><a href=\"https://www.ultirecruit.com/ESL1000/jobboard/ListJobs.aspx?__VT=ExtCan\">Browse Open Jobs</a></li><li><a href=\""+strRelDirPath+"careers/cont_learning.html\">Continuous Learning</a></li><li><a href=\""+strRelDirPath+"careers/events_fairs.html\">Career Fairs &amp; Campus Events</a></li><li><a href=\""+strRelDirPath+"careers/diversity.html\">Diversity</a></li>");
		if(typeof(strEdit)!="undefined"){
				document.write("<li><a href=\"https://www.ultirecruit.com/ESL1000/jobboard/CanLogin.aspx?Page=Edit&__RT=" + strEdit + "\">Edit Your Profile</a></li>");
			}else{
				document.write("<li><a href=\"https://www.ultirecruit.com/ESL1000/jobboard/CanLogin.aspx\">Edit Your Profile</a></li>");
		}
	document.write("<li><a href=\""+strRelDirPath+"careers/fast_facts.html\">ESL Fast Facts</a></li><li><a href=\""+strRelDirPath+"careers/staffing.html\">FAQs</a></li><li><a href=\"https://www.ultirecruit.com/ESL1000/jobboard/SearchJobs.aspx\">Search Career Opportunities</a></li><li><a href=\""+strRelDirPath+"careers/working_at_esl.html\">Working at ESL</a></li>");
	
	
	
	if(strDir=="careers" && document.location.href.indexOf("ultirecruit")>=0){
		document.write("<li><a href=\"logout.aspx\">Log Out</a></li>");
	}
	document.write("</ul>");
}
window.onload = function(){
	if(ie && !mac){
		var ulDropMenus = document.getElementById("topNav").getElementsByTagName("ul");
		for (j = 0; j < ulDropMenus.length; j++){
			ulDropMenus[j].innerHTML = ("<iframe src=\"javascript: false;\" scrolling=\"no\" frameborder=\"0\" style=\"border: 1px solid black; position: absolute; top: 0; left: 0; width: 1px; height: 1px; margin: 0; padding: 0;\"></iframe>" + ulDropMenus[j].innerHTML);
			var objMagicIframe = ulDropMenus[j].firstChild;
			objMagicIframe.style.top = objMagicIframe.offsetTop-1;
			objMagicIframe.style.left = objMagicIframe.offsetLeft-2;
			objMagicIframe.style.width = ulDropMenus[j].offsetWidth;
			objMagicIframe.style.height = ulDropMenus[j].offsetHeight-1;
			objMagicIframe.style.zIndex = ulDropMenus[j].style.zIndex-1;
			objMagicIframe.style.filter = "progid:DXImageTransform.Microsoft.Alpha(style=0,opacity=0)";
		}
	}
	pageLoaded = true;
}