/*
var aryImages = new Array('/images/https-common/nav/nav_bg_off.gif',
'/images/https-common/nav/nav_bg_on.gif',
'/images/https-common/nav/drop_bg_off_bttm_114.gif',
'/images/https-common/nav/drop_bg_off_bttm_155.gif',
'/images/https-common/nav/drop_bg_off_bttm_138.gif',
'/images/https-common/nav/nav_top_bg.gif',
'/images/https-common/nav/find_prod_on.gif',
'/images/https-common/nav/access_accts_on.gif',
'/images/https-common/nav/cust_serv_on.gif',
'/images/https-common/nav/find_prod_off.gif',
'/images/https-common/nav/access_accts_off.gif',
'/images/https-common/nav/cust_serv_off.gif',
'/images/https-common/nav/drop_dotLine_112  .gif',
'/images/https-common/nav/drop_dotLine_153.gif',
'/images/https-common/nav/drop_dotLine_136.gif');

for (i=0; i < aryImages.length; i++) {
	var preload = new Image();
	preload.src = aryImages[i];
}
*/

// main function for all Primary Nav changes
function setPrimNav(arrayID) {
	var validID = (eval(primNavSubArray[arrayID]));
	if (validID==undefined || validID=="default") {
		arrayID="default";
	}
  setLobLogo(arrayID);
	var wr=writeNavLabels(arrayID);
  if (wr && showPrimaryNav=='yes') {
    setPrimBG(hiID, navLength);
  }
}

function writeNavLabels(arrayID) {
	var navStr="";
  var hderType='';
  
  if (isRegional == 'yes' && arrayID == 'default'){
      hderType = 'hdernarrow';
    } else {
      hderType = 'hder';
	}
		
	navLength=primNavSubArray[arrayID].length;
	for (i=0; i<navLength; i++) {
		if ( typeof( window[ 'cg3' ] ) != "undefined" ) {
			if (cg3==primNavSubArray[arrayID][i][0]) {
				hiID=i+1;
			}
		}
    navStr+='<div id="hdr_'+(i+1)+'bg" class="' + hderType + '"><div style="position: relative; margin-top: 6px;">';
		navStr+='<a href="' + primNavSubArray[arrayID][i][1] + '">';
		navStr+=unescape(primNavSubArray[arrayID][i][0]);
		navStr+='</a></div></div>';
		if (i+1<navLength) {
			navStr+='<div id="vert_' + (i+1) + '" class="dotVertLine"><!--<img src="/images/https-common/nav/nav_div_off.gif">--></div>';
		}
	}
	document.getElementById('primNavInside').innerHTML=navStr;
	//alert(navStr);
	return true;
}

