function isMac() {
	if (navigator.appVersion.indexOf("Mac") !=-1)
	return true;
	else return false;
}
	var thislocation
	var domain
	domain = ""
	thislocation = document.location + ""
	if(thislocation.indexOf("localhost") != -1)
		domain="http://wwd.fnbk.com"
	var st1 = navigator.userAgent;
	var a = new Array();
	a = st1.split(";");
	var b = new Array();
	b = st1.split("/");
	
	//this will check for the proper version of IE
	//the Netscape equivalent of it like this a[2].charAt(0)
	//Likewise, its version can be had from the userAgent property like this a[0].charAt(8)

	IE3 = (a[1].charAt(1) == "M" && a[1].charAt(6) == "3")
	if (IE3) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_ie3_76.css\" type=\"text/css\">")
	}

	IE4PC = (a[1].charAt(1) == "M" && a[1].charAt(6) == "4" && a[2].charAt(1) == "W")
	if (IE4PC) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_ie5_76.css\" type=\"text/css\">")
	}

	IE4Mac = (a[1].charAt(1) == "M" && a[1].charAt(6) == "4" && a[2].charAt(1) == "M")
	if (IE4Mac) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_ie4m_76.css\" type=\"text/css\">")
	}

	IE5 = (a[1].charAt(1) == "M" && a[1].charAt(6) >= "5")
	if (IE5) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_ie5_76.css\" type=\"text/css\">")
	}

	if (navigator.appName == "Netscape")
	{
		N4 = (b[1].charAt(0) == "4")
		N6 = (b[1].charAt(0) == "5")
	}
	else
	{
		N4 = null;
		N6 = null;
	}
	
	if (N6) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_n6_76.css\" type=\"text/css\">")
	}

	N4 = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )))
	if (N4  && !N6 && isMac()) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_n4m_76.css\" type=\"text/css\">")
	}

	else if (N4 && !N6) {	
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_n4pc_76.css\" type=\"text/css\">")
	}
	
	if  (!IE3 && !IE4PC && !IE4Mac && !IE5 && !N4 && !N6) {
		document.write("<LINK rel=\"stylesheet\" href=\"" + domain + "/mark/css/iws_n6_76.css\" type=\"text/css\">")
	}
	

function MM_reloadPage(init) 
{  //reloads the window if Nav4 resized
  if (init==true) with (navigator) {if
((appName=="Netscape")&&(parseInt(appVersion)==4)) {
    document.MM_pgW=innerWidth; document.MM_pgH=innerHeight;
onresize=MM_reloadPage; }}
  else if (innerWidth!=document.MM_pgW || innerHeight!=document.MM_pgH)
location.reload();
}


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];}
}

function spawnNewWindow()
{
	open ("chk_zl.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=370,height=300");
}
function spawnNewWindow1()
{
	open ("/iws_help/privacy_help.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}
function spawnNewWindow2()
{
	open ("/jcommon/policydocs/privacypolicy.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=575,height=600");
}

function spawnNewWindow3()
{
	open ("/jcommon/policydocs/security.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=575,height=600");
}

function spawnNewWindow4()
{
	open ("/iws_help/security_help.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}

function spawnNewWindowATM()
{
	open ("/iwsOnline/public/atmbranch/begin.do","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=500");
}


function spawnTravelCalendar()
{
	open ("/mark/misc/travelcalendar.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=400");
}
function spawnActivities()
{
	open ("/mark/misc/activities.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=400");
}

function what (location)
{
	open (location,"", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=400,height=500");
}

function spawnNewWindowEnroll()
{
	open ("https://www.fnbk.com/welcome/EnrollSelectAcct","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}

function spawnNewWindowTaxInfo()
{
	open ("/mark/taxcenter/taxinfo.asp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=650,height=575");
}

function spawnNewWindowShowRates()
{
	open ("/welcome/jsp/products/rates/rates.jsp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}
function spawnNewWindowFP()
{
	open ("/features/adviceamerica/adviceamericafaq.jsp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=450,height=500");
}

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");
}

//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 "OutsideLink":
			confirmValue = confirm( "Clicking on this link will direct you to an outside website.  The website you have chosen is independent from Centennial Bank.  Centennial Bank has no control over the websites privacy and security policies.  Please take the time to review each websites policies."+ '\n' + " "+ '\n' + "Click OK to continue, or Cancel to return to the previous page.");
			break;
	case "careers":
		confirmValue = confirm( "You are leaving " + ourSite + "'s web site.\nYou are being directed to a third party hosted recruiting solution." );
	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 spawnNewWindowHelp()
{
	open ("/076/html/en/personal/faqs/tran/index.html","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=600,height=500");
}

function dynamicapp(url) {
	window.location='https://' + window.location.hostname + url;
}

 function FooterDate()
 {
     var ftrDate=new Date();
     var ftrYear=ftrDate.getYear();
     if (ftrYear < 1000) {
         ftrYear = ftrYear + 1900;
     };
     document.write(ftrYear);
 };