


//
// subroll() handles all rollovers for the second-level navigation
//

function subroll(which,status)
{	if (status)
	{  document.getElementById("submenu" + which).src = submenuOn[which].src;
	}
	else
	{  document.getElementById("submenu" + which).src = submenuOff[which].src;
	}
}



//
// image preloading and routines for buttons
//

buttonOff = new Array(10)
buttonOn = new Array(10)

for (i=0;i<10;i++)
{	buttonOff[i] = new Image
	buttonOn[i] = new Image
}

buttonOff[0].src = "/images/common/button_login.gif"
buttonOn[0].src = "/images/common/button_login_on.gif"

buttonOff[1].src = "/images/common/button_search.gif"
buttonOn[1].src = "/images/common/button_search_on.gif"

buttonOff[2].src = "/images/common/button_submit.gif"
buttonOn[2].src = "/images/common/button_submit_on.gif"

buttonOff[3].src = "/images/common/button_go.gif"
buttonOn[3].src = "/images/common/button_go_on.gif"

buttonOff[4].src = "/images/common/button_calculate.gif"
buttonOn[4].src = "/images/common/button_calculate_on.gif"

buttonOff[5].src = "/images/common/button_next.gif"
buttonOn[5].src = "/images/common/button_next_on.gif"

buttonOff[6].src = "/images/common/button_cancel.gif"
buttonOn[6].src = "/images/common/button_cancel_on.gif"

buttonOff[7].src = "/images/common/button_print.gif"
buttonOn[7].src = "/images/common/button_print_on.gif"

buttonOff[8].src = "/images/common/button_enroll.gif"
buttonOn[8].src = "/images/common/button_enroll_on.gif"

buttonOff[9].src = "/images/common/button_enrollonly.gif"
buttonOn[9].src = "/images/common/button_enrollonly_on.gif"



function buttonRoll(which,status)
{	if (status)
	{  document.getElementById("buttonImage" + which).src = buttonOn[which].src;
	}
	else
	{  document.getElementById("buttonImage" + which).src = buttonOff[which].src;
	}
}



//
// goPage() forwards user to a page from the dropdown menus
//

function goPage(url)
{	if (url != "")
	{	window.location.href = url
	}
}



//
// personalLogin() pops-up banking login window
//

function personalLogin()
{	w = 326
	h = 183
	url = "/popups/personal_login.aspx"
	
	x = Math.floor((screen.availWidth - w) / 2)
	y = Math.floor((screen.availHeight - h) / 2 )
	attribs = "width=" + w + ",height=" + h + ",left=" + x + ",top=" + y + ",scrollbars=0,resizable=0"
	login = window.open(url,"loginWindow",attribs) 
}

//
// webpayOptions() pops-up webpay options
//

function webpayOptions()
{	w = 780
	h = 465
	url = "/personal/billpay_service.aspx"
	
	x = Math.floor((screen.availWidth - w) / 2)
	y = Math.floor((screen.availHeight - h) / 2 )
	attribs = "width=" + w + ",height=" + h + ",left=" + x + ",top=" + y + ",scrollbars=1,resizable=1"
	login = window.open(url,"loginWindow",attribs) 
}


//
// leaveSite() displays confirmation window when leaving newalliance.com
//

function leaveSite(which)
{	if (which == "microsoft")
	{	answer = confirm("You are now leaving newalliancebank.com. By clicking OK, you will be directed to the Microsoft Web site.")
		if (answer)
		{	window.open("http://www.microsoft.com/windows/ie/downloads/critical/ie6sp1/default.asp")
		}
	}
	else if (which == "netscape")
	{	answer = confirm("You are now leaving newalliancebank.com. By clicking OK, you will be directed to the Netscape Web site.")
		if (answer)
		{	window.open("http://channels.netscape.com/ns/browsers/default.jsp")
		}
	}
	else if (which == "checks")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("https://reorder.harland.net/channelbroker?redirect=true")
		}
	}
	else if (which == "WindowsMedia")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.microsoft.com/windows/windowsmedia/mp10/default.aspx")
		}
	}
	else if (which == "RealPlayer")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.real.com/realsuperpass.html?type=dlrhap_bb&src=120304realhome_1_2_2_1_9_1")
		}
	}
	else if (which == "jeopardy")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.wtnh.com/Global/story.asp?S=2199768")
		}
	}
	else if (which == "SBM")
	{	exitMessage = "ATTENTION SBM CUSTOMERS: \n\n" +
		"In order to use the NewAlliance Online Banking service, you must first login here to access your accounts.\n\n" + 
		"You only have to do this once.\n\n" + 
		"If you have successfully logged in since 09/07/04, please hit 'Cancel' and use the NewAlliance Online Banking login boxes as shown here. Otherwise click 'OK'."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("https://eport1.evault.ws/nab/login.asp")
		}
	}
	else if (which == "adobe")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.adobe.com/products/acrobat/readstep2.html")
		}	
	}
	else if (which == "sipc")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.sipc.org")
		}
	}
	else if (which == "brokerage")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.fiibg.com/my/access")
		}
		
	}
	else if (which == "Check21")
	{	exitMessage = "Attention: You are leaving the NewAlliance Web Site \n\n" +
		"The links to third party Web sites are provided solely as a matter of convenience to the visitors of the NewAlliance Bank (\"Bank\") Web site. \n\n" +
		"When you use a hyperlink to visit the Web site of another person or entity, you leave the Bank's Web site. Your use of hyperlinks to the Web sites of others is at your own risk.\n\n" + 
		"The content, accuracy, and opinions expressed and other links provided by these resources are not investigated verified, monitored or endorsed by the Bank.\n\n" + 
		"The Bank has no responsibility for products and services offered through another entity's Web site.\n\n" + 
		"The Bank makes no warranties as to the operation or usefulness of other Web sites.\n\n" + 
		"Other Web site operators may collect information about you and use such information in accordance with their policies and procedures.  If you have any questions about another entity's use of your personal information, you should review that entity's privacy policies and/or ask that entity directly.  We are not responsible for another entity's use of your information.\n\n" + 
		"Click the OK button to leave NewAlliance's Web site.  Click the Cancel button to return to the previous page."

		answer = confirm(exitMessage)
		if (answer)
		{	window.open("http://www.federalreserve.gov/paymentsystems/truncation/faqs.htm")
		}
	
	
	
	}
	
	
	
}



//
// rates() displays pop-up window
//

function rates(which)
{	w = 598
	h = 400
	url = "fs/popups/rates.aspx?caller=" + which
	
	x = Math.floor((screen.availWidth - w) / 2)
	y = Math.floor((screen.availHeight - h) / 2 )
	attribs = "width=" + w + ",height=" + h + ",left=" + x + ",top=" + y + ",scrollbars=1,resizable=1"
	ratesA = window.open(url,"ratesAwin",attribs) 
}