function setPrimBG (id, navLength) {
//*** cms primary nav bg highlighting ***//
	if (id) {	
		var divId = "hdr_"+id+"bg";

		if (cg3!=''){
			document.getElementById(divId).style.backgroundImage = 'url(/images/https-common/nav/nav_bg_on.gif)';
		}
		
		if (id==1) {
			document.getElementById("leftTabEnd").style.backgroundImage = 'url(/images/https-common/nav/nav_left_on.gif)';
			document.getElementById("vert_" + id).style.backgroundImage = 'url(/images/https-common/nav/nav_div_on.gif)';
			//document.getElementById("vert_" + id).innerHTML = '<img src="/images/https-common/nav/nav_div_on.gif">';
			
		}
		else if (id==navLength && cg3!='') {
			document.getElementById("vert_" + (id-1)).style.backgroundImage = 'url(/images/https-common/nav/nav_div_on.gif)';
			//document.getElementById("vert_" + (id-1)).innerHTML = '<img src="/images/https-common/nav/nav_div_on.gif">';
			document.getElementById("rightTabEnd").style.backgroundImage = 'url(/images/https-common/nav/nav_right_on.gif)';
			//document.getElementById("primNavInside").style.backgroundImage = 'url(/images/https-common/nav/nav_bg_on.gif)';
		}
		else {
		
			document.getElementById("vert_" + (id-1)).style.backgroundImage = 'url(/images/https-common/nav/nav_div_on.gif)';
			if (document.getElementById("vert_" + id)){
			document.getElementById("vert_" + id).style.backgroundImage = 'url(/images/https-common/nav/nav_div_on.gif)';
			}
			//document.getElementById("vert_" + (id-1)).innerHTML = '<img src="/images/https-common/nav/nav_div_on.gif">';
			if (document.getElementById("vert_" + id)){
				//document.getElementById("vert_" + id).innerHTML = '<img src="/images/https-common/nav/nav_div_on.gif">';
			}
		}

	} else {
//*** non cms primary nav bg highlighting ***//
	if ((location.href.indexOf("/apply/") > 0) || (location.href.indexOf("/creditcards/") > 0)) {
	  setBackgroundImage('hdr_1bg');
		document.getElementById("leftTabEnd").style.backgroundImage = 'url(/images/https-common/nav/nav_left_on.gif)';
	} else if (location.href.indexOf("/autoloans/") > 0) {
	  setBackgroundImage('hdr_2bg');
	} else if ((location.href.indexOf("deposits.capitalone.com") > 0) || (location.href.indexOf("/investments/") > 0) || (location.href.indexOf("savings.capitalone.com") > 0) || (location.href.indexOf("/savings/") > 0)) {
	  setBackgroundImage('hdr_3bg');
 	} else if ((location.href.indexOf("/mortgages/") > 0) || (location.href.indexOf("capitalonemortgagesolutions.com") > 0) || (location.href.indexOf("capitalonehomeloans.com") > 0)) {
	  setBackgroundImage('hdr_4bg');
	} else if ((location.href.indexOf("/healthcarefinance/") > 0) || (location.href.indexOf("capitalonehealthcarefinance.com") > 0)) {
	  setBackgroundImage('hdr_5bg');
	} else if (location.href.indexOf("/personalloans/") > 0) {
	  setBackgroundImage('hdr_6bg');
	} else if (location.href.indexOf("getmyfreequotes") > 0) {
	  setBackgroundImage('hdr_7bg');
	}
}

//*** turn on/off each end of primary nav bg and add vert solid lines for selected***/

	
  
}

function setBackgroundImage (elementID) {
    document.getElementById(elementID).style.backgroundImage = 'url(/images/https-common/nav/nav_bg_on.gif)';
}
/*Primary Nav Menu Definitions*/
//var primNavSubArray = new Array(); this is declared in caller (header.inc)

//national 

primNavSubArray["Personal Loans"] = new Array(
  ["Personal Loans Home","/personalloans/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_PL1"],
  ["Apply for Mail Offers","javascript:windowit('/redirect.php?Log=1&linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_CLON&dest=http://www.capitaloneloans.com');"],
  ["Why Capital One?","/personalloans/why.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_PL2"],
  ["",""]
);

primNavSubArray["Direct Banking"] = new Array(
  ["Direct Banking Home","/directbanking/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_SP1"],
  ["High Yield Money Market","/directbanking/hymm/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_02_T_SP25"],
  ["Certificates of Deposit","/directbanking/cd/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_03_G_SP2"],
  ["Business Money Market","/directbanking/bmm/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_04_G_SP26"],
  ["",""]
);

//regional

/* not used ------------------------------------
primNavSubArray["Regional"] = new Array( 
  ["Personal Home","/bank/"],
  ["Credit Cards","/creditcards/"],
  ["Checking & Savings","/bank/checkingandsavings.php"],
  ["Auto Loans","/autoloans/"],
  ["Home Loans","/bank/homeloansandmortgages/"],
  ["Loans & Lines","/bank/loansandloc/"],
  ["More Products & Services","/bank/services/"],
  ["",""]
);
---------------------------------------*/

primNavSubArray["Checking and Savings"] = new Array(
  ["Checking & Savings Home","/bank/checkingandsavings.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BPCNS"],
  ["Checking","/bank/checking/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BPCH"],
  ["Savings","/bank/savings/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BPSAV"],
  ["CDs","/bank/cds/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BPCD"],
  ["Debit Cards","/bank/checking/debitcard/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BPDC"],
  ["",""]
); 

primNavSubArray["Home Loans and Mortgages"] = new Array(
  ["Home Loans & Mortgages Home","/bank/homeloansandmortgages/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BHL"],
  ["Home Equity Loans","/bank/homeloansandmortgages/homeequityloans/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BHE"],
  ["Home Equity Lines of Credit","/bank/homeloansandmortgages/homeequityline/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BHEL"],
  ["Mortgages","/bank/homeloansandmortgages/mortgages/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BMRT"],
  ["",""]
); 

