if (document.images) {
//=================
// For mouse rollovers
//=================

  personal_roll = new Image(81,25); personal_roll.src="images/topnav_personal_on.gif";
  business_roll = new Image(76,25); business_roll.src="images/topnav_business_on.gif";
  aboutus_roll = new Image(78,25); aboutus_roll.src="images/topnav_aboutus_on.gif";
  news_roll = new Image(53,25); news_roll.src="images/topnav_news_on.gif";
  branchlocations_roll = new Image(127,25); branchlocations_roll.src="images/branch_locations_on.gif";
  onlinebanking_roll = new Image(114,25); onlinebanking_roll.src="images/online_banking_on.gif";


  personal_off = new Image(81,25); personal_off.src="images/topnav_personal.gif";
  business_off = new Image(76,25); business_off.src="images/topnav_business.gif";
  aboutus_off = new Image(78,25); aboutus_off.src="images/topnav_aboutus.gif";
  news_off = new Image(53,25); news_off.src="images/topnav_news.gif";
  branchlocations_off = new Image(127,25); branchlocations_off.src="images/branch_locations.gif";
  onlinebanking_off = new Image(114,25); onlinebanking_off.src="images/online_banking.gif";


  function imgOver(imgTxt, state) {
    if (state == 'on') {
      document[imgTxt].src = eval(imgTxt + "_roll.src");
    }
    else {
      document[imgTxt].src = eval(imgTxt + "_off.src");
    }
  }

}


/* =Disclaimers
----------------------------------------------- */
var emailDisclaimer = "Messages that you send to us by e-mail may not be secure. We recommend that you do not send any confidential information to us by e-mail. If you choose to send any confidential information to us by e-mail, you accept the risk that a third party may intercept this information.";
function mailConfirm(passedAddress) {
	if (confirm(emailDisclaimer)) {
		window.location.href = passedAddress;
	}
}

var linkDisclaimer = "You use any third-party links contained on this site at your own risk. The content to which you link has not been developed, checked for accuracy or otherwise reviewed by Santa Clara Valley Bank. Santa Clara Valley Bank makes no guarantees or representations as to, and shall have no liability for, any third-party site, including without limitation the accuracy, subject matter, quality or timeliness of any electronic content.";
function disclaimer(passedWebsite) {
	var oWin;
	if (confirm(linkDisclaimer)) {
		oWin = window.open(passedWebsite,"newWindow");
		if (oWin === null || typeof(oWin) === "undefined") {
			window.location.href = passedWebsite;
		} else {
			return true;
		}
	}
}
