//BEGIN MACINTOSH DETECT FOR CSS
function isMac() {
	if (navigator.appVersion.indexOf("Mac") !=-1)
	return true;
	else return false;
}
	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)
//BEGIN  DETECT FOR CSS
	IE3 = (a[1].charAt(1) == "M" && a[1].charAt(6) == "3")
	if (IE3) {
		document.write("<LINK rel=\"stylesheet\" href=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_ie3_AMA.css/%22 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=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_ie5_AMA.css/%22 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=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_ie4m_AMA.css/%22 type=\"text/css\">")
	}

	IE5 = (a[1].charAt(1) == "M" && a[1].charAt(6) >= "5")
	if (IE5) {
		document.write("<LINK rel=\"stylesheet\" href=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_ie5_AMA.css/%22 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=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_n6_AMA.css/%22 type=\"text/css\">")
	}

	N4 = (((navigator.appName == "Netscape") && (parseInt(navigator.appVersion) >= 3 )))
	if (N4  && !N6 && isMac()) {
		document.write("<LINK rel=\"stylesheet\" href=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_n4m_AMA.css/%22 type=\"text/css\">")
	}

	else if (N4 && !N6) {	
		document.write("<LINK rel=\"stylesheet\" href=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_n4pc_AMA.css/%22 type=\"text/css\">")
	}
	
	if  (!IE3 && !IE4PC && !IE4Mac && !IE5 && !N4 && !N6) {
		document.write("<LINK rel=\"stylesheet\" href=/amasolutions/js//%22/AmericanMedicalAssociation/css/iws_n4m_AMA.css/%22 type=\"text/css\">")
	}
	
//BEGIN NETSCAPE 4 WINDOW RESIZE
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();
}

//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 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 + ". 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 + ".  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 + ".\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 disclosurePop(url, bookmark, relation){
window.open('/mark/disclosure/default.jsp?url=' + url + '&bookmark=' + bookmark + '&relation=' + relation, '', 'scrollbars=no,menubar=no,resizable=1,copyhistory=1,width=500,height=325');
}

 function FooterDate()
 {
     var ftrDate=new Date();
     var ftrYear=ftrDate.getYear();
     if (ftrYear < 1000) {
         ftrYear = ftrYear + 1900;
     };
     document.write(ftrYear);
 };
 
 function spawnNewWindowCU()
{
	open ("/mark/misc/contactus.jsp","", "scrollbars=yes,menubar=no,resizable=1,copyhistory=1,width=460,height=400");
}