primNavSubArray["Loans and Lines of Credit"] = new Array(
  ["Loans & Lines of Credit Home","/bank/loansandloc/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BLL"],
  ["Secured Loans","/bank/loansandloc/securedloans/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BLL2"],
  ["Unsecured Loans","/bank/loansandloc/unsecuredloans/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BUL"],
  ["Unsecured Lines","/bank/loansandloc/unsecuredloc/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BULU"],
  ["Student Loans","/bank/loansandloc/studentloans.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BLSL"],
  ["",""]
); 

primNavSubArray["SB Regional"] = new Array(
  ["Small Business Home","/bank/smallbusiness/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSB"],
  ["Credit Cards","/bank/smallbusiness/creditcard/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCC"],
  ["Checking & Savings","/bank/smallbusiness/checkingandsavings.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCS"],
  ["Loans & Lines of Credit","/bank/smallbusiness/loansandloc/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBLL"],
  ["Cash Management","/bank/smallbusiness/cashmanagement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCM"],
  ["Equipment Financing","/bank/smallbusiness/equipmentfinancing/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBEF"],
  ["",""]
);

primNavSubArray["SB Credit Card"] = new Array(
  ["Business Credit Cards Home","/bank/smallbusiness/creditcard/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCC"],
  ["MasterCard BusinessCard","/bank/smallbusiness/creditcard/mastercard.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBC1"],
  ["",""]
); 

primNavSubArray["SB Checking and Savings"] = new Array(
  ["Business Checking & Savings Home","/bank/smallbusiness/checkingandsavings.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCS"],
  ["Business Checking","/bank/smallbusiness/checking/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCH"],
  ["Business Savings","/bank/smallbusiness/savings/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBSAV"],
  ["Business CDs","/bank/smallbusiness/cds/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCD"],
  ["Business Debit Cards","/bank/smallbusiness/checking/debitcard/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBDC"],
  ["",""]
); 

primNavSubArray["SB Loans & Lines Of Credit"] = new Array( 
  ["Business Loans & Lines of Credit Home","/bank/smallbusiness/loansandloc/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBLL"],
  ["Business Term Loans","/bank/smallbusiness/loansandloc/termloan.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBL1"],
  ["Business Lines of Credit","/bank/smallbusiness/loansandloc/lineofcredit.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBL2"],
  ["Business Letter of Credit","/bank/smallbusiness/loansandloc/letterofcredit.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBL3"],
  ["",""]
);

primNavSubArray["SB Cash Management"] = new Array(
  ["Cash Mgmt Home","/bank/smallbusiness/cashmanagement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBCM"],
  ["TowerNET","/bank/smallbusiness/cashmanagement/towernet.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM1"],
  ["Payments","/bank/smallbusiness/cashmanagement/paymentsdisbursement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM2"],
  ["Receivables","/bank/smallbusiness/cashmanagement/receivables/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM6"],
  ["Fraud Mgmt","/bank/smallbusiness/cashmanagement/fraudmanagement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM14"],
  ["Information Mgmt","/bank/smallbusiness/cashmanagement/infomanagement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM4"],
  ["Card Solutions","/bank/smallbusiness/cashmanagement/cardsolutions/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM9"],
  ["Depository Services","/bank/smallbusiness/cashmanagement/depositoryservices/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBM11"],
  ["",""]
); 

primNavSubArray["SB Equipment Financing"] = new Array( 
  ["Equipment Financing","/bank/smallbusiness/equipmentfinancing/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BBEF"],
  ["",""] 
); 

primNavSubArray["Commercial"] = new Array( 
  ["Commercial Home","/bank/commercial/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOM"], 
  ["Depository Services","/bank/commercial/deposits/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD"],
  ["Southcoast, Inc","/bank/commercial/southcoastcapital/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCO1"], 
  ["Treasury Management","/bank/commercial/treasurymanagement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOTM"], 
  ["Debt Solutions","/bank/commercial/debtsolutions/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD1"], 
  ["International Banking","/bank/commercial/internationalbanking/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOI"], 
  ["",""] 
);

primNavSubArray["Depository Services"] = new Array( 
  ["Depository Services","/bank/commercial/deposits/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD"],
  ["",""] 
);

primNavSubArray["Southcoast Capital"] = new Array( 
  ["Southcoast, Inc Home","/bank/commercial/southcoastcapital/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCO1"],
  ["Investment Banking","/bank/commercial/southcoastcapital/investmentbanking.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCO4"],
  ["Equity Research","/bank/commercial/southcoastcapital/equityresearch.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCO4"],
  ["Equity Sales","/bank/commercial/southcoastcapital/equitysales.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCO8"],
  ["Corporate Finance Professionals","/bank/commercial/southcoastcapital/corporatefinance.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCO2"],
  ["",""] 
);

