function Q2ExternalLink(){
	if(confirm("You are leaving the Bank's web site.\n\nThe web site you have selected is an external one located on another server. The Bank has no responsibility for any external Web site. It neither endorses the information, content, presentation, or accuracy nor makes any warranty, express or implied, regarding any external site.")){
		return true;
	} else {
		return false;
	}
}

function Q2mail(){
	if(confirm("Information provided through this email link is transmitted over an unsecured connection. Please do not send information such as account numbers, account service requests or other personal information. Please contact us in person, by telephone or by mail with confidential information.")){
		return true;
	} else {
		return false;
	}
}

function CheckBoxCheck(type){
	if(type == 0){
		if(document.Q2OnlineLogin.forgot_password[0].checked){
			document.Q2OnlineLogin.forgot_password[1].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
		} else {
			document.Q2OnlineLogin.password.disabled = false;
		}
	} else if(type == 1){
		if(document.Q2OnlineLogin.forgot_password[1].checked){
			document.Q2OnlineLogin.forgot_password[0].checked = false;
			document.Q2OnlineLogin.password.disabled = true;
		} else {
			document.Q2OnlineLogin.password.disabled = false;
		}
	}
}

function MM_findObj(n, d) { //v4.01

  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);

  if(!x && d.getElementById) x=d.getElementById(n); return x;

}


function MM_showHideLayers() { //v6.0

  var i,p,v,obj,args=MM_showHideLayers.arguments;

  for (i=0; i<(args.length-2); i+=3) if ((obj=MM_findObj(args[i]))!=null) { v=args[i+2];

    if (obj.style) { obj=obj.style; v=(v=='show')?'visible':(v=='hide')?'hidden':v; }

    obj.visibility=v; }

}

function MM_openBrWindow(theURL,winName,features) {
  window.open(theURL,winName,features);
}

// Set slideShowSpeed (milliseconds)
var slideShowSpeed = 5000;
// Duration of crossfade (seconds)
var crossFadeDuration = 3;
// Specify the image files
var Pic = new Array();
// to add more images, just continue
// the pattern, adding to the array below

Pic[0] = 'UserFiles/Image/capacity.jpg'
Pic[1] = 'UserFiles/Image/access.jpg'
Pic[2] = 'UserFiles/Image/experience.jpg'

// do not edit anything below this line
var t;
var j = 0;
var p = Pic.length;
var preLoad = new Array();
for (i = 0; i < p; i++) {
preLoad[i] = new Image();
preLoad[i].src = Pic[i];
}
function runSlideShow() {
if (document.all) {
document.images.SlideShow.style.filter="blendTrans(duration=2)";
document.images.SlideShow.style.filter="blendTrans(duration=crossFadeDuration)";
document.images.SlideShow.filters.blendTrans.Apply();
}
document.images.SlideShow.src = preLoad[j].src;
if (document.all) {
document.images.SlideShow.filters.blendTrans.Play();
}
j = j + 1;
if (j > (p - 1)) j = 0;
t = setTimeout('runSlideShow()', slideShowSpeed);
}


/*
Rotating image or text(You can use for changing banners)
Author: Narayan Chand Thakur
Source: http://ncthakur.itgo.com/
This may be used freely as long as this message is intact.
*/
<!--

//you may add your image file or text below
var item=new Array()
item[0]="<strong>FDIC Permanent Increase</strong><br/>On July 21st, 2010 the FDIC announced that it would permanently increase coverage to $250,000. The FDIC insurance coverage limit applies per depositor, per insured depository institution for each account ownership category."
item[1]="<strong>Best of Arizona</strong><br />Biltmore Bank was ranked the #1 Mid-Sized Bank in Arizona by Ranking Arizona."
item[2]="<a href='http://www.fdic.gov/news/board/aug26no4.pdf'><strong>FDIC Extends TAG</strong><br />On August 26th, 2009, the FDIC extended the Transaction Account Guarantee (TAG).  The new program guarantees non-interest bearing accounts through December 31st, 2010. Biltmore Bank will continue to participate in this program.</a>"
item[3]="<a href='userfiles/file/v7n1.pdf'><strong>Business Focus</strong><br/>Check out the latest issue of Biltmore Bank Business Focus.<br/>Concise and impactful strategies for Arizona businesses.</a>"
item[4]="<a href='userfiles/file/PR_ASE_BBAZ_APS_060110_FINAL.pdf'><strong>Solar Select</strong><br/>Biltmore Bank, in partnership with American Solar Electric and APS announce the Solar Select financing program.</a>"

var current=0

var ns6=document.getElementById&&!document.all

function changeItem(){
if(document.layers){
document.layer1.document.write(item[current])
document.layer1.document.close()
}
if(ns6)document.getElementById("div1").innerHTML=item[current]
{
if(document.all){
div1.innerHTML=item[current]
}
}
if (current==3) current=0
else current++
setTimeout("changeItem()",12000)
}
//window.onload=changeItem
//-->



function MM_jumpMenu(targ,selObj,restore){ //v3.0
  eval(targ+".location='"+selObj.options[selObj.selectedIndex].value+"'");
  if (restore) selObj.selectedIndex=0;
}



function submitpersonalform()
{
  document.retaildemo.submit();
}

function submitcommercialform()
{
  document.commercialdemo.submit();
}


$(document).ready(function() {
    $('.slideshow').cycle({
		fx: 'none' // choose your transition type, ex: fade, scrollUp, shuffle, etc...
	});
});
