// Fbsloomis.com script for page functions.
function getSSL(page) {
	return "https://" + window.location.hostname + page;
}
function spawnNewWindow1()
{
	open ("/iws_help/privacy_help.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}

function popWin(url,width,height) {
	open (url,"", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=" + width + ",height=" + height);
}

function spawnNewWindow4()
{
	open ("/iws_help/security_help.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}

function spawnPatriot()
{
	open ("/mark/misc/patriotact.htm","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}

//new function for new disclosures

function disclosurePop(url, bookmark, relation){
window.open('/mark/disclosure/default.asp?url=' + url + '&bookmark=' + bookmark + '&relation=' + relation, '', 'scrollbars=no,menubar=no,resizable=1,copyhistory=1,width=500,height=325');
}

function disclosurePopUnused(url,company,relation){
window.open('/mark/disclosure/default.asp?url=' + url + '&company=' + company + '&relation=' + relation, '', 'scrollbars=no,menubar=no,resizable=1,copyhistory=1,width=500,height=325');
}

//BEGIN LINK DISCLOSURE ALERT
function siteDisclosure( linktype, ourSite, newSite, newSiteURL, newWindow ){
	switch ( linktype ) {
		// Linking to an FNNI family site
		case "affiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s Web site.\nThe products and services provided by the site you are entering are part of the First National Bank of Nebraska Corporate family." );
			break;
		case "bankcard":		
			confirmValue = confirm( "You are leaving " + ourSite + "'s Web site.\nThe products and services provided by the site you are entering are part of the First National Bank of Nebraska Corporate family.  " + newSite + " may have a different privacy policy than " + ourSite + ". Please review " + newSite + "'s privacy policy." );
			break;
		// e.g., Microsoft, Adobe, Netscape
		case "nonaffiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s Web site.\nAny products and services accessed through this link are not provided, endorsed or guaranteed by " + ourSite + ".  " + newSite + " may have a privacy policy that is different than " + ourSite + ".  Please review the " + newSite + " privacy policy." );
			break;
		// e.g., Visa
		case "strategicaffiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s Web site.\nProducts and services accessed through this link are not provided or guaranteed by " + ourSite + ". " + newSite + " may have a privacy policy that is different than " + ourSite + ".\n\nPlease review the " + newSite + " privacy policy." );
			break;
	}//end switch
	
	if ( confirmValue ) {
		if (newWindow != "yes") {
			document.location=newSiteURL;
		}//end nested if
		else {
			window.open(newSiteURL);
		}//end else
	}//end if

}//end siteDisclosure

function popTaxWin(pageName)
{
window.open( pageName, "", "width=600, height=450, menubar=no, status=no, location=no, toolbar=no, scrollbars=yes, resizable=yes");
}
function spawnNewWindowOneOfaCard()
{
	open ("http://www.oneofacard.com/generalinfo.asp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=720,height=520");
}
function spawnSecondOneOfaCard()
{
	open ("http://www.oneofacard.com/generalinfo2.asp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=720,height=520");
}
function spawnNewWindowCheck21()
{
	open ("/iws_help/substitutecheck_disclosure.htm","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=420,height=500");
}

function spawnNewWindowHelp()
{
	open ("/067/html/en/personal/faqs/tran/index.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=500");
}

function spawnNewCCWindow(bank, jumpto, applynow, customCard, plasticCode)
{
	open ("/welcome/DynamicApp?bank=" + bank + "&jumpto=" + jumpto + "&applynow_=" + applynow + "&Custom_Card=" + customCard + "&Plastic_Indicator=" + plasticCode,"", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=450");
}

function spawnNewCCTermsWindow(product, siteID) {
	var location = "/welcome/DynamicApp?jumpto=" + product + "&goterms=Y&bank=" + siteID;
	open (location, "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
}//end spawnNewPlatinumTermsWindow


function spawnNewWindowZl()
{
	open ("/mark/misc/chk_zl.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=450");
}	

function spawnNewWindowCU()
{
	open ("/welcome/jsp/contact/contactusinfo.jsp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=450");


}

function spawnNewWindowC()
{
	open ("/mark/misc/comments.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=450");


}

function spawnNewWindowATM()
{
	open ("/iwsOnline/public/atmbranch/begin.do","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=600");


}

function spawnNewWindowApp(location) {
	open (location,"", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600" );
}

function spawnNewWindowRates(location) {
	open ("http://www.1stnationalbank.com/" + location,"", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");


}

function spawnNewWindowApp2(location1, location2, location3) {
	open ("http://www.1stnationalbank.com/" + location1 + "http://wwd.1stnationalbank.com/" + location2 + "http://wwd.1stnationalbank.com/" + location3, "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
	

}

function spawnNewWindowPlat(promo, siteid) {
	open ("http://www.1stnationalbank.com/" + "welcome/Marketing?bank_promo_code=" + promo + "&siteid=" + siteid + "M&term=platinum&product=Platinum%20Edition%20Card&alignment=main&brand_img=" + "http://wwd.1stnationalbank.com/" + "/mark/images/app_img.gif&ref_url=" + "http://wwd.1stnationalbank.com/" + "welcome/jsp/products/close.jsp", "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
		
}

function spawnNewPlatinumWindow(siteID) {
	var domain = "http://www.1stnationalbank.com/";
	var term = "platinum";
	var bankPC = "VISAPV"
	var product = "Platinum%20Edition%20Visa%20Card";
	var location1 = "welcome/Marketing?siteid=" + siteID + "&term=" + term + "&bank_promo_code=" + bankPC + "&alignment=main&ref_url="
	var location2 = "welcome/jsp/products/close.jsp&product=" + product + "&brand_img="
	var location3 = "mark/images/app_img.gif"

	open (domain + location1 + domain + location2 + domain + location3, "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
}//end spawnNewPlatinumWindow


function spawnNewPlatinumTermsWindow(siteID) {
	spawnTerm("Platinum", siteID);
}//end spawnNewPlatinumTermsWindow

function spawnNewGoldTermsWindow(siteID) {
	spawnTerm("Gold", siteID);
}//end spawnNewGoldTermsWindow

function spawnNewCollegeTermsWindow(siteID) {
	spawnTerm("College", siteID);
}//end spawnNewCollegeTermsWindow

function spawnTerm(product, siteID){
	var location = "https://www.1stnationalbank.com/welcome/DynamicApp?jumpto=" + product + "&goterms=Y&bank=" + siteID;
	open (location, "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
}




function spawnNewGoldWindow(siteID) {
	var domain = "http://www.1stnationalbank.com/";
	var product = "GoldEditionVisaCard";
	var bankPC = "VISAGV"
	var location1 = "welcome/Marketing?bank_promo_code=" + bankPC + "&siteid=" + siteID + "&product=" + product + "&alignment=DynamicNationalMarketing&brand_img=";
	var location2 = "/mark/images/app_img.gif&ref_url=";
	var location3 = "welcome/jsp/products/close.jsp";

	open (domain + location1 + domain + location2 + domain + location3, "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
}
function go (location) {
	open (location,"", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=600");
}

function spawnNewCollegeWindow(siteID) {
	var domain = "http://www.1stnationalbank.com/";
	var product = "CollegeEditionVisaCard";
	var bankPC = "VISACV";
	var location1 = "welcome/Marketing?bank_promo_code=" + bankPC + "&siteid=" + siteID + "&product=" + product + "&alignment=DynamicNationalMarketing&brand_img="
	var location2 = "/mark/images/app_img.gif&ref_url="
	var location3 = "welcome/jsp/products/close.jsp"

	open (domain + location1 + domain + location2 + domain + location3, "", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=800,height=600");
}//end spawnNewPlatinumWindow

//BEGIN IMAGE ROLLOVERS
function MM_swapImgRestore() 
{ //v3.0
  var i,x,a=document.MM_sr; for(i=0;a&&i<a.length&&(x=a[i])&&x.oSrc;i++) x.src=x.oSrc;
}

function MM_preloadImages() 
{ //v3.0
  var d=document; if(d.images){ if(!d.MM_p) d.MM_p=new Array();
    var i,j=d.MM_p.length,a=MM_preloadImages.arguments; for(i=0; i<a.length; i++)
    if (a[i].indexOf("#")!=0){ d.MM_p[j]=new Image; d.MM_p[j++].src=a[i];}}
}

function MM_findObj(n, d) 
{ //v3.0
  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=MM_findObj(n,d.layers[i].document); return x;
}

function MM_swapImage() 
{ //v3.0
  var i,j=0,x,a=MM_swapImage.arguments; document.MM_sr=new Array; for(i=0;i<(a.length-2);i+=3)
   if ((x=MM_findObj(a[i]))!=null){document.MM_sr[j++]=x; if(!x.oSrc) x.oSrc=x.src; x.src=a[i+2];}
}


//BEGIN SPAWN CHILD WINDOW FOR FOOTER
function spawnNewWindow2()
{
	open ("/jcommon/policydocs/privacypolicy.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=575,height=600");
}

function spawnNewWindow3()
{
	open ("/welcome/jsp/help/security.jsp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=575,height=600");
}

//BEGIN POPUP CHILD WINDOW
function popUp(URL) {
day = new Date();
id = day.getTime();
eval("page" + id + " = window.open(URL, '" + id + "', 'toolbar=0,scrollbars=1,location=0,statusbar=0,menubar=0,resizable=1,width=500,height=500');");
}

//BEGIN LINK DISCLOSURE ALERT
function siteDisclosure( linktype, ourSite, newSite, newSiteURL, newWindow ){
	switch ( linktype ) {
		// Linking to an FNNI family 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 First National Bank of Nebraska Corporate family." );
			break;
		case "bankcard":		
			confirmValue = confirm( "You are leaving " + ourSite + "'s website.\nThe products and services provided by the site you are entering are part of the First National Bank of Nebraska Corporate family.  " + newSite + " may have a different privacy policy than " + ourSite + "'s. Please review " + newSite + "'s privacy policy." );
			break;
		// e.g., Microsoft, Adobe, Netscape
		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 a privacy policy that is different than " + ourSite + "'s.  Please review the " + newSite + " privacy policy." );
			break;
		// e.g., Visa
		case "strategicaffiliate":
			confirmValue = confirm( "You are leaving " + ourSite + "'s website.\nProducts and services accessed through this link are not provided or guaranteed by " + ourSite + ". " + newSite + " may have a privacy policy that is different than " + ourSite + "'s.\n\nPlease review the " + newSite + " privacy policy." );
			break;
	}//end switch
	
	if ( confirmValue ) {
		if (newWindow != "yes") {
			document.location=newSiteURL;
		}//end nested if
		else {
			window.open(newSiteURL);
		}//end else
	}//end if

}//end siteDisclosure

function FooterDate()
{
	var ftrDate=new Date();
	var ftrYear=ftrDate.getYear();
	if (ftrYear < 1000) {
	ftrYear = ftrYear + 1900;
}
	document.write(ftrYear);
}