primNavSubArray["Treasury Management"] = new Array( 
  ["Treasury Mgmt Home","/bank/commercial/treasurymanagement/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOTM"],
  ["TowerNET","/bank/commercial/treasurymanagement/towernet.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT3"],
  ["Payments","/bank/commercial/treasurymanagement/payments.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT6"],
  ["Receivables","/bank/commercial/treasurymanagement/receivables.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT7"],
  ["Fraud Mgmt","/bank/commercial/treasurymanagement/fraudmanagement.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT1"],
  ["Information Mgmt","/bank/commercial/treasurymanagement/information.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT4"],
  ["Card Solutions","/bank/commercial/treasurymanagement/cardsolutions.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT2"],
  ["Funds Mgmt","/bank/commercial/treasurymanagement/funds.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOT5"],
  ["",""]
);

primNavSubArray["Debt Solutions"] = new Array( 
  ["Debt Solutions Home","/bank/commercial/debtsolutions/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD1"],
  ["Term Loans","/bank/commercial/debtsolutions/termloansandloc.php"],
  ["Real Estate","/bank/commercial/debtsolutions/realestate.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD3"],
  ["Equipment Leasing","/bank/commercial/debtsolutions/equipmentleasing.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD2"],
  ["Energy & Maritime","/bank/commercial/debtsolutions/energymaritime.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD5"],
  ["Debt Capital","/bank/commercial/debtsolutions/debtcapitalmarkets.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD6"],
  ["Dealer Services","/bank/commercial/debtsolutions/dealerservices.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOD7"],
  ["",""]
);

primNavSubArray["International Banking"] = new Array( 
  ["International Banking","/bank/commercial/internationalbanking/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BCOI"],
  ["",""] 
);

/* not used ------------------------------------
primNavSubArray["Services"] = new Array( 
  ["Services Home","/bank/services/"], 
  ["Branch Banking","/bank/services/branchbanking/"], 
  ["Online Banking","/bank/services/online/"], 
  ["Private Client Group","/bank/services/private/"], 
  ["Investments","/bank/services/investments/"], 
  ["Insurance","/bank/services/insurance/"], 
  ["",""] 
);
------------------------------------------------*/

primNavSubArray["Insurance"] = new Array( 
  ["Insurance Home","/bank/services/insurance/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BINS"],
  ["Personal Insurance","/bank/services/insurance/personal.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIS1"],
  ["Employee Benefits Management","/bank/services/insurance/employeebenefits/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIS2"], 
  ["Commercial Property and Casualty","/bank/services/insurance/pc/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIS4"],  
  ["",""] 
);

primNavSubArray["Investments"] = new Array( 
  ["Investments Home","/bank/services/investments/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BINV"],
  ["Stocks","/bank/services/investments/equities.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIN3"], 
  ["Bonds","/bank/services/investments/fixedincome.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIN4"],
  ["Mutual Funds","/bank/services/investments/mutualfunds/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSMF"],
  ["Annuities","/bank/services/investments/annuities.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIN2"],
  ["Self-Directed IRAs","/bank/services/investments/selfdirectedira.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIN5"],
  ["529 College Savings Plan","/bank/services/investments/529college.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BIN6"],
  ["",""] 
);

primNavSubArray["Private Client"] = new Array( 
  ["Private Client Group Home","/bank/services/private/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSPC"],
  ["Asset Mgmt","/bank/services/private/asset.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSAS"], 
  ["Client Advisory","/bank/services/private/clientadvisory.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSP1"],
  ["Client Services","/bank/services/private/personal.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSP5"],
  ["Institutional Client Services","/bank/services/private/institutional.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSP2"],
  ["",""] 
);

primNavSubArray["Online Banking"] = new Array( 
  ["Online Banking & Bill Payment","/bank/services/online/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BOLB"],
  ["",""] 
);

primNavSubArray["Branch Banking"] = new Array( 
  ["Branch Banking Home","/bank/services/branchbanking/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_BSBB"],
  ["",""] 
);

primNavSubArray["Financial Education"] = new Array( 
  ["Financial Education Home","/financialeducation/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_FIN"],
  ["Credit FAQ","/financialeducation/credit_faq.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_CTFAQ"],
  ["",""] 
);

