//BEGIN LINK DISCLOSURE ALERT
function linkDisclosure(linkType, ourSite, newSite, newSiteURL, newWindow ){
	switch ( linkType ) {
		//Linking to an SNB affiliate site
		case "affiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s website.\nThe products and services provided by the site you are entering are part of the SNB corporate family." );
			break;
		case "nonaffiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s website.\nAny products and services accessed through this link are not provided, endorsed or guaranteed by " + ourSite + ".  " + newSite + " may have privacy and security practices that differ from " + ourSite + "'s.  Please review " + newSite + "'s privacy and security policies." );
			break;
	}
	//end switch
	if ( confirmValue ) {
		if (newWindow != "yes") {
			document.location=newSiteURL;
		}
		else {
			window.open(newSiteURL);
		}
	}
	}

//Leaving site
function linkDisclosureAllpoint(linkType, ourSite, newSite)
{
	switch ( linkType )
	{
		//Linking to an SNB affiliate site
		case "affiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s website.\nThe products and services provided by the site you are entering are part of the SNB corporate family." );
			break;
		case "nonaffiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s website.\nAny products and services accessed through this link are not provided, endorsed or guaranteed by " + ourSite + ".  " + newSite + " may have privacy and security practices that differ from " + ourSite + "'s.  Please review " + newSite + "'s privacy and security policies." );
			break;
	}
	//end switch
	if ( !confirmValue )
	{
		return false;
	}
}

function openWindow(url, name, width, height) {
popupWin = window.open(url, name, ',width=' + width + ',height=' + height)
}

function NewWindow(mypage, pagename, w, h, scroll) {
var winl = (screen.width - w) / 2;
var wint = (screen.height - h) / 2;
winprops = 'height='+h+',width='+w+',top='+wint+',left='+winl+',scrollbars='+scroll+',resizable'
win = window.open(mypage, pagename, winprops)
if (parseInt(navigator.appVersion) >= 4) { win.window.focus(); }
}

function go()
{
  drpQuickLogin = document.quickLoginMenu.quickLogIns;
  url = drpQuickLogin.options[drpQuickLogin.selectedIndex].value;
  if (url) location.href = url;
  //location=document.quickLoginMenu.quickLogIns.options[document.quickLoginMenu.quickLogIns.selectedIndex].value;
}

function changeATMSearchBG(bool, obj){
	obj.style.backgroundImage = (bool == 0 && obj.value == "") ? 'url(/images/atmCityBG.gif)' : 'url(/images/atm_blank.gif)'; 
}


