//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 website's privacy and security policies.  Please take the time to review each website's 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 fnPopUp(url) 
{
 var width  = 800;
 var height = 600;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=yes';
 params += ', location=no';
 params += ', menubar=yes';
 params += ', resizable=yes';
 params += ', scrollbars=yes';
 params += ', status=yes';
 params += ', toolbar=yes';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}

function fnPopUpsm(url) 
{
 var width  = 325;
 var height = 200;
 var left   = (screen.width  - width)/2;
 var top    = (screen.height - height)/2;
 var params = 'width='+width+', height='+height;
 params += ', top='+top+', left='+left;
 params += ', directories=no';
 params += ', location=no';
 params += ', menubar=no';
 params += ', resizable=no';
 params += ', scrollbars=no';
 params += ', status=no';
 params += ', toolbar=no';
 newwin=window.open(url,'windowname5', params);
 if (window.focus) {newwin.focus()}
 return false;
}


function displayBox(){
var rand=Math.floor(Math.random()*6)

document.getElementById('box' + rand).style.display='';

}