primNavSubArray["About"] = new Array( 
  ["About Capital One Home","/about/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_A7"],
  ["Corporate Information","/about/corpinfo/index.php"],
  ["Corporate Citizenship","/about/corporatecitizenship/index.php"],
  ["",""] 
);

primNavSubArray["Fraud"] = new Array( 
  ["Fraud Home","/fraud/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_FRD"],
  ["Fraud Prevention","/fraud/prevention/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_PREV"],
  ["Fraud Victims","/fraud/victims/index.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_VICT"],
  ["Resources","/fraud/resources.php?linkid=WWW_Z_Z_Z_GBLHM_H1_01_T_RESR"],
  ["",""] 
);

function setLobLogo(arrayID) {
	if (arrayID) { //refactor
		switch (arrayID) {
			case "Small Business":
			case "SB Regional":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_smallbiz.gif" width="141" height="50" alt="Small Business" border="0" /></a>';
				break;
			case "Personal Loans":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_personalloans.gif" width="141" height="50" alt="Personal Loans" border="0" /></a>';
				break;
			case "Checking and Savings":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_checkandsave.gif" width="181" height="50" alt="checking &amp; savings" border="0" /></a>';
				break;
			case "Direct Banking":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_directbanking.gif" width="141" height="50" alt="direct banking" border="0" /></a>';
				break;
			case "Loans and Lines of Credit":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/loansandloc/"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_loansandlines.gif" width="186" height="50" alt="Loans and Lines of Credit" border="0" /></a>';
				break;
			case "Home Loans and Mortgages":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_homeloans.gif" width="190" height="50" alt="Home Loans and Mortgages" border="0" /></a>';
				break;
			case "SB Credit Card":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/smallbusiness/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_smallbiz.gif" width="141" height="50" alt="Small Business" border="0" /></a>';
				break;
			case "SB Checking and Savings":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/smallbusiness/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_smallbiz.gif" width="140" height="50" alt="Small Business" border="0" /></a>';
				break;
			case "SB Loans & Lines Of Credit":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/smallbusiness/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_smallbiz.gif" width="140" height="50" alt="Small Business" border="0" /></a>';
				break;
			case "SB Cash Management":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/smallbusiness/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_smallbiz.gif" width="140" height="50" alt="Small Business" border="0" /></a>';
				break;
			case "SB Equipment Financing":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/smallbusiness/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_smallbiz.gif" width="140" height="50" alt="Small Business" border="0" /></a>';
				break;
			case "Insurance":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_insurance.gif" width="91" height="50" alt="Insurance" border="0" /></a>';
				break;
			case "Investments":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_investments.gif" width="113" height="50" alt="Investments" border="0" /></a>';
				break;
			case "Private Client":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_pcg.gif" width="176" height="50" alt="Private Client Group" border="0" /></a>';
				break;
			case "Branch Banking":
				document.getElementById("lobLogo").innerHTML='<a href="' + primNavSubArray[arrayID][0][1] + '"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_branchbanking.gif" width="144" height="50" alt="Branch Banking" border="0" /></a>';
				break;
			case "Commercial":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/commercial/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_commercial.gif" width="118" height="50" alt="Commercial" border="0" /></a>';
				break;
			case "Depository Services":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/commercial/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_commercial.gif" width="118" height="50" alt="Commercial" border="0" /></a>';
				break;
			case "Southcoast Capital":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/commercial/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_commercial.gif" width="118" height="50" alt="Commercial" border="0" /></a>';
				break;
			case "Treasury Management":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/commercial/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_commercial.gif" width="118" height="50" alt="Commercial" border="0" /></a>';
				break;
			case "Debt Solutions":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/commercial/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_commercial.gif" width="118" height="50" alt="Commercial" border="0" /></a>';
				break;
			case "International Banking":
				document.getElementById("lobLogo").innerHTML='<a href="/bank/commercial/index.php"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_commercial.gif" width="118" height="50" alt="Commercial" border="0" /></a>';
				break;
			default:
				document.getElementById("lobLogo").innerHTML='<a href="/"><img src="/images/https-common/nav/logos/logo_capone.gif" width="157" height="50" border="0" alt="Capital One"><img src="/images/https-common/nav/logos/logo_divide.gif" width="1" height="50" border="0" alt=""><img src="/images/https-common/nav/logos/c1_prodlogo_wiyw.gif" width="149" height="50" alt="whats in your wallet" border="0" /></a>';
		}
	}
}


